@burdenoff/microfe-eventfullymanaged 2026.1123.5 → 2026.1124.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
  2. package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
  3. package/dist/eventfullymanaged/api/eventApi.js +1 -0
  4. package/dist/eventfullymanaged/api/eventApi.js.map +1 -1
  5. package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
  6. package/dist/eventfullymanaged/components/CampaignAudiencePicker.js +1 -1
  7. package/dist/eventfullymanaged/components/CampaignAudiencePicker.js.map +1 -1
  8. package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
  9. package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
  10. package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
  11. package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
  12. package/dist/eventfullymanaged/components/Pagination.js +7 -7
  13. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
  14. package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
  15. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
  16. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
  17. package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
  18. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
  19. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +253 -0
  20. package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
  21. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
  22. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +260 -0
  23. package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
  24. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
  25. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
  26. package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
  27. package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
  28. package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
  29. package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
  30. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
  31. package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
  32. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
  33. package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
  34. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
  35. package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
  36. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
  37. package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
  38. package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
  39. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
  40. package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
  41. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +155 -111
  42. package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
  43. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
  44. package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
  45. package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
  46. package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
  47. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
  48. package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
  49. package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
  50. package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
  51. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
  52. package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
  53. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
  54. package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
  55. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
  56. package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
  57. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
  58. package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
  59. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
  60. package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
  61. package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
  62. package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
  63. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
  64. package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
  65. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
  66. package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
  67. package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
  68. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
  69. package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
  70. package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
  71. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
  72. package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
  73. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
  74. package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
  75. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
  76. package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
  77. package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
  78. package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
  79. package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
  80. package/dist/generated/wspace-operations.d.ts +383 -0
  81. package/dist/generated/wspace-operations.js +177 -11
  82. package/dist/generated/wspace-operations.js.map +1 -1
  83. package/dist/generated/wspace-types.d.ts +29809 -1503
  84. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
  85. package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
  86. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
  87. package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
  88. package/dist/utils/pageContext.js +5 -0
  89. package/dist/utils/pageContext.js.map +1 -1
  90. package/package.json +1 -1
@@ -5,11 +5,12 @@ import { describeError as l, mutationSucceeded as u } from "../../lib/mutationRe
5
5
  import { notify as d } from "../../lib/toast.js";
6
6
  import { useMemo as f, useState as p } from "react";
7
7
  import { useI18n as te } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
8
- import { jsx as m, jsxs as h } from "react/jsx-runtime";
9
- import { Mail as g, Megaphone as ne, Plus as _, Send as re, Upload as ie } from "lucide-react";
10
- import { Badge as v, Button as y, GlassCard as b, GradientText as ae, IllustratedEmptyState as x, Input as S, PagePurpose as oe, Select as se, SelectContent as ce, SelectItem as le, SelectTrigger as ue, SelectValue as de, Textarea as fe } from "@burdenoff/fe-libs/ui";
8
+ import { Fragment as ne, jsx as m, jsxs as h } from "react/jsx-runtime";
9
+ import { Badge as g, Button as _, GlassCard as v, GradientText as re, IllustratedEmptyState as y, Input as b, PagePurpose as ie, Select as x, SelectContent as S, SelectItem as C, SelectTrigger as ae, SelectValue as oe, Textarea as se } from "@burdenoff/fe-libs/ui";
10
+ import { Mail as ce, Megaphone as le, Plus as ue, Send as de, Upload as fe } from "lucide-react";
11
11
  // src/eventfullymanaged/pages/modules/CommunicationPage.tsx
12
12
  function pe(e) {
13
+ if (e.status !== "scheduled") return null;
13
14
  let t = e.metadata?.schedule;
14
15
  if (!t || typeof t != "object" || Array.isArray(t)) return null;
15
16
  let n = t.sendAt;
@@ -27,7 +28,7 @@ function me(e) {
27
28
  };
28
29
  });
29
30
  }
