@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.
Files changed (164) hide show
  1. package/dist/generated/wspace-operations.js +118 -111
  2. package/dist/generated/wspace-operations.js.map +1 -1
  3. package/dist/generated/wspace-types.js +27 -19
  4. package/dist/generated/wspace-types.js.map +1 -1
  5. package/dist/headshotmarketing/components/Toast.js +56 -2
  6. package/dist/headshotmarketing/components/Toast.js.map +1 -0
  7. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js +1 -1
  8. package/dist/headshotmarketing/context/HeadshotmarketingBootstrapContext.js.map +1 -1
  9. package/dist/headshotmarketing/pages/HomeFunnel.js +54 -0
  10. package/dist/headshotmarketing/pages/HomeFunnel.js.map +1 -0
  11. package/dist/headshotmarketing/pages/HomePage.js +423 -259
  12. package/dist/headshotmarketing/pages/HomePage.js.map +1 -1
  13. package/dist/headshotmarketing/pages/HomeStatCard.js +79 -0
  14. package/dist/headshotmarketing/pages/HomeStatCard.js.map +1 -0
  15. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js +93 -0
  16. package/dist/headshotmarketing/pages/ads/AdPlatformChips.js.map +1 -0
  17. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js +452 -390
  18. package/dist/headshotmarketing/pages/ads/CreateAdCampaignPage.js.map +1 -1
  19. package/dist/headshotmarketing/pages/analytics/ReportsPage.js +405 -115
  20. package/dist/headshotmarketing/pages/analytics/ReportsPage.js.map +1 -1
  21. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js +566 -346
  22. package/dist/headshotmarketing/pages/automation/WorkflowBuilderPage.js.map +1 -1
  23. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js +107 -0
  24. package/dist/headshotmarketing/pages/automation/WorkflowCanvasNode.js.map +1 -0
  25. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js +213 -0
  26. package/dist/headshotmarketing/pages/automation/WorkflowNodeConfigPanel.js.map +1 -0
  27. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js +150 -0
  28. package/dist/headshotmarketing/pages/automation/workflowBuilderModel.js.map +1 -0
  29. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js +380 -371
  30. package/dist/headshotmarketing/pages/builder/LandingPageBuilderPage.js.map +1 -1
  31. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js +92 -0
  32. package/dist/headshotmarketing/pages/builder/SectionCanvasBlock.js.map +1 -0
  33. package/dist/headshotmarketing/pages/builder/SectionContent.js +346 -0
  34. package/dist/headshotmarketing/pages/builder/SectionContent.js.map +1 -0
  35. package/dist/headshotmarketing/pages/builder/SectionInspector.js +358 -0
  36. package/dist/headshotmarketing/pages/builder/SectionInspector.js.map +1 -0
  37. package/dist/headshotmarketing/pages/builder/builderCatalog.js +274 -0
  38. package/dist/headshotmarketing/pages/builder/builderCatalog.js.map +1 -0
  39. package/dist/headshotmarketing/pages/content/AIToolsPage.js +479 -193
  40. package/dist/headshotmarketing/pages/content/AIToolsPage.js.map +1 -1
  41. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js +492 -197
  42. package/dist/headshotmarketing/pages/content/AssetLibraryPage.js.map +1 -1
  43. package/dist/headshotmarketing/pages/content/AssetThumbnail.js +37 -0
  44. package/dist/headshotmarketing/pages/content/AssetThumbnail.js.map +1 -0
  45. package/dist/headshotmarketing/pages/content/ContentCreationPage.js +672 -219
  46. package/dist/headshotmarketing/pages/content/ContentCreationPage.js.map +1 -1
  47. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js +200 -0
  48. package/dist/headshotmarketing/pages/content/ContentLibraryCard.js.map +1 -0
  49. package/dist/headshotmarketing/pages/content/ContentPage.js +224 -204
  50. package/dist/headshotmarketing/pages/content/ContentPage.js.map +1 -1
  51. package/dist/headshotmarketing/pages/content/ContentSubNav.js +51 -0
  52. package/dist/headshotmarketing/pages/content/ContentSubNav.js.map +1 -0
  53. package/dist/headshotmarketing/pages/crm/LeadsPage.js +250 -131
  54. package/dist/headshotmarketing/pages/crm/LeadsPage.js.map +1 -1
  55. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js +179 -0
  56. package/dist/headshotmarketing/pages/crm/LeadsWidgets.js.map +1 -0
  57. package/dist/headshotmarketing/pages/events/CreateEventPage.js +631 -379
  58. package/dist/headshotmarketing/pages/events/CreateEventPage.js.map +1 -1
  59. package/dist/headshotmarketing/pages/events/EventImageUpload.js +123 -0
  60. package/dist/headshotmarketing/pages/events/EventImageUpload.js.map +1 -0
  61. package/dist/headshotmarketing/pages/events/EventPagePreview.js +99 -0
  62. package/dist/headshotmarketing/pages/events/EventPagePreview.js.map +1 -0
  63. package/dist/headshotmarketing/pages/events/EventsPage.js +267 -228
  64. package/dist/headshotmarketing/pages/events/EventsPage.js.map +1 -1
  65. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js +50 -0
  66. package/dist/headshotmarketing/pages/seo/SeoScoreGauge.js.map +1 -0
  67. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js +147 -0
  68. package/dist/headshotmarketing/pages/seo/SeoScorePanel.js.map +1 -0
  69. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js +562 -419
  70. package/dist/headshotmarketing/pages/seo/SeoToolsPage.js.map +1 -1
  71. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js +108 -0
  72. package/dist/headshotmarketing/pages/social-media/MediaDropZone.js.map +1 -0
  73. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js +100 -0
  74. package/dist/headshotmarketing/pages/social-media/SocialComposerPreview.js.map +1 -0
  75. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js +315 -250
  76. package/dist/headshotmarketing/pages/social-media/SocialMediaComposePage.js.map +1 -1
  77. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js +60 -0
  78. package/dist/headshotmarketing/pages/social-media/socialComposerMeta.js.map +1 -0
  79. package/dist/headshotmarketing/utils/automationMapper.js +1 -1
  80. package/dist/headshotmarketing/utils/automationMapper.js.map +1 -1
  81. package/dist/headshotmarketing/utils/contentMapper.js +4 -24
  82. package/dist/headshotmarketing/utils/contentMapper.js.map +1 -1
  83. package/dist/headshotmarketing/utils/eventsMapper.js +9 -9
  84. package/dist/headshotmarketing/utils/eventsMapper.js.map +1 -1
  85. package/dist/headshotmarketing/utils/helpers.js +7 -4
  86. package/dist/headshotmarketing/utils/helpers.js.map +1 -1
  87. package/dist/headshotmarketing/utils/influencerMapper.js +1 -1
  88. package/dist/headshotmarketing/utils/influencerMapper.js.map +1 -1
  89. package/dist/node_modules/lodash/_arrayEach.js +14 -0
  90. package/dist/node_modules/lodash/_arrayEach.js.map +1 -0
  91. package/dist/node_modules/lodash/_assignValue.js +17 -0
  92. package/dist/node_modules/lodash/_assignValue.js.map +1 -0
  93. package/dist/node_modules/lodash/_baseAssign.js +16 -0
  94. package/dist/node_modules/lodash/_baseAssign.js.map +1 -0
  95. package/dist/node_modules/lodash/_baseAssignIn.js +16 -0
  96. package/dist/node_modules/lodash/_baseAssignIn.js.map +1 -0
  97. package/dist/node_modules/lodash/_baseClone.js +64 -0
  98. package/dist/node_modules/lodash/_baseClone.js.map +1 -0
  99. package/dist/node_modules/lodash/_baseCreate.js +21 -0
  100. package/dist/node_modules/lodash/_baseCreate.js.map +1 -0
  101. package/dist/node_modules/lodash/_baseIsMap.js +16 -0
  102. package/dist/node_modules/lodash/_baseIsMap.js.map +1 -0
  103. package/dist/node_modules/lodash/_baseIsSet.js +16 -0
  104. package/dist/node_modules/lodash/_baseIsSet.js.map +1 -0
  105. package/dist/node_modules/lodash/_baseKeysIn.js +20 -0
  106. package/dist/node_modules/lodash/_baseKeysIn.js.map +1 -0
  107. package/dist/node_modules/lodash/_baseUnset.js +26 -0
  108. package/dist/node_modules/lodash/_baseUnset.js.map +1 -0
  109. package/dist/node_modules/lodash/_cloneArrayBuffer.js +16 -0
  110. package/dist/node_modules/lodash/_cloneArrayBuffer.js.map +1 -0
  111. package/dist/node_modules/lodash/_cloneBuffer.js +17 -0
  112. package/dist/node_modules/lodash/_cloneBuffer.js.map +1 -0
  113. package/dist/node_modules/lodash/_cloneDataView.js +16 -0
  114. package/dist/node_modules/lodash/_cloneDataView.js.map +1 -0
  115. package/dist/node_modules/lodash/_cloneRegExp.js +15 -0
  116. package/dist/node_modules/lodash/_cloneRegExp.js.map +1 -0
  117. package/dist/node_modules/lodash/_cloneSymbol.js +15 -0
  118. package/dist/node_modules/lodash/_cloneSymbol.js.map +1 -0
  119. package/dist/node_modules/lodash/_cloneTypedArray.js +16 -0
  120. package/dist/node_modules/lodash/_cloneTypedArray.js.map +1 -0
  121. package/dist/node_modules/lodash/_copyArray.js +15 -0
  122. package/dist/node_modules/lodash/_copyArray.js.map +1 -0
  123. package/dist/node_modules/lodash/_copyObject.js +22 -0
  124. package/dist/node_modules/lodash/_copyObject.js.map +1 -0
  125. package/dist/node_modules/lodash/_copySymbols.js +16 -0
  126. package/dist/node_modules/lodash/_copySymbols.js.map +1 -0
  127. package/dist/node_modules/lodash/_copySymbolsIn.js +16 -0
  128. package/dist/node_modules/lodash/_copySymbolsIn.js.map +1 -0
  129. package/dist/node_modules/lodash/_customOmitClone.js +15 -0
  130. package/dist/node_modules/lodash/_customOmitClone.js.map +1 -0
  131. package/dist/node_modules/lodash/_flatRest.js +17 -0
  132. package/dist/node_modules/lodash/_flatRest.js.map +1 -0
  133. package/dist/node_modules/lodash/_getAllKeysIn.js +17 -0
  134. package/dist/node_modules/lodash/_getAllKeysIn.js.map +1 -0
  135. package/dist/node_modules/lodash/_getSymbolsIn.js +18 -0
  136. package/dist/node_modules/lodash/_getSymbolsIn.js.map +1 -0
  137. package/dist/node_modules/lodash/_initCloneArray.js +15 -0
  138. package/dist/node_modules/lodash/_initCloneArray.js.map +1 -0
  139. package/dist/node_modules/lodash/_initCloneByTag.js +40 -0
  140. package/dist/node_modules/lodash/_initCloneByTag.js.map +1 -0
  141. package/dist/node_modules/lodash/_initCloneObject.js +17 -0
  142. package/dist/node_modules/lodash/_initCloneObject.js.map +1 -0
  143. package/dist/node_modules/lodash/_nativeKeysIn.js +15 -0
  144. package/dist/node_modules/lodash/_nativeKeysIn.js.map +1 -0
  145. package/dist/node_modules/lodash/_parent.js +16 -0
  146. package/dist/node_modules/lodash/_parent.js.map +1 -0
  147. package/dist/node_modules/lodash/flatten.js +15 -0
  148. package/dist/node_modules/lodash/flatten.js.map +1 -0
  149. package/dist/node_modules/lodash/isMap.js +14 -0
  150. package/dist/node_modules/lodash/isMap.js.map +1 -0
  151. package/dist/node_modules/lodash/isSet.js +14 -0
  152. package/dist/node_modules/lodash/isSet.js.map +1 -0
  153. package/dist/node_modules/lodash/keysIn.js +17 -0
  154. package/dist/node_modules/lodash/keysIn.js.map +1 -0
  155. package/dist/node_modules/lodash/omit.js +28 -0
  156. package/dist/node_modules/lodash/omit.js.map +1 -0
  157. package/dist/node_modules/recharts/es6/chart/FunnelChart.js +15 -0
  158. package/dist/node_modules/recharts/es6/chart/FunnelChart.js.map +1 -0
  159. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js +370 -0
  160. package/dist/node_modules/recharts/es6/numberAxis/Funnel.js.map +1 -0
  161. package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +1 -1
  162. package/dist/node_modules/recharts/es6/util/FunnelUtils.js +81 -0
  163. package/dist/node_modules/recharts/es6/util/FunnelUtils.js.map +1 -0
  164. package/package.json +1 -1
