@seatlayer/vue 0.105.1 → 0.106.0
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/README.md +70 -1
- package/dist/manager.cjs +351 -0
- package/dist/manager.cjs.map +1 -0
- package/dist/manager.d.cts +822 -0
- package/dist/manager.d.ts +822 -0
- package/dist/manager.js +333 -0
- package/dist/manager.js.map +1 -0
- package/package.json +21 -3
package/README.md
CHANGED
|
@@ -28,10 +28,14 @@ also re-exports the plain JavaScript `SeatPickerWidget` class and the
|
|
|
28
28
|
- `SeatingChart`: one Vue 3 component wrapper (`SeatLayerSeatingChart`), written
|
|
29
29
|
as a render function so no Vue compiler plugin is needed.
|
|
30
30
|
- `SeasonPicker`: fixed-inclusion Season selection and returning-holder intent.
|
|
31
|
+
- `SeatManager`: the organizer control room, for dashboards that monitor and
|
|
32
|
+
block live inventory. It lives on its own entry, `@seatlayer/vue/manager`, so
|
|
33
|
+
a buyer app never carries it.
|
|
31
34
|
- `SeatPickerWidget`: the framework-agnostic one-call buyer modal.
|
|
32
35
|
- `attachPickerFrame`: the host-side iframe helper for embedded pickers.
|
|
33
36
|
- TypeScript declarations for ESM (`dist/index.d.ts`) and CommonJS
|
|
34
|
-
(`dist/index.d.cts`), including the `SeatingChartExposed` handle type
|
|
37
|
+
(`dist/index.d.cts`), including the `SeatingChartExposed` handle type, plus
|
|
38
|
+
the `@seatlayer/vue/manager` subpath.
|
|
35
39
|
|
|
36
40
|
## Requirements
|
|
37
41
|
|
|
@@ -193,6 +197,71 @@ Everything on the template ref, typed as `SeatingChartExposed`:
|
|
|
193
197
|
Calling any of them before the chart exists returns an empty answer rather than
|
|
194
198
|
throwing, so a template ref used one frame early is safe.
|
|
195
199
|
|
|
200
|
+
## Embed the live control room
|
|
201
|
+
|
|
202
|
+
Import `SeatManager` from `@seatlayer/vue/manager`, not from the package root.
|
|
203
|
+
That entry holds the control room and nothing else, so your buyer pages stay
|
|
204
|
+
the same size.
|
|
205
|
+
|
|
206
|
+
Pass a short-lived, event-scoped manage token minted by your backend. The
|
|
207
|
+
`token` prop takes an `mse_` browser grant. Tenant `sk_` secrets do not work in
|
|
208
|
+
browser code and must stay on your server. Keep the grant in memory, never in a
|
|
209
|
+
URL, browser storage, or logs.
|
|
210
|
+
|
|
211
|
+
```vue
|
|
212
|
+
<script setup lang="ts">
|
|
213
|
+
import { ref } from 'vue';
|
|
214
|
+
import { SeatManager, type SeatManagerExposed, type SeatManagerRoomState } from '@seatlayer/vue/manager';
|
|
215
|
+
|
|
216
|
+
const manager = ref<SeatManagerExposed | null>(null);
|
|
217
|
+
|
|
218
|
+
function onRoomState(state: SeatManagerRoomState) {
|
|
219
|
+
console.log('room is', state);
|
|
220
|
+
}
|
|
221
|
+
</script>
|
|
222
|
+
|
|
223
|
+
<template>
|
|
224
|
+
<SeatManager
|
|
225
|
+
ref="manager"
|
|
226
|
+
api-base="https://api.seatlayer.io"
|
|
227
|
+
event-key="ev_9f3a"
|
|
228
|
+
:token="session.token"
|
|
229
|
+
:token-expires-at="session.expiresAt"
|
|
230
|
+
:on-token-refresh="mintManageSession"
|
|
231
|
+
style="width: 100%; height: calc(100vh - 96px)"
|
|
232
|
+
@room-state-change="onRoomState"
|
|
233
|
+
/>
|
|
234
|
+
</template>
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
The props are the `SeatManager` options from `@seatlayer/js/manager`, without
|
|
238
|
+
`container`. The board is rebuilt only when `eventKey` or `apiBase` changes.
|
|
239
|
+
These props change the running board in place, keeping the camera, selection,
|
|
240
|
+
live connection and DOM: `token`, `tokenExpiresAt`, `onTokenRefresh`,
|
|
241
|
+
`capabilities`, `currency`, `theme`, `themeMode`, `keepLiveWhileHidden`,
|
|
242
|
+
`mode`, `followLive`, `selectableObjects`, `unavailableObjectsSelectable`,
|
|
243
|
+
`unavailableObjects`, `unavailableObjectsReason`, `categoryPrices`,
|
|
244
|
+
`maxSelectedObjects`, `numberOfPlacesToSelect`, `isObjectSelectable`, `sale`
|
|
245
|
+
and `mapInsets` (the last two compared by value). The rest, such as `tools`,
|
|
246
|
+
`chrome`, `kpis`, `timeZone`, `organizationName`, `colourBy` and the `focus*`
|
|
247
|
+
and `arrivedFrom` options, are read once when the board opens.
|
|
248
|
+
|
|
249
|
+
Events: `@ready`, `@tallies`, `@activity`, `@control-room`, `@mode-change`,
|
|
250
|
+
`@follow-live-change`, `@selection-change`, `@object-selected`,
|
|
251
|
+
`@object-deselected`, `@selection-validity-change`, `@selection-valid`,
|
|
252
|
+
`@selection-invalid`, `@selection-limit`, `@filtered-section-change`,
|
|
253
|
+
`@area-click`, `@action-complete`, `@connection-change`, `@room-state-change`
|
|
254
|
+
and `@error`.
|
|
255
|
+
|
|
256
|
+
`onTokenRefresh`, `onOpenOrder` and `onOpenTrend` are props, because the room
|
|
257
|
+
needs a value back or needs to know you passed one. The room offers "Open
|
|
258
|
+
order" and the trend link only when you give it a handler. `@open-order` and
|
|
259
|
+
`@open-trend` work too.
|
|
260
|
+
|
|
261
|
+
The template ref, typed `SeatManagerExposed`, has the same methods as the React
|
|
262
|
+
`SeatManagerHandle`, including `setMode`, `block`, `unblock`, `selectObjects`,
|
|
263
|
+
`focusSection`, `getReport`, `getConnection` and `showObjects`.
|
|
264
|
+
|
|
196
265
|
## Also exported
|
|
197
266
|
|
|
198
267
|
- `SeatPickerWidget`: raw framework-agnostic JavaScript one-call modal (`SeatPickerWidget.open()`).
|
package/dist/manager.cjs
ADDED
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/manager.ts
|
|
21
|
+
var manager_exports = {};
|
|
22
|
+
__export(manager_exports, {
|
|
23
|
+
SeatManager: () => SeatManager
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(manager_exports);
|
|
26
|
+
|
|
27
|
+
// src/SeatManager.ts
|
|
28
|
+
var import_vue = require("vue");
|
|
29
|
+
var import_manager = require("@seatlayer/js/manager");
|
|
30
|
+
var seatManagerProps = {
|
|
31
|
+
/** Event to manage. Changing it rebuilds the board. */
|
|
32
|
+
eventKey: { type: String, required: true },
|
|
33
|
+
/** API base URL. Changing it rebuilds the board. */
|
|
34
|
+
apiBase: { type: String, default: void 0 },
|
|
35
|
+
/** Short-lived, event-scoped `mse_` grant from your backend. Live. */
|
|
36
|
+
token: { type: String, required: true },
|
|
37
|
+
/** When `token` expires, epoch ms. Live. */
|
|
38
|
+
tokenExpiresAt: { type: Number, default: void 0 },
|
|
39
|
+
/** Mint a fresh grant before the current one expires. Live. */
|
|
40
|
+
onTokenRefresh: { type: Function, default: void 0 },
|
|
41
|
+
/** The tool the board shows. Live. */
|
|
42
|
+
mode: { type: String, default: void 0 },
|
|
43
|
+
/** Which tools the board offers. Read once. */
|
|
44
|
+
tools: { type: Array, default: void 0 },
|
|
45
|
+
/** `minimal` shows just the map. Read once. */
|
|
46
|
+
chrome: { type: String, default: void 0 },
|
|
47
|
+
/** What the token may do. Live. */
|
|
48
|
+
capabilities: { type: Array, default: void 0 },
|
|
49
|
+
/** Fallback currency for money. Live. */
|
|
50
|
+
currency: { type: String, default: void 0 },
|
|
51
|
+
/** Colour overrides. Live. */
|
|
52
|
+
theme: { type: Object, default: void 0 },
|
|
53
|
+
/** `light`, `dark` or `auto`. Applied before first paint, then live. */
|
|
54
|
+
themeMode: { type: String, default: void 0 },
|
|
55
|
+
/** Keep the realtime link open while the tab is hidden. Live. */
|
|
56
|
+
keepLiveWhileHidden: { type: Boolean, default: void 0 },
|
|
57
|
+
/** Follow new bookings on the map. Live. */
|
|
58
|
+
followLive: { type: Boolean, default: void 0 },
|
|
59
|
+
/** Seats selected once the board loads. Read once. */
|
|
60
|
+
selectedObjects: { type: Array, default: void 0 },
|
|
61
|
+
/** Seats the operator may select. Live. */
|
|
62
|
+
selectableObjects: { type: Array, default: void 0 },
|
|
63
|
+
/** Whether unavailable seats can be selected. Live. */
|
|
64
|
+
unavailableObjectsSelectable: { type: Boolean, default: void 0 },
|
|
65
|
+
/** Seats shown as unavailable. Live. */
|
|
66
|
+
unavailableObjects: { type: Array, default: void 0 },
|
|
67
|
+
/** The hover word for `unavailableObjects`. Live. */
|
|
68
|
+
unavailableObjectsReason: { type: String, default: void 0 },
|
|
69
|
+
/** Prices the map's hover shows: a map overrides, null hides. Live. */
|
|
70
|
+
categoryPrices: {
|
|
71
|
+
type: Object,
|
|
72
|
+
default: void 0
|
|
73
|
+
},
|
|
74
|
+
/** Cap on the selection. Live. */
|
|
75
|
+
maxSelectedObjects: { type: Number, default: void 0 },
|
|
76
|
+
/** Exact count a valid selection needs. Live. */
|
|
77
|
+
numberOfPlacesToSelect: { type: Number, default: void 0 },
|
|
78
|
+
/** Per-seat selectability rule. Live. */
|
|
79
|
+
isObjectSelectable: { type: Function, default: void 0 },
|
|
80
|
+
/** False when your own header shows the numbers. Read once. */
|
|
81
|
+
kpis: { type: Boolean, default: void 0 },
|
|
82
|
+
/** The event's clock for every time the room shows. Read once. */
|
|
83
|
+
timeZone: { type: String, default: void 0 },
|
|
84
|
+
/** Shown in "Ask an admin of …". Read once. */
|
|
85
|
+
organizationName: { type: String, default: void 0 },
|
|
86
|
+
/** What you know about the sale. Live, compared by value. */
|
|
87
|
+
sale: { type: Object, default: void 0 },
|
|
88
|
+
/** Room your own overlays take over the map, in px. Live, compared by value. */
|
|
89
|
+
mapInsets: { type: Object, default: void 0 },
|
|
90
|
+
/** What the map's colours mean when the room opens. Read once. */
|
|
91
|
+
colourBy: { type: String, default: void 0 },
|
|
92
|
+
/** Open on this section. Read once. */
|
|
93
|
+
focusSection: { type: String, default: void 0 },
|
|
94
|
+
/** Open on this seat. Read once. */
|
|
95
|
+
focusSeat: { type: String, default: void 0 },
|
|
96
|
+
/** Open on these seats (an order's seats). Read once. */
|
|
97
|
+
focusSeats: { type: Array, default: void 0 },
|
|
98
|
+
/** Open on this category. Read once. */
|
|
99
|
+
focusCategory: { type: String, default: void 0 },
|
|
100
|
+
/** Where the operator came from, for the way back. Read once. */
|
|
101
|
+
arrivedFrom: { type: Object, default: void 0 },
|
|
102
|
+
/** Open one of your orders. Only when given does the room offer "Open order". */
|
|
103
|
+
onOpenOrder: { type: Function, default: void 0 },
|
|
104
|
+
/** Open your trend view for a number. Only when given does the room link to it. */
|
|
105
|
+
onOpenTrend: { type: Function, default: void 0 },
|
|
106
|
+
onOpenDesigner: { type: Function, default: void 0 }
|
|
107
|
+
};
|
|
108
|
+
var SeatManager = (0, import_vue.defineComponent)({
|
|
109
|
+
name: "SeatLayerSeatManager",
|
|
110
|
+
props: seatManagerProps,
|
|
111
|
+
emits: {
|
|
112
|
+
/** The board has loaded. */
|
|
113
|
+
ready: () => true,
|
|
114
|
+
/** Live numbers changed. */
|
|
115
|
+
tallies: (_tallies) => true,
|
|
116
|
+
/** Something happened on the event. */
|
|
117
|
+
activity: (_activity) => true,
|
|
118
|
+
/** A fresh control room snapshot. */
|
|
119
|
+
"control-room": (_snapshot) => true,
|
|
120
|
+
/** The operator switched tools. */
|
|
121
|
+
"mode-change": (_mode) => true,
|
|
122
|
+
/** Follow-live was switched on or off. */
|
|
123
|
+
"follow-live-change": (_enabled) => true,
|
|
124
|
+
/** The selection changed. */
|
|
125
|
+
"selection-change": (_seats) => true,
|
|
126
|
+
/** One seat was selected. */
|
|
127
|
+
"object-selected": (_object) => true,
|
|
128
|
+
/** One seat was deselected. */
|
|
129
|
+
"object-deselected": (_object) => true,
|
|
130
|
+
/** Exact-count state changed. */
|
|
131
|
+
"selection-validity-change": (_state) => true,
|
|
132
|
+
/** The selection became valid. */
|
|
133
|
+
"selection-valid": (_state) => true,
|
|
134
|
+
/** The selection became invalid. */
|
|
135
|
+
"selection-invalid": (_state) => true,
|
|
136
|
+
/** The selection cap was reached. */
|
|
137
|
+
"selection-limit": (_max) => true,
|
|
138
|
+
/** The filtered sections changed. */
|
|
139
|
+
"filtered-section-change": (_sections) => true,
|
|
140
|
+
/** A general-admission area was clicked. */
|
|
141
|
+
"area-click": (_area) => true,
|
|
142
|
+
/** A block, unblock or other action finished. */
|
|
143
|
+
"action-complete": (_result) => true,
|
|
144
|
+
/** The realtime link changed state. */
|
|
145
|
+
"connection-change": (_state) => true,
|
|
146
|
+
/** The room changed state: connecting, live, paused, offline or ended. */
|
|
147
|
+
"room-state-change": (_state) => true,
|
|
148
|
+
/** Something failed. */
|
|
149
|
+
error: (_error) => true
|
|
150
|
+
},
|
|
151
|
+
setup(props, { emit, expose }) {
|
|
152
|
+
const container = (0, import_vue.ref)(null);
|
|
153
|
+
const manager = (0, import_vue.shallowRef)(null);
|
|
154
|
+
const destroy = () => {
|
|
155
|
+
manager.value?.destroy();
|
|
156
|
+
manager.value = null;
|
|
157
|
+
};
|
|
158
|
+
const tokenRefresh = () => props.onTokenRefresh ? async () => props.onTokenRefresh() : void 0;
|
|
159
|
+
const build = () => {
|
|
160
|
+
const element = container.value;
|
|
161
|
+
if (!element) return;
|
|
162
|
+
destroy();
|
|
163
|
+
const onReady = () => emit("ready");
|
|
164
|
+
const onTallies = (tallies) => emit("tallies", tallies);
|
|
165
|
+
const onActivity = (activity) => emit("activity", activity);
|
|
166
|
+
const onControlRoom = (snapshot) => emit("control-room", snapshot);
|
|
167
|
+
const onModeChange = (nextMode) => emit("mode-change", nextMode);
|
|
168
|
+
const onFollowLiveChange = (enabled) => emit("follow-live-change", enabled);
|
|
169
|
+
const onSelectionChange = (seats) => emit("selection-change", seats);
|
|
170
|
+
const onObjectSelected = (object) => emit("object-selected", object);
|
|
171
|
+
const onObjectDeselected = (object) => emit("object-deselected", object);
|
|
172
|
+
const onSelectionValidityChange = (state) => emit("selection-validity-change", state);
|
|
173
|
+
const onSelectionValid = (state) => emit("selection-valid", state);
|
|
174
|
+
const onSelectionInvalid = (state) => emit("selection-invalid", state);
|
|
175
|
+
const onSelectionLimit = (max) => emit("selection-limit", max);
|
|
176
|
+
const onFilteredSectionChange = (sections) => emit("filtered-section-change", sections);
|
|
177
|
+
const onAreaClick = (area) => emit("area-click", area);
|
|
178
|
+
const onActionComplete = (result) => emit("action-complete", result);
|
|
179
|
+
const onConnectionChange = (state) => emit("connection-change", state);
|
|
180
|
+
const onRoomStateChange = (state) => emit("room-state-change", state);
|
|
181
|
+
const onError = (error) => emit("error", error);
|
|
182
|
+
const instance = new import_manager.SeatManager({
|
|
183
|
+
container: element,
|
|
184
|
+
apiBase: props.apiBase,
|
|
185
|
+
eventKey: props.eventKey,
|
|
186
|
+
token: props.token,
|
|
187
|
+
tokenExpiresAt: props.tokenExpiresAt,
|
|
188
|
+
mode: props.mode,
|
|
189
|
+
currency: props.currency,
|
|
190
|
+
keepLiveWhileHidden: props.keepLiveWhileHidden,
|
|
191
|
+
followLive: props.followLive,
|
|
192
|
+
capabilities: props.capabilities,
|
|
193
|
+
selectedObjects: props.selectedObjects,
|
|
194
|
+
selectableObjects: props.selectableObjects,
|
|
195
|
+
unavailableObjectsSelectable: props.unavailableObjectsSelectable,
|
|
196
|
+
unavailableObjects: props.unavailableObjects,
|
|
197
|
+
unavailableObjectsReason: props.unavailableObjectsReason,
|
|
198
|
+
categoryPrices: props.categoryPrices,
|
|
199
|
+
maxSelectedObjects: props.maxSelectedObjects,
|
|
200
|
+
numberOfPlacesToSelect: props.numberOfPlacesToSelect,
|
|
201
|
+
isObjectSelectable: props.isObjectSelectable,
|
|
202
|
+
tools: props.tools,
|
|
203
|
+
chrome: props.chrome,
|
|
204
|
+
kpis: props.kpis,
|
|
205
|
+
timeZone: props.timeZone,
|
|
206
|
+
organizationName: props.organizationName,
|
|
207
|
+
sale: props.sale,
|
|
208
|
+
mapInsets: props.mapInsets,
|
|
209
|
+
theme: props.theme,
|
|
210
|
+
// Applied before first paint, so a board asked for light never
|
|
211
|
+
// flashes dark on the way in.
|
|
212
|
+
themeMode: props.themeMode,
|
|
213
|
+
colourBy: props.colourBy,
|
|
214
|
+
focusSection: props.focusSection,
|
|
215
|
+
focusSeat: props.focusSeat,
|
|
216
|
+
focusSeats: props.focusSeats,
|
|
217
|
+
focusCategory: props.focusCategory,
|
|
218
|
+
arrivedFrom: props.arrivedFrom,
|
|
219
|
+
// Only a host that has a trend view / an orders page gets the link.
|
|
220
|
+
// Left unset otherwise, so the room never offers a dead one.
|
|
221
|
+
onOpenTrend: props.onOpenTrend ? (focus) => props.onOpenTrend?.(focus) : void 0,
|
|
222
|
+
onOpenDesigner: props.onOpenDesigner ? () => props.onOpenDesigner?.() : void 0,
|
|
223
|
+
onOpenOrder: props.onOpenOrder ? (order) => props.onOpenOrder?.(order) : void 0,
|
|
224
|
+
onTokenRefresh: tokenRefresh(),
|
|
225
|
+
onReady,
|
|
226
|
+
onTallies,
|
|
227
|
+
onActivity,
|
|
228
|
+
onControlRoom,
|
|
229
|
+
onModeChange,
|
|
230
|
+
onFollowLiveChange,
|
|
231
|
+
onSelectionChange,
|
|
232
|
+
onObjectSelected,
|
|
233
|
+
onObjectDeselected,
|
|
234
|
+
onSelectionValidityChange,
|
|
235
|
+
onSelectionValid,
|
|
236
|
+
onSelectionInvalid,
|
|
237
|
+
onSelectionLimit,
|
|
238
|
+
onFilteredSectionChange,
|
|
239
|
+
onAreaClick,
|
|
240
|
+
onActionComplete,
|
|
241
|
+
onConnectionChange,
|
|
242
|
+
onRoomStateChange,
|
|
243
|
+
onError
|
|
244
|
+
});
|
|
245
|
+
manager.value = instance;
|
|
246
|
+
void instance.render();
|
|
247
|
+
};
|
|
248
|
+
(0, import_vue.watch)(() => [container.value, props.apiBase, props.eventKey], build, {
|
|
249
|
+
immediate: true,
|
|
250
|
+
flush: "post"
|
|
251
|
+
});
|
|
252
|
+
const live = { flush: "post" };
|
|
253
|
+
(0, import_vue.watch)([() => props.token, () => props.tokenExpiresAt], ([token, expiresAt]) => {
|
|
254
|
+
manager.value?.setToken(token, expiresAt);
|
|
255
|
+
}, live);
|
|
256
|
+
(0, import_vue.watch)(() => props.capabilities, (capabilities) => manager.value?.setCapabilities(capabilities), live);
|
|
257
|
+
(0, import_vue.watch)(() => props.currency, (currency) => manager.value?.setCurrency(currency), live);
|
|
258
|
+
(0, import_vue.watch)(() => props.theme, (theme) => manager.value?.setTheme(theme), live);
|
|
259
|
+
(0, import_vue.watch)(
|
|
260
|
+
[() => props.sale?.status, () => props.sale?.tone, () => props.sale?.openedAt, () => props.sale?.pageUrl],
|
|
261
|
+
() => manager.value?.setSale(props.sale),
|
|
262
|
+
live
|
|
263
|
+
);
|
|
264
|
+
(0, import_vue.watch)(
|
|
265
|
+
[() => props.mapInsets?.top, () => props.mapInsets?.right, () => props.mapInsets?.bottom, () => props.mapInsets?.left],
|
|
266
|
+
() => manager.value?.setMapInsets(props.mapInsets ?? null),
|
|
267
|
+
live
|
|
268
|
+
);
|
|
269
|
+
(0, import_vue.watch)(() => props.themeMode, (themeMode) => manager.value?.setThemeMode(themeMode), live);
|
|
270
|
+
(0, import_vue.watch)(() => props.keepLiveWhileHidden, (keep) => manager.value?.setKeepLiveWhileHidden(keep), live);
|
|
271
|
+
(0, import_vue.watch)(() => !!props.onTokenRefresh, () => manager.value?.setTokenRefresh(tokenRefresh()), live);
|
|
272
|
+
(0, import_vue.watch)(() => props.mode, (mode) => {
|
|
273
|
+
if (mode) manager.value?.setMode(mode);
|
|
274
|
+
}, live);
|
|
275
|
+
(0, import_vue.watch)(() => props.followLive, (followLive) => {
|
|
276
|
+
if (followLive != null) manager.value?.setFollowLive(followLive);
|
|
277
|
+
}, live);
|
|
278
|
+
(0, import_vue.watch)(() => props.selectableObjects, (labels) => manager.value?.setSelectableObjects(labels ?? []), live);
|
|
279
|
+
(0, import_vue.watch)(
|
|
280
|
+
() => props.unavailableObjectsSelectable,
|
|
281
|
+
(enabled) => manager.value?.setUnavailableObjectsSelectable(enabled ?? true),
|
|
282
|
+
live
|
|
283
|
+
);
|
|
284
|
+
(0, import_vue.watch)(
|
|
285
|
+
[() => props.unavailableObjects, () => props.unavailableObjectsReason],
|
|
286
|
+
([labels, reason]) => manager.value?.setUnavailableObjects(labels ?? [], reason),
|
|
287
|
+
live
|
|
288
|
+
);
|
|
289
|
+
(0, import_vue.watch)(() => props.categoryPrices, (prices) => manager.value?.setCategoryPrices(prices), live);
|
|
290
|
+
(0, import_vue.watch)(() => props.maxSelectedObjects, (max) => manager.value?.setMaxSelectedObjects(max), live);
|
|
291
|
+
(0, import_vue.watch)(
|
|
292
|
+
() => props.numberOfPlacesToSelect,
|
|
293
|
+
(required) => manager.value?.setNumberOfPlacesToSelect(required),
|
|
294
|
+
live
|
|
295
|
+
);
|
|
296
|
+
(0, import_vue.watch)(() => props.isObjectSelectable, (predicate) => manager.value?.setObjectSelectable(predicate), live);
|
|
297
|
+
(0, import_vue.onBeforeUnmount)(destroy);
|
|
298
|
+
const m = () => manager.value;
|
|
299
|
+
const exposed = {
|
|
300
|
+
setMode: (nextMode) => m()?.setMode(nextMode),
|
|
301
|
+
setToken: (nextToken, expiresAt) => m()?.setToken(nextToken, expiresAt),
|
|
302
|
+
setHeatOverlay: (enabled) => m()?.setHeatOverlay(enabled),
|
|
303
|
+
setFollowLive: (enabled) => m()?.setFollowLive(enabled),
|
|
304
|
+
setTrendWindow: (windowMinutes) => m()?.setTrendWindow(windowMinutes) ?? Promise.reject(new Error("not ready")),
|
|
305
|
+
enterFullscreen: () => m()?.enterFullscreen() ?? Promise.resolve(),
|
|
306
|
+
exitFullscreen: () => m()?.exitFullscreen() ?? Promise.resolve(),
|
|
307
|
+
isFullscreen: () => m()?.isFullscreen() ?? false,
|
|
308
|
+
block: (labels, opts) => m()?.block(labels, opts) ?? Promise.resolve(),
|
|
309
|
+
unblock: (labels) => m()?.unblock(labels) ?? Promise.resolve(),
|
|
310
|
+
unblockAll: () => m()?.unblockAll() ?? Promise.resolve(),
|
|
311
|
+
cancelBooking: (labels, bookingRef) => m()?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),
|
|
312
|
+
setCategory: (categoryKey, labels) => m()?.setCategory(categoryKey, labels) ?? Promise.resolve(),
|
|
313
|
+
setTableBooking: (tableIds, nextMode, bounds) => m()?.setTableBooking(tableIds, nextMode, bounds) ?? Promise.resolve(),
|
|
314
|
+
selectAll: () => m()?.selectAll() ?? [],
|
|
315
|
+
selectSection: (id) => m()?.selectSection(id) ?? [],
|
|
316
|
+
selectByLabels: (labels) => m()?.selectByLabels(labels) ?? [],
|
|
317
|
+
selectObjects: (labels) => m()?.selectObjects(labels) ?? [],
|
|
318
|
+
deselectObjects: (labels) => m()?.deselectObjects(labels) ?? [],
|
|
319
|
+
selectCategories: (keys) => m()?.selectCategories(keys) ?? [],
|
|
320
|
+
deselectCategories: (keys) => m()?.deselectCategories(keys) ?? [],
|
|
321
|
+
setSelectableObjects: (labels) => m()?.setSelectableObjects(labels),
|
|
322
|
+
setUnavailableObjectsSelectable: (enabled) => m()?.setUnavailableObjectsSelectable(enabled),
|
|
323
|
+
setUnavailableObjects: (labels, reason) => m()?.setUnavailableObjects(labels, reason),
|
|
324
|
+
setCategoryPrices: (prices) => m()?.setCategoryPrices(prices),
|
|
325
|
+
setObjectSelectable: (predicate) => m()?.setObjectSelectable(predicate),
|
|
326
|
+
setMaxSelectedObjects: (max) => m()?.setMaxSelectedObjects(max),
|
|
327
|
+
setNumberOfPlacesToSelect: (required) => m()?.setNumberOfPlacesToSelect(required),
|
|
328
|
+
getSelectionValidity: () => m()?.getSelectionValidity() ?? null,
|
|
329
|
+
setFilteredSection: (label) => m()?.setFilteredSection(label) ?? [],
|
|
330
|
+
clearFilteredSection: () => m()?.clearFilteredSection(),
|
|
331
|
+
focusSection: (label) => m()?.focusSection(label) ?? [],
|
|
332
|
+
getFilteredSections: () => m()?.getFilteredSections() ?? [],
|
|
333
|
+
clearSelection: () => m()?.clearSelection(),
|
|
334
|
+
getSelection: () => m()?.getSelection() ?? [],
|
|
335
|
+
getReport: () => m()?.getReport() ?? Promise.reject(new Error("not ready")),
|
|
336
|
+
getControlRoomSnapshot: (windowMinutes) => m()?.getControlRoomSnapshot(windowMinutes) ?? Promise.reject(new Error("not ready")),
|
|
337
|
+
getLog: (opts) => m()?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),
|
|
338
|
+
getConnection: () => m()?.getConnection() ?? null,
|
|
339
|
+
setHoldTtl: (ms) => m()?.setHoldTtl(ms) ?? Promise.resolve(),
|
|
340
|
+
zoomToFit: () => m()?.zoomToFit(),
|
|
341
|
+
showObjects: (labels, name) => m()?.showObjects(labels, name)
|
|
342
|
+
};
|
|
343
|
+
expose(exposed);
|
|
344
|
+
return () => (0, import_vue.h)("div", { ref: container });
|
|
345
|
+
}
|
|
346
|
+
});
|
|
347
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
348
|
+
0 && (module.exports = {
|
|
349
|
+
SeatManager
|
|
350
|
+
});
|
|
351
|
+
//# sourceMappingURL=manager.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/manager.ts","../src/SeatManager.ts"],"sourcesContent":["/**\n * `@seatlayer/vue/manager` — the organizer control room, and nothing else.\n *\n * A separate entry for the same reason as `@seatlayer/js/manager` and\n * `@seatlayer/react/manager`: a buyer app that imports `@seatlayer/vue` must\n * never carry the control room, and a control room must never carry the buyer\n * picker. The package root does not export `SeatManager` at all.\n *\n * The one rule that makes this work: this file, and `./SeatManager` behind it,\n * import from `@seatlayer/js/manager`, never from `@seatlayer/js`. One bare\n * import anywhere in this graph brings the whole buyer SDK back in, and it\n * looks like nothing at all in a diff.\n */\nexport { SeatManager } from './SeatManager';\nexport type { SeatManagerExposed, SeatManagerHandle, SeatManagerProps } from './SeatManager';\nexport type {\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerSale,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n SeatManagerRoomState,\n SeatManagerFilteredSection,\n SeatManagerSelectionValidity,\n SeatManagerCategoryPrice,\n EventTableBookingMode,\n ControlRoomActivityEntry,\n ControlRoomSectionMetric,\n ControlRoomSnapshot,\n} from '@seatlayer/js/manager';\n","import {\n defineComponent,\n h,\n onBeforeUnmount,\n ref,\n shallowRef,\n watch,\n type ExtractPublicPropTypes,\n type PropType,\n type Ref,\n} from 'vue';\nimport {\n SeatManager as CoreSeatManager,\n type SeatManagerOptions,\n type SeatManagerMode,\n type EventScopedManageToken,\n type SeatManagerTallies,\n type SeatManagerActivity,\n type SeatManagerActionResult,\n type SeatManagerArea,\n type SeatManagerConnection,\n type SeatManagerRoomState,\n type SeatManagerFilteredSection,\n type SeatManagerSelectionValidity,\n type SeatManagerCategoryPrice,\n type EventTableBookingMode,\n type ReportResult,\n type ControlRoomSnapshot,\n type LogEntry,\n type ExpandedSeat,\n// `@seatlayer/js/manager`, NOT the bare `@seatlayer/js` barrel. The barrel is the\n// buyer SDK and also exports the cockpit, so importing the cockpit through it\n// would pull SeatPicker, SeatingChart and the buyer engine into every bundle\n// that renders a control room. One bare import anywhere in this graph undoes the\n// split, and it looks like nothing at all in a diff.\n} from '@seatlayer/js/manager';\n\n/**\n * What `ref=\"manager\"` gives you — call these to drive the control room.\n *\n * The same methods as `SeatManagerHandle` in `@seatlayer/react`, so the two\n * wrappers read the same in docs and in code.\n */\nexport interface SeatManagerExposed {\n setMode(mode: SeatManagerMode): void;\n setToken(token: EventScopedManageToken, expiresAt?: number): void;\n setHeatOverlay(enabled: boolean): void;\n setFollowLive(enabled: boolean): void;\n setTrendWindow(windowMinutes: number): Promise<ControlRoomSnapshot>;\n enterFullscreen(): Promise<void>;\n exitFullscreen(): Promise<void>;\n isFullscreen(): boolean;\n block(labels?: string[], opts?: { releaseAt?: number; reason?: string }): Promise<void>;\n unblock(labels?: string[]): Promise<void>;\n unblockAll(): Promise<void>;\n cancelBooking(labels: string[], bookingRef: string): Promise<void>;\n setCategory(categoryKey: string, labels?: string[]): Promise<void>;\n setTableBooking(\n tableIds: string[],\n mode: EventTableBookingMode,\n bounds?: { minOccupancy?: number; maxOccupancy?: number },\n ): Promise<void>;\n selectAll(): ExpandedSeat[];\n selectSection(sectionId: string): ExpandedSeat[];\n selectByLabels(labels: string[]): ExpandedSeat[];\n selectObjects(labels: string[]): ExpandedSeat[];\n deselectObjects(labels: string[]): ExpandedSeat[];\n selectCategories(keys: string[]): ExpandedSeat[];\n deselectCategories(keys: string[]): ExpandedSeat[];\n setSelectableObjects(labels: string[]): void;\n setUnavailableObjectsSelectable(enabled: boolean): void;\n /** Replace the labels shown as unavailable (and their hover word) without remounting. */\n setUnavailableObjects(labels: readonly string[], reason?: string): void;\n /** Replace the prices the map's hover shows: a map overrides, null hides, undefined uses the chart's. */\n setCategoryPrices(prices: Record<string, SeatManagerCategoryPrice> | null | undefined): void;\n setObjectSelectable(predicate: SeatManagerOptions['isObjectSelectable']): void;\n setMaxSelectedObjects(max: number | undefined): void;\n setNumberOfPlacesToSelect(required: number | undefined): void;\n getSelectionValidity(): SeatManagerSelectionValidity | null;\n setFilteredSection(label: string): SeatManagerFilteredSection[];\n clearFilteredSection(): void;\n /** Frame matching sections in any mode, without filtering or touching the selection. */\n focusSection(label: string): SeatManagerFilteredSection[];\n getFilteredSections(): SeatManagerFilteredSection[];\n clearSelection(): void;\n getSelection(): ExpandedSeat[];\n getReport(): Promise<ReportResult>;\n getControlRoomSnapshot(windowMinutes?: number): Promise<ControlRoomSnapshot>;\n getLog(opts?: { limit?: number; before?: number }): Promise<{ entries: LogEntry[]; nextBefore: number | null }>;\n setHoldTtl(ms: number | null): Promise<void>;\n /**\n * Realtime link state plus the \"as of\" behind the numbers on screen. Null\n * only before the manager has mounted. Pair with `@connection-change`: the\n * event gives the edges, this gives the answer on demand.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n /** Light these seats and frame them, named in the legend; null clears. */\n showObjects(labels: readonly string[] | null, name?: string): void;\n}\n\n/** The same handle under React's name, for code shared between the two. */\nexport type SeatManagerHandle = SeatManagerExposed;\n\ntype Opt<K extends keyof SeatManagerOptions> = SeatManagerOptions[K];\n\nconst seatManagerProps = {\n /** Event to manage. Changing it rebuilds the board. */\n eventKey: { type: String, required: true },\n /** API base URL. Changing it rebuilds the board. */\n apiBase: { type: String, default: undefined },\n /** Short-lived, event-scoped `mse_` grant from your backend. Live. */\n token: { type: String as PropType<EventScopedManageToken>, required: true },\n /** When `token` expires, epoch ms. Live. */\n tokenExpiresAt: { type: Number, default: undefined },\n /** Mint a fresh grant before the current one expires. Live. */\n onTokenRefresh: { type: Function as PropType<Opt<'onTokenRefresh'>>, default: undefined },\n /** The tool the board shows. Live. */\n mode: { type: String as PropType<SeatManagerMode>, default: undefined },\n /** Which tools the board offers. Read once. */\n tools: { type: Array as PropType<SeatManagerMode[]>, default: undefined },\n /** `minimal` shows just the map. Read once. */\n chrome: { type: String as PropType<Opt<'chrome'>>, default: undefined },\n /** What the token may do. Live. */\n capabilities: { type: Array as PropType<Opt<'capabilities'>>, default: undefined },\n /** Fallback currency for money. Live. */\n currency: { type: String, default: undefined },\n /** Colour overrides. Live. */\n theme: { type: Object as PropType<Opt<'theme'>>, default: undefined },\n /** `light`, `dark` or `auto`. Applied before first paint, then live. */\n themeMode: { type: String as PropType<Opt<'themeMode'>>, default: undefined },\n /** Keep the realtime link open while the tab is hidden. Live. */\n keepLiveWhileHidden: { type: Boolean, default: undefined },\n /** Follow new bookings on the map. Live. */\n followLive: { type: Boolean, default: undefined },\n /** Seats selected once the board loads. Read once. */\n selectedObjects: { type: Array as PropType<string[]>, default: undefined },\n /** Seats the operator may select. Live. */\n selectableObjects: { type: Array as PropType<string[]>, default: undefined },\n /** Whether unavailable seats can be selected. Live. */\n unavailableObjectsSelectable: { type: Boolean, default: undefined },\n /** Seats shown as unavailable. Live. */\n unavailableObjects: { type: Array as PropType<readonly string[]>, default: undefined },\n /** The hover word for `unavailableObjects`. Live. */\n unavailableObjectsReason: { type: String, default: undefined },\n /** Prices the map's hover shows: a map overrides, null hides. Live. */\n categoryPrices: {\n type: Object as PropType<Record<string, SeatManagerCategoryPrice> | null>,\n default: undefined,\n },\n /** Cap on the selection. Live. */\n maxSelectedObjects: { type: Number, default: undefined },\n /** Exact count a valid selection needs. Live. */\n numberOfPlacesToSelect: { type: Number, default: undefined },\n /** Per-seat selectability rule. Live. */\n isObjectSelectable: { type: Function as PropType<Opt<'isObjectSelectable'>>, default: undefined },\n /** False when your own header shows the numbers. Read once. */\n kpis: { type: Boolean, default: undefined },\n /** The event's clock for every time the room shows. Read once. */\n timeZone: { type: String, default: undefined },\n /** Shown in \"Ask an admin of …\". Read once. */\n organizationName: { type: String, default: undefined },\n /** What you know about the sale. Live, compared by value. */\n sale: { type: Object as PropType<Opt<'sale'>>, default: undefined },\n /** Room your own overlays take over the map, in px. Live, compared by value. */\n mapInsets: { type: Object as PropType<Opt<'mapInsets'>>, default: undefined },\n /** What the map's colours mean when the room opens. Read once. */\n colourBy: { type: String as PropType<Opt<'colourBy'>>, default: undefined },\n /** Open on this section. Read once. */\n focusSection: { type: String, default: undefined },\n /** Open on this seat. Read once. */\n focusSeat: { type: String, default: undefined },\n /** Open on these seats (an order's seats). Read once. */\n focusSeats: { type: Array as PropType<string[]>, default: undefined },\n /** Open on this category. Read once. */\n focusCategory: { type: String, default: undefined },\n /** Where the operator came from, for the way back. Read once. */\n arrivedFrom: { type: Object as PropType<Opt<'arrivedFrom'>>, default: undefined },\n /** Open one of your orders. Only when given does the room offer \"Open order\". */\n onOpenOrder: { type: Function as PropType<Opt<'onOpenOrder'>>, default: undefined },\n /** Open your trend view for a number. Only when given does the room link to it. */\n onOpenTrend: { type: Function as PropType<Opt<'onOpenTrend'>>, default: undefined },\n onOpenDesigner: { type: Function as PropType<Opt<'onOpenDesigner'>>, default: undefined },\n} as const;\n\n/**\n * The props `SeatManager` takes: every `SeatManagerOptions` field except\n * `container` and the callbacks that are Vue events.\n */\nexport type SeatManagerProps = ExtractPublicPropTypes<typeof seatManagerProps>;\n\n/**\n * Vue 3 wrapper around the organizer control room from `@seatlayer/js/manager`.\n *\n * Give the component a size (it fills its box) and the manager lays out the\n * live map, the numbers and the rails inside it. It is rebuilt only when\n * `eventKey` or `apiBase` changes. Token, capabilities, theme, currency, sale\n * facts, map insets, selection rules and liveness are updated in place, so a\n * parent re-render never tears down a live board. The same props are live as\n * in `@seatlayer/react`; every other option is read once when the board is built.\n *\n * Callbacks that only report something are Vue events (`@room-state-change`).\n * Three are props, because the room needs to know whether you passed one or\n * needs a value back: `onTokenRefresh` returns the new token, and the room only\n * offers \"Open order\" and the trend link when `onOpenOrder` / `onOpenTrend` are\n * given. Vue routes `@open-order=\"fn\"` to the `onOpenOrder` prop, so both\n * spellings work.\n *\n * @example\n * ```vue\n * <script setup lang=\"ts\">\n * import { ref } from 'vue';\n * import { SeatManager, type SeatManagerExposed } from '@seatlayer/vue/manager';\n *\n * const manager = ref<SeatManagerExposed | null>(null);\n * </script>\n *\n * <template>\n * <SeatManager\n * ref=\"manager\"\n * event-key=\"ev_9f3a\"\n * :token=\"session.token\"\n * :token-expires-at=\"session.expiresAt\"\n * :on-token-refresh=\"mintManageSession\"\n * style=\"width: 100%; height: calc(100vh - 96px)\"\n * @room-state-change=\"onRoomState\"\n * />\n * </template>\n * ```\n */\nexport const SeatManager = defineComponent({\n name: 'SeatLayerSeatManager',\n\n props: seatManagerProps,\n\n emits: {\n /** The board has loaded. */\n ready: () => true,\n /** Live numbers changed. */\n tallies: (_tallies: SeatManagerTallies) => true,\n /** Something happened on the event. */\n activity: (_activity: SeatManagerActivity) => true,\n /** A fresh control room snapshot. */\n 'control-room': (_snapshot: ControlRoomSnapshot) => true,\n /** The operator switched tools. */\n 'mode-change': (_mode: SeatManagerMode) => true,\n /** Follow-live was switched on or off. */\n 'follow-live-change': (_enabled: boolean) => true,\n /** The selection changed. */\n 'selection-change': (_seats: ExpandedSeat[]) => true,\n /** One seat was selected. */\n 'object-selected': (_object: ExpandedSeat) => true,\n /** One seat was deselected. */\n 'object-deselected': (_object: ExpandedSeat) => true,\n /** Exact-count state changed. */\n 'selection-validity-change': (_state: SeatManagerSelectionValidity) => true,\n /** The selection became valid. */\n 'selection-valid': (_state: SeatManagerSelectionValidity) => true,\n /** The selection became invalid. */\n 'selection-invalid': (_state: SeatManagerSelectionValidity) => true,\n /** The selection cap was reached. */\n 'selection-limit': (_max: number) => true,\n /** The filtered sections changed. */\n 'filtered-section-change': (_sections: SeatManagerFilteredSection[]) => true,\n /** A general-admission area was clicked. */\n 'area-click': (_area: SeatManagerArea) => true,\n /** A block, unblock or other action finished. */\n 'action-complete': (_result: SeatManagerActionResult) => true,\n /** The realtime link changed state. */\n 'connection-change': (_state: SeatManagerConnection) => true,\n /** The room changed state: connecting, live, paused, offline or ended. */\n 'room-state-change': (_state: SeatManagerRoomState) => true,\n /** Something failed. */\n error: (_error: unknown) => true,\n },\n\n setup(props, { emit, expose }) {\n const container: Ref<HTMLDivElement | null> = ref(null);\n // shallowRef: the manager owns a canvas and a large scene graph; a deep\n // reactive proxy would have Vue walk all of it on every touch.\n const manager = shallowRef<CoreSeatManager | null>(null);\n\n const destroy = () => {\n manager.value?.destroy();\n manager.value = null;\n };\n\n // The three function props are read through `props` at call time, so a host\n // that swaps its handler never has to rebuild the board.\n const tokenRefresh = (): Opt<'onTokenRefresh'> =>\n props.onTokenRefresh ? async () => props.onTokenRefresh!() : undefined;\n\n const build = () => {\n const element = container.value;\n if (!element) return;\n\n destroy();\n\n // Named first rather than inline in the options literal: inline,\n // TypeScript resolves `emit`'s overloads while contextually typing the\n // literal and collapses to the last signature.\n const onReady = () => emit('ready');\n const onTallies = (tallies: SeatManagerTallies) => emit('tallies', tallies);\n const onActivity = (activity: SeatManagerActivity) => emit('activity', activity);\n const onControlRoom = (snapshot: ControlRoomSnapshot) => emit('control-room', snapshot);\n const onModeChange = (nextMode: SeatManagerMode) => emit('mode-change', nextMode);\n const onFollowLiveChange = (enabled: boolean) => emit('follow-live-change', enabled);\n const onSelectionChange = (seats: ExpandedSeat[]) => emit('selection-change', seats);\n const onObjectSelected = (object: ExpandedSeat) => emit('object-selected', object);\n const onObjectDeselected = (object: ExpandedSeat) => emit('object-deselected', object);\n const onSelectionValidityChange = (state: SeatManagerSelectionValidity) =>\n emit('selection-validity-change', state);\n const onSelectionValid = (state: SeatManagerSelectionValidity) => emit('selection-valid', state);\n const onSelectionInvalid = (state: SeatManagerSelectionValidity) => emit('selection-invalid', state);\n const onSelectionLimit = (max: number) => emit('selection-limit', max);\n const onFilteredSectionChange = (sections: SeatManagerFilteredSection[]) =>\n emit('filtered-section-change', sections);\n const onAreaClick = (area: SeatManagerArea) => emit('area-click', area);\n const onActionComplete = (result: SeatManagerActionResult) => emit('action-complete', result);\n const onConnectionChange = (state: SeatManagerConnection) => emit('connection-change', state);\n const onRoomStateChange = (state: SeatManagerRoomState) => emit('room-state-change', state);\n const onError = (error: unknown) => emit('error', error);\n\n const instance = new CoreSeatManager({\n container: element,\n apiBase: props.apiBase,\n eventKey: props.eventKey,\n token: props.token,\n tokenExpiresAt: props.tokenExpiresAt,\n mode: props.mode,\n currency: props.currency,\n keepLiveWhileHidden: props.keepLiveWhileHidden,\n followLive: props.followLive,\n capabilities: props.capabilities,\n selectedObjects: props.selectedObjects,\n selectableObjects: props.selectableObjects,\n unavailableObjectsSelectable: props.unavailableObjectsSelectable,\n unavailableObjects: props.unavailableObjects,\n unavailableObjectsReason: props.unavailableObjectsReason,\n categoryPrices: props.categoryPrices,\n maxSelectedObjects: props.maxSelectedObjects,\n numberOfPlacesToSelect: props.numberOfPlacesToSelect,\n isObjectSelectable: props.isObjectSelectable,\n tools: props.tools,\n chrome: props.chrome,\n kpis: props.kpis,\n timeZone: props.timeZone,\n organizationName: props.organizationName,\n sale: props.sale,\n mapInsets: props.mapInsets,\n theme: props.theme,\n // Applied before first paint, so a board asked for light never\n // flashes dark on the way in.\n themeMode: props.themeMode,\n colourBy: props.colourBy,\n focusSection: props.focusSection,\n focusSeat: props.focusSeat,\n focusSeats: props.focusSeats,\n focusCategory: props.focusCategory,\n arrivedFrom: props.arrivedFrom,\n // Only a host that has a trend view / an orders page gets the link.\n // Left unset otherwise, so the room never offers a dead one.\n onOpenTrend: props.onOpenTrend ? (focus) => props.onOpenTrend?.(focus) : undefined,\n onOpenDesigner: props.onOpenDesigner ? () => props.onOpenDesigner?.() : undefined,\n onOpenOrder: props.onOpenOrder ? (order) => props.onOpenOrder?.(order) : undefined,\n onTokenRefresh: tokenRefresh(),\n onReady,\n onTallies,\n onActivity,\n onControlRoom,\n onModeChange,\n onFollowLiveChange,\n onSelectionChange,\n onObjectSelected,\n onObjectDeselected,\n onSelectionValidityChange,\n onSelectionValid,\n onSelectionInvalid,\n onSelectionLimit,\n onFilteredSectionChange,\n onAreaClick,\n onActionComplete,\n onConnectionChange,\n onRoomStateChange,\n onError,\n });\n\n manager.value = instance;\n void instance.render();\n };\n\n // Rebuild only on identity. `flush: 'post'` so the container exists on the\n // first run.\n watch(() => [container.value, props.apiBase, props.eventKey], build, {\n immediate: true,\n flush: 'post',\n });\n\n // Live props: each reaches the running board through its setter, the way\n // the React wrapper's effects do, so camera, selection, socket and DOM\n // survive. Multi-source watches compare each source on its own, which is\n // what makes `sale` and `mapInsets` compare by value.\n const live = { flush: 'post' } as const;\n\n watch([() => props.token, () => props.tokenExpiresAt], ([token, expiresAt]) => {\n manager.value?.setToken(token, expiresAt);\n }, live);\n watch(() => props.capabilities, (capabilities) => manager.value?.setCapabilities(capabilities), live);\n watch(() => props.currency, (currency) => manager.value?.setCurrency(currency), live);\n watch(() => props.theme, (theme) => manager.value?.setTheme(theme), live);\n watch(\n [() => props.sale?.status, () => props.sale?.tone, () => props.sale?.openedAt, () => props.sale?.pageUrl],\n () => manager.value?.setSale(props.sale),\n live,\n );\n watch(\n [() => props.mapInsets?.top, () => props.mapInsets?.right, () => props.mapInsets?.bottom, () => props.mapInsets?.left],\n () => manager.value?.setMapInsets(props.mapInsets ?? null),\n live,\n );\n watch(() => props.themeMode, (themeMode) => manager.value?.setThemeMode(themeMode), live);\n watch(() => props.keepLiveWhileHidden, (keep) => manager.value?.setKeepLiveWhileHidden(keep), live);\n watch(() => !!props.onTokenRefresh, () => manager.value?.setTokenRefresh(tokenRefresh()), live);\n watch(() => props.mode, (mode) => {\n if (mode) manager.value?.setMode(mode);\n }, live);\n watch(() => props.followLive, (followLive) => {\n if (followLive != null) manager.value?.setFollowLive(followLive);\n }, live);\n watch(() => props.selectableObjects, (labels) => manager.value?.setSelectableObjects(labels ?? []), live);\n watch(\n () => props.unavailableObjectsSelectable,\n (enabled) => manager.value?.setUnavailableObjectsSelectable(enabled ?? true),\n live,\n );\n watch(\n [() => props.unavailableObjects, () => props.unavailableObjectsReason],\n ([labels, reason]) => manager.value?.setUnavailableObjects(labels ?? [], reason),\n live,\n );\n watch(() => props.categoryPrices, (prices) => manager.value?.setCategoryPrices(prices), live);\n watch(() => props.maxSelectedObjects, (max) => manager.value?.setMaxSelectedObjects(max), live);\n watch(\n () => props.numberOfPlacesToSelect,\n (required) => manager.value?.setNumberOfPlacesToSelect(required),\n live,\n );\n watch(() => props.isObjectSelectable, (predicate) => manager.value?.setObjectSelectable(predicate), live);\n\n onBeforeUnmount(destroy);\n\n // Built once and read live: it asks for the current instance on each call,\n // so it survives every rebuild.\n const m = () => manager.value;\n const exposed: SeatManagerExposed = {\n setMode: (nextMode) => m()?.setMode(nextMode),\n setToken: (nextToken, expiresAt) => m()?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => m()?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => m()?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => m()?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => m()?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => m()?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => m()?.isFullscreen() ?? false,\n block: (labels, opts) => m()?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => m()?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => m()?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => m()?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => m()?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => m()?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => m()?.selectAll() ?? [],\n selectSection: (id) => m()?.selectSection(id) ?? [],\n selectByLabels: (labels) => m()?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => m()?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => m()?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => m()?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => m()?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => m()?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => m()?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => m()?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => m()?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => m()?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => m()?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => m()?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => m()?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => m()?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => m()?.clearFilteredSection(),\n focusSection: (label) => m()?.focusSection(label) ?? [],\n getFilteredSections: () => m()?.getFilteredSections() ?? [],\n clearSelection: () => m()?.clearSelection(),\n getSelection: () => m()?.getSelection() ?? [],\n getReport: () => m()?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => m()?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => m()?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => m()?.getConnection() ?? null,\n setHoldTtl: (ms) => m()?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => m()?.zoomToFit(),\n showObjects: (labels, name) => m()?.showObjects(labels, name),\n };\n expose(exposed);\n\n return () => h('div', { ref: container });\n },\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,iBAUO;AACP,qBAwBO;AAuEP,IAAM,mBAAmB;AAAA;AAAA,EAEvB,UAAU,EAAE,MAAM,QAAQ,UAAU,KAAK;AAAA;AAAA,EAEzC,SAAS,EAAE,MAAM,QAAQ,SAAS,OAAU;AAAA;AAAA,EAE5C,OAAO,EAAE,MAAM,QAA4C,UAAU,KAAK;AAAA;AAAA,EAE1E,gBAAgB,EAAE,MAAM,QAAQ,SAAS,OAAU;AAAA;AAAA,EAEnD,gBAAgB,EAAE,MAAM,UAA6C,SAAS,OAAU;AAAA;AAAA,EAExF,MAAM,EAAE,MAAM,QAAqC,SAAS,OAAU;AAAA;AAAA,EAEtE,OAAO,EAAE,MAAM,OAAsC,SAAS,OAAU;AAAA;AAAA,EAExE,QAAQ,EAAE,MAAM,QAAmC,SAAS,OAAU;AAAA;AAAA,EAEtE,c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