@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
@@ -6,18 +6,18 @@ import { ImageUploadField as s } from "../../components/ImageUploadField.js";
6
6
  import { ResolvedImage as c } from "../../components/ResolvedImage.js";
7
7
  import { useEventfullyManaged as l } from "../../context/EventfullyManagedContext.js";
8
8
  import { useResolvedImageUrl as u } from "../../hooks/useResolvedImageUrl.js";
9
- import { asNumber as d, asString as f, extractZones as ee, serializeZones as te, summarizeZones as p, zoneTypeLabel as m } from "../../lib/floorPlanZones.js";
10
- import { describeError as h, mutationSucceeded as g } from "../../lib/mutationResult.js";
11
- import { notify as _ } from "../../lib/toast.js";
12
- import { useCallback as ne, useEffect as re, useMemo as v, useState as y } from "react";
13
- import { useParams as ie } from "react-router";
14
- import { jsx as b, jsxs as x } from "react/jsx-runtime";
15
- import { ArrowLeft as ae, LayoutGrid as S, Map as C, PencilRuler as w, Plus as T, SquareStack as oe } from "lucide-react";
16
- import { AlertDialog as E, AlertDialogAction as se, AlertDialogCancel as ce, AlertDialogContent as le, AlertDialogDescription as ue, AlertDialogFooter as de, AlertDialogHeader as fe, AlertDialogTitle as pe, Badge as D, Button as O, GlassCard as k, GradientText as A, IllustratedEmptyState as me, Input as he, Skeleton as j } from "@burdenoff/fe-libs/ui";
9
+ import { asNumber as d, asString as f, extractZones as p, serializeZones as ee, summarizeZones as m, zoneTypeLabel as h } from "../../lib/floorPlanZones.js";
10
+ import { describeError as g, mutationSucceeded as _ } from "../../lib/mutationResult.js";
11
+ import { notify as v } from "../../lib/toast.js";
12
+ import { useCallback as te, useEffect as ne, useMemo as y, useState as b } from "react";
13
+ import { useParams as re } from "react-router";
14
+ import { jsx as x, jsxs as S } from "react/jsx-runtime";
15
+ import { AlertDialog as C, AlertDialogAction as ie, AlertDialogCancel as ae, AlertDialogContent as oe, AlertDialogDescription as se, AlertDialogFooter as ce, AlertDialogHeader as le, AlertDialogTitle as ue, Badge as w, Button as T, GlassCard as E, GradientText as de, IllustratedEmptyState as fe, Input as pe, Skeleton as D } from "@burdenoff/fe-libs/ui";
16
+ import { ArrowLeft as me, LayoutGrid as O, Map as k, PencilRuler as A, Plus as j, SquareStack as he } from "lucide-react";
17
17
  // src/eventfullymanaged/pages/venues/FloorPlansPage.tsx
18
18
  var M = "/EventfullyManaged/FloorPlans";