@@ -1,278 +1,317 @@
1
1
  import { useHeadshotMarketing as e } from "../../context/HeadshotMarketingContext.js";
2
- import { cn as t, formatCurrency as n, formatDate as r, formatNumber as i, formatPercentage as a, joinPath as o } from "../../utils/helpers.js";
3
- import { PageLayout as s } from "../../components/PageLayout.js";
4
- import { StatCard as c } from "../../components/StatCard.js";
5
- import { StatusBadge as l } from "../../components/StatusBadge.js";
6
- import { EmptyState as u } from "../../components/EmptyState.js";
7
- import { FilterBar as d } from "../../components/FilterBar.js";
8
- import { QueryStateBoundary as f } from "../../components/QueryStateBoundary.js";
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 m } from "../../hooks/useHeadshotmarketingBootstrap.js";
12
- import { usePagination as h } from "../../hooks/usePagination.js";
13
- import { toMarketingEventModel as g } from "../../utils/eventsMapper.js";
14
- import { useEffect as _, useMemo as v, useState as y } from "react";
15
- import { CalendarDays as b, DollarSign as x, MapPin as S, Plus as C, Star as ee, Ticket as w, Users as T, Video as E } from "lucide-react";
16
- import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
17
- import { EmphasisPanel as A, PagePurpose as j } from "@burdenoff/fe-libs/ui";
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 M = {
20
- conference: "bg-status-info-bg text-status-info-text",
21
- webinar: "bg-status-success-bg text-status-success-text",
22
- workshop: "bg-[var(--color-accent-soft)] text-action-primary-bg",
23
- meetup: "bg-status-warning-bg text-status-warning-text"
24
- }, N = () => {
25
- let { navigate: N, basePath: P } = e(), { data: F, loading: I, error: L, refetch: R } = m(), [z, te] = y(""), [B, V] = y("all"), [H, U] = y("all"), { page: W, pageSize: G, offset: K, total: q, setPage: J, setPageSize: Y, setTotal: X } = h({ initialPageSize: 10 }), Z = () => N(o(P, "events/new")), Q = v(() => (F?.headshotmarketingEvents.items ?? []).map((e) => g(e)), [F?.headshotmarketingEvents.items]), ne = Q.length, re = Q.reduce((e, t) => e + t.metrics.registrations, 0), ie = Q.reduce((e, t) => e + t.metrics.totalRevenue, 0), ae = Q.reduce((e, t) => e + t.metrics.leadsGenerated, 0), $ = v(() => Q.filter((e) => {
26
- let t = !z || e.name.toLowerCase().includes(z.toLowerCase()) || e.description.toLowerCase().includes(z.toLowerCase()), n = B === "all" || e.status === B, r = H === "all" || e.type === H;
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
- z,
86
+ R,
31
87
  B,
32
88
  H
33
89
  ]);
34
- _(() => {
90
+ p(() => {
35
91
  X($.length);
36
- }, [$.length, X]);
37
- let oe = $.slice(K, K + G);
38
- return /* @__PURE__ */ k(s, {
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__ */ k("button", {
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__ */ O(C, { className: "h-4 w-4" }), "Create Event"]
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(j, { children: "Run webinars, conferences, workshops and meetups as part of your marketing. Create an event, track registrations and revenue, and see how many leads each one generates — so you know which formats are worth repeating." }), /* @__PURE__ */ k(f, {
47
- loading: I,
48
- error: L,
49
- onRetry: R,
50
- hasData: !!F,
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__ */ O(A, { children: /* @__PURE__ */ k("div", {
53
- className: "grid grid-cols-2 md:grid-cols-4 gap-4",
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__ */ O(c, {
56
- title: "Total Events",
57
- value: ne,
58
- icon: /* @__PURE__ */ O(b, { className: "h-4 w-4" })
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__ */ O(c, {
61
- title: "Registrations",
62
- value: i(re),
63
- icon: /* @__PURE__ */ O(w, { className: "h-4 w-4" })
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__ */ O(c, {
66
- title: "Revenue",
67
- value: n(ie),
68
- icon: /* @__PURE__ */ O(x, { className: "h-4 w-4" })
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__ */ O(c, {
71
- title: "Leads Generated",
72
- value: ae,
73
- icon: /* @__PURE__ */ O(T, { className: "h-4 w-4" })
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__ */ O(d, {
78
- searchValue: z,
79
- onSearchChange: te,
141
+ /* @__PURE__ */ T(c, {
142
+ searchValue: R,
143
+ onSearchChange: z,
80
144
  searchPlaceholder: "Search events...",
81
- filters: /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ k("select", {
82
- value: B,
83
- onChange: (e) => V(e.target.value),
84
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
85
- children: [
86
- /* @__PURE__ */ O("option", {
87
- value: "all",
88
- children: "All Statuses"
89
- }),
90
- /* @__PURE__ */ O("option", {
91
- value: "upcoming",
92
- children: "Upcoming"
93
- }),
94
- /* @__PURE__ */ O("option", {
95
- value: "live",
96
- children: "Live"
97
- }),
98
- /* @__PURE__ */ O("option", {
99
- value: "completed",
100
- children: "Completed"
101
- }),
102
- /* @__PURE__ */ O("option", {
103
- value: "cancelled",
104
- children: "Cancelled"
105
- })
106
- ]
107
- }), /* @__PURE__ */ k("select", {
108
- value: H,
109
- onChange: (e) => U(e.target.value),
110
- className: "rounded-md border border-border-seam bg-gloss-card shadow-pop px-3 py-2 text-sm text-text-primary",
111
- children: [
112
- /* @__PURE__ */ O("option", {
113
- value: "all",
114
- children: "All Types"
115
- }),
116
- /* @__PURE__ */ O("option", {
117
- value: "conference",
118
- children: "Conference"
119
- }),
120
- /* @__PURE__ */ O("option", {
121
- value: "webinar",
122
- children: "Webinar"
123
- }),
124
- /* @__PURE__ */ O("option", {
125
- value: "workshop",
126
- children: "Workshop"
127
- }),
128
- /* @__PURE__ */ O("option", {
129
- value: "meetup",
130
- children: "Meetup"
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 && /* @__PURE__ */ O(u, {
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__ */ k("button", {
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__ */ O(C, { className: "h-4 w-4" }), "Create Event"]
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
- /* @__PURE__ */ O("div", {
146
- className: "space-y-4",
147
- children: oe.map((e) => /* @__PURE__ */ O("div", {
148
- className: "rounded-lg border border-border-seam bg-gloss-card shadow-pop p-5 hover:bg-bg-sunken/50 transition-colors",
149
- children: /* @__PURE__ */ O("div", {
150
- className: "flex items-start justify-between",
151
- children: /* @__PURE__ */ k("div", {
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__ */ k("div", {
155
- className: "flex flex-wrap items-center gap-3 mb-2",
156
- children: [
157
- /* @__PURE__ */ O("h4", {
158
- className: "text-sm font-semibold text-text-primary",
159
- children: e.name
160
- }),
161
- /* @__PURE__ */ O("span", {
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__ */ O("p", {
169
- className: "text-xs text-text-secondary",
170
- children: e.description
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__ */ k("div", {
173
- className: "flex flex-wrap items-center gap-4 mt-3",
174
- children: [/* @__PURE__ */ k("div", {
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__ */ O(b, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ k("span", { children: [
177
- r(e.startDate),
178
- " -",
179
- " ",
180
- r(e.endDate)
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__ */ O(E, { className: "h-3.5 w-3.5" }) : /* @__PURE__ */ O(S, { className: "h-3.5 w-3.5" }), /* @__PURE__ */ O("span", { children: e.location })]
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__ */ k("div", {
188
- className: "mt-3",
189
- children: [/* @__PURE__ */ k("div", {
190
- className: "flex items-center justify-between text-xs mb-1",
191
- children: [/* @__PURE__ */ k("span", {
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
- i(e.metrics.registrations),
195
- " /",
275
+ n(e.metrics.registrations),
276
+ o ? ` / ${n(e.maxCapacity)}` : "",
196
277
  " ",
197
- i(e.maxCapacity),
198
- " registered"
278
+ "registered"
199
279
  ]
200
- }), /* @__PURE__ */ O("span", {
201
- className: "font-medium text-text-primary",
202
- children: e.maxCapacity > 0 ? a(e.metrics.registrations / e.maxCapacity * 100) : "0%"
203
- })]
204
- }), /* @__PURE__ */ O("div", {
205
- className: "w-full h-2 rounded-full bg-bg-sunken overflow-hidden",
206
- children: /* @__PURE__ */ O("div", {
207
- className: "h-full rounded-full bg-action-primary-bg",
208
- style: { width: `${Math.min(e.metrics.registrations / e.maxCapacity * 100, 100)}%` }
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__ */ k("div", {
213
- className: "flex flex-wrap items-center gap-2 mt-3",
214
- children: [/* @__PURE__ */ O("span", {
215
- className: "text-xs text-text-secondary",
216
- children: "Speakers:"
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
- e.status === "completed" && /* @__PURE__ */ k("div", {
226
- className: "flex flex-wrap items-center gap-4 mt-3 pt-3 border-t border-border-subtle",
227
- children: [
228
- /* @__PURE__ */ k("div", {
229
- className: "text-xs",
230
- children: [/* @__PURE__ */ k("span", {
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
- }, e.id))
310
+ })]
311
+ }, e.id);
312
+ })
274
313
  }),
275
- $.length > 0 && /* @__PURE__ */ O(p, {
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 { N as EventsPage };
327
+ export { M as EventsPage };
289
328
 
290
329
  //# sourceMappingURL=EventsPage.js.map