@burdenoff/microfe-eventfullymanaged 2026.1123.6 → 2026.1124.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eventfullymanaged/EventfullyManagedRoutes.js +58 -54
- package/dist/eventfullymanaged/EventfullyManagedRoutes.js.map +1 -1
- package/dist/eventfullymanaged/components/ActionMenu.js +19 -19
- package/dist/eventfullymanaged/components/EntityFormShell.js +9 -9
- package/dist/eventfullymanaged/components/EntityTagsField.js +13 -13
- package/dist/eventfullymanaged/components/EntityTagsField.js.map +1 -1
- package/dist/eventfullymanaged/components/ImageUploadField.js +5 -5
- package/dist/eventfullymanaged/components/Pagination.js +7 -7
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js +51 -51
- package/dist/eventfullymanaged/components/floorPlanEditor/ZonePanels.js.map +1 -1
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.d.ts +7 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js +29 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateAccess.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.d.ts +7 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js +264 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateIssuance.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.d.ts +4 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js +31 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatePdfDownload.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.d.ts +6 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js +76 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateScheduleDialog.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.d.ts +8 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js +271 -0
- package/dist/eventfullymanaged/pages/certificates/CertificateTemplates.js.map +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.d.ts +1 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js +121 -0
- package/dist/eventfullymanaged/pages/certificates/CertificatesPage.js.map +1 -0
- package/dist/eventfullymanaged/pages/dashboard/DashboardPage.js +26 -26
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js +150 -148
- package/dist/eventfullymanaged/pages/events/EventDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js +100 -100
- package/dist/eventfullymanaged/pages/events/VirtualSessionPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js +19 -19
- package/dist/eventfullymanaged/pages/exhibitors/ExhibitorsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js +16 -16
- package/dist/eventfullymanaged/pages/leads/LeadCaptureDialog.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js +103 -103
- package/dist/eventfullymanaged/pages/modules/AnalyticsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/AttendeeProfilePage.js +15 -15
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js +12 -12
- package/dist/eventfullymanaged/pages/modules/AttendeeRecommendations.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js +80 -80
- package/dist/eventfullymanaged/pages/modules/CommunicationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js +14 -14
- package/dist/eventfullymanaged/pages/modules/EventTemplatesSection.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/EventsPage.js +121 -121
- package/dist/eventfullymanaged/pages/modules/EventsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js +57 -57
- package/dist/eventfullymanaged/pages/modules/IntegrationsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/KioskPage.js +241 -241
- package/dist/eventfullymanaged/pages/modules/KioskPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js +120 -120
- package/dist/eventfullymanaged/pages/modules/NetworkingPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js +17 -17
- package/dist/eventfullymanaged/pages/modules/OperationsHubPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js +61 -61
- package/dist/eventfullymanaged/pages/modules/RegistrationPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js +23 -23
- package/dist/eventfullymanaged/pages/modules/RoadmapPanel.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js +17 -17
- package/dist/eventfullymanaged/pages/modules/SponsorDetailsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/modules/SponsorLeadsPage.js +11 -11
- package/dist/eventfullymanaged/pages/modules/VenueResourcesPage.js +13 -13
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js +108 -108
- package/dist/eventfullymanaged/pages/modules/WorkflowsPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js +22 -22
- package/dist/eventfullymanaged/pages/registration/PromoCodeFormPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/registration/RegisterAttendeePage.js +45 -45
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js +24 -24
- package/dist/eventfullymanaged/pages/speakers/SpeakersPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/sponsors/SponsorFormPage.js +37 -37
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js +23 -23
- package/dist/eventfullymanaged/pages/sponsors/SponsorsListPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js +123 -123
- package/dist/eventfullymanaged/pages/venues/FloorPlansPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js +37 -37
- package/dist/eventfullymanaged/pages/venues/VenueDetailPage.js.map +1 -1
- package/dist/eventfullymanaged/pages/venues/VenueFormPage.js +25 -25
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js +26 -26
- package/dist/eventfullymanaged/pages/venues/VenueListPage.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +468 -0
- package/dist/generated/wspace-operations.js +215 -11
- package/dist/generated/wspace-operations.js.map +1 -1
- package/dist/generated/wspace-types.d.ts +30060 -1503
- package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js +19 -0
- package/dist/node_modules/@apollo/client/react/hooks/internal/useRenderGuard.js.map +1 -0
- package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js +110 -0
- package/dist/node_modules/@apollo/client/react/hooks/useLazyQuery.js.map +1 -0
- package/dist/utils/pageContext.js +5 -0
- package/dist/utils/pageContext.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,8 +6,8 @@ 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
8
|
import { Fragment as ne, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
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
13
|
if (e.status !== "scheduled") return null;
|
|
@@ -71,8 +71,8 @@ function D() {
|
|
|
71
71
|
}), [ge, { loading: _e }] = a(), [ve, { loading: ye }] = r(), [N, { loading: P }] = ee(), [be, { loading: F }] = i(), { data: xe } = n({
|
|
72
72
|
limit: 100,
|
|
73
73
|
offset: 0
|
|
74
|
-
}), Se = xe?.events?.items ?? [], [I, L] = p("announcement"), [R, z] = p("EMAIL"), [B, V] = p(""), [H,
|
|
75
|
-
V(""),
|
|
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
76
|
}, ke = async () => {
|
|
77
77
|
if (!H.trim()) {
|
|
78
78
|
d.error(O("eventfullymanaged.communication.subjectRequired", "Subject required"), "");
|
|
@@ -80,7 +80,7 @@ function D() {
|
|
|
80
80
|
}
|
|
81
81
|
if (I === "announcement") {
|
|
82
82
|
let e = {};
|
|
83
|
-
|
|
83
|
+
q.trim() && (e.body = q.trim()), U.trim() && (e.audience = U.trim());
|
|
84
84
|
let t = O("eventfullymanaged.communication.errors.create", "Could not create announcement");
|
|
85
85
|
try {
|
|
86
86
|
let n = await ge({ variables: { input: {
|
|
@@ -98,7 +98,7 @@ function D() {
|
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
100
|
let e = {};
|
|
101
|
-
|
|
101
|
+
q.trim() && (e.content = { body: q.trim() }), W.length > 0 && Object.assign(e, he(W)), J && (e.schedule = { sendAt: new Date(J).toISOString() });
|
|
102
102
|
let t = O("eventfullymanaged.communication.errors.createCampaign", "Could not create campaign");
|
|
103
103
|
try {
|
|
104
104
|
let n = await N({ variables: { input: {
|
|
@@ -115,8 +115,8 @@ function D() {
|
|
|
115
115
|
d.error(t, l(e));
|
|
116
116
|
}
|
|
117
117
|
}, Ae = async () => {
|
|
118
|
-
if (!
|
|
119
|
-
let { row: e, tags: t } =
|
|
118
|
+
if (!G?.changed) return;
|
|
119
|
+
let { row: e, tags: t } = G, n = O("eventfullymanaged.communication.errors.saveAudience", "Could not save campaign audience");
|
|
120
120
|
try {
|
|
121
121
|
let r = await N({ variables: {
|
|
122
122
|
id: e.id,
|
|
@@ -132,7 +132,7 @@ function D() {
|
|
|
132
132
|
}
|
|
133
133
|
} });
|
|
134
134
|
if (!u(r, r.data?.upsertCommunicationCampaign?.id, n)) return;
|
|
135
|
-
|
|
135
|
+
K(null), d.success(O("eventfullymanaged.communication.audienceSaved", "Campaign audience saved")), await M.refetch();
|
|
136
136
|
} catch (e) {
|
|
137
137
|
d.error(n, l(e));
|
|
138
138
|
}
|
|
@@ -173,31 +173,31 @@ function D() {
|
|
|
173
173
|
return /* @__PURE__ */ h("div", {
|
|
174
174
|
className: "space-y-6 p-6",
|
|
175
175
|
children: [
|
|
176
|
-
/* @__PURE__ */ m(
|
|
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.") }),
|
|
177
177
|
/* @__PURE__ */ h("div", {
|
|
178
178
|
className: "flex flex-col gap-4 sm:flex-row sm:items-center sm:justify-between",
|
|
179
179
|
children: [/* @__PURE__ */ h("div", { children: [/* @__PURE__ */ m("h1", {
|
|
180
180
|
className: "text-2xl font-bold text-text-primary",
|
|
181
|
-
children: /* @__PURE__ */ m(
|
|
181
|
+
children: /* @__PURE__ */ m(re, { children: O("eventfullymanaged.communication.title", "Communications") })
|
|
182
182
|
}), /* @__PURE__ */ m("p", {
|
|
183
183
|
className: "mt-1 text-sm text-text-secondary",
|
|
184
184
|
children: O("eventfullymanaged.communication.description", "Draft, publish and send from one place.")
|
|
185
185
|
})] }), /* @__PURE__ */ h("div", {
|
|
186
186
|
className: "flex flex-col gap-2 sm:flex-row",
|
|
187
|
-
children: [/* @__PURE__ */ h(
|
|
187
|
+
children: [/* @__PURE__ */ h(_, {
|
|
188
188
|
type: "button",
|
|
189
189
|
variant: I === "announcement" ? "default" : "outline",
|
|
190
190
|
onClick: () => L("announcement"),
|
|
191
|
-
children: [/* @__PURE__ */ m(
|
|
192
|
-
}), /* @__PURE__ */ h(
|
|
191
|
+
children: [/* @__PURE__ */ m(ue, { className: "h-4 w-4" }), O("eventfullymanaged.communication.actions.newAnnouncement", "New announcement")]
|
|
192
|
+
}), /* @__PURE__ */ h(_, {
|
|
193
193
|
type: "button",
|
|
194
194
|
variant: I === "campaign" ? "default" : "outline",
|
|
195
195
|
onClick: () => L("campaign"),
|
|
196
|
-
children: [/* @__PURE__ */ m(
|
|
196
|
+
children: [/* @__PURE__ */ m(ue, { className: "h-4 w-4" }), O("eventfullymanaged.communication.actions.newCampaign", "New campaign")]
|
|
197
197
|
})]
|
|
198
198
|
})]
|
|
199
199
|
}),
|
|
200
|
-
/* @__PURE__ */ m(
|
|
200
|
+
/* @__PURE__ */ m(v, {
|
|
201
201
|
treatment: "glass",
|
|
202
202
|
glow: !0,
|
|
203
203
|
className: "p-5",
|
|
@@ -208,7 +208,7 @@ function D() {
|
|
|
208
208
|
children: [
|
|
209
209
|
/* @__PURE__ */ h("div", {
|
|
210
210
|
className: "flex items-center gap-2",
|
|
211
|
-
children: [m(I === "announcement" ?
|
|
211
|
+
children: [m(I === "announcement" ? le : ce, { className: "h-4 w-4 text-accent-primary" }), /* @__PURE__ */ m("h2", {
|
|
212
212
|
className: "text-base font-semibold text-text-primary",
|
|
213
213
|
children: I === "announcement" ? O("eventfullymanaged.communication.compose.announcement", "Compose announcement") : O("eventfullymanaged.communication.compose.campaign", "Compose campaign")
|
|
214
214
|
})]
|
|
@@ -220,12 +220,12 @@ function D() {
|
|
|
220
220
|
className: "font-medium text-text-primary",
|
|
221
221
|
children: O("eventfullymanaged.communication.fields.event", "Event (optional)")
|
|
222
222
|
}),
|
|
223
|
-
/* @__PURE__ */ h(
|
|
223
|
+
/* @__PURE__ */ h(x, {
|
|
224
224
|
value: B,
|
|
225
225
|
onValueChange: V,
|
|
226
|
-
children: [/* @__PURE__ */ m(
|
|
226
|
+
children: [/* @__PURE__ */ m(ae, {
|
|
227
227
|
"aria-label": O("eventfullymanaged.communication.fields.event", "Event (optional)"),
|
|
228
|
-
children: /* @__PURE__ */ m(
|
|
228
|
+
children: /* @__PURE__ */ m(oe, { placeholder: O("eventfullymanaged.communication.fields.eventPlaceholder", "All events (workspace-wide)") })
|
|
229
229
|
}), /* @__PURE__ */ m(S, { children: Se.map((e) => /* @__PURE__ */ m(C, {
|
|
230
230
|
value: e.id,
|
|
231
231
|
children: e.name
|
|
@@ -242,9 +242,9 @@ function D() {
|
|
|
242
242
|
children: [/* @__PURE__ */ m("span", {
|
|
243
243
|
className: "font-medium text-text-primary",
|
|
244
244
|
children: O("eventfullymanaged.communication.fields.subject", "Subject")
|
|
245
|
-
}), /* @__PURE__ */ m(
|
|
245
|
+
}), /* @__PURE__ */ m(b, {
|
|
246
246
|
value: H,
|
|
247
|
-
onChange: (e) =>
|
|
247
|
+
onChange: (e) => Ce(e.target.value),
|
|
248
248
|
placeholder: O("eventfullymanaged.communication.fields.subjectPlaceholder", "Q4 Product Roadmap Update"),
|
|
249
249
|
"aria-label": O("eventfullymanaged.communication.fields.subject", "Subject")
|
|
250
250
|
})]
|
|
@@ -256,12 +256,12 @@ function D() {
|
|
|
256
256
|
className: "font-medium text-text-primary",
|
|
257
257
|
children: O("eventfullymanaged.communication.fields.channel", "Delivery channel")
|
|
258
258
|
}),
|
|
259
|
-
/* @__PURE__ */ h(
|
|
259
|
+
/* @__PURE__ */ h(x, {
|
|
260
260
|
value: R,
|
|
261
261
|
onValueChange: (e) => z(e === "IN_APP" ? "IN_APP" : "EMAIL"),
|
|
262
|
-
children: [/* @__PURE__ */ m(
|
|
262
|
+
children: [/* @__PURE__ */ m(ae, {
|
|
263
263
|
"aria-label": O("eventfullymanaged.communication.fields.channel", "Delivery channel"),
|
|
264
|
-
children: /* @__PURE__ */ m(
|
|
264
|
+
children: /* @__PURE__ */ m(oe, {})
|
|
265
265
|
}), /* @__PURE__ */ h(S, { children: [/* @__PURE__ */ m(C, {
|
|
266
266
|
value: "EMAIL",
|
|
267
267
|
children: O("eventfullymanaged.communication.channels.email", "Email")
|
|
@@ -276,8 +276,8 @@ function D() {
|
|
|
276
276
|
}) : null
|
|
277
277
|
]
|
|
278
278
|
}), /* @__PURE__ */ m(o, {
|
|
279
|
-
selected:
|
|
280
|
-
onChange:
|
|
279
|
+
selected: W,
|
|
280
|
+
onChange: Te
|
|
281
281
|
})] }) : /* @__PURE__ */ h("label", {
|
|
282
282
|
className: "block space-y-1 text-sm",
|
|
283
283
|
children: [
|
|
@@ -285,9 +285,9 @@ function D() {
|
|
|
285
285
|
className: "font-medium text-text-primary",
|
|
286
286
|
children: O("eventfullymanaged.communication.fields.announcementAudience", "Audience labels (optional)")
|
|
287
287
|
}),
|
|
288
|
-
/* @__PURE__ */ m(
|
|
289
|
-
value:
|
|
290
|
-
onChange: (e) =>
|
|
288
|
+
/* @__PURE__ */ m(b, {
|
|
289
|
+
value: U,
|
|
290
|
+
onChange: (e) => we(e.target.value),
|
|
291
291
|
placeholder: O("eventfullymanaged.communication.fields.audienceSegmentsPlaceholder", "vip, early-bird, speakers (comma-separated segments)"),
|
|
292
292
|
"aria-label": O("eventfullymanaged.communication.fields.announcementAudience", "Audience labels (optional)")
|
|
293
293
|
}),
|
|
@@ -302,9 +302,9 @@ function D() {
|
|
|
302
302
|
children: [/* @__PURE__ */ m("span", {
|
|
303
303
|
className: "font-medium text-text-primary",
|
|
304
304
|
children: O("eventfullymanaged.communication.fields.body", "Message")
|
|
305
|
-
}), /* @__PURE__ */ m(
|
|
306
|
-
value:
|
|
307
|
-
onChange: (e) =>
|
|
305
|
+
}), /* @__PURE__ */ m(se, {
|
|
306
|
+
value: q,
|
|
307
|
+
onChange: (e) => Ee(e.target.value),
|
|
308
308
|
rows: 5,
|
|
309
309
|
placeholder: O("eventfullymanaged.communication.fields.bodyPlaceholder", "Hi there, here are the latest updates…"),
|
|
310
310
|
"aria-label": O("eventfullymanaged.communication.fields.body", "Message")
|
|
@@ -317,10 +317,10 @@ function D() {
|
|
|
317
317
|
className: "font-medium text-text-primary",
|
|
318
318
|
children: O("eventfullymanaged.communication.fields.scheduleAt", "Schedule send (optional)")
|
|
319
319
|
}),
|
|
320
|
-
/* @__PURE__ */ m(
|
|
320
|
+
/* @__PURE__ */ m(b, {
|
|
321
321
|
type: "datetime-local",
|
|
322
|
-
value:
|
|
323
|
-
onChange: (e) =>
|
|
322
|
+
value: J,
|
|
323
|
+
onChange: (e) => De(e.target.value),
|
|
324
324
|
"aria-label": O("eventfullymanaged.communication.fields.scheduleAt", "Schedule send (optional)")
|
|
325
325
|
}),
|
|
326
326
|
/* @__PURE__ */ m("span", {
|
|
@@ -331,11 +331,11 @@ function D() {
|
|
|
331
331
|
}) : null,
|
|
332
332
|
/* @__PURE__ */ m("div", {
|
|
333
333
|
className: "flex justify-end",
|
|
334
|
-
children: /* @__PURE__ */ m(
|
|
334
|
+
children: /* @__PURE__ */ m(_, {
|
|
335
335
|
type: "button",
|
|
336
|
-
disabled:
|
|
336
|
+
disabled: $,
|
|
337
337
|
onClick: ke,
|
|
338
|
-
children:
|
|
338
|
+
children: $ ? O("eventfullymanaged.communication.actions.saving", "Saving…") : O(I === "announcement" ? "eventfullymanaged.communication.actions.createAnnouncement" : "eventfullymanaged.communication.actions.createCampaign", "Create draft")
|
|
339
339
|
})
|
|
340
340
|
})
|
|
341
341
|
]
|
|
@@ -345,8 +345,8 @@ function D() {
|
|
|
345
345
|
className: "flex items-center justify-between border-b border-border-seam pb-2",
|
|
346
346
|
children: [/* @__PURE__ */ h("span", {
|
|
347
347
|
className: "flex items-center gap-2 text-xs font-medium uppercase tracking-wide text-text-muted",
|
|
348
|
-
children: [/* @__PURE__ */ m(
|
|
349
|
-
}), /* @__PURE__ */ m(
|
|
348
|
+
children: [/* @__PURE__ */ m(ce, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.preview.label", "Preview")]
|
|
349
|
+
}), /* @__PURE__ */ m(g, {
|
|
350
350
|
variant: "info",
|
|
351
351
|
className: "uppercase",
|
|
352
352
|
children: O("eventfullymanaged.communication.preview.draft", "Draft")
|
|
@@ -358,18 +358,18 @@ function D() {
|
|
|
358
358
|
className: "text-base font-semibold text-text-primary",
|
|
359
359
|
children: H.trim() || O("eventfullymanaged.communication.preview.noSubject", "Your subject line")
|
|
360
360
|
}),
|
|
361
|
-
(I === "campaign" ?
|
|
361
|
+
(I === "campaign" ? W.length > 0 : U.trim()) ? /* @__PURE__ */ h("p", {
|
|
362
362
|
className: "text-xs text-text-secondary",
|
|
363
363
|
children: [
|
|
364
364
|
O("eventfullymanaged.communication.preview.to", "To"),
|
|
365
365
|
":",
|
|
366
366
|
" ",
|
|
367
|
-
I === "campaign" ?
|
|
367
|
+
I === "campaign" ? W.map(({ label: e }) => e).join(", ") : U.trim()
|
|
368
368
|
]
|
|
369
369
|
}) : null,
|
|
370
370
|
/* @__PURE__ */ m("p", {
|
|
371
371
|
className: "whitespace-pre-wrap text-sm text-text-secondary",
|
|
372
|
-
children:
|
|
372
|
+
children: q.trim() || O("eventfullymanaged.communication.preview.noBody", "Start typing to see your message preview here.")
|
|
373
373
|
})
|
|
374
374
|
]
|
|
375
375
|
})]
|
|
@@ -378,7 +378,7 @@ function D() {
|
|
|
378
378
|
}),
|
|
379
379
|
/* @__PURE__ */ h("div", {
|
|
380
380
|
className: "grid grid-cols-1 gap-6 lg:grid-cols-2",
|
|
381
|
-
children: [/* @__PURE__ */ h(
|
|
381
|
+
children: [/* @__PURE__ */ h(v, {
|
|
382
382
|
treatment: "plain",
|
|
383
383
|
className: "border-border-seam p-5",
|
|
384
384
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -386,53 +386,53 @@ function D() {
|
|
|
386
386
|
children: [/* @__PURE__ */ m("h2", {
|
|
387
387
|
className: "text-lg font-semibold text-text-primary",
|
|
388
388
|
children: O("eventfullymanaged.communication.announcements.heading", "Announcements")
|
|
389
|
-
}),
|
|
389
|
+
}), X > 0 ? /* @__PURE__ */ m("span", {
|
|
390
390
|
className: "text-sm text-text-muted",
|
|
391
|
-
children:
|
|
391
|
+
children: X
|
|
392
392
|
}) : null]
|
|
393
393
|
}), /* @__PURE__ */ h("div", {
|
|
394
394
|
className: "mt-4",
|
|
395
|
-
children: [j.loading &&
|
|
395
|
+
children: [j.loading && Y.length === 0 ? /* @__PURE__ */ m("p", {
|
|
396
396
|
className: "py-8 text-center text-sm text-text-secondary",
|
|
397
397
|
children: O("eventfullymanaged.communication.announcements.loading", "Loading announcements…")
|
|
398
|
-
}) :
|
|
398
|
+
}) : Y.length === 0 ? /* @__PURE__ */ m(y, {
|
|
399
399
|
illustration: "empty-data",
|
|
400
400
|
title: O("eventfullymanaged.communication.announcements.empty", "No announcements yet."),
|
|
401
401
|
className: "py-8"
|
|
402
402
|
}) : /* @__PURE__ */ m("ul", {
|
|
403
403
|
className: "space-y-2.5",
|
|
404
|
-
children:
|
|
404
|
+
children: Y.map((e) => /* @__PURE__ */ h("li", {
|
|
405
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",
|
|
406
406
|
children: [/* @__PURE__ */ m("p", {
|
|
407
407
|
className: "min-w-0 truncate font-medium text-text-primary",
|
|
408
408
|
children: E(e, O("eventfullymanaged.communication.announcements.itemPrefix", "Announcement"))
|
|
409
409
|
}), /* @__PURE__ */ h("div", {
|
|
410
410
|
className: "flex shrink-0 items-center gap-2",
|
|
411
|
-
children: [e.status ? /* @__PURE__ */ m(
|
|
411
|
+
children: [e.status ? /* @__PURE__ */ m(g, {
|
|
412
412
|
variant: w(e.status),
|
|
413
413
|
className: "uppercase",
|
|
414
414
|
children: e.status
|
|
415
|
-
}) : null, T(e.status) ? /* @__PURE__ */ h(
|
|
415
|
+
}) : null, T(e.status) ? /* @__PURE__ */ h(_, {
|
|
416
416
|
type: "button",
|
|
417
417
|
size: "sm",
|
|
418
418
|
disabled: ye,
|
|
419
419
|
onClick: () => void je(e),
|
|
420
|
-
children: [/* @__PURE__ */ m(
|
|
420
|
+
children: [/* @__PURE__ */ m(fe, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.actions.publish", "Publish")]
|
|
421
421
|
}) : null]
|
|
422
422
|
})]
|
|
423
423
|
}, e.id))
|
|
424
424
|
}), /* @__PURE__ */ m(s, {
|
|
425
425
|
offset: k.offset,
|
|
426
426
|
limit: k.limit,
|
|
427
|
-
loadedCount:
|
|
428
|
-
total:
|
|
427
|
+
loadedCount: Y.length,
|
|
428
|
+
total: X,
|
|
429
429
|
onPrev: k.prevPage,
|
|
430
430
|
onNext: k.nextPage,
|
|
431
431
|
itemLabel: O("eventfullymanaged.communication.announcements.heading", "Announcements").toLowerCase(),
|
|
432
432
|
loading: j.loading
|
|
433
433
|
})]
|
|
434
434
|
})]
|
|
435
|
-
}), /* @__PURE__ */ h(
|
|
435
|
+
}), /* @__PURE__ */ h(v, {
|
|
436
436
|
treatment: "plain",
|
|
437
437
|
className: "border-border-seam p-5",
|
|
438
438
|
children: [/* @__PURE__ */ h("div", {
|
|
@@ -440,54 +440,54 @@ function D() {
|
|
|
440
440
|
children: [/* @__PURE__ */ m("h2", {
|
|
441
441
|
className: "text-lg font-semibold text-text-primary",
|
|
442
442
|
children: O("eventfullymanaged.communication.campaigns.heading", "Campaigns")
|
|
443
|
-
}),
|
|
443
|
+
}), Q > 0 ? /* @__PURE__ */ m("span", {
|
|
444
444
|
className: "text-sm text-text-muted",
|
|
445
|
-
children:
|
|
445
|
+
children: Q
|
|
446
446
|
}) : null]
|
|
447
447
|
}), /* @__PURE__ */ h("div", {
|
|
448
448
|
className: "mt-4",
|
|
449
449
|
children: [
|
|
450
|
-
|
|
450
|
+
G ? /* @__PURE__ */ h("div", {
|
|
451
451
|
className: "mb-4 space-y-3 rounded-card border border-border-seam bg-bg-surface p-4",
|
|
452
452
|
children: [
|
|
453
453
|
/* @__PURE__ */ m("p", {
|
|
454
454
|
className: "font-medium text-text-primary",
|
|
455
|
-
children: E(
|
|
455
|
+
children: E(G.row, "Campaign")
|
|
456
456
|
}),
|
|
457
457
|
/* @__PURE__ */ m(o, {
|
|
458
|
-
selected:
|
|
459
|
-
onChange: (e) =>
|
|
460
|
-
...
|
|
458
|
+
selected: G.tags,
|
|
459
|
+
onChange: (e) => K({
|
|
460
|
+
...G,
|
|
461
461
|
tags: e,
|
|
462
462
|
changed: !0
|
|
463
463
|
})
|
|
464
|
-
},
|
|
464
|
+
}, G.row.id),
|
|
465
465
|
/* @__PURE__ */ h("div", {
|
|
466
466
|
className: "flex flex-wrap gap-2",
|
|
467
|
-
children: [/* @__PURE__ */ m(
|
|
467
|
+
children: [/* @__PURE__ */ m(_, {
|
|
468
468
|
type: "button",
|
|
469
|
-
disabled: P || !
|
|
469
|
+
disabled: P || !G.changed,
|
|
470
470
|
onClick: () => void Ae(),
|
|
471
471
|
children: O("eventfullymanaged.communication.actions.saveAudience", "Save audience")
|
|
472
|
-
}), /* @__PURE__ */ m(
|
|
472
|
+
}), /* @__PURE__ */ m(_, {
|
|
473
473
|
type: "button",
|
|
474
474
|
variant: "outline",
|
|
475
|
-
onClick: () =>
|
|
475
|
+
onClick: () => K(null),
|
|
476
476
|
children: O("eventfullymanaged.communication.actions.dismissAudience", "Close audience editor")
|
|
477
477
|
})]
|
|
478
478
|
})
|
|
479
479
|
]
|
|
480
480
|
}) : null,
|
|
481
|
-
M.loading &&
|
|
481
|
+
M.loading && Z.length === 0 ? /* @__PURE__ */ m("p", {
|
|
482
482
|
className: "py-8 text-center text-sm text-text-secondary",
|
|
483
483
|
children: O("eventfullymanaged.communication.campaigns.loading", "Loading campaigns…")
|
|
484
|
-
}) :
|
|
484
|
+
}) : Z.length === 0 ? /* @__PURE__ */ m(y, {
|
|
485
485
|
illustration: "empty-data",
|
|
486
486
|
title: O("eventfullymanaged.communication.campaigns.empty", "No campaigns yet."),
|
|
487
487
|
className: "py-8"
|
|
488
488
|
}) : /* @__PURE__ */ m("ul", {
|
|
489
489
|
className: "space-y-2.5",
|
|
490
|
-
children:
|
|
490
|
+
children: Z.map((e) => {
|
|
491
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;
|
|
492
492
|
return /* @__PURE__ */ h("li", {
|
|
493
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",
|
|
@@ -522,31 +522,31 @@ function D() {
|
|
|
522
522
|
}), /* @__PURE__ */ h("div", {
|
|
523
523
|
className: "flex shrink-0 items-center gap-2",
|
|
524
524
|
children: [
|
|
525
|
-
e.status ? /* @__PURE__ */ m(
|
|
525
|
+
e.status ? /* @__PURE__ */ m(g, {
|
|
526
526
|
variant: w(e.status),
|
|
527
527
|
className: "uppercase",
|
|
528
528
|
children: e.status
|
|
529
529
|
}) : null,
|
|
530
|
-
e.status?.toLowerCase() === "draft" ? /* @__PURE__ */ m(
|
|
530
|
+
e.status?.toLowerCase() === "draft" ? /* @__PURE__ */ m(_, {
|
|
531
531
|
type: "button",
|
|
532
532
|
size: "sm",
|
|
533
533
|
variant: "outline",
|
|
534
534
|
disabled: P || F,
|
|
535
|
-
onClick: () =>
|
|
535
|
+
onClick: () => K({
|
|
536
536
|
row: e,
|
|
537
537
|
tags: me(e),
|
|
538
538
|
changed: !1
|
|
539
539
|
}),
|
|
540
540
|
children: O("eventfullymanaged.communication.actions.editAudience", "Edit audience")
|
|
541
541
|
}) : null,
|
|
542
|
-
T(e.status) ? /* @__PURE__ */ h(
|
|
542
|
+
T(e.status) ? /* @__PURE__ */ h(_, {
|
|
543
543
|
type: "button",
|
|
544
544
|
size: "sm",
|
|
545
|
-
disabled: F ||
|
|
545
|
+
disabled: F || G?.row.id === e.id,
|
|
546
546
|
onClick: () => void Me(e),
|
|
547
|
-
children: [/* @__PURE__ */ m(
|
|
547
|
+
children: [/* @__PURE__ */ m(de, { className: "h-3.5 w-3.5" }), O("eventfullymanaged.communication.actions.send", "Send campaign")]
|
|
548
548
|
}) : null,
|
|
549
|
-
(e.status ?? "").toLowerCase() === "scheduled" ? /* @__PURE__ */ m(
|
|
549
|
+
(e.status ?? "").toLowerCase() === "scheduled" ? /* @__PURE__ */ m(_, {
|
|
550
550
|
type: "button",
|
|
551
551
|
size: "sm",
|
|
552
552
|
variant: "outline",
|
|
@@ -561,8 +561,8 @@ function D() {
|
|
|
561
561
|
/* @__PURE__ */ m(s, {
|
|
562
562
|
offset: A.offset,
|
|
563
563
|
limit: A.limit,
|
|
564
|
-
loadedCount:
|
|
565
|
-
total:
|
|
564
|
+
loadedCount: Z.length,
|
|
565
|
+
total: Q,
|
|
566
566
|
onPrev: A.prevPage,
|
|
567
567
|
onNext: A.nextPage,
|
|
568
568
|
itemLabel: O("eventfullymanaged.communication.campaigns.heading", "Campaigns").toLowerCase(),
|