19
19
  function ge(e, t) {
20
- let n = [], r = p(t);
20
+ let n = [], r = m(t);
21
21
  r.zones > 0 && n.push({
22
22
  label: "Zones",
23
23
  value: r.zones.toLocaleString()
@@ -42,89 +42,89 @@ function ge(e, t) {
42
42
  }
43
43
  function N({ imageValue: e, editor: t, planName: n, saving: r, onSave: i, onCancel: o }) {
44
44
  let { url: s, failed: c, retry: l } = u(e);
45
- return s ? /* @__PURE__ */ b(a, {
45
+ return s ? /* @__PURE__ */ x(a, {
46
46
  editor: t,
47
47
  planName: n,
48
48
  imageUrl: s,
49
49
  saving: r,
50
50
  onSave: i,
51
51
  onCancel: o
52
- }) : c ? /* @__PURE__ */ x("div", {
52
+ }) : c ? /* @__PURE__ */ S("div", {
53
53
  className: "flex flex-col items-center gap-3 bg-bg-sunken p-6 text-center",
54
54
  role: "alert",
55
- children: [/* @__PURE__ */ b("p", {
55
+ children: [/* @__PURE__ */ x("p", {
56
56
  className: "text-sm text-text-secondary",
57
57
  children: "The floor plan image could not be loaded for editing."
58
- }), /* @__PURE__ */ x("div", {
58
+ }), /* @__PURE__ */ S("div", {
59
59
  className: "flex items-center gap-2",
60
- children: [/* @__PURE__ */ b(O, {
60
+ children: [/* @__PURE__ */ x(T, {
61
61
  type: "button",
62
62
  size: "sm",
63
63
  variant: "outline",
64
64
  onClick: o,
65
65
  children: "Cancel"
66
- }), /* @__PURE__ */ b(O, {
66
+ }), /* @__PURE__ */ x(T, {
67
67
  type: "button",
68
68
  size: "sm",
69
69
  onClick: l,
70
70
  children: "Retry"
71
71
  })]
72
72
  })]
73
- }) : /* @__PURE__ */ b("div", {
73
+ }) : /* @__PURE__ */ x("div", {
74
74
  className: "flex justify-center bg-bg-sunken p-3",
75
75
  "aria-busy": "true",
76
- children: /* @__PURE__ */ b(j, { className: "h-64 w-[min(40rem,80vw)] max-w-full" })
76
+ children: /* @__PURE__ */ x(D, { className: "h-64 w-[min(40rem,80vw)] max-w-full" })
77
77
  });
78
78
  }
79
79
  function _e({ plan: e, zones: t, editing: n, saving: r, onAttachImage: i, onStartEditing: a, onSaveZones: o, onStopEditing: l, editor: u }) {
80
80
  let d = t.filter((e) => e.rect);
81
- return /* @__PURE__ */ x(k, {
81
+ return /* @__PURE__ */ S(E, {
82
82
  treatment: "plain",
83
83
  className: "overflow-hidden border-border-seam p-0",
84
84
  children: [
85
- /* @__PURE__ */ x("div", {
85
+ /* @__PURE__ */ S("div", {
86
86
  className: "flex items-center justify-between gap-2 border-b border-border-seam px-5 py-3",
87
- children: [/* @__PURE__ */ x("div", {
87
+ children: [/* @__PURE__ */ S("div", {
88
88
  className: "flex min-w-0 items-center gap-2 text-text-primary",
89
- children: [/* @__PURE__ */ b(C, { className: "h-4 w-4 shrink-0 text-action-primary-bg" }), /* @__PURE__ */ b("h2", {
89
+ children: [/* @__PURE__ */ x(k, { className: "h-4 w-4 shrink-0 text-action-primary-bg" }), /* @__PURE__ */ x("h2", {
90
90
  className: "truncate text-base font-semibold",
91
91
  children: e.name
92
92
  })]
93
- }), /* @__PURE__ */ x("div", {
93
+ }), /* @__PURE__ */ S("div", {
94
94
  className: "flex shrink-0 items-center gap-2",
95
- children: [t.length > 0 ? /* @__PURE__ */ x(D, {
95
+ children: [t.length > 0 ? /* @__PURE__ */ S(w, {
96
96
  variant: "secondary",
97
97
  children: [
98
98
  t.length,
99
99
  " ",
100
100
  t.length === 1 ? "zone" : "zones"
101
101
  ]
102
- }) : null, e.imageUrl && !n ? /* @__PURE__ */ x(O, {
102
+ }) : null, e.imageUrl && !n ? /* @__PURE__ */ S(T, {
103
103
  type: "button",
104
104
  size: "sm",
105
105
  variant: "outline",
106
106
  onClick: a,
107
- children: [/* @__PURE__ */ b(w, { className: "h-4 w-4" }), t.length > 0 ? "Edit zones" : "Add zones"]
107
+ children: [/* @__PURE__ */ x(A, { className: "h-4 w-4" }), t.length > 0 ? "Edit zones" : "Add zones"]
108
108
  }) : null]
109
109
  })]
110
110
  }),
111
- e.imageUrl && n ? /* @__PURE__ */ b(N, {
111
+ e.imageUrl && n ? /* @__PURE__ */ x(N, {
112
112
  imageValue: e.imageUrl,
113
113
  editor: u,
114
114
  planName: e.name,
115
115
  saving: r,
116
116
  onSave: (t) => o(e, t),
117
117
  onCancel: l
118
- }) : e.imageUrl ? /* @__PURE__ */ b("div", {
118
+ }) : e.imageUrl ? /* @__PURE__ */ x("div", {
119
119
  className: "flex justify-center bg-bg-sunken p-3",
120
- children: /* @__PURE__ */ x("div", {
120
+ children: /* @__PURE__ */ S("div", {
121
121
  className: "relative inline-block max-w-full",
122
- children: [/* @__PURE__ */ b(c, {
122
+ children: [/* @__PURE__ */ x(c, {
123
123
  value: e.imageUrl,
124
124
  alt: `${e.name} floor plan`,
125
125
  className: "block h-auto max-h-[32rem] w-auto max-w-full",
126
- fallback: /* @__PURE__ */ b(j, { className: "h-64 w-[min(40rem,80vw)] max-w-full" })
127
- }), d.map((e) => /* @__PURE__ */ x("div", {
126
+ fallback: /* @__PURE__ */ x(D, { className: "h-64 w-[min(40rem,80vw)] max-w-full" })
127
+ }), d.map((e) => /* @__PURE__ */ S("div", {
128
128
  "data-testid": "floor-plan-zone",
129
129
  className: "absolute flex flex-col items-center justify-center overflow-hidden rounded-md border border-accent-primary/70 bg-action-primary-bg/15 text-[10px] font-medium leading-tight text-accent-primary",
130
130
  style: {
@@ -135,26 +135,26 @@ function _e({ plan: e, zones: t, editing: n, saving: r, onAttachImage: i, onStar
135
135
  },
136
136
  title: [
137
137
  e.label,
138
- m(e.type),
138
+ h(e.type),
139
139
  e.capacity === void 0 ? "" : `capacity ${e.capacity}`
140
140
  ].filter(Boolean).join(" · "),
141
- children: [/* @__PURE__ */ b("span", {
141
+ children: [/* @__PURE__ */ x("span", {
142
142
  className: "max-w-full truncate px-1",
143
143
  children: e.label
144
- }), e.capacity === void 0 ? null : /* @__PURE__ */ b("span", {
144
+ }), e.capacity === void 0 ? null : /* @__PURE__ */ x("span", {
145
145
  className: "max-w-full truncate px-1 text-text-muted",
146
146
  children: e.capacity
147
147
  })]
148
148
  }, e.id))]
149
149
  })
150
- }) : /* @__PURE__ */ b("div", {
150
+ }) : /* @__PURE__ */ x("div", {
151
151
  className: "p-6",
152
- children: /* @__PURE__ */ x("div", {
152
+ children: /* @__PURE__ */ S("div", {
153
153
  className: "rounded-card border border-dashed border-border-default bg-bg-sunken p-6",
154
- children: [/* @__PURE__ */ b("p", {
154
+ children: [/* @__PURE__ */ x("p", {
155
155
  className: "mb-3 text-center text-sm text-text-secondary",
156
156
  children: "No image attached yet. Upload the hall map for this plan, then draw its zones and booths."
157
- }), /* @__PURE__ */ b(s, {
157
+ }), /* @__PURE__ */ x(s, {
158
158
  label: "Upload floor plan image",
159
159
  folderPath: M,
160
160
  value: null,
@@ -163,25 +163,25 @@ function _e({ plan: e, zones: t, editing: n, saving: r, onAttachImage: i, onStar
163
163
  })]
164
164
  })
165
165
  }),
166
- t.length > 0 && !n ? /* @__PURE__ */ x("div", {
166
+ t.length > 0 && !n ? /* @__PURE__ */ S("div", {
167
167
  className: "border-t border-border-seam px-5 py-4",
168
- children: [/* @__PURE__ */ x("div", {
168
+ children: [/* @__PURE__ */ S("div", {
169
169
  className: "mb-2 flex items-center gap-2 text-sm font-medium text-text-primary",
170
- children: [/* @__PURE__ */ b(S, { className: "h-4 w-4 text-text-muted" }), "Labeled zones"]
171
- }), /* @__PURE__ */ b("div", {
170
+ children: [/* @__PURE__ */ x(O, { className: "h-4 w-4 text-text-muted" }), "Labeled zones"]
171
+ }), /* @__PURE__ */ x("div", {
172
172
  className: "flex flex-wrap gap-2",
173
173
  children: t.map((e) => {
174
- let t = m(e.type);
175
- return /* @__PURE__ */ x(D, {
174
+ let t = h(e.type);
175
+ return /* @__PURE__ */ S(w, {
176
176
  variant: "outline",
177
177
  className: "gap-1.5",
178
178
  children: [
179
179
  e.label,
180
- t ? /* @__PURE__ */ x("span", {
180
+ t ? /* @__PURE__ */ S("span", {
181
181
  className: "text-text-muted",
182
182
  children: ["· ", t]
183
183
  }) : null,
184
- e.capacity === void 0 ? null : /* @__PURE__ */ x("span", {
184
+ e.capacity === void 0 ? null : /* @__PURE__ */ S("span", {
185
185
  className: "text-text-muted",
186
186
  children: ["· ", e.capacity]
187
187
  })
@@ -194,25 +194,25 @@ function _e({ plan: e, zones: t, editing: n, saving: r, onAttachImage: i, onStar
194
194
  });
195
195
  }
196
196
  function P() {
197
- let { id: a = "" } = ie(), { navigate: c } = l(), { data: u, loading: d, refetch: f } = r(a), [p, { loading: m }] = e(), [S] = n(), [C] = t(), [w, D] = y(""), [N, P] = y(""), [F, ve] = y(!1), [I, L] = y(null), [R, z] = y(!1), [B, V] = y(null), [ye, H] = y(!1), U = o(), [W, G] = y(null), K = u?.venue, q = v(() => u?.floorPlans?.items ?? [], [u]), J = v(() => q.find((e) => e.id === I) ?? q[0] ?? null, [q, I]), Y = v(() => ee(J?.interactiveAreas), [J]), X = v(() => J ? ge(J, Y) : [], [J, Y]), Z = (e) => e.venueId || a, be = async () => {
198
- if (w.trim() && a) try {
199
- let e = await p({ variables: { input: {
197
+ let { id: a = "" } = re(), { navigate: c } = l(), { data: u, loading: d, refetch: f } = r(a), [m, { loading: h }] = e(), [w] = n(), [O] = t(), [k, A] = b(""), [N, P] = b(""), [F, ve] = b(!1), [I, L] = b(null), [R, z] = b(!1), [B, V] = b(null), [ye, H] = b(!1), U = o(), [W, G] = b(null), K = u?.venue, q = y(() => u?.floorPlans?.items ?? [], [u]), J = y(() => q.find((e) => e.id === I) ?? q[0] ?? null, [q, I]), Y = y(() => p(J?.interactiveAreas), [J]), X = y(() => J ? ge(J, Y) : [], [J, Y]), Z = (e) => e.venueId || a, be = async () => {
198
+ if (k.trim() && a) try {
199
+ let e = await m({ variables: { input: {
200
200
  venueId: a,
201
- name: w.trim(),
201
+ name: k.trim(),
202
202
  imageUrl: N,
203
203
  dimensions: {},
204
204
  interactiveAreas: {}
205
205
  } } });
206
- if (!g(e, e.data?.createFloorPlan?.id, "Could not create floor plan")) return;
207
- D(""), P(""), z(!1);
206
+ if (!_(e, e.data?.createFloorPlan?.id, "Could not create floor plan")) return;
207
+ A(""), P(""), z(!1);
208
208
  let t = e.data?.createFloorPlan?.id;
209
- t && L(t), _.success("Floor plan created"), await f();
209
+ t && L(t), v.success("Floor plan created"), await f();
210
210
  } catch (e) {
211
- _.error("Could not create floor plan", h(e));
211
+ v.error("Could not create floor plan", g(e));
212
212
  }
213
213
  }, xe = async (e, t) => {
214
214
  try {
215
- let n = await S({ variables: {
215
+ let n = await w({ variables: {
216
216
  id: e.id,
217
217
  input: {
218
218
  venueId: Z(e),
@@ -222,17 +222,17 @@ function P() {
222
222
  interactiveAreas: e.interactiveAreas ?? {}
223
223
  }
224
224
  } });
225
- if (!g(n, n.data?.updateFloorPlan?.id, "Could not attach image")) return;
225
+ if (!_(n, n.data?.updateFloorPlan?.id, "Could not attach image")) return;
226
226
  await f();
227
227
  } catch (e) {
228
- _.error("Could not attach image", h(e));
228
+ v.error("Could not attach image", g(e));
229
229
  }
230
- }, Q = ne(() => {
230
+ }, Q = te(() => {
231
231
  V(null);
232
232
  }, []), Se = (e, t) => {
233
233
  U.reset(t), V(e.id);
234
234
  }, $ = B !== null && U.dirty;
235
- re(() => {
235
+ ne(() => {
236
236
  if (!$) return;
237
237
  let e = (e) => {
238
238
  e.preventDefault();
@@ -252,85 +252,85 @@ function P() {
252
252
  }, Ee = async (e, t) => {
253
253
  H(!0);
254
254
  try {
255
- let n = await S({ variables: {
255
+ let n = await w({ variables: {
256
256
  id: e.id,
257
257
  input: {
258
258
  venueId: Z(e),
259
259
  name: e.name,
260
260
  imageUrl: e.imageUrl ?? null,
261
261
  dimensions: e.dimensions ?? {},
262
- interactiveAreas: te(t, e.interactiveAreas)
262
+ interactiveAreas: ee(t, e.interactiveAreas)
263
263
  }
264
264
  } });
265
- return g(n, n.data?.updateFloorPlan?.id, "Could not save zones") ? (await f(), Q(), _.success("Zones saved", `${t.length} ${t.length === 1 ? "zone" : "zones"} on ${e.name}`), !0) : !1;
265
+ return _(n, n.data?.updateFloorPlan?.id, "Could not save zones") ? (await f(), Q(), v.success("Zones saved", `${t.length} ${t.length === 1 ? "zone" : "zones"} on ${e.name}`), !0) : !1;
266
266
  } catch (e) {
267
- return _.error("Could not save zones", h(e)), !1;
267
+ return v.error("Could not save zones", g(e)), !1;
268
268
  } finally {
269
269
  H(!1);
270
270
  }
271
271
  }, De = async (e) => {
272
272
  let t;
273
273
  try {
274
- t = await C({ variables: { id: e.id } });
274
+ t = await O({ variables: { id: e.id } });
275
275
  } catch (e) {
276
- throw _.error("Could not delete floor plan", h(e)), e;
276
+ throw v.error("Could not delete floor plan", g(e)), e;
277
277
  }
278
- if (t.error) throw _.error("Could not delete floor plan", t.error.message), t.error;
279
- if (!t.data?.deleteFloorPlan) throw _.error("Could not delete floor plan", "The server did not confirm the change."), Error("delete-unconfirmed");
280
- I === e.id && L(null), B === e.id && Q(), _.success("Floor plan deleted", e.name), await f();
278
+ if (t.error) throw v.error("Could not delete floor plan", t.error.message), t.error;
279
+ if (!t.data?.deleteFloorPlan) throw v.error("Could not delete floor plan", "The server did not confirm the change."), Error("delete-unconfirmed");
280
+ I === e.id && L(null), B === e.id && Q(), v.success("Floor plan deleted", e.name), await f();
281
281
  };
282
- return /* @__PURE__ */ x("div", {
282
+ return /* @__PURE__ */ S("div", {
283
283
  className: "space-y-6 p-6",
284
284
  children: [
285
- /* @__PURE__ */ x("div", {
285
+ /* @__PURE__ */ S("div", {
286
286
  className: "flex flex-col gap-4 sm:flex-row sm:items-end sm:justify-between",
287
- children: [/* @__PURE__ */ x("div", {
287
+ children: [/* @__PURE__ */ S("div", {
288
288
  className: "space-y-3",
289
289
  children: [
290
- /* @__PURE__ */ x(O, {
290
+ /* @__PURE__ */ S(T, {
291
291
  type: "button",
292
292
  variant: "ghost",
293
293
  size: "sm",
294
294
  onClick: Ce,
295
- children: [/* @__PURE__ */ b(ae, { className: "h-4 w-4" }), "Back to Venue"]
295
+ children: [/* @__PURE__ */ x(me, { className: "h-4 w-4" }), "Back to Venue"]
296
296
  }),
297
- /* @__PURE__ */ b(A, {
297
+ /* @__PURE__ */ x(de, {
298
298
  as: "h1",
299
299
  className: "text-2xl font-bold",
300
300
  children: K?.name ? `${K.name} — Floor Plans` : "Floor Plans"
301
301
  }),
302
- /* @__PURE__ */ b("p", {
302
+ /* @__PURE__ */ x("p", {
303
303
  className: "text-sm text-text-secondary",
304
304
  children: "Map the hall layout, booth positions, stage and entrances so exhibitors and attendees can navigate on the day."
305
305
  })
306
306
  ]
307
- }), /* @__PURE__ */ x(O, {
307
+ }), /* @__PURE__ */ S(T, {
308
308
  type: "button",
309
309
  onClick: () => z((e) => !e),
310
- children: [/* @__PURE__ */ b(T, { className: "h-4 w-4" }), "Add floor plan"]
310
+ children: [/* @__PURE__ */ x(j, { className: "h-4 w-4" }), "Add floor plan"]
311
311
  })]
312
312
  }),
313
- d ? /* @__PURE__ */ x("div", {
313
+ d ? /* @__PURE__ */ S("div", {
314
314
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
315
- children: [/* @__PURE__ */ b(j, { className: "h-96 rounded-card lg:col-span-2" }), /* @__PURE__ */ b(j, { className: "h-96 rounded-card" })]
316
- }) : q.length === 0 && !R ? /* @__PURE__ */ b(k, {
315
+ children: [/* @__PURE__ */ x(D, { className: "h-96 rounded-card lg:col-span-2" }), /* @__PURE__ */ x(D, { className: "h-96 rounded-card" })]
316
+ }) : q.length === 0 && !R ? /* @__PURE__ */ x(E, {
317
317
  treatment: "plain",
318
318
  className: "border-border-seam",
319
- children: /* @__PURE__ */ b(me, {
319
+ children: /* @__PURE__ */ x(fe, {
320
320
  illustration: "empty-files",
321
321
  title: "No floor plans yet.",
322
322
  description: "Add one to start mapping this venue — upload the hall map and label its zones.",
323
- action: /* @__PURE__ */ x(O, {
323
+ action: /* @__PURE__ */ S(T, {
324
324
  type: "button",
325
325
  onClick: () => z(!0),
326
- children: [/* @__PURE__ */ b(T, { className: "h-4 w-4" }), "Add floor plan"]
326
+ children: [/* @__PURE__ */ x(j, { className: "h-4 w-4" }), "Add floor plan"]
327
327
  })
328
328
  })
329
- }) : /* @__PURE__ */ x("div", {
329
+ }) : /* @__PURE__ */ S("div", {
330
330
  className: "grid grid-cols-1 gap-6 lg:grid-cols-3",
331
- children: [/* @__PURE__ */ b("div", {
331
+ children: [/* @__PURE__ */ x("div", {
332
332
  className: "lg:col-span-2",
333
- children: J ? /* @__PURE__ */ b(_e, {
333
+ children: J ? /* @__PURE__ */ x(_e, {
334
334
  plan: J,
335
335
  zones: Y,
336
336
  editing: B === J.id,
@@ -340,52 +340,52 @@ function P() {
340
340
  onSaveZones: Ee,
341
341
  onStopEditing: Q,
342
342
  editor: U
343
- }) : /* @__PURE__ */ b(k, {
343
+ }) : /* @__PURE__ */ x(E, {
344
344
  treatment: "plain",
345
345
  className: "flex h-full items-center justify-center border-border-seam p-10",
346
- children: /* @__PURE__ */ b("p", {
346
+ children: /* @__PURE__ */ x("p", {
347
347
  className: "text-sm text-text-secondary",
348
348
  children: "Add a floor plan to preview it here."
349
349
  })
350
350
  })
351
- }), /* @__PURE__ */ x("div", {
351
+ }), /* @__PURE__ */ S("div", {
352
352
  className: "space-y-6",
353
353
  children: [
354
- /* @__PURE__ */ x(k, {
354
+ /* @__PURE__ */ S(E, {
355
355
  treatment: "plain",
356
356
  className: "border-border-seam p-5",
357
- children: [/* @__PURE__ */ b("h2", {
357
+ children: [/* @__PURE__ */ x("h2", {
358
358
  className: "text-sm font-semibold text-text-primary",
359
359
  children: "Available Floor Plans"
360
- }), /* @__PURE__ */ b("ul", {
360
+ }), /* @__PURE__ */ x("ul", {
361
361
  className: "mt-3 space-y-2",
362
362
  role: "list",
363
- children: q.length === 0 ? /* @__PURE__ */ b("li", {
363
+ children: q.length === 0 ? /* @__PURE__ */ x("li", {
364
364
  className: "text-sm text-text-secondary",
365
365
  children: "None yet — create one below."
366
366
  }) : q.map((e) => {
367
367
  let t = J?.id === e.id;
368
- return /* @__PURE__ */ b("li", { children: /* @__PURE__ */ x("div", {
368
+ return /* @__PURE__ */ x("li", { children: /* @__PURE__ */ S("div", {
369
369
  className: `flex items-center gap-3 rounded-card border p-3 transition-colors ${t ? "border-accent-primary bg-action-primary-bg/10" : "border-border-seam hover:border-border-strong"}`,
370
- children: [/* @__PURE__ */ x("button", {
370
+ children: [/* @__PURE__ */ S("button", {
371
371
  type: "button",
372
372
  onClick: () => we(e.id),
373
373
  className: "flex min-w-0 flex-1 items-center gap-3 text-left focus-visible:outline-none",
374
374
  "aria-pressed": t,
375
- children: [/* @__PURE__ */ b("span", {
375
+ children: [/* @__PURE__ */ x("span", {
376
376
  className: `flex h-9 w-9 shrink-0 items-center justify-center rounded-md ${t ? "bg-action-primary-bg text-action-primary-text" : "bg-bg-sunken text-text-secondary"}`,
377
- children: /* @__PURE__ */ b(oe, { className: "h-4 w-4" })
378
- }), /* @__PURE__ */ x("span", {
377
+ children: /* @__PURE__ */ x(he, { className: "h-4 w-4" })
378
+ }), /* @__PURE__ */ S("span", {
379
379
  className: "min-w-0",
380
- children: [/* @__PURE__ */ b("span", {
380
+ children: [/* @__PURE__ */ x("span", {
381
381
  className: "block truncate text-sm font-medium text-text-primary",
382
382
  children: e.name
383
- }), /* @__PURE__ */ b("span", {
383
+ }), /* @__PURE__ */ x("span", {
384
384
  className: "block text-xs text-text-muted",
385
385
  children: e.imageUrl ? "Map attached" : "No image yet"
386
386
  })]
387
387
  })]
388
- }), /* @__PURE__ */ b(i, {
388
+ }), /* @__PURE__ */ x(i, {
389
389
  ariaLabel: `Floor plan actions for ${e.name}`,
390
390
  entityName: e.name,
391
391
  deleteLabel: "Delete floor plan",
@@ -395,46 +395,46 @@ function P() {
395
395
  })
396
396
  })]
397
397
  }),
398
- J ? /* @__PURE__ */ x(k, {
398
+ J ? /* @__PURE__ */ S(E, {
399
399
  treatment: "metric",
400
400
  className: "p-5",
401
- children: [/* @__PURE__ */ b("h2", {
401
+ children: [/* @__PURE__ */ x("h2", {
402
402
  className: "text-sm font-semibold text-text-primary",
403
403
  children: "Plan Details"
404
- }), X.length > 0 ? /* @__PURE__ */ b("dl", {
404
+ }), X.length > 0 ? /* @__PURE__ */ x("dl", {
405
405
  className: "mt-3 space-y-2",
406
- children: X.map((e) => /* @__PURE__ */ x("div", {
406
+ children: X.map((e) => /* @__PURE__ */ S("div", {
407
407
  className: "flex items-center justify-between text-sm",
408
- children: [/* @__PURE__ */ b("dt", {
408
+ children: [/* @__PURE__ */ x("dt", {
409
409
  className: "text-text-secondary",
410
410
  children: e.label
411
- }), /* @__PURE__ */ b("dd", {
411
+ }), /* @__PURE__ */ x("dd", {
412
412
  className: "font-semibold tabular-nums text-text-primary",
413
413
  children: e.value
414
414
  })]
415
415
  }, e.label))
416
- }) : /* @__PURE__ */ b("p", {
416
+ }) : /* @__PURE__ */ x("p", {
417
417
  className: "mt-3 text-sm text-text-secondary",
418
418
  children: "No zones or dimensions captured for this plan yet."
419
419
  })]
420
420
  }) : null,
421
- R || q.length === 0 ? /* @__PURE__ */ x(k, {
421
+ R || q.length === 0 ? /* @__PURE__ */ S(E, {
422
422
  treatment: "plain",
423
423
  className: "border-border-seam p-5",
424
- children: [/* @__PURE__ */ b("h2", {
424
+ children: [/* @__PURE__ */ x("h2", {
425
425
  className: "mb-3 text-sm font-semibold text-text-primary",
426
426
  children: "Add a floor plan"
427
- }), /* @__PURE__ */ x("div", {
427
+ }), /* @__PURE__ */ S("div", {
428
428
  className: "space-y-4",
429
429
  children: [
430
- /* @__PURE__ */ b(he, {
430
+ /* @__PURE__ */ x(pe, {
431
431
  type: "text",
432
- value: w,
433
- onChange: (e) => D(e.target.value),
432
+ value: k,
433
+ onChange: (e) => A(e.target.value),
434
434
  placeholder: "Main Hall Layout",
435
435
  "aria-label": "Floor plan name"
436
436
  }),
437
- /* @__PURE__ */ b(s, {
437
+ /* @__PURE__ */ x(s, {
438
438
  label: "Upload floor plan image",
439
439
  folderPath: M,
440
440
  value: N || null,
@@ -442,18 +442,18 @@ function P() {
442
442
  onUploadingChange: ve,
443
443
  hint: "Optional now — you can attach it later from the viewer."
444
444
  }),
445
- /* @__PURE__ */ x("div", {
445
+ /* @__PURE__ */ S("div", {
446
446
  className: "flex justify-end gap-2",
447
- children: [q.length > 0 ? /* @__PURE__ */ b(O, {
447
+ children: [q.length > 0 ? /* @__PURE__ */ x(T, {
448
448
  type: "button",
449
449
  variant: "ghost",
450
450
  onClick: () => z(!1),
451
451
  children: "Cancel"
452
- }) : null, /* @__PURE__ */ x(O, {
452
+ }) : null, /* @__PURE__ */ S(T, {
453
453
  type: "button",
454
454
  onClick: be,
455
- disabled: m || !w.trim() || F,
456
- children: [/* @__PURE__ */ b(T, { className: "h-4 w-4" }), F ? "Uploading image…" : m ? "Creating…" : "Create"]
455
+ disabled: h || !k.trim() || F,
456
+ children: [/* @__PURE__ */ x(j, { className: "h-4 w-4" }), F ? "Uploading image…" : h ? "Creating…" : "Create"]
457
457
  })]
458
458
  })
459
459
  ]
@@ -462,15 +462,15 @@ function P() {
462
462
  ]
463
463
  })]
464
464
  }),
465
- /* @__PURE__ */ b(E, {
465
+ /* @__PURE__ */ x(C, {
466
466
  open: W !== null,
467
467
  onOpenChange: (e) => e ? void 0 : G(null),
468
- children: /* @__PURE__ */ x(le, { children: [/* @__PURE__ */ x(fe, { children: [/* @__PURE__ */ b(pe, { children: "Discard unsaved zone changes?" }), /* @__PURE__ */ x(ue, { children: [
468
+ children: /* @__PURE__ */ S(oe, { children: [/* @__PURE__ */ S(le, { children: [/* @__PURE__ */ x(ue, { children: "Discard unsaved zone changes?" }), /* @__PURE__ */ S(se, { children: [
469
469
  "The zones you edited on this floor plan have not been saved.",
470
470
  " ",
471
471
  W?.kind === "venue" ? "Leaving this page" : "Switching plans",
472
472
  " will discard them."
473
- ] })] }), /* @__PURE__ */ x(de, { children: [/* @__PURE__ */ b(ce, { children: "Keep editing" }), /* @__PURE__ */ b(se, {
473
+ ] })] }), /* @__PURE__ */ S(ce, { children: [/* @__PURE__ */ x(ae, { children: "Keep editing" }), /* @__PURE__ */ x(ie, {
474
474
  onClick: Te,
475
475
  children: "Discard changes"
476
476
  })] })] })