30
- function C(e) {
31
+ function he(e) {
31
32
  return {
32
33
  targetAudience: { segments: e.map(({ id: e }) => e) },
33
34
  audienceTagLabels: Object.fromEntries(e.map(({ id: e, label: t }) => [e, t]))
@@ -49,7 +50,8 @@ function w(e) {
49
50
  "draft",
50
51
  "created",
51
52
  "pending",
52
- "scheduled"
53
+ "scheduled",
54
+ "queued"
53
55
  ].includes(t) ? "info" : "secondary";
54
56
  }
55
57
  var T = (e) => {
@@ -66,52 +68,53 @@ function D() {
66
68
  }), M = t({
67
69
  limit: A.limit,
68
70
  offset: A.offset
69
- }), [he, { loading: ge }] = a(), [_e, { loading: ve }] = r(), [N, { loading: P }] = ee(), [ye, { loading: F }] = i(), { data: be } = n({
71
+ }), [ge, { loading: _e }] = a(), [ve, { loading: ye }] = r(), [N, { loading: P }] = ee(), [be, { loading: F }] = i(), { data: xe } = n({
70
72
  limit: 100,
71
73
  offset: 0
72
- }), xe = be?.events?.items ?? [], [I, L] = p("announcement"), [R, Se] = p(""), [z, B] = p(""), [V, H] = p(""), [U, W] = p([]), [G, K] = p(null), [q, J] = p(""), [Y, Ce] = p(""), X = f(() => j.data?.announcements.items ?? [], [j.data]), Z = j.data?.announcements.total ?? 0, Q = f(() => M.data?.communicationCampaigns.items ?? [], [M.data]), $ = M.data?.communicationCampaigns.total ?? 0, we = I === "announcement" ? ge : P, Te = () => {
73
- Se(""), B(""), H(""), W([]), J(""), Ce("");
74
- }, Ee = async () => {
75
- if (!z.trim()) {
74
+ }), Se = xe?.events?.items ?? [], [I, L] = p("announcement"), [R, z] = p("EMAIL"), [B, V] = p(""), [H, Ce] = p(""), [U, we] = p(""), [W, Te] = p([]), [G, K] = p(null), [q, Ee] = p(""), [J, De] = p(""), Y = f(() => j.data?.announcements.items ?? [], [j.data]), X = j.data?.announcements.total ?? 0, Z = f(() => M.data?.communicationCampaigns.items ?? [], [M.data]), Q = M.data?.communicationCampaigns.total ?? 0, $ = I === "announcement" ? _e : P, Oe = () => {
75
+ V(""), Ce(""), we(""), Te([]), z("EMAIL"), Ee(""), De("");
76
+ }, ke = async () => {
77
+ if (!H.trim()) {
76
78
  d.error(O("eventfullymanaged.communication.subjectRequired", "Subject required"), "");
77
79
  return;
78
80
  }
79
81
  if (I === "announcement") {
80
82
  let e = {};
81
- q.trim() && (e.body = q.trim()), V.trim() && (e.audience = V.trim());
83
+ q.trim() && (e.body = q.trim()), U.trim() && (e.audience = U.trim());
82
84
  let t = O("eventfullymanaged.communication.errors.create", "Could not create announcement");
83
85
  try {
84
- let n = await he({ variables: { input: {
85
- title: z,
86
- name: z,
86
+ let n = await ge({ variables: { input: {
87
+ title: H,
88
+ name: H,
87
89
  status: "draft",
88
- eventId: R || void 0,
90
+ eventId: B || void 0,
89
91
  metadata: e
90
92
  } } });
91
93
  if (!u(n, n.data?.upsertAnnouncement?.id, t)) return;
92
- Te(), d.success(O("eventfullymanaged.communication.created", "Announcement created")), await j.refetch();
94
+ Oe(), d.success(O("eventfullymanaged.communication.created", "Announcement created")), await j.refetch();
93
95
  } catch (e) {
94
96
  d.error(t, l(e));
95
97
  }
96
98
  return;
97
99
  }
98
100
  let e = {};
99
- q.trim() && (e.content = { body: q.trim() }), U.length > 0 && Object.assign(e, C(U)), Y && (e.schedule = { sendAt: new Date(Y).toISOString() });
101
+ q.trim() && (e.content = { body: q.trim() }), W.length > 0 && Object.assign(e, he(W)), J && (e.schedule = { sendAt: new Date(J).toISOString() });
100
102
  let t = O("eventfullymanaged.communication.errors.createCampaign", "Could not create campaign");
101
103
  try {
102
104
  let n = await N({ variables: { input: {
103
- title: z,
104
- name: z,
105
+ title: H,
106
+ name: H,
105
107
  status: "draft",
106
- eventId: R || void 0,
108
+ eventId: B || void 0,
109
+ ...R === "IN_APP" ? { campaignChannel: R } : {},
107
110
  metadata: e
108
111
  } } });
109
112
  if (!u(n, n.data?.upsertCommunicationCampaign?.id, t)) return;
110
- Te(), d.success(O("eventfullymanaged.communication.campaignCreated", "Campaign created")), await M.refetch();
113
+ Oe(), d.success(O("eventfullymanaged.communication.campaignCreated", "Campaign created")), await M.refetch();
111
114
  } catch (e) {
112
115
  d.error(t, l(e));
113
116
  }
114
- }, De = async () => {
117
+ }, Ae = async () => {
115
118
  if (!G?.changed) return;
116
119
  let { row: e, tags: t } = G, n = O("eventfullymanaged.communication.errors.saveAudience", "Could not save campaign audience");
117
120
  try {
@@ -124,7 +127,7 @@ function D() {
124
127
  eventId: e.eventId ?? void 0,
125
128
  metadata: {
126
129
  ...e.metadata,
127
- ...C(t)
130
+ ...he(t)
128
131
  }
129
132
  }
130
133
  } });
@@ -133,25 +136,25 @@ function D() {
133
136
  } catch (e) {
134
137
  d.error(n, l(e));
135
138
  }
136
- }, Oe = async (e) => {
139
+ }, je = async (e) => {
137
140
  let t = O("eventfullymanaged.communication.errors.publish", "Could not publish announcement");
138
141
  try {
139
- let n = await _e({ variables: { id: e.id } });
142
+ let n = await ve({ variables: { id: e.id } });
140
143
  if (!u(n, n.data?.publishAnnouncement?.id, t)) return;
141
144
  d.success(O("eventfullymanaged.communication.published", "Announcement published")), await j.refetch();
142
145
  } catch (e) {
143
146
  d.error(t, l(e));
144
147
  }
145
- }, ke = async (e) => {
148
+ }, Me = async (e) => {
146
149
  let t = O("eventfullymanaged.communication.errors.send", "Could not send campaign");
147
150
  try {
148
- let n = await ye({ variables: { id: e.id } });
151
+ let n = await be({ variables: { id: e.id } });
149
152
  if (!u(n, n.data?.sendCommunicationCampaign?.id, t)) return;
150
- n.data?.sendCommunicationCampaign?.status === "scheduled" ? d.success(O("eventfullymanaged.communication.scheduledAutoSend", "Campaign scheduled. It will be sent automatically at its send time; cancel the schedule to stop it.")) : d.success(O("eventfullymanaged.communication.sent", "Campaign delivery started")), await M.refetch();
153
+ n.data?.sendCommunicationCampaign?.status === "scheduled" ? d.success(O("eventfullymanaged.communication.scheduledAutoSend", "Campaign scheduled. It will be sent automatically at its send time; cancel the schedule to stop it.")) : n.data?.sendCommunicationCampaign?.status === "queued" ? d.success(O("eventfullymanaged.communication.queued", "In-app campaign queued")) : d.success(O("eventfullymanaged.communication.sent", "Campaign delivery started")), await M.refetch();
151
154
  } catch (e) {
152
155
  d.error(t, l(e));
153
156
  }
154
- }, Ae = async (e) => {
157
+ }, Ne = async (e) => {
155
158
  let t = e.metadata ?? {}, n = Object.fromEntries(Object.entries(t).filter(([e]) => e !== "schedule")), r = O("eventfullymanaged.communication.errors.cancelSchedule", "Could not cancel schedule");
156
159
  try {
157
160
  let t = await N({ variables: {
@@ -170,31 +173,31 @@ function D() {
170
173
  return /* @__PURE__ */ h("div", {
171
174
  className: "space-y-6 p-6",
172
175
  children: [
173
- /* @__PURE__ */ m(oe, { children: O("eventfullymanaged.communication.audiencePurpose", "Publish announcements to an event or workspace. Campaigns can also target attendees by tag. A sent status confirms that the campaign was queued.") }),
176
+ /* @__PURE__ */ m(ie, { children: O("eventfullymanaged.communication.audiencePurpose", "Publish announcements and compose campaigns for an event or workspace. In-app campaigns can target eligible workspace members by attendee tag.") }),
174
177
  /* @__PURE__ */ h("div", {
175
178
  className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
176
179
  children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
177
180
  className: "text-2xl font-bold text-text-primary",
178
- children: /* @__PURE__ */ m(ae, { children: O("eventfullymanaged.communication.title", "Communications") })
181
+ children: /* @__PURE__ */ m(re, { children: O("eventfullymanaged.communication.title", "Communications") })
179
182
  }), /* @__PURE__ */ m("p", {
180
183
  className: "mt-1 text-sm text-text-secondary",
181
184
  children: O("eventfullymanaged.communication.description", "Draft, publish and send from one place.")
182
185
  })] }), /* @__PURE__ */ h("div", {
183
186
  className: "flex flex-col gap-2 sm:flex-row",
184
- children: [/* @__PURE__ */ h(y, {
187
+ children: [/* @__PURE__ */ h(_, {
185
188
  type: "button",
186
189
  variant: I === "announcement" ? "default" : "outline",
187
190
  onClick: () => L("announcement"),
188
- children: [/* @__PURE__ */ m(_, { className: "h-4 w-4" }), O("eventfullymanaged.communication.actions.newAnnouncement", "New announcement")]
189
- }), /* @__PURE__ */ h(y, {
191
+ children: [/* @__PURE__ */ m(ue, { className: "h-4 w-4" }), O("eventfullymanaged.communication.actions.newAnnouncement", "New announcement")]
192
+ }), /* @__PURE__ */ h(_, {
190
193
  type: "button",
191
194
  variant: I === "campaign" ? "default" : "outline",
192
195
  onClick: () => L("campaign"),
193
- children: [/* @__PURE__ */ m(_, { className: "h-4 w-4" }), O("eventfullymanaged.communication.actions.newCampaign", "New campaign")]
196
+ children: [/* @__PURE__ */ m(ue, { className: "h-4 w-4" }), O("eventfullymanaged.communication.actions.newCampaign", "New campaign")]
194
197
  })]
195
198
  })]
196
199
  }),
197
- /* @__PURE__ */ m(b, {
200
+ /* @__PURE__ */ m(v, {
198
201
  treatment: "glass",
199
202
  glow: !0,
200
203
  className: "p-5",
@@ -205,7 +208,7 @@ function D() {
205
208
  children: [
206
209
  /* @__PURE__ */ h("div", {
207
210
  className: "flex items-center gap-2",
208
- children: [m(I === "announcement" ? ne : g, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ m("h2", {
211
+ children: [m(I === "announcement" ? le : ce, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ m("h2", {
209
212
  className: "text-base font-semibold text-text-primary",
210
213
  children: I === "announcement" ? O("eventfullymanaged.communication.compose.announcement", "Compose announcement") : O("eventfullymanaged.communication.compose.campaign", "Compose campaign")
211
214
  })]
@@ -217,13 +220,13 @@ function D() {
217
220
  className: "font-medium text-text-primary",
218
221
  children: O("eventfullymanaged.communication.fields.event", "Event (optional)")
219
222
  }),
220
- /* @__PURE__ */ h(se, {
221
- value: R,
222
- onValueChange: Se,
223
- children: [/* @__PURE__ */ m(ue, {
223
+ /* @__PURE__ */ h(x, {
224
+ value: B,
225
+ onValueChange: V,
226
+ children: [/* @__PURE__ */ m(ae, {
224
227
  "aria-label": O("eventfullymanaged.communication.fields.event", "Event (optional)"),
225
- children: /* @__PURE__ */ m(de, { placeholder: O("eventfullymanaged.communication.fields.eventPlaceholder", "All events (workspace-wide)") })
226
- }), /* @__PURE__ */ m(ce, { children: xe.map((e) => /* @__PURE__ */ m(le, {
228
+ children: /* @__PURE__ */ m(oe, { placeholder: O("eventfullymanaged.communication.fields.eventPlaceholder", "All events (workspace-wide)") })
229
+ }), /* @__PURE__ */ m(S, { children: Se.map((e) => /* @__PURE__ */ m(C, {
227
230
  value: e.id,
228
231
  children: e.name
229
232
  }, e.id)) })]
@@ -239,26 +242,52 @@ function D() {
239
242
  children: [/* @__PURE__ */ m("span", {
240
243
  className: "font-medium text-text-primary",
241
244
  children: O("eventfullymanaged.communication.fields.subject", "Subject")
242
- }), /* @__PURE__ */ m(S, {
243
- value: z,
244
- onChange: (e) => B(e.target.value),
245
+ }), /* @__PURE__ */ m(b, {
246
+ value: H,
247
+ onChange: (e) => Ce(e.target.value),
245
248
  placeholder: O("eventfullymanaged.communication.fields.subjectPlaceholder", "Q4 Product Roadmap Update"),
246
249
  "aria-label": O("eventfullymanaged.communication.fields.subject", "Subject")
247
250
  })]
248
251
  }),
249
- I === "campaign" ? /* @__PURE__ */ m(o, {
250
- selected: U,
251
- onChange: W
252
- }) : /* @__PURE__ */ h("label", {
252
+ I === "campaign" ? /* @__PURE__ */ h(ne, { children: [/* @__PURE__ */ h("div", {
253
+ className: "block space-y-1 text-sm",
254
+ children: [
255
+ /* @__PURE__ */ m("span", {
256
+ className: "font-medium text-text-primary",
257
+ children: O("eventfullymanaged.communication.fields.channel", "Delivery channel")
258
+ }),
259
+ /* @__PURE__ */ h(x, {
260
+ value: R,
261
+ onValueChange: (e) => z(e === "IN_APP" ? "IN_APP" : "EMAIL"),
262
+ children: [/* @__PURE__ */ m(ae, {
263
+ "aria-label": O("eventfullymanaged.communication.fields.channel", "Delivery channel"),
264
+ children: /* @__PURE__ */ m(oe, {})
265
+ }), /* @__PURE__ */ h(S, { children: [/* @__PURE__ */ m(C, {
266
+ value: "EMAIL",
267
+ children: O("eventfullymanaged.communication.channels.email", "Email")
268
+ }), /* @__PURE__ */ m(C, {
269
+ value: "IN_APP",
270
+ children: O("eventfullymanaged.communication.channels.inApp", "In-app")
271
+ })] })]
272
+ }),
273
+ R === "IN_APP" ? /* @__PURE__ */ m("p", {
274
+ className: "text-xs text-text-muted",
275
+ children: O("eventfullymanaged.communication.fields.inAppAudienceHint", "Attendees with active workspace membership and a matching verified account can receive this campaign.")
276
+ }) : null
277
+ ]
278
+ }), /* @__PURE__ */ m(o, {
279
+ selected: W,
280
+ onChange: Te
281
+ })] }) : /* @__PURE__ */ h("label", {
253
282
  className: "block space-y-1 text-sm",
254
283
  children: [
255
284
  /* @__PURE__ */ m("span", {
256
285
  className: "font-medium text-text-primary",
257
286
  children: O("eventfullymanaged.communication.fields.announcementAudience", "Audience labels (optional)")
258
287
  }),
259
- /* @__PURE__ */ m(S, {
260
- value: V,
261
- onChange: (e) => H(e.target.value),
288
+ /* @__PURE__ */ m(b, {
289
+ value: U,
290
+ onChange: (e) => we(e.target.value),
262
291
  placeholder: O("eventfullymanaged.communication.fields.audienceSegmentsPlaceholder", "vip, early-bird, speakers (comma-separated segments)"),
263
292
  "aria-label": O("eventfullymanaged.communication.fields.announcementAudience", "Audience labels (optional)")
264
293
  }),
@@ -273,9 +302,9 @@ function D() {
273
302
  children: [/* @__PURE__ */ m("span", {
274
303
  className: "font-medium text-text-primary",
275
304
  children: O("eventfullymanaged.communication.fields.body", "Message")
276
- }), /* @__PURE__ */ m(fe, {
305
+ }), /* @__PURE__ */ m(se, {
277
306
  value: q,
278
- onChange: (e) => J(e.target.value),
307
+ onChange: (e) => Ee(e.target.value),
279
308
  rows: 5,
280
309
  placeholder: O("eventfullymanaged.communication.fields.bodyPlaceholder", "Hi there, here are the latest updates…"),
281
310
  "aria-label": O("eventfullymanaged.communication.fields.body", "Message")
@@ -288,25 +317,25 @@ function D() {
288
317
  className: "font-medium text-text-primary",
289
318
  children: O("eventfullymanaged.communication.fields.scheduleAt", "Schedule send (optional)")
290
319
  }),
291
- /* @__PURE__ */ m(S, {
320
+ /* @__PURE__ */ m(b, {
292
321
  type: "datetime-local",
293
- value: Y,
294
- onChange: (e) => Ce(e.target.value),
322
+ value: J,
323
+ onChange: (e) => De(e.target.value),
295
324
  "aria-label": O("eventfullymanaged.communication.fields.scheduleAt", "Schedule send (optional)")
296
325
  }),
297
326
  /* @__PURE__ */ m("span", {
298
327
  className: "block text-xs text-text-muted",
299
- children: O("eventfullymanaged.communication.fields.scheduleHint", "Leave blank to send immediately when you click Send campaign. A future time is not sent automatically — you (or anyone with access) must click Send campaign again at or after that time. Times are in your browser’s local time zone.")
328
+ children: O("eventfullymanaged.communication.fields.automaticScheduleHint", "Click Send campaign to arm the schedule. The campaign starts at the chosen local time. Leave it blank to send now.")
300
329
  })
301
330
  ]
302
331
  }) : null,
303
332
  /* @__PURE__ */ m("div", {
304
333
  className: "flex justify-end",
305
- children: /* @__PURE__ */ m(y, {
334
+ children: /* @__PURE__ */ m(_, {
306
335
  type: "button",
307
- disabled: we,
308
- onClick: Ee,
309
- children: we ? O("eventfullymanaged.communication.actions.saving", "Saving…") : O(I === "announcement" ? "eventfullymanaged.communication.actions.createAnnouncement" : "eventfullymanaged.communication.actions.createCampaign", "Create draft")
336
+ disabled: $,
337
+ onClick: ke,
338
+ children: $ ? O("eventfullymanaged.communication.actions.saving", "Saving…") : O(I === "announcement" ? "eventfullymanaged.communication.actions.createAnnouncement" : "eventfullymanaged.communication.actions.createCampaign", "Create draft")
310
339
  })
311
340
  })
312
341
  ]
@@ -316,8 +345,8 @@ function D() {
316
345
  className: "flex items-center justify-between border-b border-border-seam pb-2",
317
346
  children: [/* @__PURE__ */ h("span", {
318
347
  className: "flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-text-muted",
319
- children: [/* @__PURE__ */ m(g, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.preview.label", "Preview")]
320
- }), /* @__PURE__ */ m(v, {
348
+ children: [/* @__PURE__ */ m(ce, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.preview.label", "Preview")]
349
+ }), /* @__PURE__ */ m(g, {
321
350
  variant: "info",
322
351
  className: "uppercase",
323
352
  children: O("eventfullymanaged.communication.preview.draft", "Draft")
@@ -327,15 +356,15 @@ function D() {
327
356
  children: [
328
357
  /* @__PURE__ */ m("p", {
329
358
  className: "text-base font-semibold text-text-primary",
330
- children: z.trim() || O("eventfullymanaged.communication.preview.noSubject", "Your subject line")
359
+ children: H.trim() || O("eventfullymanaged.communication.preview.noSubject", "Your subject line")
331
360
  }),
332
- (I === "campaign" ? U.length > 0 : V.trim()) ? /* @__PURE__ */ h("p", {
361
+ (I === "campaign" ? W.length > 0 : U.trim()) ? /* @__PURE__ */ h("p", {
333
362
  className: "text-xs text-text-secondary",
334
363
  children: [
335
364
  O("eventfullymanaged.communication.preview.to", "To"),
336
365
  ":",
337
366
  " ",
338
- I === "campaign" ? U.map(({ label: e }) => e).join(", ") : V.trim()
367
+ I === "campaign" ? W.map(({ label: e }) => e).join(", ") : U.trim()
339
368
  ]
340
369
  }) : null,
341
370
  /* @__PURE__ */ m("p", {
@@ -349,7 +378,7 @@ function D() {
349
378
  }),
350
379
  /* @__PURE__ */ h("div", {
351
380
  className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
352
- children: [/* @__PURE__ */ h(b, {
381
+ children: [/* @__PURE__ */ h(v, {
353
382
  treatment: "plain",
354
383
  className: "border-border-seam p-5",
355
384
  children: [/* @__PURE__ */ h("div", {
@@ -357,53 +386,53 @@ function D() {
357
386
  children: [/* @__PURE__ */ m("h2", {
358
387
  className: "text-lg font-semibold text-text-primary",
359
388
  children: O("eventfullymanaged.communication.announcements.heading", "Announcements")
360
- }), Z > 0 ? /* @__PURE__ */ m("span", {
389
+ }), X > 0 ? /* @__PURE__ */ m("span", {
361
390
  className: "text-sm text-text-muted",
362
- children: Z
391
+ children: X
363
392
  }) : null]
364
393
  }), /* @__PURE__ */ h("div", {
365
394
  className: "mt-4",
366
- children: [j.loading && X.length === 0 ? /* @__PURE__ */ m("p", {
395
+ children: [j.loading && Y.length === 0 ? /* @__PURE__ */ m("p", {
367
396
  className: "py-8 text-center text-sm text-text-secondary",
368
397
  children: O("eventfullymanaged.communication.announcements.loading", "Loading announcements…")
369
- }) : X.length === 0 ? /* @__PURE__ */ m(x, {
398
+ }) : Y.length === 0 ? /* @__PURE__ */ m(y, {
370
399
  illustration: "empty-data",
371
400
  title: O("eventfullymanaged.communication.announcements.empty", "No announcements yet."),
372
401
  className: "py-8"
373
402
  }) : /* @__PURE__ */ m("ul", {
374
403
  className: "space-y-2.5",
375
- children: X.map((e) => /* @__PURE__ */ h("li", {
404
+ children: Y.map((e) => /* @__PURE__ */ h("li", {
376
405
  className: "flex items-center justify-between gap-3 rounded-card border border-border-seam bg-bg-surface p-3 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-elevation-1",
377
406
  children: [/* @__PURE__ */ m("p", {
378
407
  className: "min-w-0 truncate font-medium text-text-primary",
379
408
  children: E(e, O("eventfullymanaged.communication.announcements.itemPrefix", "Announcement"))
380
409
  }), /* @__PURE__ */ h("div", {
381
410
  className: "flex shrink-0 items-center gap-2",
382
- children: [e.status ? /* @__PURE__ */ m(v, {
411
+ children: [e.status ? /* @__PURE__ */ m(g, {
383
412
  variant: w(e.status),
384
413
  className: "uppercase",
385
414
  children: e.status
386
- }) : null, T(e.status) ? /* @__PURE__ */ h(y, {
415
+ }) : null, T(e.status) ? /* @__PURE__ */ h(_, {
387
416
  type: "button",
388
417
  size: "sm",
389
- disabled: ve,
390
- onClick: () => void Oe(e),
391
- children: [/* @__PURE__ */ m(ie, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.actions.publish", "Publish")]
418
+ disabled: ye,
419
+ onClick: () => void je(e),
420
+ children: [/* @__PURE__ */ m(fe, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.actions.publish", "Publish")]
392
421
  }) : null]
393
422
  })]
394
423
  }, e.id))
395
424
  }), /* @__PURE__ */ m(s, {
396
425
  offset: k.offset,
397
426
  limit: k.limit,
398
- loadedCount: X.length,
399
- total: Z,
427
+ loadedCount: Y.length,
428
+ total: X,
400
429
  onPrev: k.prevPage,
401
430
  onNext: k.nextPage,
402
431
  itemLabel: O("eventfullymanaged.communication.announcements.heading", "Announcements").toLowerCase(),
403
432
  loading: j.loading
404
433
  })]
405
434
  })]
406
- }), /* @__PURE__ */ h(b, {
435
+ }), /* @__PURE__ */ h(v, {
407
436
  treatment: "plain",
408
437
  className: "border-border-seam p-5",
409
438
  children: [/* @__PURE__ */ h("div", {
@@ -411,9 +440,9 @@ function D() {
411
440
  children: [/* @__PURE__ */ m("h2", {
412
441
  className: "text-lg font-semibold text-text-primary",
413
442
  children: O("eventfullymanaged.communication.campaigns.heading", "Campaigns")
414
- }), $ > 0 ? /* @__PURE__ */ m("span", {
443
+ }), Q > 0 ? /* @__PURE__ */ m("span", {
415
444
  className: "text-sm text-text-muted",
416
- children: $
445
+ children: Q
417
446
  }) : null]
418
447
  }), /* @__PURE__ */ h("div", {
419
448
  className: "mt-4",
@@ -435,12 +464,12 @@ function D() {
435
464
  }, G.row.id),
436
465
  /* @__PURE__ */ h("div", {
437
466
  className: "flex flex-wrap gap-2",
438
- children: [/* @__PURE__ */ m(y, {
467
+ children: [/* @__PURE__ */ m(_, {
439
468
  type: "button",
440
469
  disabled: P || !G.changed,
441
- onClick: () => void De(),
470
+ onClick: () => void Ae(),
442
471
  children: O("eventfullymanaged.communication.actions.saveAudience", "Save audience")
443
- }), /* @__PURE__ */ m(y, {
472
+ }), /* @__PURE__ */ m(_, {
444
473
  type: "button",
445
474
  variant: "outline",
446
475
  onClick: () => K(null),
@@ -449,41 +478,56 @@ function D() {
449
478
  })
450
479
  ]
451
480
  }) : null,
452
- M.loading && Q.length === 0 ? /* @__PURE__ */ m("p", {
481
+ M.loading && Z.length === 0 ? /* @__PURE__ */ m("p", {
453
482
  className: "py-8 text-center text-sm text-text-secondary",
454
483
  children: O("eventfullymanaged.communication.campaigns.loading", "Loading campaigns…")
455
- }) : Q.length === 0 ? /* @__PURE__ */ m(x, {
484
+ }) : Z.length === 0 ? /* @__PURE__ */ m(y, {
456
485
  illustration: "empty-data",
457
486
  title: O("eventfullymanaged.communication.campaigns.empty", "No campaigns yet."),
458
487
  className: "py-8"
459
488
  }) : /* @__PURE__ */ m("ul", {
460
489
  className: "space-y-2.5",
461
- children: Q.map((e) => {
462
- let t = pe(e);
490
+ children: Z.map((e) => {
491
+ let t = pe(e), n = e.metrics?.lastDispatch, r = n && typeof n == "object" && "deliveredCount" in n ? n.deliveredCount : void 0, i = n && typeof n == "object" && "failedCount" in n ? n.failedCount : void 0;
463
492
  return /* @__PURE__ */ h("li", {
464
493
  className: "flex items-center justify-between gap-3 rounded-card border border-border-seam bg-bg-surface p-3 transition-[box-shadow,border-color] duration-200 hover:border-border-strong hover:shadow-elevation-1",
465
494
  children: [/* @__PURE__ */ h("div", {
466
495
  className: "min-w-0",
467
- children: [/* @__PURE__ */ m("p", {
468
- className: "truncate font-medium text-text-primary",
469
- children: E(e, O("eventfullymanaged.communication.campaigns.itemPrefix", "Campaign"))
470
- }), t ? /* @__PURE__ */ h("p", {
471
- className: "truncate text-xs text-text-muted",
472
- children: [
473
- O("eventfullymanaged.communication.campaigns.scheduledFor", "Scheduled for"),
474
- " ",
475
- new Date(t).toLocaleString()
476
- ]
477
- }) : null]
496
+ children: [
497
+ /* @__PURE__ */ m("p", {
498
+ className: "truncate font-medium text-text-primary",
499
+ children: E(e, O("eventfullymanaged.communication.campaigns.itemPrefix", "Campaign"))
500
+ }),
501
+ t ? /* @__PURE__ */ h("p", {
502
+ className: "truncate text-xs text-text-muted",
503
+ children: [
504
+ O("eventfullymanaged.communication.campaigns.scheduledFor", "Scheduled for"),
505
+ " ",
506
+ new Date(t).toLocaleString()
507
+ ]
508
+ }) : null,
509
+ typeof r == "number" && typeof i == "number" ? /* @__PURE__ */ h("p", {
510
+ className: "text-xs text-text-muted",
511
+ children: [
512
+ O("eventfullymanaged.communication.campaigns.deliveredCount", "Delivered"),
513
+ " ",
514
+ r,
515
+ " · ",
516
+ O("eventfullymanaged.communication.campaigns.failedCount", "Failed"),
517
+ " ",
518
+ i
519
+ ]
520
+ }) : null
521
+ ]
478
522
  }), /* @__PURE__ */ h("div", {
479
523
  className: "flex shrink-0 items-center gap-2",
480
524
  children: [
481
- e.status ? /* @__PURE__ */ m(v, {
525
+ e.status ? /* @__PURE__ */ m(g, {
482
526
  variant: w(e.status),
483
527
  className: "uppercase",
484
528
  children: e.status
485
529
  }) : null,
486
- e.status?.toLowerCase() === "draft" ? /* @__PURE__ */ m(y, {
530
+ e.status?.toLowerCase() === "draft" ? /* @__PURE__ */ m(_, {
487
531
  type: "button",
488
532
  size: "sm",
489
533
  variant: "outline",
@@ -495,18 +539,18 @@ function D() {
495
539
  }),
496
540
  children: O("eventfullymanaged.communication.actions.editAudience", "Edit audience")
497
541
  }) : null,
498
- T(e.status) ? /* @__PURE__ */ h(y, {
542
+ T(e.status) ? /* @__PURE__ */ h(_, {
499
543
  type: "button",
500
544
  size: "sm",
501
545
  disabled: F || G?.row.id === e.id,
502
- onClick: () => void ke(e),
503
- children: [/* @__PURE__ */ m(re, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.actions.send", "Send campaign")]
546
+ onClick: () => void Me(e),
547
+ children: [/* @__PURE__ */ m(de, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.actions.send", "Send campaign")]
504
548
  }) : null,
505
- (e.status ?? "").toLowerCase() === "scheduled" ? /* @__PURE__ */ m(y, {
549
+ (e.status ?? "").toLowerCase() === "scheduled" ? /* @__PURE__ */ m(_, {
506
550
  type: "button",
507
551
  size: "sm",
508
552
  variant: "outline",
509
- onClick: () => void Ae(e),
553
+ onClick: () => void Ne(e),
510
554
  children: O("eventfullymanaged.communication.actions.cancelSchedule", "Cancel schedule")
511
555
  }) : null
512
556
  ]
@@ -517,8 +561,8 @@ function D() {
517
561
  /* @__PURE__ */ m(s, {
518
562
  offset: A.offset,
519
563
  limit: A.limit,
520
- loadedCount: Q.length,
521
- total: $,
564
+ loadedCount: Z.length,
565
+ total: Q,
522
566
  onPrev: A.prevPage,
523
567
  onNext: A.nextPage,
524
568
  itemLabel: O("eventfullymanaged.communication.campaigns.heading", "Campaigns").toLowerCase(),