@seatlayer/react 0.104.1 → 0.105.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.
@@ -33,7 +33,9 @@ var SeatManager = forwardRef(
33
33
  numberOfPlacesToSelect,
34
34
  isObjectSelectable,
35
35
  tools,
36
- chrome
36
+ chrome,
37
+ kpis,
38
+ timeZone
37
39
  } = props;
38
40
  const containerRef = useRef(null);
39
41
  const managerRef = useRef(null);
@@ -69,11 +71,29 @@ var SeatManager = forwardRef(
69
71
  // `minimal` = just the map (a host with its own search, totals and
70
72
  // actions). Read once at mount, like `tools`.
71
73
  chrome,
74
+ // false when the host shows the numbers in its own header (CR04). Read once at mount.
75
+ kpis,
76
+ // The event's clock for every time the room shows (audit M8). Read once at mount.
77
+ timeZone,
78
+ // "Ask an admin of <organisation>" (CR16). Read once at mount.
79
+ organizationName: callbacks.current.organizationName,
80
+ // The host's sale facts (CR18); updated in place below.
81
+ sale: callbacks.current.sale,
82
+ // The host's overlays over the map (CR18 resale strip); updated in place below.
83
+ mapInsets: callbacks.current.mapInsets,
72
84
  theme: callbacks.current.theme,
73
85
  // Light / dark / follow the operator's own preference. Applied before
74
86
  // first paint so a cockpit asked for light never flashes the war-room
75
87
  // dark on the way in.
76
88
  themeMode: callbacks.current.themeMode,
89
+ // Where a link opens the room (board CR24): read once at mount, like `mode`.
90
+ colourBy: callbacks.current.colourBy,
91
+ focusSection: callbacks.current.focusSection,
92
+ focusSeat: callbacks.current.focusSeat,
93
+ focusSeats: callbacks.current.focusSeats,
94
+ focusCategory: callbacks.current.focusCategory,
95
+ arrivedFrom: callbacks.current.arrivedFrom,
96
+ onOpenTrend: callbacks.current.onOpenTrend ? (focus) => callbacks.current.onOpenTrend?.(focus) : void 0,
77
97
  onReady: () => callbacks.current.onReady?.(),
78
98
  onTallies: (t) => callbacks.current.onTallies?.(t),
79
99
  onActivity: (activity) => callbacks.current.onActivity?.(activity),
@@ -90,8 +110,11 @@ var SeatManager = forwardRef(
90
110
  onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),
91
111
  onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),
92
112
  onAreaClick: (area) => callbacks.current.onAreaClick?.(area),
113
+ // Only a host that can show an order gets the search's "Open order".
114
+ onOpenOrder: callbacks.current.onOpenOrder ? (order) => callbacks.current.onOpenOrder?.(order) : void 0,
93
115
  onActionComplete: (r) => callbacks.current.onActionComplete?.(r),
94
116
  onConnectionChange: (s) => callbacks.current.onConnectionChange?.(s),
117
+ onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),
95
118
  onError: (e) => callbacks.current.onError?.(e)
96
119
  });
97
120
  managerRef.current = manager;
@@ -113,6 +136,14 @@ var SeatManager = forwardRef(
113
136
  useEffect(() => {
114
137
  managerRef.current?.setTheme(props.theme);
115
138
  }, [props.theme]);
139
+ const sale = props.sale;
140
+ useEffect(() => {
141
+ managerRef.current?.setSale(sale);
142
+ }, [sale?.status, sale?.tone, sale?.openedAt, sale?.pageUrl]);
143
+ const insets = props.mapInsets;
144
+ useEffect(() => {
145
+ managerRef.current?.setMapInsets(insets ?? null);
146
+ }, [insets?.top, insets?.right, insets?.bottom, insets?.left]);
116
147
  useEffect(() => {
117
148
  managerRef.current?.setThemeMode(props.themeMode);
118
149
  }, [props.themeMode]);
@@ -194,7 +225,8 @@ var SeatManager = forwardRef(
194
225
  getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),
195
226
  getConnection: () => managerRef.current?.getConnection() ?? null,
196
227
  setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),
197
- zoomToFit: () => managerRef.current?.zoomToFit()
228
+ zoomToFit: () => managerRef.current?.zoomToFit(),
229
+ showObjects: (labels, name) => managerRef.current?.showObjects(labels, name)
198
230
  }),
199
231
  []
200
232
  );
@@ -205,4 +237,4 @@ var SeatManager = forwardRef(
205
237
  export {
206
238
  SeatManager
207
239
  };
208
- //# sourceMappingURL=chunk-UELO5MKZ.js.map
240
+ //# sourceMappingURL=chunk-JHSUDJXT.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/SeatManager.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatManager as CoreSeatManager,\n type SeatManagerOptions,\n type SeatManagerMode,\n type EventScopedManageToken,\n type SeatManagerTallies,\n type SeatManagerSale,\n type SeatManagerActivity,\n type SeatManagerActionResult,\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 a\n// buyer SDK that also exports the cockpit, so importing the cockpit through it\n// drags SeatPicker, SeatingChart, EmbeddedDesigner and the engine code only\n// those reach into every bundle that renders a control room. See the header of\n// `@seatlayer/js`'s `src/manager.ts` for the measurement.\n} from '@seatlayer/js/manager';\n\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} from '@seatlayer/js/manager';\n\n/** Imperative handle for the organizer manage board. */\nexport interface SeatManagerHandle {\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.\n *\n * Null only before the manager has mounted. Pair with the `onConnectionChange`\n * prop: the callback gives the edges, this gives the answer on demand — which\n * is what a host needs on tab focus, when no transition is coming.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n /** Light these seats and frame them, named in the legend; null clears (CR18). */\n showObjects(labels: readonly string[] | null, name?: string): void;\n}\n\nexport interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic {@link CoreSeatManager}. Give the\n * wrapping div a size (it fills its box — a war-room board wants a big one) and\n * the manager lays out the live map + KPI bar + rails inside it. Rebuilt only\n * when the event identity / apiBase changes. Tokens, declared capabilities,\n * theme, fallback currency, background liveness, and callbacks are updated in\n * place without tearing the board down.\n */\nexport const SeatManager = forwardRef<SeatManagerHandle, SeatManagerProps>(\n function SeatManager(props, ref) {\n const {\n className, style, apiBase, eventKey, token, tokenExpiresAt,\n mode, currency, keepLiveWhileHidden, followLive, capabilities,\n selectedObjects, selectableObjects, unavailableObjectsSelectable,\n unavailableObjects, unavailableObjectsReason, categoryPrices,\n maxSelectedObjects, numberOfPlacesToSelect, isObjectSelectable, tools, chrome, kpis, timeZone,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const managerRef = useRef<CoreSeatManager | null>(null);\n\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const manager = new CoreSeatManager({\n container: el,\n apiBase,\n eventKey,\n token,\n tokenExpiresAt,\n mode,\n currency,\n keepLiveWhileHidden,\n followLive,\n capabilities,\n selectedObjects,\n selectableObjects,\n unavailableObjectsSelectable,\n unavailableObjects,\n unavailableObjectsReason,\n categoryPrices,\n maxSelectedObjects,\n numberOfPlacesToSelect,\n isObjectSelectable,\n // Which tools the cockpit offers (Watch / Manage / Host tools). Read\n // once at mount like `capabilities`: hosts decide this per surface,\n // not per render.\n tools,\n // `minimal` = just the map (a host with its own search, totals and\n // actions). Read once at mount, like `tools`.\n chrome,\n // false when the host shows the numbers in its own header (CR04). Read once at mount.\n kpis,\n // The event's clock for every time the room shows (audit M8). Read once at mount.\n timeZone,\n // \"Ask an admin of <organisation>\" (CR16). Read once at mount.\n organizationName: callbacks.current.organizationName,\n // The host's sale facts (CR18); updated in place below.\n sale: callbacks.current.sale,\n // The host's overlays over the map (CR18 resale strip); updated in place below.\n mapInsets: callbacks.current.mapInsets,\n theme: callbacks.current.theme,\n // Light / dark / follow the operator's own preference. Applied before\n // first paint so a cockpit asked for light never flashes the war-room\n // dark on the way in.\n themeMode: callbacks.current.themeMode,\n // Where a link opens the room (board CR24): read once at mount, like `mode`.\n colourBy: callbacks.current.colourBy,\n focusSection: callbacks.current.focusSection,\n focusSeat: callbacks.current.focusSeat,\n focusSeats: callbacks.current.focusSeats,\n focusCategory: callbacks.current.focusCategory,\n arrivedFrom: callbacks.current.arrivedFrom,\n onOpenTrend: callbacks.current.onOpenTrend ? (focus) => callbacks.current.onOpenTrend?.(focus) : undefined,\n onReady: () => callbacks.current.onReady?.(),\n onTallies: (t: SeatManagerTallies) => callbacks.current.onTallies?.(t),\n onActivity: (activity: SeatManagerActivity) => callbacks.current.onActivity?.(activity),\n onControlRoom: (snapshot: ControlRoomSnapshot) => callbacks.current.onControlRoom?.(snapshot),\n onTokenRefresh: callbacks.current.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n onModeChange: (nextMode) => callbacks.current.onModeChange?.(nextMode),\n onFollowLiveChange: (enabled) => callbacks.current.onFollowLiveChange?.(enabled),\n onSelectionChange: (s: ExpandedSeat[]) => callbacks.current.onSelectionChange?.(s),\n onObjectSelected: (object) => callbacks.current.onObjectSelected?.(object),\n onObjectDeselected: (object) => callbacks.current.onObjectDeselected?.(object),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (state) => callbacks.current.onSelectionValid?.(state),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),\n onAreaClick: (area) => callbacks.current.onAreaClick?.(area),\n // Only a host that can show an order gets the search's \"Open order\".\n onOpenOrder: callbacks.current.onOpenOrder ? (order: { id: string; displayRef: string }) => callbacks.current.onOpenOrder?.(order) : undefined,\n onActionComplete: (r: SeatManagerActionResult) => callbacks.current.onActionComplete?.(r),\n onConnectionChange: (s: SeatManagerConnection) => callbacks.current.onConnectionChange?.(s),\n onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),\n onError: (e: unknown) => callbacks.current.onError?.(e),\n });\n managerRef.current = manager;\n void manager.render();\n\n return () => {\n manager.destroy();\n managerRef.current = null;\n };\n // Rebuild only on identity change (not on every callback change).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiBase, eventKey]);\n\n // Rotate credentials without losing camera, selection, realtime state or DOM.\n useEffect(() => {\n managerRef.current?.setToken(token, tokenExpiresAt);\n }, [token, tokenExpiresAt]);\n\n useEffect(() => {\n managerRef.current?.setCapabilities(capabilities);\n }, [capabilities]);\n\n useEffect(() => {\n managerRef.current?.setCurrency(currency);\n }, [currency]);\n\n useEffect(() => {\n managerRef.current?.setTheme(props.theme);\n }, [props.theme]);\n\n // By value: a host that rebuilds the object each render costs no repaint.\n const sale = props.sale;\n useEffect(() => {\n managerRef.current?.setSale(sale);\n }, [sale?.status, sale?.tone, sale?.openedAt, sale?.pageUrl]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // By value: a host that rebuilds the object each render costs no refit.\n const insets = props.mapInsets;\n useEffect(() => {\n managerRef.current?.setMapInsets(insets ?? null);\n }, [insets?.top, insets?.right, insets?.bottom, insets?.left]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // Reflected in place: the cockpit keeps the operator's selection, the\n // camera and the realtime socket across a mode change.\n useEffect(() => {\n managerRef.current?.setThemeMode(props.themeMode);\n }, [props.themeMode]);\n\n useEffect(() => {\n managerRef.current?.setKeepLiveWhileHidden(keepLiveWhileHidden);\n }, [keepLiveWhileHidden]);\n\n useEffect(() => {\n managerRef.current?.setTokenRefresh(\n props.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n );\n }, [!!props.onTokenRefresh]);\n\n // Reflect a controlled `mode` prop onto the live instance without rebuilding.\n useEffect(() => {\n if (mode) managerRef.current?.setMode(mode);\n }, [mode]);\n\n useEffect(() => {\n if (followLive != null) managerRef.current?.setFollowLive(followLive);\n }, [followLive]);\n\n useEffect(() => {\n managerRef.current?.setSelectableObjects(selectableObjects ?? []);\n }, [selectableObjects]);\n\n useEffect(() => {\n managerRef.current?.setUnavailableObjectsSelectable(unavailableObjectsSelectable ?? true);\n }, [unavailableObjectsSelectable]);\n\n // Repainted in place: the listed seats change colour, nothing remounts.\n // The manager ignores a list with the same labels, so a host that rebuilds\n // the array each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);\n }, [unavailableObjects, unavailableObjectsReason]);\n\n // Hover prices change in place. The renderer ignores an equal price map,\n // so a host that rebuilds the object each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setCategoryPrices(categoryPrices);\n }, [categoryPrices]);\n\n useEffect(() => {\n managerRef.current?.setMaxSelectedObjects(maxSelectedObjects);\n }, [maxSelectedObjects]);\n\n useEffect(() => {\n managerRef.current?.setNumberOfPlacesToSelect(numberOfPlacesToSelect);\n }, [numberOfPlacesToSelect]);\n\n useEffect(() => {\n managerRef.current?.setObjectSelectable(isObjectSelectable);\n }, [isObjectSelectable]);\n\n useImperativeHandle(\n ref,\n (): SeatManagerHandle => ({\n setMode: (m) => managerRef.current?.setMode(m),\n setToken: (nextToken, expiresAt) => managerRef.current?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => managerRef.current?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => managerRef.current?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => managerRef.current?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => managerRef.current?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => managerRef.current?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => managerRef.current?.isFullscreen() ?? false,\n block: (labels, opts) => managerRef.current?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => managerRef.current?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => managerRef.current?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => managerRef.current?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => managerRef.current?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => managerRef.current?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => managerRef.current?.selectAll() ?? [],\n selectSection: (id) => managerRef.current?.selectSection(id) ?? [],\n selectByLabels: (labels) => managerRef.current?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => managerRef.current?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => managerRef.current?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => managerRef.current?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => managerRef.current?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => managerRef.current?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => managerRef.current?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => managerRef.current?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => managerRef.current?.clearFilteredSection(),\n focusSection: (label) => managerRef.current?.focusSection(label) ?? [],\n getFilteredSections: () => managerRef.current?.getFilteredSections() ?? [],\n clearSelection: () => managerRef.current?.clearSelection(),\n getSelection: () => managerRef.current?.getSelection() ?? [],\n getReport: () => managerRef.current?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => managerRef.current?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => managerRef.current?.getConnection() ?? null,\n setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => managerRef.current?.zoomToFit(),\n showObjects: (labels, name) => managerRef.current?.showObjects(labels, name),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE,eAAe;AAAA,OAuBV;AA+UI;AAnPJ,IAAM,cAAc;AAAA,EACzB,SAASA,aAAY,OAAO,KAAK;AAC/B,UAAM;AAAA,MACJ;AAAA,MAAW;AAAA,MAAO;AAAA,MAAS;AAAA,MAAU;AAAA,MAAO;AAAA,MAC5C;AAAA,MAAM;AAAA,MAAU;AAAA,MAAqB;AAAA,MAAY;AAAA,MACjD;AAAA,MAAiB;AAAA,MAAmB;AAAA,MACpC;AAAA,MAAoB;AAAA,MAA0B;AAAA,MAC9C;AAAA,MAAoB;AAAA,MAAwB;AAAA,MAAoB;AAAA,MAAO;AAAA,MAAQ;AAAA,MAAM;AAAA,IACvF,IAAI;AAEJ,UAAM,eAAe,OAA8B,IAAI;AACvD,UAAM,aAAa,OAA+B,IAAI;AAEtD,UAAM,YAAY,OAAO,KAAK;AAC9B,cAAU,UAAU;AAEpB,cAAU,MAAM;AACd,YAAM,KAAK,aAAa;AACx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CAAC,aAAa,WAAW,SAAS,0BAA0B,QAAQ;AAAA,QAC/F,sBAAsB,MAAM,WAAW,SAAS,qBAAqB,KAAK;AAAA,QAC1E,oBAAoB,CAAC,UAAU,WAAW,SAAS,mBAAmB,KAAK,KAAK,CAAC;AAAA,QACjF,sBAAsB,MAAM,WAAW,SAAS,qBAAqB;AAAA,QACrE,cAAc,CAAC,UAAU,WAAW,SAAS,aAAa,KAAK,KAAK,CAAC;AAAA,QACrE,qBAAqB,MAAM,WAAW,SAAS,oBAAoB,KAAK,CAAC;AAAA,QACzE,gBAAgB,MAAM,WAAW,SAAS,eAAe;AAAA,QACzD,cAAc,MAAM,WAAW,SAAS,aAAa,KAAK,CAAC;AAAA,QAC3D,WAAW,MAAM,WAAW,SAAS,UAAU,KAAK,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,QACzF,wBAAwB,CAAC,kBAAkB,WAAW,SAAS,uBAAuB,aAAa,KAC9F,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,QAC1C,QAAQ,CAAC,SAAS,WAAW,SAAS,OAAO,IAAI,KAAK,QAAQ,QAAQ,EAAE,SAAS,CAAC,GAAG,YAAY,KAAK,CAAC;AAAA,QACvG,eAAe,MAAM,WAAW,SAAS,cAAc,KAAK;AAAA,QAC5D,YAAY,CAAC,OAAO,WAAW,SAAS,WAAW,EAAE,KAAK,QAAQ,QAAQ;AAAA,QAC1E,WAAW,MAAM,WAAW,SAAS,UAAU;AAAA,QAC/C,aAAa,CAAC,QAAQ,SAAS,WAAW,SAAS,YAAY,QAAQ,IAAI;AAAA,MAC7E;AAAA,MACA,CAAC;AAAA,IACH;AAEA,WAAO,oBAAC,SAAI,KAAK,cAAc,WAAsB,OAAc;AAAA,EACrE;AACF;","names":["SeatManager"]}
package/dist/index.cjs CHANGED
@@ -184,7 +184,7 @@ var import_js3 = require("@seatlayer/js");
184
184
  var import_jsx_runtime3 = require("react/jsx-runtime");
185
185
  var SeatPicker = (0, import_react3.forwardRef)(
186
186
  function SeatPicker2(props, ref) {
187
- const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout } = props;
187
+ const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout } = props;
188
188
  const containerRef = (0, import_react3.useRef)(null);
189
189
  const pickerRef = (0, import_react3.useRef)(null);
190
190
  const closeRef = (0, import_react3.useRef)(null);
@@ -235,7 +235,7 @@ var SeatPicker = (0, import_react3.forwardRef)(
235
235
  if (pickerRef.current === picker) pickerRef.current = null;
236
236
  if (closeRef.current === close) closeRef.current = null;
237
237
  };
238
- }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout]);
238
+ }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout]);
239
239
  (0, import_react3.useImperativeHandle)(
240
240
  ref,
241
241
  () => ({
@@ -393,7 +393,9 @@ var SeatManager = (0, import_react5.forwardRef)(
393
393
  numberOfPlacesToSelect,
394
394
  isObjectSelectable,
395
395
  tools,
396
- chrome
396
+ chrome,
397
+ kpis,
398
+ timeZone
397
399
  } = props;
398
400
  const containerRef = (0, import_react5.useRef)(null);
399
401
  const managerRef = (0, import_react5.useRef)(null);
@@ -429,11 +431,29 @@ var SeatManager = (0, import_react5.forwardRef)(
429
431
  // `minimal` = just the map (a host with its own search, totals and
430
432
  // actions). Read once at mount, like `tools`.
431
433
  chrome,
434
+ // false when the host shows the numbers in its own header (CR04). Read once at mount.
435
+ kpis,
436
+ // The event's clock for every time the room shows (audit M8). Read once at mount.
437
+ timeZone,
438
+ // "Ask an admin of <organisation>" (CR16). Read once at mount.
439
+ organizationName: callbacks.current.organizationName,
440
+ // The host's sale facts (CR18); updated in place below.
441
+ sale: callbacks.current.sale,
442
+ // The host's overlays over the map (CR18 resale strip); updated in place below.
443
+ mapInsets: callbacks.current.mapInsets,
432
444
  theme: callbacks.current.theme,
433
445
  // Light / dark / follow the operator's own preference. Applied before
434
446
  // first paint so a cockpit asked for light never flashes the war-room
435
447
  // dark on the way in.
436
448
  themeMode: callbacks.current.themeMode,
449
+ // Where a link opens the room (board CR24): read once at mount, like `mode`.
450
+ colourBy: callbacks.current.colourBy,
451
+ focusSection: callbacks.current.focusSection,
452
+ focusSeat: callbacks.current.focusSeat,
453
+ focusSeats: callbacks.current.focusSeats,
454
+ focusCategory: callbacks.current.focusCategory,
455
+ arrivedFrom: callbacks.current.arrivedFrom,
456
+ onOpenTrend: callbacks.current.onOpenTrend ? (focus) => callbacks.current.onOpenTrend?.(focus) : void 0,
437
457
  onReady: () => callbacks.current.onReady?.(),
438
458
  onTallies: (t) => callbacks.current.onTallies?.(t),
439
459
  onActivity: (activity) => callbacks.current.onActivity?.(activity),
@@ -450,8 +470,11 @@ var SeatManager = (0, import_react5.forwardRef)(
450
470
  onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),
451
471
  onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),
452
472
  onAreaClick: (area) => callbacks.current.onAreaClick?.(area),
473
+ // Only a host that can show an order gets the search's "Open order".
474
+ onOpenOrder: callbacks.current.onOpenOrder ? (order) => callbacks.current.onOpenOrder?.(order) : void 0,
453
475
  onActionComplete: (r) => callbacks.current.onActionComplete?.(r),
454
476
  onConnectionChange: (s) => callbacks.current.onConnectionChange?.(s),
477
+ onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),
455
478
  onError: (e) => callbacks.current.onError?.(e)
456
479
  });
457
480
  managerRef.current = manager;
@@ -473,6 +496,14 @@ var SeatManager = (0, import_react5.forwardRef)(
473
496
  (0, import_react5.useEffect)(() => {
474
497
  managerRef.current?.setTheme(props.theme);
475
498
  }, [props.theme]);
499
+ const sale = props.sale;
500
+ (0, import_react5.useEffect)(() => {
501
+ managerRef.current?.setSale(sale);
502
+ }, [sale?.status, sale?.tone, sale?.openedAt, sale?.pageUrl]);
503
+ const insets = props.mapInsets;
504
+ (0, import_react5.useEffect)(() => {
505
+ managerRef.current?.setMapInsets(insets ?? null);
506
+ }, [insets?.top, insets?.right, insets?.bottom, insets?.left]);
476
507
  (0, import_react5.useEffect)(() => {
477
508
  managerRef.current?.setThemeMode(props.themeMode);
478
509
  }, [props.themeMode]);
@@ -554,7 +585,8 @@ var SeatManager = (0, import_react5.forwardRef)(
554
585
  getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),
555
586
  getConnection: () => managerRef.current?.getConnection() ?? null,
556
587
  setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),
557
- zoomToFit: () => managerRef.current?.zoomToFit()
588
+ zoomToFit: () => managerRef.current?.zoomToFit(),
589
+ showObjects: (labels, name) => managerRef.current?.showObjects(labels, name)
558
590
  }),
559
591
  []
560
592
  );
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/index.ts","../src/SeatingChart.tsx","../src/EmbeddedDesigner.tsx","../src/SeatPicker.tsx","../src/SeasonPicker.tsx","../src/SeatManager.tsx"],"sourcesContent":["/**\n * @seatlayer/react — the React wrapper for the SeatLayer embed SDK.\n */\nexport { SeatingChart } from './SeatingChart';\nexport { EmbeddedDesigner } from './EmbeddedDesigner';\nexport type {\n SeatingChartProps,\n SeatingChartHandle,\n SelectedSeat,\n HoldResult,\n BestAvailableResult,\n GAAreaAvailability,\n HoldLineItem,\n SeatHoverDetails,\n} from './SeatingChart';\nexport type { EmbeddedDesignerProps, EmbeddedDesignerHandle, EmbeddedDesignerMessage } from './EmbeddedDesigner';\nexport { SeatPicker } from './SeatPicker';\nexport type {\n SeatPickerHandle,\n SeatPickerProps,\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from './SeatPicker';\nexport { SeasonPicker } from './SeasonPicker';\nexport type {\n SeasonPickerHandle,\n SeasonPickerProps,\n SeasonPickerOptions,\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from './SeasonPicker';\n// The framework-agnostic widget class — for the one-call modal (SeatPickerWidget.open()).\nexport { SeatPicker as SeatPickerWidget } from '@seatlayer/js';\n// Host-side embed helper: grows the iframe on `seatlayer:height` and pins it on\n// `seatlayer:fullscreen`. React hosts depend on this package alone, so it has to\n// be reachable here rather than only from @seatlayer/js.\nexport { attachPickerFrame } from '@seatlayer/js';\nexport type { AttachPickerFrameOptions } from '@seatlayer/js';\n\n// Organizer control room: Monitor + Inspect + bulk Block/unblock on one renderer.\nexport { SeatManager } from './SeatManager';\nexport type {\n SeatManagerHandle,\n SeatManagerProps,\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n} from './SeatManager';\nexport type {\n ControlRoomActivityEntry,\n ControlRoomSectionMetric,\n ControlRoomSnapshot,\n} from '@seatlayer/js/manager';\n// Sales Channels — buyer access sessions for private channel inventory.\nexport type {\n BuyerAccessToken,\n BuyerAccessTokenProvider,\n BuyerAccessRefreshReason,\n BuyerAccessUnavailableReason,\n BuyerAccessExpiredEvent,\n BuyerAccessUnavailableEvent,\n SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatingChart as CoreSeatingChart,\n bindSeatingChartHandle,\n buildSeatingChartOptions,\n type SeatingChartHandle,\n type SeatingChartIdentityProp,\n type SeatingChartOptions,\n} from '@seatlayer/js';\n\nexport type { SelectedSeat, HoldResult, BestAvailableResult, GAAreaAvailability, HoldLineItem } from '@seatlayer/js';\nexport type { SeatHoverDetails } from '@seatlayer/js';\n\n/** Imperative handle exposed via `ref` — call these to drive the picker from your app. */\nexport type { SeatingChartHandle } from '@seatlayer/js';\n\nexport interface SeatingChartProps extends Omit<SeatingChartOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic `@seatlayer/js` SDK.\n *\n * The underlying canvas is created once and torn down on unmount. Callback props\n * (`onSelectionChange`, `onHold`, `onError`, `onDeckTap`, `onHint`) may change\n * freely between renders without re-mounting the canvas — only the props in\n * `SEATING_CHART_IDENTITY_PROPS` (`event`, `apiBase`, `maxSelection`, `numberOfPlacesToSelect`, `selectionValidators`,\n * `publicKey`, `locale`, `currency`, `colorblindSafe`, `initialView`,\n * `errorDisplay`) trigger a rebuild.\n * (`messages`, `selectedObjects`, and `selectableObjects` are read once per\n * mount; change selection policy later through the imperative handle.)\n */\nexport const SeatingChart = forwardRef<SeatingChartHandle, SeatingChartProps>(\n function SeatingChart(props, ref) {\n const {\n className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects,\n numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency,\n colorblindSafe, initialView, errorDisplay,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const chartRef = useRef<CoreSeatingChart | null>(null);\n\n // Always call the latest callbacks without rebuilding the chart.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const chart = new CoreSeatingChart(buildSeatingChartOptions(\n el,\n {\n event,\n apiBase,\n maxSelection,\n selectedObjects,\n selectableObjects,\n numberOfPlacesToSelect,\n selectionValidators,\n publicKey,\n locale,\n currency,\n colorblindSafe,\n initialView,\n errorDisplay,\n messages: callbacks.current.messages,\n seatTooltip: props.seatTooltip,\n // Read through the ref so a host may pass the provider as an inline\n // arrow without its new identity tearing the canvas down each render.\n buyerAccessTokenProvider: props.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n buyerAccessToken: callbacks.current.buyerAccessToken,\n },\n {\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHold: (result) => callbacks.current.onHold?.(result),\n onHoldRestored: (result) => callbacks.current.onHoldRestored?.(result),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onGAClick: (area) => callbacks.current.onGAClick?.(area),\n onError: (err) => callbacks.current.onError?.(err),\n onDeckTap: (floorId) => callbacks.current.onDeckTap?.(floorId),\n onHint: (message) => callbacks.current.onHint?.(message),\n onSeatHover: (details) => callbacks.current.onSeatHover?.(details),\n },\n ));\n chartRef.current = chart;\n void chart.render();\n\n return () => {\n chart.destroy();\n chartRef.current = null;\n };\n // Rebuild only when the identity of the chart changes — this dependency\n // array is SEATING_CHART_IDENTITY_PROPS, spelled out because React's\n // linter (and its compiler) must see the literal list.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, initialView, errorDisplay]);\n\n useImperativeHandle(ref, () => bindSeatingChartHandle(() => chartRef.current), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\n/**\n * The `useEffect` dependency array above must list every identity prop, and\n * React's linter and compiler both require it to be a literal — so it cannot be\n * spread from `SEATING_CHART_IDENTITY_PROPS` the way Vue's watcher and Angular's\n * `ngOnChanges` do. This is the compile-time proof that the literal is still\n * complete: add a prop to the shared list without adding it above and\n * `MissingIdentityDeps` stops being `never`, which fails this line. Types only —\n * nothing here reaches the bundle.\n */\ntype MissingIdentityDeps = Exclude<\n SeatingChartIdentityProp,\n | 'event' | 'apiBase' | 'maxSelection' | 'numberOfPlacesToSelect' | 'selectionValidators'\n | 'publicKey' | 'locale'\n | 'currency' | 'colorblindSafe' | 'initialView' | 'errorDisplay'\n>;\ntype Assert<T extends true> = T;\ntype _IdentityDepsAreComplete = Assert<[MissingIdentityDeps] extends [never] ? true : false>;\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n EmbeddedDesigner as CoreEmbeddedDesigner,\n type EmbeddedDesignerMessage,\n} from '@seatlayer/js';\n\nexport type { EmbeddedDesignerMessage } from '@seatlayer/js';\n\nexport interface EmbeddedDesignerHandle {\n /** Recreate the iframe with a newly-minted session URL. */\n setDesignerUrl(designerUrl: string): void;\n /** The currently mounted iframe, if any. */\n getIframe(): HTMLIFrameElement | null;\n}\n\nexport interface EmbeddedDesignerProps {\n /** Short-lived `designerUrl` returned by your backend. Never pass an `sk_` key. */\n designerUrl: string;\n expectedChartId?: string;\n expectedWorkspaceId?: string;\n title?: string;\n className?: string;\n style?: CSSProperties;\n iframeClassName?: string;\n iframeStyle?: Partial<CSSStyleDeclaration>;\n allow?: string;\n referrerPolicy?: ReferrerPolicy;\n /**\n * Show the built-in branded loading skeleton and error/expiry card inside the\n * container while the Designer boots. Defaults to `true`. Set `false` when you\n * render your own loading and error chrome.\n */\n showLoadingState?: boolean;\n /**\n * If the Designer never posts `ready` within this many milliseconds, the host\n * shows the error card with a timeout message. Defaults to `20000`.\n */\n loadingTimeoutMs?: number;\n /**\n * How the iframe is sized. `'fill'` (the default) is **container-aware**: if the\n * container has a definite height (a sized block, `flex-1 min-h-0`, a resolved\n * `%`) the Designer fills 100% of it and tracks its size via a `ResizeObserver`;\n * if the container is content-sized (full-page usage) the Designer fills the\n * viewport (`window.innerHeight` minus the iframe's top offset). Either way the\n * result is clamped to `minHeight` and re-probed on resize. Heights are applied\n * with `!important` so a host theme can't override them. Pass a number for a\n * fixed pixel height you manage yourself.\n */\n height?: 'fill' | number;\n /** Lower bound for `'fill'` sizing. Defaults to `480`. */\n minHeight?: number;\n /**\n * Legacy content-height auto-grow via the `seatlayer.designer.resize`\n * protocol. Only honored when `height` is a number; with the default\n * `height: 'fill'` the resize messages are ignored and the SDK sizes the iframe\n * to the container or viewport.\n */\n autoResize?: boolean;\n /**\n * Called when the user presses \"Try again\" on the error card. Mint a fresh\n * session and set the new `designerUrl` (recreating the iframe returns it to\n * the loading state). When omitted, \"Try again\" reloads the current URL.\n *\n * When supplied, it also powers automatic session renewal — see\n * {@link EmbeddedDesignerProps.autoRenewSession}.\n */\n onRequestRelaunch?: () => void;\n /**\n * Keep long editing sessions alive with no expiry wall. When you supply\n * `onRequestRelaunch`, the SDK schedules a silent relaunch shortly before the\n * session's `expiresAt` (mint a fresh session and update `designerUrl` in your\n * `onRequestRelaunch` handler), and makes one automatic recovery attempt if an\n * expiry error still slips through before showing the \"Try again\" card. Defaults\n * to `true` whenever `onRequestRelaunch` is provided; a no-op without it. Set\n * `false` to keep the fully manual \"Try again\" behavior.\n */\n autoRenewSession?: boolean;\n onReady?: (message: EmbeddedDesignerMessage) => void;\n onSaved?: (message: EmbeddedDesignerMessage) => void;\n onPublished?: (message: EmbeddedDesignerMessage) => void;\n onClose?: (message: EmbeddedDesignerMessage) => void;\n onError?: (message: EmbeddedDesignerMessage) => void;\n}\n\n/**\n * Native-feeling React host for the secure SeatLayer Designer iframe.\n * A new `designerUrl` always recreates the iframe, so a new fragment token can\n * never retain state from an earlier chart session.\n */\nexport const EmbeddedDesigner = forwardRef<EmbeddedDesignerHandle, EmbeddedDesignerProps>(\n function EmbeddedDesigner(props, ref) {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const designerRef = useRef<CoreEmbeddedDesigner | null>(null);\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n const designer = new CoreEmbeddedDesigner({\n designerUrl: props.designerUrl,\n container,\n expectedChartId: props.expectedChartId,\n expectedWorkspaceId: props.expectedWorkspaceId,\n title: props.title,\n className: props.iframeClassName,\n style: props.iframeStyle,\n allow: props.allow,\n referrerPolicy: props.referrerPolicy,\n showLoadingState: props.showLoadingState,\n loadingTimeoutMs: props.loadingTimeoutMs,\n height: props.height,\n minHeight: props.minHeight,\n autoResize: props.autoResize,\n autoRenewSession: props.autoRenewSession,\n // Only forward a relaunch hook when the host supplied one, so the core's\n // \"reload the same URL in place\" fallback still applies otherwise.\n onRequestRelaunch: props.onRequestRelaunch\n ? () => callbacks.current.onRequestRelaunch?.()\n : undefined,\n onReady: (message) => callbacks.current.onReady?.(message),\n onSaved: (message) => callbacks.current.onSaved?.(message),\n onPublished: (message) => callbacks.current.onPublished?.(message),\n onClose: (message) => callbacks.current.onClose?.(message),\n onError: (message) => callbacks.current.onError?.(message),\n });\n designer.mount();\n designerRef.current = designer;\n return () => {\n designer.destroy();\n designerRef.current = null;\n };\n // Session/chart identity changes must recreate the iframe. Sizing and\n // relaunch policy are updated in place below; callbacks are read from refs.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.designerUrl, props.expectedChartId, props.expectedWorkspaceId, props.title, props.iframeClassName, props.iframeStyle, props.allow, props.referrerPolicy, props.showLoadingState, props.loadingTimeoutMs, props.autoResize]);\n\n useEffect(() => {\n designerRef.current?.setSizing(props.height, props.minHeight);\n }, [props.height, props.minHeight]);\n\n useEffect(() => {\n designerRef.current?.setRelaunchPolicy(\n props.onRequestRelaunch ? () => callbacks.current.onRequestRelaunch?.() : undefined,\n props.autoRenewSession,\n );\n }, [!!props.onRequestRelaunch, props.autoRenewSession]);\n\n useImperativeHandle(ref, () => ({\n setDesignerUrl: (designerUrl) => { designerRef.current?.setDesignerUrl(designerUrl); },\n getIframe: () => designerRef.current?.getIframe() ?? null,\n }), []);\n\n return <div ref={containerRef} className={props.className} style={props.style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatPicker as CoreSeatPicker,\n type SeatPickerOptions,\n type SeatPickerTheme,\n type SeatPickerPricing,\n type SeatPickerBestAvailableOptions,\n type SeatPickerBuyerView,\n type SeatPickerBuyerViewOptions,\n type PickerMapTheme,\n type PickerSelectionValidity,\n type RendererViewMode,\n type SelectedSeat,\n type HoldResult,\n} from '@seatlayer/js';\n\nexport type {\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n PickerSelectionValidity,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from '@seatlayer/js';\n\n/** Imperative handle for the full-experience picker widget. */\nexport interface SeatPickerHandle {\n /** Logically close the picker. React still owns component unmount/teardown. */\n close(): void;\n /** Current selection with resolved prices. */\n getSelection(): SelectedSeat[];\n /** Select free objects by engine id or public label. */\n selectObjects(objects: string[]): SelectedSeat[];\n /** Deselect objects by engine id or public label. */\n deselectObjects(objects: string[]): void;\n /** Clear every unheld selection. */\n clearSelection(): void;\n /** Select every selectable object in the named categories. */\n selectCategories(categoryKeys: string[]): SelectedSeat[];\n /** Deselect every selected object in the named categories. */\n deselectCategories(categoryKeys: string[]): void;\n /** Replace the buyer-selectable object allow-list without remounting. */\n setSelectableObjects(objects: string[] | null): void;\n /** Change the active selection cap without remounting. */\n setMaxSelection(maxSelection: number): void;\n /** Current exact-count validity, or null when exact selection is disabled. */\n getSelectionValidity(): PickerSelectionValidity | null;\n /** Server-side best seats + hold, reflected in the widget tray. */\n bestAvailable(\n qty: number,\n categoryKey?: string,\n options?: SeatPickerBestAvailableOptions,\n ): Promise<HoldResult | null>;\n /** Current active/restored hold reflected in the tray. */\n getCurrentHold(): HoldResult | null;\n /** Restore an active hold by its opaque id. */\n resumeHold(holdId: string): Promise<HoldResult | null>;\n /** Remove one held ticket while preserving the remainder. */\n removeHeldTicket(label: string): Promise<boolean>;\n /** Release the current hold (if any) and reset the tray. */\n release(): Promise<void>;\n /**\n * Re-acquire the buyer access session after your app re-authorizes the buyer\n * (Sales Channels). Resolves false when the picker is not access-scoped.\n */\n refreshAccess(): Promise<boolean>;\n /** Re-ink the drawn map without rebuilding the picker or disturbing a hold. */\n setMapTheme(map: PickerMapTheme | null): void;\n /** Hide or restore duplicate event identity after mount. */\n setEventDetailsHidden(hidden: boolean): void;\n /** Replace host display-pricing overrides without remounting. */\n setPricing(pricing: SeatPickerPricing | undefined): void;\n /** Current colorblind-safe buyer preference. */\n isColorblindSafe(): boolean;\n /** Update the colorblind-safe buyer preference and renderer. */\n setColorblindSafe(on: boolean): void;\n /** Switch the underlying 2D map projection. */\n setViewMode(mode: RendererViewMode): void;\n /** Current 2D map projection. */\n getViewMode(): RendererViewMode;\n /** Current buyer surface: map or interactive 3D venue. */\n getBuyerView(): SeatPickerBuyerView;\n /** Switch the buyer surface, optionally carrying a 3D camera intent. */\n setBuyerView(view: SeatPickerBuyerView, options?: SeatPickerBuyerViewOptions): void;\n}\n\nexport interface SeatPickerProps extends Omit<SeatPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the full SeatPicker widget (header · live price panel ·\n * tray · GA · hold countdown · toasts). The widget is container-adaptive: give\n * the wrapping div a size and it lays itself out for that box (side panel wide,\n * bottom sheet narrow). For the one-call modal, use `SeatPicker.open()` from\n * `@seatlayer/js` directly.\n */\nexport const SeatPicker = forwardRef<SeatPickerHandle, SeatPickerProps>(\n function SeatPicker(props, ref) {\n const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeatPicker | null>(null);\n const closeRef = useRef<(() => void) | null>(null);\n\n // Always call the latest callbacks without rebuilding the widget.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n // Forward every option the host passed. Spreading rather than naming each\n // field keeps new core options (pricing, hideBadge, transport, …) working\n // here the day they ship: a hand-maintained list silently drops anything\n // it forgets, and `SeatPickerProps extends SeatPickerOptions` means such a\n // drop still type-checks clean for the host.\n const { className: _className, style: _style, ...options } = callbacks.current;\n\n const picker = new CoreSeatPicker({\n ...options,\n container: el,\n onCheckout: (hold, seats, handoff) => callbacks.current.onCheckout?.(hold, seats, handoff),\n onBooked: (handoff) => callbacks.current.onBooked?.(handoff),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHoldChange: (hold, seats, handoff) => callbacks.current.onHoldChange?.(hold, seats, handoff),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onHoldRestored: (hold, seats, handoff) => callbacks.current.onHoldRestored?.(hold, seats, handoff),\n onError: (err) => callbacks.current.onError?.(err),\n // Sales Channels. The provider is read through the ref for the same\n // reason as every other callback: a host may pass an inline arrow.\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n // Hosted checkout. Read through the ref like every other callback — the\n // spread above would freeze an inline arrow at construction, and these\n // two fire long after it (a payment webhook can land minutes later).\n onCheckoutUnavailable: (state) => callbacks.current.onCheckoutUnavailable?.(state),\n onOrderConfirmed: (order) => callbacks.current.onOrderConfirmed?.(order),\n });\n pickerRef.current = picker;\n let closed = false;\n const close = (): void => {\n if (closed) return;\n closed = true;\n if (pickerRef.current === picker) pickerRef.current = null;\n picker.close();\n };\n closeRef.current = close;\n void picker.render();\n\n return () => {\n if (!closed) picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n if (closeRef.current === close) closeRef.current = null;\n };\n // Rebuild only when the identity of the event/config changes. Object-valued\n // options (theme, messages, pricing, transport) stay out: hosts routinely\n // pass them as inline literals, so a new identity every render would tear\n // the widget down mid-selection. They are read fresh at construction.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout]);\n\n useImperativeHandle(\n ref,\n (): SeatPickerHandle => ({\n close: () => closeRef.current?.(),\n getSelection: () => pickerRef.current?.getSelection() ?? [],\n selectObjects: (objects) => pickerRef.current?.selectObjects(objects) ?? [],\n deselectObjects: (objects) => pickerRef.current?.deselectObjects(objects),\n clearSelection: () => pickerRef.current?.clearSelection(),\n selectCategories: (categoryKeys) => pickerRef.current?.selectCategories(categoryKeys) ?? [],\n deselectCategories: (categoryKeys) => pickerRef.current?.deselectCategories(categoryKeys),\n setSelectableObjects: (objects) => pickerRef.current?.setSelectableObjects(objects),\n setMaxSelection: (max) => pickerRef.current?.setMaxSelection(max),\n getSelectionValidity: () => pickerRef.current?.getSelectionValidity() ?? null,\n bestAvailable: (qty, categoryKey, options) =>\n pickerRef.current?.bestAvailable(qty, categoryKey, options) ?? Promise.resolve(null),\n getCurrentHold: () => pickerRef.current?.getCurrentHold() ?? null,\n resumeHold: (holdId) => pickerRef.current?.resumeHold(holdId) ?? Promise.resolve(null),\n removeHeldTicket: (label) => pickerRef.current?.removeHeldTicket(label) ?? Promise.resolve(false),\n release: () => pickerRef.current?.release() ?? Promise.resolve(),\n refreshAccess: () => pickerRef.current?.refreshAccess() ?? Promise.resolve(false),\n setMapTheme: (map) => pickerRef.current?.setMapTheme(map),\n setEventDetailsHidden: (hidden) => pickerRef.current?.setEventDetailsHidden(hidden),\n setPricing: (pricing) => pickerRef.current?.setPricing(pricing),\n isColorblindSafe: () => pickerRef.current?.isColorblindSafe() ?? false,\n setColorblindSafe: (on) => pickerRef.current?.setColorblindSafe(on),\n setViewMode: (mode) => pickerRef.current?.setViewMode(mode),\n getViewMode: () => pickerRef.current?.getViewMode() ?? 'flat',\n getBuyerView: () => pickerRef.current?.getBuyerView() ?? 'map',\n setBuyerView: (view, options) => pickerRef.current?.setBuyerView(view, options),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeasonPicker as CoreSeasonPicker,\n type SeasonAvailability,\n type SeasonCheckoutHandoff,\n type SeasonDescriptor,\n type SeasonPickerOptions,\n type SeasonRenewalIntent,\n} from '@seatlayer/js';\n\nexport type {\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonPickerOptions,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from '@seatlayer/js';\n\n/** Imperative controls for the fixed-inclusion Season buyer flow. */\nexport interface SeasonPickerHandle {\n holdSameSeat(labels: readonly string[], operationId: string): Promise<SeasonCheckoutHandoff>;\n restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;\n release(releaseActionId: string): Promise<void>;\n createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;\n getDescriptor(): SeasonDescriptor | null;\n getAvailability(): SeasonAvailability | null;\n getHandoff(): SeasonCheckoutHandoff | null;\n}\n\n/** Props accepted by the React Season wrapper. */\nexport interface SeasonPickerProps extends Omit<SeasonPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React lifecycle adapter for the distinct fixed-inclusion `SeasonPicker`.\n * It never receives a secret key and never turns a browser handoff into proof\n * of price, payment, booking, or renewal.\n */\nexport const SeasonPicker = forwardRef<SeasonPickerHandle, SeasonPickerProps>(\n function SeasonPicker(props, ref) {\n const {\n season,\n apiBase,\n publicKey,\n checkout,\n returnUrl,\n buyerAccessToken,\n initialOperationId,\n recoveryTimeoutMs,\n fetch,\n offer,\n maxSelection,\n numberOfPlacesToSelect,\n locale,\n initialView,\n enable3D,\n theme,\n className,\n style,\n } = props;\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeasonPicker | null>(null);\n const latest = useRef(props);\n latest.current = props;\n const offerKey = JSON.stringify(offer ?? null);\n const themeKey = JSON.stringify(theme ?? null);\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n\n const { className: _className, style: _style, ...options } = latest.current;\n const picker = new CoreSeasonPicker({\n ...options,\n container,\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => latest.current.buyerAccessTokenProvider!(context)\n : undefined,\n onHold: (handoff) => latest.current.onHold?.(handoff),\n onHoldChange: (handoff) => latest.current.onHoldChange?.(handoff),\n onContinue: (handoff) => latest.current.onContinue?.(handoff),\n onRenewalIntent: (intent) => latest.current.onRenewalIntent?.(intent),\n onAccessExpired: (event) => latest.current.onAccessExpired?.(event),\n onAccessUnavailable: (event) => latest.current.onAccessUnavailable?.(event),\n onStatusChange: (event) => latest.current.onStatusChange?.(event),\n onError: (error) => latest.current.onError?.(error),\n });\n pickerRef.current = picker;\n void picker.render().catch(() => undefined);\n\n return () => {\n picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n };\n }, [\n season, apiBase, publicKey, checkout, returnUrl,\n buyerAccessToken, initialOperationId, recoveryTimeoutMs, fetch,\n offerKey, maxSelection, numberOfPlacesToSelect, locale, initialView, enable3D, themeKey,\n ]);\n\n useImperativeHandle(ref, (): SeasonPickerHandle => ({\n holdSameSeat: (labels, operationId) => required(pickerRef).holdSameSeat(labels, operationId),\n restoreOperation: (operationId) => required(pickerRef).restoreOperation(operationId),\n release: (releaseActionId) => required(pickerRef).release(releaseActionId),\n createRenewalIntent: (offerId) => required(pickerRef).createRenewalIntent(offerId),\n getDescriptor: () => pickerRef.current?.getDescriptor() ?? null,\n getAvailability: () => pickerRef.current?.getAvailability() ?? null,\n getHandoff: () => pickerRef.current?.getHandoff() ?? null,\n }), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\nfunction required(ref: { current: CoreSeasonPicker | null }): CoreSeasonPicker {\n if (!ref.current) throw new Error('seatlayer: React SeasonPicker is not mounted');\n return ref.current;\n}\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\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 SeatManagerConnection,\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 a\n// buyer SDK that also exports the cockpit, so importing the cockpit through it\n// drags SeatPicker, SeatingChart, EmbeddedDesigner and the engine code only\n// those reach into every bundle that renders a control room. See the header of\n// `@seatlayer/js`'s `src/manager.ts` for the measurement.\n} from '@seatlayer/js/manager';\n\nexport type {\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n SeatManagerFilteredSection,\n SeatManagerSelectionValidity,\n SeatManagerCategoryPrice,\n EventTableBookingMode,\n} from '@seatlayer/js/manager';\n\n/** Imperative handle for the organizer manage board. */\nexport interface SeatManagerHandle {\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.\n *\n * Null only before the manager has mounted. Pair with the `onConnectionChange`\n * prop: the callback gives the edges, this gives the answer on demand — which\n * is what a host needs on tab focus, when no transition is coming.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n}\n\nexport interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic {@link CoreSeatManager}. Give the\n * wrapping div a size (it fills its box — a war-room board wants a big one) and\n * the manager lays out the live map + KPI bar + rails inside it. Rebuilt only\n * when the event identity / apiBase changes. Tokens, declared capabilities,\n * theme, fallback currency, background liveness, and callbacks are updated in\n * place without tearing the board down.\n */\nexport const SeatManager = forwardRef<SeatManagerHandle, SeatManagerProps>(\n function SeatManager(props, ref) {\n const {\n className, style, apiBase, eventKey, token, tokenExpiresAt,\n mode, currency, keepLiveWhileHidden, followLive, capabilities,\n selectedObjects, selectableObjects, unavailableObjectsSelectable,\n unavailableObjects, unavailableObjectsReason, categoryPrices,\n maxSelectedObjects, numberOfPlacesToSelect, isObjectSelectable, tools, chrome,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const managerRef = useRef<CoreSeatManager | null>(null);\n\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const manager = new CoreSeatManager({\n container: el,\n apiBase,\n eventKey,\n token,\n tokenExpiresAt,\n mode,\n currency,\n keepLiveWhileHidden,\n followLive,\n capabilities,\n selectedObjects,\n selectableObjects,\n unavailableObjectsSelectable,\n unavailableObjects,\n unavailableObjectsReason,\n categoryPrices,\n maxSelectedObjects,\n numberOfPlacesToSelect,\n isObjectSelectable,\n // Which tools the cockpit offers (Watch / Manage / Host tools). Read\n // once at mount like `capabilities`: hosts decide this per surface,\n // not per render.\n tools,\n // `minimal` = just the map (a host with its own search, totals and\n // actions). Read once at mount, like `tools`.\n chrome,\n theme: callbacks.current.theme,\n // Light / dark / follow the operator's own preference. Applied before\n // first paint so a cockpit asked for light never flashes the war-room\n // dark on the way in.\n themeMode: callbacks.current.themeMode,\n onReady: () => callbacks.current.onReady?.(),\n onTallies: (t: SeatManagerTallies) => callbacks.current.onTallies?.(t),\n onActivity: (activity: SeatManagerActivity) => callbacks.current.onActivity?.(activity),\n onControlRoom: (snapshot: ControlRoomSnapshot) => callbacks.current.onControlRoom?.(snapshot),\n onTokenRefresh: callbacks.current.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n onModeChange: (nextMode) => callbacks.current.onModeChange?.(nextMode),\n onFollowLiveChange: (enabled) => callbacks.current.onFollowLiveChange?.(enabled),\n onSelectionChange: (s: ExpandedSeat[]) => callbacks.current.onSelectionChange?.(s),\n onObjectSelected: (object) => callbacks.current.onObjectSelected?.(object),\n onObjectDeselected: (object) => callbacks.current.onObjectDeselected?.(object),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (state) => callbacks.current.onSelectionValid?.(state),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),\n onAreaClick: (area) => callbacks.current.onAreaClick?.(area),\n onActionComplete: (r: SeatManagerActionResult) => callbacks.current.onActionComplete?.(r),\n onConnectionChange: (s: SeatManagerConnection) => callbacks.current.onConnectionChange?.(s),\n onError: (e: unknown) => callbacks.current.onError?.(e),\n });\n managerRef.current = manager;\n void manager.render();\n\n return () => {\n manager.destroy();\n managerRef.current = null;\n };\n // Rebuild only on identity change (not on every callback change).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiBase, eventKey]);\n\n // Rotate credentials without losing camera, selection, realtime state or DOM.\n useEffect(() => {\n managerRef.current?.setToken(token, tokenExpiresAt);\n }, [token, tokenExpiresAt]);\n\n useEffect(() => {\n managerRef.current?.setCapabilities(capabilities);\n }, [capabilities]);\n\n useEffect(() => {\n managerRef.current?.setCurrency(currency);\n }, [currency]);\n\n useEffect(() => {\n managerRef.current?.setTheme(props.theme);\n }, [props.theme]);\n\n // Reflected in place: the cockpit keeps the operator's selection, the\n // camera and the realtime socket across a mode change.\n useEffect(() => {\n managerRef.current?.setThemeMode(props.themeMode);\n }, [props.themeMode]);\n\n useEffect(() => {\n managerRef.current?.setKeepLiveWhileHidden(keepLiveWhileHidden);\n }, [keepLiveWhileHidden]);\n\n useEffect(() => {\n managerRef.current?.setTokenRefresh(\n props.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n );\n }, [!!props.onTokenRefresh]);\n\n // Reflect a controlled `mode` prop onto the live instance without rebuilding.\n useEffect(() => {\n if (mode) managerRef.current?.setMode(mode);\n }, [mode]);\n\n useEffect(() => {\n if (followLive != null) managerRef.current?.setFollowLive(followLive);\n }, [followLive]);\n\n useEffect(() => {\n managerRef.current?.setSelectableObjects(selectableObjects ?? []);\n }, [selectableObjects]);\n\n useEffect(() => {\n managerRef.current?.setUnavailableObjectsSelectable(unavailableObjectsSelectable ?? true);\n }, [unavailableObjectsSelectable]);\n\n // Repainted in place: the listed seats change colour, nothing remounts.\n // The manager ignores a list with the same labels, so a host that rebuilds\n // the array each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);\n }, [unavailableObjects, unavailableObjectsReason]);\n\n // Hover prices change in place. The renderer ignores an equal price map,\n // so a host that rebuilds the object each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setCategoryPrices(categoryPrices);\n }, [categoryPrices]);\n\n useEffect(() => {\n managerRef.current?.setMaxSelectedObjects(maxSelectedObjects);\n }, [maxSelectedObjects]);\n\n useEffect(() => {\n managerRef.current?.setNumberOfPlacesToSelect(numberOfPlacesToSelect);\n }, [numberOfPlacesToSelect]);\n\n useEffect(() => {\n managerRef.current?.setObjectSelectable(isObjectSelectable);\n }, [isObjectSelectable]);\n\n useImperativeHandle(\n ref,\n (): SeatManagerHandle => ({\n setMode: (m) => managerRef.current?.setMode(m),\n setToken: (nextToken, expiresAt) => managerRef.current?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => managerRef.current?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => managerRef.current?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => managerRef.current?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => managerRef.current?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => managerRef.current?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => managerRef.current?.isFullscreen() ?? false,\n block: (labels, opts) => managerRef.current?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => managerRef.current?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => managerRef.current?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => managerRef.current?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => managerRef.current?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => managerRef.current?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => managerRef.current?.selectAll() ?? [],\n selectSection: (id) => managerRef.current?.selectSection(id) ?? [],\n selectByLabels: (labels) => managerRef.current?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => managerRef.current?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => managerRef.current?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => managerRef.current?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => managerRef.current?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => managerRef.current?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => managerRef.current?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => managerRef.current?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => managerRef.current?.clearFilteredSection(),\n focusSection: (label) => managerRef.current?.focusSection(label) ?? [],\n getFilteredSections: () => managerRef.current?.getFilteredSections() ?? [],\n clearSelection: () => managerRef.current?.clearSelection(),\n getSelection: () => managerRef.current?.getSelection() ?? [],\n getReport: () => managerRef.current?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => managerRef.current?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => managerRef.current?.getConnection() ?? null,\n setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => managerRef.current?.zoomToFit(),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n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EAAE,SAAS,CAAC,GAAG,YAAY,KAAK,CAAC;AAAA,QACvG,eAAe,MAAM,WAAW,SAAS,cAAc,KAAK;AAAA,QAC5D,YAAY,CAAC,OAAO,WAAW,SAAS,WAAW,EAAE,KAAK,QAAQ,QAAQ;AAAA,QAC1E,WAAW,MAAM,WAAW,SAAS,UAAU;AAAA,MACjD;AAAA,MACA,CAAC;AAAA,IACH;AAEA,WAAO,6CAAC,SAAI,KAAK,cAAc,WAAsB,OAAc;AAAA,EACrE;AACF;","names":["SeatingChart","CoreSeatingChart","import_react","import_js","import_jsx_runtime","EmbeddedDesigner","CoreEmbeddedDesigner","import_react","import_js","import_jsx_runtime","SeatPicker","CoreSeatPicker","import_react","import_js","import_jsx_runtime","SeasonPicker","CoreSeasonPicker","import_js","import_react","import_jsx_runtime","SeatManager","CoreSeatManager","required"]}
1
+ {"version":3,"sources":["../src/index.ts","../src/SeatingChart.tsx","../src/EmbeddedDesigner.tsx","../src/SeatPicker.tsx","../src/SeasonPicker.tsx","../src/SeatManager.tsx"],"sourcesContent":["/**\n * @seatlayer/react — the React wrapper for the SeatLayer embed SDK.\n */\nexport { SeatingChart } from './SeatingChart';\nexport { EmbeddedDesigner } from './EmbeddedDesigner';\nexport type {\n SeatingChartProps,\n SeatingChartHandle,\n SelectedSeat,\n HoldResult,\n BestAvailableResult,\n GAAreaAvailability,\n HoldLineItem,\n SeatHoverDetails,\n} from './SeatingChart';\nexport type { EmbeddedDesignerProps, EmbeddedDesignerHandle, EmbeddedDesignerMessage } from './EmbeddedDesigner';\nexport { SeatPicker } from './SeatPicker';\nexport type {\n SeatPickerHandle,\n SeatPickerProps,\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from './SeatPicker';\nexport { SeasonPicker } from './SeasonPicker';\nexport type {\n SeasonPickerHandle,\n SeasonPickerProps,\n SeasonPickerOptions,\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from './SeasonPicker';\n// The framework-agnostic widget class — for the one-call modal (SeatPickerWidget.open()).\nexport { SeatPicker as SeatPickerWidget } from '@seatlayer/js';\n// Host-side embed helper: grows the iframe on `seatlayer:height` and pins it on\n// `seatlayer:fullscreen`. React hosts depend on this package alone, so it has to\n// be reachable here rather than only from @seatlayer/js.\nexport { attachPickerFrame } from '@seatlayer/js';\nexport type { AttachPickerFrameOptions } from '@seatlayer/js';\n\n// Organizer control room: Monitor + Inspect + bulk Block/unblock on one renderer.\nexport { SeatManager } from './SeatManager';\nexport type {\n SeatManagerHandle,\n SeatManagerProps,\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerSale,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n SeatManagerRoomState,\n} from './SeatManager';\nexport type {\n ControlRoomActivityEntry,\n ControlRoomSectionMetric,\n ControlRoomSnapshot,\n} from '@seatlayer/js/manager';\n// Sales Channels — buyer access sessions for private channel inventory.\nexport type {\n BuyerAccessToken,\n BuyerAccessTokenProvider,\n BuyerAccessRefreshReason,\n BuyerAccessUnavailableReason,\n BuyerAccessExpiredEvent,\n BuyerAccessUnavailableEvent,\n SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatingChart as CoreSeatingChart,\n bindSeatingChartHandle,\n buildSeatingChartOptions,\n type SeatingChartHandle,\n type SeatingChartIdentityProp,\n type SeatingChartOptions,\n} from '@seatlayer/js';\n\nexport type { SelectedSeat, HoldResult, BestAvailableResult, GAAreaAvailability, HoldLineItem } from '@seatlayer/js';\nexport type { SeatHoverDetails } from '@seatlayer/js';\n\n/** Imperative handle exposed via `ref` — call these to drive the picker from your app. */\nexport type { SeatingChartHandle } from '@seatlayer/js';\n\nexport interface SeatingChartProps extends Omit<SeatingChartOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic `@seatlayer/js` SDK.\n *\n * The underlying canvas is created once and torn down on unmount. Callback props\n * (`onSelectionChange`, `onHold`, `onError`, `onDeckTap`, `onHint`) may change\n * freely between renders without re-mounting the canvas — only the props in\n * `SEATING_CHART_IDENTITY_PROPS` (`event`, `apiBase`, `maxSelection`, `numberOfPlacesToSelect`, `selectionValidators`,\n * `publicKey`, `locale`, `currency`, `colorblindSafe`, `initialView`,\n * `errorDisplay`) trigger a rebuild.\n * (`messages`, `selectedObjects`, and `selectableObjects` are read once per\n * mount; change selection policy later through the imperative handle.)\n */\nexport const SeatingChart = forwardRef<SeatingChartHandle, SeatingChartProps>(\n function SeatingChart(props, ref) {\n const {\n className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects,\n numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency,\n colorblindSafe, initialView, errorDisplay,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const chartRef = useRef<CoreSeatingChart | null>(null);\n\n // Always call the latest callbacks without rebuilding the chart.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const chart = new CoreSeatingChart(buildSeatingChartOptions(\n el,\n {\n event,\n apiBase,\n maxSelection,\n selectedObjects,\n selectableObjects,\n numberOfPlacesToSelect,\n selectionValidators,\n publicKey,\n locale,\n currency,\n colorblindSafe,\n initialView,\n errorDisplay,\n messages: callbacks.current.messages,\n seatTooltip: props.seatTooltip,\n // Read through the ref so a host may pass the provider as an inline\n // arrow without its new identity tearing the canvas down each render.\n buyerAccessTokenProvider: props.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n buyerAccessToken: callbacks.current.buyerAccessToken,\n },\n {\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHold: (result) => callbacks.current.onHold?.(result),\n onHoldRestored: (result) => callbacks.current.onHoldRestored?.(result),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onGAClick: (area) => callbacks.current.onGAClick?.(area),\n onError: (err) => callbacks.current.onError?.(err),\n onDeckTap: (floorId) => callbacks.current.onDeckTap?.(floorId),\n onHint: (message) => callbacks.current.onHint?.(message),\n onSeatHover: (details) => callbacks.current.onSeatHover?.(details),\n },\n ));\n chartRef.current = chart;\n void chart.render();\n\n return () => {\n chart.destroy();\n chartRef.current = null;\n };\n // Rebuild only when the identity of the chart changes — this dependency\n // array is SEATING_CHART_IDENTITY_PROPS, spelled out because React's\n // linter (and its compiler) must see the literal list.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, initialView, errorDisplay]);\n\n useImperativeHandle(ref, () => bindSeatingChartHandle(() => chartRef.current), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\n/**\n * The `useEffect` dependency array above must list every identity prop, and\n * React's linter and compiler both require it to be a literal — so it cannot be\n * spread from `SEATING_CHART_IDENTITY_PROPS` the way Vue's watcher and Angular's\n * `ngOnChanges` do. This is the compile-time proof that the literal is still\n * complete: add a prop to the shared list without adding it above and\n * `MissingIdentityDeps` stops being `never`, which fails this line. Types only —\n * nothing here reaches the bundle.\n */\ntype MissingIdentityDeps = Exclude<\n SeatingChartIdentityProp,\n | 'event' | 'apiBase' | 'maxSelection' | 'numberOfPlacesToSelect' | 'selectionValidators'\n | 'publicKey' | 'locale'\n | 'currency' | 'colorblindSafe' | 'initialView' | 'errorDisplay'\n>;\ntype Assert<T extends true> = T;\ntype _IdentityDepsAreComplete = Assert<[MissingIdentityDeps] extends [never] ? true : false>;\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n EmbeddedDesigner as CoreEmbeddedDesigner,\n type EmbeddedDesignerMessage,\n} from '@seatlayer/js';\n\nexport type { EmbeddedDesignerMessage } from '@seatlayer/js';\n\nexport interface EmbeddedDesignerHandle {\n /** Recreate the iframe with a newly-minted session URL. */\n setDesignerUrl(designerUrl: string): void;\n /** The currently mounted iframe, if any. */\n getIframe(): HTMLIFrameElement | null;\n}\n\nexport interface EmbeddedDesignerProps {\n /** Short-lived `designerUrl` returned by your backend. Never pass an `sk_` key. */\n designerUrl: string;\n expectedChartId?: string;\n expectedWorkspaceId?: string;\n title?: string;\n className?: string;\n style?: CSSProperties;\n iframeClassName?: string;\n iframeStyle?: Partial<CSSStyleDeclaration>;\n allow?: string;\n referrerPolicy?: ReferrerPolicy;\n /**\n * Show the built-in branded loading skeleton and error/expiry card inside the\n * container while the Designer boots. Defaults to `true`. Set `false` when you\n * render your own loading and error chrome.\n */\n showLoadingState?: boolean;\n /**\n * If the Designer never posts `ready` within this many milliseconds, the host\n * shows the error card with a timeout message. Defaults to `20000`.\n */\n loadingTimeoutMs?: number;\n /**\n * How the iframe is sized. `'fill'` (the default) is **container-aware**: if the\n * container has a definite height (a sized block, `flex-1 min-h-0`, a resolved\n * `%`) the Designer fills 100% of it and tracks its size via a `ResizeObserver`;\n * if the container is content-sized (full-page usage) the Designer fills the\n * viewport (`window.innerHeight` minus the iframe's top offset). Either way the\n * result is clamped to `minHeight` and re-probed on resize. Heights are applied\n * with `!important` so a host theme can't override them. Pass a number for a\n * fixed pixel height you manage yourself.\n */\n height?: 'fill' | number;\n /** Lower bound for `'fill'` sizing. Defaults to `0` so a small host is never overrun. */\n minHeight?: number;\n /**\n * Legacy content-height auto-grow via the `seatlayer.designer.resize`\n * protocol. Only honored when `height` is a number; with the default\n * `height: 'fill'` the resize messages are ignored and the SDK sizes the iframe\n * to the container or viewport.\n */\n autoResize?: boolean;\n /**\n * Called when the user presses \"Try again\" on the error card. Mint a fresh\n * session and set the new `designerUrl` (recreating the iframe returns it to\n * the loading state). When omitted, \"Try again\" reloads the current URL.\n *\n * When supplied, it also powers automatic session renewal — see\n * {@link EmbeddedDesignerProps.autoRenewSession}.\n */\n onRequestRelaunch?: () => void;\n /**\n * Keep long editing sessions alive with no expiry wall. When you supply\n * `onRequestRelaunch`, the SDK schedules a silent relaunch shortly before the\n * session's `expiresAt` (mint a fresh session and update `designerUrl` in your\n * `onRequestRelaunch` handler), and makes one automatic recovery attempt if an\n * expiry error still slips through before showing the \"Try again\" card. Defaults\n * to `true` whenever `onRequestRelaunch` is provided; a no-op without it. Set\n * `false` to keep the fully manual \"Try again\" behavior.\n */\n autoRenewSession?: boolean;\n onReady?: (message: EmbeddedDesignerMessage) => void;\n onSaved?: (message: EmbeddedDesignerMessage) => void;\n onPublished?: (message: EmbeddedDesignerMessage) => void;\n onClose?: (message: EmbeddedDesignerMessage) => void;\n onError?: (message: EmbeddedDesignerMessage) => void;\n}\n\n/**\n * Native-feeling React host for the secure SeatLayer Designer iframe.\n * A new `designerUrl` always recreates the iframe, so a new fragment token can\n * never retain state from an earlier chart session.\n */\nexport const EmbeddedDesigner = forwardRef<EmbeddedDesignerHandle, EmbeddedDesignerProps>(\n function EmbeddedDesigner(props, ref) {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const designerRef = useRef<CoreEmbeddedDesigner | null>(null);\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n const designer = new CoreEmbeddedDesigner({\n designerUrl: props.designerUrl,\n container,\n expectedChartId: props.expectedChartId,\n expectedWorkspaceId: props.expectedWorkspaceId,\n title: props.title,\n className: props.iframeClassName,\n style: props.iframeStyle,\n allow: props.allow,\n referrerPolicy: props.referrerPolicy,\n showLoadingState: props.showLoadingState,\n loadingTimeoutMs: props.loadingTimeoutMs,\n height: props.height,\n minHeight: props.minHeight,\n autoResize: props.autoResize,\n autoRenewSession: props.autoRenewSession,\n // Only forward a relaunch hook when the host supplied one, so the core's\n // \"reload the same URL in place\" fallback still applies otherwise.\n onRequestRelaunch: props.onRequestRelaunch\n ? () => callbacks.current.onRequestRelaunch?.()\n : undefined,\n onReady: (message) => callbacks.current.onReady?.(message),\n onSaved: (message) => callbacks.current.onSaved?.(message),\n onPublished: (message) => callbacks.current.onPublished?.(message),\n onClose: (message) => callbacks.current.onClose?.(message),\n onError: (message) => callbacks.current.onError?.(message),\n });\n designer.mount();\n designerRef.current = designer;\n return () => {\n designer.destroy();\n designerRef.current = null;\n };\n // Session/chart identity changes must recreate the iframe. Sizing and\n // relaunch policy are updated in place below; callbacks are read from refs.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.designerUrl, props.expectedChartId, props.expectedWorkspaceId, props.title, props.iframeClassName, props.iframeStyle, props.allow, props.referrerPolicy, props.showLoadingState, props.loadingTimeoutMs, props.autoResize]);\n\n useEffect(() => {\n designerRef.current?.setSizing(props.height, props.minHeight);\n }, [props.height, props.minHeight]);\n\n useEffect(() => {\n designerRef.current?.setRelaunchPolicy(\n props.onRequestRelaunch ? () => callbacks.current.onRequestRelaunch?.() : undefined,\n props.autoRenewSession,\n );\n }, [!!props.onRequestRelaunch, props.autoRenewSession]);\n\n useImperativeHandle(ref, () => ({\n setDesignerUrl: (designerUrl) => { designerRef.current?.setDesignerUrl(designerUrl); },\n getIframe: () => designerRef.current?.getIframe() ?? null,\n }), []);\n\n return <div ref={containerRef} className={props.className} style={props.style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatPicker as CoreSeatPicker,\n type SeatPickerOptions,\n type SeatPickerTheme,\n type SeatPickerPricing,\n type SeatPickerBestAvailableOptions,\n type SeatPickerBuyerView,\n type SeatPickerBuyerViewOptions,\n type PickerMapTheme,\n type PickerSelectionValidity,\n type RendererViewMode,\n type SelectedSeat,\n type HoldResult,\n} from '@seatlayer/js';\n\nexport type {\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n PickerSelectionValidity,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from '@seatlayer/js';\n\n/** Imperative handle for the full-experience picker widget. */\nexport interface SeatPickerHandle {\n /** Logically close the picker. React still owns component unmount/teardown. */\n close(): void;\n /** Current selection with resolved prices. */\n getSelection(): SelectedSeat[];\n /** Select free objects by engine id or public label. */\n selectObjects(objects: string[]): SelectedSeat[];\n /** Deselect objects by engine id or public label. */\n deselectObjects(objects: string[]): void;\n /** Clear every unheld selection. */\n clearSelection(): void;\n /** Select every selectable object in the named categories. */\n selectCategories(categoryKeys: string[]): SelectedSeat[];\n /** Deselect every selected object in the named categories. */\n deselectCategories(categoryKeys: string[]): void;\n /** Replace the buyer-selectable object allow-list without remounting. */\n setSelectableObjects(objects: string[] | null): void;\n /** Change the active selection cap without remounting. */\n setMaxSelection(maxSelection: number): void;\n /** Current exact-count validity, or null when exact selection is disabled. */\n getSelectionValidity(): PickerSelectionValidity | null;\n /** Server-side best seats + hold, reflected in the widget tray. */\n bestAvailable(\n qty: number,\n categoryKey?: string,\n options?: SeatPickerBestAvailableOptions,\n ): Promise<HoldResult | null>;\n /** Current active/restored hold reflected in the tray. */\n getCurrentHold(): HoldResult | null;\n /** Restore an active hold by its opaque id. */\n resumeHold(holdId: string): Promise<HoldResult | null>;\n /** Remove one held ticket while preserving the remainder. */\n removeHeldTicket(label: string): Promise<boolean>;\n /** Release the current hold (if any) and reset the tray. */\n release(): Promise<void>;\n /**\n * Re-acquire the buyer access session after your app re-authorizes the buyer\n * (Sales Channels). Resolves false when the picker is not access-scoped.\n */\n refreshAccess(): Promise<boolean>;\n /** Re-ink the drawn map without rebuilding the picker or disturbing a hold. */\n setMapTheme(map: PickerMapTheme | null): void;\n /** Hide or restore duplicate event identity after mount. */\n setEventDetailsHidden(hidden: boolean): void;\n /** Replace host display-pricing overrides without remounting. */\n setPricing(pricing: SeatPickerPricing | undefined): void;\n /** Current colorblind-safe buyer preference. */\n isColorblindSafe(): boolean;\n /** Update the colorblind-safe buyer preference and renderer. */\n setColorblindSafe(on: boolean): void;\n /** Switch the underlying 2D map projection. */\n setViewMode(mode: RendererViewMode): void;\n /** Current 2D map projection. */\n getViewMode(): RendererViewMode;\n /** Current buyer surface: map or interactive 3D venue. */\n getBuyerView(): SeatPickerBuyerView;\n /** Switch the buyer surface, optionally carrying a 3D camera intent. */\n setBuyerView(view: SeatPickerBuyerView, options?: SeatPickerBuyerViewOptions): void;\n}\n\nexport interface SeatPickerProps extends Omit<SeatPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the full SeatPicker widget (header · live price panel ·\n * tray · GA · hold countdown · toasts). The widget is container-adaptive: give\n * the wrapping div a size and it lays itself out for that box (side panel wide,\n * bottom sheet narrow). For the one-call modal, use `SeatPicker.open()` from\n * `@seatlayer/js` directly.\n */\nexport const SeatPicker = forwardRef<SeatPickerHandle, SeatPickerProps>(\n function SeatPicker(props, ref) {\n const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeatPicker | null>(null);\n const closeRef = useRef<(() => void) | null>(null);\n\n // Always call the latest callbacks without rebuilding the widget.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n // Forward every option the host passed. Spreading rather than naming each\n // field keeps new core options (pricing, hideBadge, transport, …) working\n // here the day they ship: a hand-maintained list silently drops anything\n // it forgets, and `SeatPickerProps extends SeatPickerOptions` means such a\n // drop still type-checks clean for the host.\n const { className: _className, style: _style, ...options } = callbacks.current;\n\n const picker = new CoreSeatPicker({\n ...options,\n container: el,\n onCheckout: (hold, seats, handoff) => callbacks.current.onCheckout?.(hold, seats, handoff),\n onBooked: (handoff) => callbacks.current.onBooked?.(handoff),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHoldChange: (hold, seats, handoff) => callbacks.current.onHoldChange?.(hold, seats, handoff),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onHoldRestored: (hold, seats, handoff) => callbacks.current.onHoldRestored?.(hold, seats, handoff),\n onError: (err) => callbacks.current.onError?.(err),\n // Sales Channels. The provider is read through the ref for the same\n // reason as every other callback: a host may pass an inline arrow.\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n // Hosted checkout. Read through the ref like every other callback — the\n // spread above would freeze an inline arrow at construction, and these\n // two fire long after it (a payment webhook can land minutes later).\n onCheckoutUnavailable: (state) => callbacks.current.onCheckoutUnavailable?.(state),\n onOrderConfirmed: (order) => callbacks.current.onOrderConfirmed?.(order),\n });\n pickerRef.current = picker;\n let closed = false;\n const close = (): void => {\n if (closed) return;\n closed = true;\n if (pickerRef.current === picker) pickerRef.current = null;\n picker.close();\n };\n closeRef.current = close;\n void picker.render();\n\n return () => {\n if (!closed) picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n if (closeRef.current === close) closeRef.current = null;\n };\n // Rebuild only when the identity of the event/config changes. Object-valued\n // options (theme, messages, pricing, transport) stay out: hosts routinely\n // pass them as inline literals, so a new identity every render would tear\n // the widget down mid-selection. They are read fresh at construction.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout]);\n\n useImperativeHandle(\n ref,\n (): SeatPickerHandle => ({\n close: () => closeRef.current?.(),\n getSelection: () => pickerRef.current?.getSelection() ?? [],\n selectObjects: (objects) => pickerRef.current?.selectObjects(objects) ?? [],\n deselectObjects: (objects) => pickerRef.current?.deselectObjects(objects),\n clearSelection: () => pickerRef.current?.clearSelection(),\n selectCategories: (categoryKeys) => pickerRef.current?.selectCategories(categoryKeys) ?? [],\n deselectCategories: (categoryKeys) => pickerRef.current?.deselectCategories(categoryKeys),\n setSelectableObjects: (objects) => pickerRef.current?.setSelectableObjects(objects),\n setMaxSelection: (max) => pickerRef.current?.setMaxSelection(max),\n getSelectionValidity: () => pickerRef.current?.getSelectionValidity() ?? null,\n bestAvailable: (qty, categoryKey, options) =>\n pickerRef.current?.bestAvailable(qty, categoryKey, options) ?? Promise.resolve(null),\n getCurrentHold: () => pickerRef.current?.getCurrentHold() ?? null,\n resumeHold: (holdId) => pickerRef.current?.resumeHold(holdId) ?? Promise.resolve(null),\n removeHeldTicket: (label) => pickerRef.current?.removeHeldTicket(label) ?? Promise.resolve(false),\n release: () => pickerRef.current?.release() ?? Promise.resolve(),\n refreshAccess: () => pickerRef.current?.refreshAccess() ?? Promise.resolve(false),\n setMapTheme: (map) => pickerRef.current?.setMapTheme(map),\n setEventDetailsHidden: (hidden) => pickerRef.current?.setEventDetailsHidden(hidden),\n setPricing: (pricing) => pickerRef.current?.setPricing(pricing),\n isColorblindSafe: () => pickerRef.current?.isColorblindSafe() ?? false,\n setColorblindSafe: (on) => pickerRef.current?.setColorblindSafe(on),\n setViewMode: (mode) => pickerRef.current?.setViewMode(mode),\n getViewMode: () => pickerRef.current?.getViewMode() ?? 'flat',\n getBuyerView: () => pickerRef.current?.getBuyerView() ?? 'map',\n setBuyerView: (view, options) => pickerRef.current?.setBuyerView(view, options),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeasonPicker as CoreSeasonPicker,\n type SeasonAvailability,\n type SeasonCheckoutHandoff,\n type SeasonDescriptor,\n type SeasonPickerOptions,\n type SeasonRenewalIntent,\n} from '@seatlayer/js';\n\nexport type {\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonPickerOptions,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from '@seatlayer/js';\n\n/** Imperative controls for the fixed-inclusion Season buyer flow. */\nexport interface SeasonPickerHandle {\n holdSameSeat(labels: readonly string[], operationId: string): Promise<SeasonCheckoutHandoff>;\n restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;\n release(releaseActionId: string): Promise<void>;\n createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;\n getDescriptor(): SeasonDescriptor | null;\n getAvailability(): SeasonAvailability | null;\n getHandoff(): SeasonCheckoutHandoff | null;\n}\n\n/** Props accepted by the React Season wrapper. */\nexport interface SeasonPickerProps extends Omit<SeasonPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React lifecycle adapter for the distinct fixed-inclusion `SeasonPicker`.\n * It never receives a secret key and never turns a browser handoff into proof\n * of price, payment, booking, or renewal.\n */\nexport const SeasonPicker = forwardRef<SeasonPickerHandle, SeasonPickerProps>(\n function SeasonPicker(props, ref) {\n const {\n season,\n apiBase,\n publicKey,\n checkout,\n returnUrl,\n buyerAccessToken,\n initialOperationId,\n recoveryTimeoutMs,\n fetch,\n offer,\n maxSelection,\n numberOfPlacesToSelect,\n locale,\n initialView,\n enable3D,\n theme,\n className,\n style,\n } = props;\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeasonPicker | null>(null);\n const latest = useRef(props);\n latest.current = props;\n const offerKey = JSON.stringify(offer ?? null);\n const themeKey = JSON.stringify(theme ?? null);\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n\n const { className: _className, style: _style, ...options } = latest.current;\n const picker = new CoreSeasonPicker({\n ...options,\n container,\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => latest.current.buyerAccessTokenProvider!(context)\n : undefined,\n onHold: (handoff) => latest.current.onHold?.(handoff),\n onHoldChange: (handoff) => latest.current.onHoldChange?.(handoff),\n onContinue: (handoff) => latest.current.onContinue?.(handoff),\n onRenewalIntent: (intent) => latest.current.onRenewalIntent?.(intent),\n onAccessExpired: (event) => latest.current.onAccessExpired?.(event),\n onAccessUnavailable: (event) => latest.current.onAccessUnavailable?.(event),\n onStatusChange: (event) => latest.current.onStatusChange?.(event),\n onError: (error) => latest.current.onError?.(error),\n });\n pickerRef.current = picker;\n void picker.render().catch(() => undefined);\n\n return () => {\n picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n };\n }, [\n season, apiBase, publicKey, checkout, returnUrl,\n buyerAccessToken, initialOperationId, recoveryTimeoutMs, fetch,\n offerKey, maxSelection, numberOfPlacesToSelect, locale, initialView, enable3D, themeKey,\n ]);\n\n useImperativeHandle(ref, (): SeasonPickerHandle => ({\n holdSameSeat: (labels, operationId) => required(pickerRef).holdSameSeat(labels, operationId),\n restoreOperation: (operationId) => required(pickerRef).restoreOperation(operationId),\n release: (releaseActionId) => required(pickerRef).release(releaseActionId),\n createRenewalIntent: (offerId) => required(pickerRef).createRenewalIntent(offerId),\n getDescriptor: () => pickerRef.current?.getDescriptor() ?? null,\n getAvailability: () => pickerRef.current?.getAvailability() ?? null,\n getHandoff: () => pickerRef.current?.getHandoff() ?? null,\n }), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\nfunction required(ref: { current: CoreSeasonPicker | null }): CoreSeasonPicker {\n if (!ref.current) throw new Error('seatlayer: React SeasonPicker is not mounted');\n return ref.current;\n}\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatManager as CoreSeatManager,\n type SeatManagerOptions,\n type SeatManagerMode,\n type EventScopedManageToken,\n type SeatManagerTallies,\n type SeatManagerSale,\n type SeatManagerActivity,\n type SeatManagerActionResult,\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 a\n// buyer SDK that also exports the cockpit, so importing the cockpit through it\n// drags SeatPicker, SeatingChart, EmbeddedDesigner and the engine code only\n// those reach into every bundle that renders a control room. See the header of\n// `@seatlayer/js`'s `src/manager.ts` for the measurement.\n} from '@seatlayer/js/manager';\n\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} from '@seatlayer/js/manager';\n\n/** Imperative handle for the organizer manage board. */\nexport interface SeatManagerHandle {\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.\n *\n * Null only before the manager has mounted. Pair with the `onConnectionChange`\n * prop: the callback gives the edges, this gives the answer on demand — which\n * is what a host needs on tab focus, when no transition is coming.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n /** Light these seats and frame them, named in the legend; null clears (CR18). */\n showObjects(labels: readonly string[] | null, name?: string): void;\n}\n\nexport interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic {@link CoreSeatManager}. Give the\n * wrapping div a size (it fills its box — a war-room board wants a big one) and\n * the manager lays out the live map + KPI bar + rails inside it. Rebuilt only\n * when the event identity / apiBase changes. Tokens, declared capabilities,\n * theme, fallback currency, background liveness, and callbacks are updated in\n * place without tearing the board down.\n */\nexport const SeatManager = forwardRef<SeatManagerHandle, SeatManagerProps>(\n function SeatManager(props, ref) {\n const {\n className, style, apiBase, eventKey, token, tokenExpiresAt,\n mode, currency, keepLiveWhileHidden, followLive, capabilities,\n selectedObjects, selectableObjects, unavailableObjectsSelectable,\n unavailableObjects, unavailableObjectsReason, categoryPrices,\n maxSelectedObjects, numberOfPlacesToSelect, isObjectSelectable, tools, chrome, kpis, timeZone,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const managerRef = useRef<CoreSeatManager | null>(null);\n\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const manager = new CoreSeatManager({\n container: el,\n apiBase,\n eventKey,\n token,\n tokenExpiresAt,\n mode,\n currency,\n keepLiveWhileHidden,\n followLive,\n capabilities,\n selectedObjects,\n selectableObjects,\n unavailableObjectsSelectable,\n unavailableObjects,\n unavailableObjectsReason,\n categoryPrices,\n maxSelectedObjects,\n numberOfPlacesToSelect,\n isObjectSelectable,\n // Which tools the cockpit offers (Watch / Manage / Host tools). Read\n // once at mount like `capabilities`: hosts decide this per surface,\n // not per render.\n tools,\n // `minimal` = just the map (a host with its own search, totals and\n // actions). Read once at mount, like `tools`.\n chrome,\n // false when the host shows the numbers in its own header (CR04). Read once at mount.\n kpis,\n // The event's clock for every time the room shows (audit M8). Read once at mount.\n timeZone,\n // \"Ask an admin of <organisation>\" (CR16). Read once at mount.\n organizationName: callbacks.current.organizationName,\n // The host's sale facts (CR18); updated in place below.\n sale: callbacks.current.sale,\n // The host's overlays over the map (CR18 resale strip); updated in place below.\n mapInsets: callbacks.current.mapInsets,\n theme: callbacks.current.theme,\n // Light / dark / follow the operator's own preference. Applied before\n // first paint so a cockpit asked for light never flashes the war-room\n // dark on the way in.\n themeMode: callbacks.current.themeMode,\n // Where a link opens the room (board CR24): read once at mount, like `mode`.\n colourBy: callbacks.current.colourBy,\n focusSection: callbacks.current.focusSection,\n focusSeat: callbacks.current.focusSeat,\n focusSeats: callbacks.current.focusSeats,\n focusCategory: callbacks.current.focusCategory,\n arrivedFrom: callbacks.current.arrivedFrom,\n onOpenTrend: callbacks.current.onOpenTrend ? (focus) => callbacks.current.onOpenTrend?.(focus) : undefined,\n onReady: () => callbacks.current.onReady?.(),\n onTallies: (t: SeatManagerTallies) => callbacks.current.onTallies?.(t),\n onActivity: (activity: SeatManagerActivity) => callbacks.current.onActivity?.(activity),\n onControlRoom: (snapshot: ControlRoomSnapshot) => callbacks.current.onControlRoom?.(snapshot),\n onTokenRefresh: callbacks.current.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n onModeChange: (nextMode) => callbacks.current.onModeChange?.(nextMode),\n onFollowLiveChange: (enabled) => callbacks.current.onFollowLiveChange?.(enabled),\n onSelectionChange: (s: ExpandedSeat[]) => callbacks.current.onSelectionChange?.(s),\n onObjectSelected: (object) => callbacks.current.onObjectSelected?.(object),\n onObjectDeselected: (object) => callbacks.current.onObjectDeselected?.(object),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (state) => callbacks.current.onSelectionValid?.(state),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),\n onAreaClick: (area) => callbacks.current.onAreaClick?.(area),\n // Only a host that can show an order gets the search's \"Open order\".\n onOpenOrder: callbacks.current.onOpenOrder ? (order: { id: string; displayRef: string }) => callbacks.current.onOpenOrder?.(order) : undefined,\n onActionComplete: (r: SeatManagerActionResult) => callbacks.current.onActionComplete?.(r),\n onConnectionChange: (s: SeatManagerConnection) => callbacks.current.onConnectionChange?.(s),\n onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),\n onError: (e: unknown) => callbacks.current.onError?.(e),\n });\n managerRef.current = manager;\n void manager.render();\n\n return () => {\n manager.destroy();\n managerRef.current = null;\n };\n // Rebuild only on identity change (not on every callback change).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiBase, eventKey]);\n\n // Rotate credentials without losing camera, selection, realtime state or DOM.\n useEffect(() => {\n managerRef.current?.setToken(token, tokenExpiresAt);\n }, [token, tokenExpiresAt]);\n\n useEffect(() => {\n managerRef.current?.setCapabilities(capabilities);\n }, [capabilities]);\n\n useEffect(() => {\n managerRef.current?.setCurrency(currency);\n }, [currency]);\n\n useEffect(() => {\n managerRef.current?.setTheme(props.theme);\n }, [props.theme]);\n\n // By value: a host that rebuilds the object each render costs no repaint.\n const sale = props.sale;\n useEffect(() => {\n managerRef.current?.setSale(sale);\n }, [sale?.status, sale?.tone, sale?.openedAt, sale?.pageUrl]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // By value: a host that rebuilds the object each render costs no refit.\n const insets = props.mapInsets;\n useEffect(() => {\n managerRef.current?.setMapInsets(insets ?? null);\n }, [insets?.top, insets?.right, insets?.bottom, insets?.left]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // Reflected in place: the cockpit keeps the operator's selection, the\n // camera and the realtime socket across a mode change.\n useEffect(() => {\n managerRef.current?.setThemeMode(props.themeMode);\n }, [props.themeMode]);\n\n useEffect(() => {\n managerRef.current?.setKeepLiveWhileHidden(keepLiveWhileHidden);\n }, [keepLiveWhileHidden]);\n\n useEffect(() => {\n managerRef.current?.setTokenRefresh(\n props.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n );\n }, [!!props.onTokenRefresh]);\n\n // Reflect a controlled `mode` prop onto the live instance without rebuilding.\n useEffect(() => {\n if (mode) managerRef.current?.setMode(mode);\n }, [mode]);\n\n useEffect(() => {\n if (followLive != null) managerRef.current?.setFollowLive(followLive);\n }, [followLive]);\n\n useEffect(() => {\n managerRef.current?.setSelectableObjects(selectableObjects ?? []);\n }, [selectableObjects]);\n\n useEffect(() => {\n managerRef.current?.setUnavailableObjectsSelectable(unavailableObjectsSelectable ?? true);\n }, [unavailableObjectsSelectable]);\n\n // Repainted in place: the listed seats change colour, nothing remounts.\n // The manager ignores a list with the same labels, so a host that rebuilds\n // the array each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);\n }, [unavailableObjects, unavailableObjectsReason]);\n\n // Hover prices change in place. The renderer ignores an equal price map,\n // so a host that rebuilds the object each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setCategoryPrices(categoryPrices);\n }, [categoryPrices]);\n\n useEffect(() => {\n managerRef.current?.setMaxSelectedObjects(maxSelectedObjects);\n }, [maxSelectedObjects]);\n\n useEffect(() => {\n managerRef.current?.setNumberOfPlacesToSelect(numberOfPlacesToSelect);\n }, [numberOfPlacesToSelect]);\n\n useEffect(() => {\n managerRef.current?.setObjectSelectable(isObjectSelectable);\n }, [isObjectSelectable]);\n\n useImperativeHandle(\n ref,\n (): SeatManagerHandle => ({\n setMode: (m) => managerRef.current?.setMode(m),\n setToken: (nextToken, expiresAt) => managerRef.current?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => managerRef.current?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => managerRef.current?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => managerRef.current?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => managerRef.current?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => managerRef.current?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => managerRef.current?.isFullscreen() ?? false,\n block: (labels, opts) => managerRef.current?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => managerRef.current?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => managerRef.current?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => managerRef.current?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => managerRef.current?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => managerRef.current?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => managerRef.current?.selectAll() ?? [],\n selectSection: (id) => managerRef.current?.selectSection(id) ?? [],\n selectByLabels: (labels) => managerRef.current?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => managerRef.current?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => managerRef.current?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => managerRef.current?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => managerRef.current?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => managerRef.current?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => managerRef.current?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => managerRef.current?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => managerRef.current?.clearFilteredSection(),\n focusSection: (label) => managerRef.current?.focusSection(label) ?? [],\n getFilteredSections: () => managerRef.current?.getFilteredSections() ?? [],\n clearSelection: () => managerRef.current?.clearSelection(),\n getSelection: () => managerRef.current?.getSelection() ?? [],\n getReport: () => managerRef.current?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => managerRef.current?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => managerRef.current?.getConnection() ?? null,\n setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => managerRef.current?.zoomToFit(),\n showObjects: (labels, name) => managerRef.current?.showObjects(labels, name),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,gBAOO;AAwGI;AA/EJ,IAAM,mBAAe;AAAA,EAC1B,SAASA,cAAa,OAAO,KAAK;AAChC,UAAM;AAAA,MACJ;AAAA,MAAW;AAAA,MAAO;AAAA,MAAO;AAAA,MAAS;AAAA,MAAc;AAAA,MAAiB;AAAA,MACjE;AAAA,MAAwB;AAAA,MAAqB;AAAA,MAAW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AAoB,CAAC,UAAU,WAAW,SAAS,mBAAmB,KAAK,KAAK,CAAC;AAAA,QACjF,sBAAsB,MAAM,WAAW,SAAS,qBAAqB;AAAA,QACrE,cAAc,CAAC,UAAU,WAAW,SAAS,aAAa,KAAK,KAAK,CAAC;AAAA,QACrE,qBAAqB,MAAM,WAAW,SAAS,oBAAoB,KAAK,CAAC;AAAA,QACzE,gBAAgB,MAAM,WAAW,SAAS,eAAe;AAAA,QACzD,cAAc,MAAM,WAAW,SAAS,aAAa,KAAK,CAAC;AAAA,QAC3D,WAAW,MAAM,WAAW,SAAS,UAAU,KAAK,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,QACzF,wBAAwB,CAAC,kBAAkB,WAAW,SAAS,uBAAuB,aAAa,KAC9F,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,QAC1C,QAAQ,CAAC,SAAS,WAAW,SAAS,OAAO,IAAI,KAAK,QAAQ,QAAQ,EAAE,SAAS,CAAC,GAAG,YAAY,KAAK,CAAC;AAAA,QACvG,eAAe,MAAM,WAAW,SAAS,cAAc,KAAK;AAAA,QAC5D,YAAY,CAAC,OAAO,WAAW,SAAS,WAAW,EAAE,KAAK,QAAQ,QAAQ;AAAA,QAC1E,WAAW,MAAM,WAAW,SAAS,UAAU;AAAA,QAC/C,aAAa,CAAC,QAAQ,SAAS,WAAW,SAAS,YAAY,QAAQ,IAAI;AAAA,MAC7E;AAAA,MACA,CAAC;AAAA,IACH;AAEA,WAAO,6CAAC,SAAI,KAAK,cAAc,WAAsB,OAAc;AAAA,EACrE;AACF;","names":["SeatingChart","CoreSeatingChart","import_react","import_js","import_jsx_runtime","EmbeddedDesigner","CoreEmbeddedDesigner","import_react","import_js","import_jsx_runtime","SeatPicker","CoreSeatPicker","import_react","import_js","import_jsx_runtime","SeasonPicker","CoreSeasonPicker","import_js","import_react","import_jsx_runtime","SeatManager","CoreSeatManager","required"]}
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ import { CSSProperties } from 'react';
3
3
  import { SeatingChartOptions, SeatingChartHandle, EmbeddedDesignerMessage, SeatPickerOptions, SelectedSeat, PickerSelectionValidity, SeatPickerBestAvailableOptions, HoldResult, PickerMapTheme, SeatPickerPricing, RendererViewMode, SeatPickerBuyerView, SeatPickerBuyerViewOptions, SeasonPickerOptions, SeasonCheckoutHandoff, SeasonRenewalIntent, SeasonDescriptor, SeasonAvailability } from '@seatlayer/js';
4
4
  export { AttachPickerFrameOptions, BestAvailableResult, BuyerAccessExpiredEvent, BuyerAccessRefreshReason, BuyerAccessToken, BuyerAccessTokenProvider, BuyerAccessUnavailableEvent, BuyerAccessUnavailableReason, CheckoutHandoff, CheckoutLineItem, EmbeddedDesignerMessage, GAAreaAvailability, HoldLineItem, HoldResult, PickerMapTheme, RendererViewMode, SeasonAvailability, SeasonCheckoutHandoff, SeasonDescriptor, SeasonOfferPresentation, SeasonOperation, SeasonOperationState, SeasonPickerOptions, SeasonRenewalIntent, SeasonStatusEvent, SeatHoverDetails, SeatPickerBestAvailableOptions, SeatPickerBuyerView, SeatPickerBuyerViewOptions, SeatPickerOptions, SeatPickerPricing, SeatPickerTheme, SeatPicker as SeatPickerWidget, SeatingChartHandle, SelectedObjectUnavailableEvent, SelectedSeat, attachPickerFrame } from '@seatlayer/js';
5
5
  export { SeatManager, SeatManagerHandle, SeatManagerProps } from './manager.cjs';
6
- export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerTallies } from '@seatlayer/js/manager';
6
+ export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerRoomState, SeatManagerSale, SeatManagerTallies } from '@seatlayer/js/manager';
7
7
 
8
8
  interface SeatingChartProps extends Omit<SeatingChartOptions, 'container'> {
9
9
  className?: string;
@@ -63,7 +63,7 @@ interface EmbeddedDesignerProps {
63
63
  * fixed pixel height you manage yourself.
64
64
  */
65
65
  height?: 'fill' | number;
66
- /** Lower bound for `'fill'` sizing. Defaults to `480`. */
66
+ /** Lower bound for `'fill'` sizing. Defaults to `0` so a small host is never overrun. */
67
67
  minHeight?: number;
68
68
  /**
69
69
  * Legacy content-height auto-grow via the `seatlayer.designer.resize`
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ import { CSSProperties } from 'react';
3
3
  import { SeatingChartOptions, SeatingChartHandle, EmbeddedDesignerMessage, SeatPickerOptions, SelectedSeat, PickerSelectionValidity, SeatPickerBestAvailableOptions, HoldResult, PickerMapTheme, SeatPickerPricing, RendererViewMode, SeatPickerBuyerView, SeatPickerBuyerViewOptions, SeasonPickerOptions, SeasonCheckoutHandoff, SeasonRenewalIntent, SeasonDescriptor, SeasonAvailability } from '@seatlayer/js';
4
4
  export { AttachPickerFrameOptions, BestAvailableResult, BuyerAccessExpiredEvent, BuyerAccessRefreshReason, BuyerAccessToken, BuyerAccessTokenProvider, BuyerAccessUnavailableEvent, BuyerAccessUnavailableReason, CheckoutHandoff, CheckoutLineItem, EmbeddedDesignerMessage, GAAreaAvailability, HoldLineItem, HoldResult, PickerMapTheme, RendererViewMode, SeasonAvailability, SeasonCheckoutHandoff, SeasonDescriptor, SeasonOfferPresentation, SeasonOperation, SeasonOperationState, SeasonPickerOptions, SeasonRenewalIntent, SeasonStatusEvent, SeatHoverDetails, SeatPickerBestAvailableOptions, SeatPickerBuyerView, SeatPickerBuyerViewOptions, SeatPickerOptions, SeatPickerPricing, SeatPickerTheme, SeatPicker as SeatPickerWidget, SeatingChartHandle, SelectedObjectUnavailableEvent, SelectedSeat, attachPickerFrame } from '@seatlayer/js';
5
5
  export { SeatManager, SeatManagerHandle, SeatManagerProps } from './manager.js';
6
- export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerTallies } from '@seatlayer/js/manager';
6
+ export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerRoomState, SeatManagerSale, SeatManagerTallies } from '@seatlayer/js/manager';
7
7
 
8
8
  interface SeatingChartProps extends Omit<SeatingChartOptions, 'container'> {
9
9
  className?: string;
@@ -63,7 +63,7 @@ interface EmbeddedDesignerProps {
63
63
  * fixed pixel height you manage yourself.
64
64
  */
65
65
  height?: 'fill' | number;
66
- /** Lower bound for `'fill'` sizing. Defaults to `480`. */
66
+ /** Lower bound for `'fill'` sizing. Defaults to `0` so a small host is never overrun. */
67
67
  minHeight?: number;
68
68
  /**
69
69
  * Legacy content-height auto-grow via the `seatlayer.designer.resize`
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SeatManager
3
- } from "./chunk-UELO5MKZ.js";
3
+ } from "./chunk-JHSUDJXT.js";
4
4
 
5
5
  // src/SeatingChart.tsx
6
6
  import {
@@ -179,7 +179,7 @@ import {
179
179
  import { jsx as jsx3 } from "react/jsx-runtime";
180
180
  var SeatPicker = forwardRef3(
181
181
  function SeatPicker2(props, ref) {
182
- const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout } = props;
182
+ const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout } = props;
183
183
  const containerRef = useRef3(null);
184
184
  const pickerRef = useRef3(null);
185
185
  const closeRef = useRef3(null);
@@ -230,7 +230,7 @@ var SeatPicker = forwardRef3(
230
230
  if (pickerRef.current === picker) pickerRef.current = null;
231
231
  if (closeRef.current === close) closeRef.current = null;
232
232
  };
233
- }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout]);
233
+ }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout]);
234
234
  useImperativeHandle3(
235
235
  ref,
236
236
  () => ({
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/SeatingChart.tsx","../src/EmbeddedDesigner.tsx","../src/SeatPicker.tsx","../src/SeasonPicker.tsx","../src/index.ts"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatingChart as CoreSeatingChart,\n bindSeatingChartHandle,\n buildSeatingChartOptions,\n type SeatingChartHandle,\n type SeatingChartIdentityProp,\n type SeatingChartOptions,\n} from '@seatlayer/js';\n\nexport type { SelectedSeat, HoldResult, BestAvailableResult, GAAreaAvailability, HoldLineItem } from '@seatlayer/js';\nexport type { SeatHoverDetails } from '@seatlayer/js';\n\n/** Imperative handle exposed via `ref` — call these to drive the picker from your app. */\nexport type { SeatingChartHandle } from '@seatlayer/js';\n\nexport interface SeatingChartProps extends Omit<SeatingChartOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic `@seatlayer/js` SDK.\n *\n * The underlying canvas is created once and torn down on unmount. Callback props\n * (`onSelectionChange`, `onHold`, `onError`, `onDeckTap`, `onHint`) may change\n * freely between renders without re-mounting the canvas — only the props in\n * `SEATING_CHART_IDENTITY_PROPS` (`event`, `apiBase`, `maxSelection`, `numberOfPlacesToSelect`, `selectionValidators`,\n * `publicKey`, `locale`, `currency`, `colorblindSafe`, `initialView`,\n * `errorDisplay`) trigger a rebuild.\n * (`messages`, `selectedObjects`, and `selectableObjects` are read once per\n * mount; change selection policy later through the imperative handle.)\n */\nexport const SeatingChart = forwardRef<SeatingChartHandle, SeatingChartProps>(\n function SeatingChart(props, ref) {\n const {\n className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects,\n numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency,\n colorblindSafe, initialView, errorDisplay,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const chartRef = useRef<CoreSeatingChart | null>(null);\n\n // Always call the latest callbacks without rebuilding the chart.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const chart = new CoreSeatingChart(buildSeatingChartOptions(\n el,\n {\n event,\n apiBase,\n maxSelection,\n selectedObjects,\n selectableObjects,\n numberOfPlacesToSelect,\n selectionValidators,\n publicKey,\n locale,\n currency,\n colorblindSafe,\n initialView,\n errorDisplay,\n messages: callbacks.current.messages,\n seatTooltip: props.seatTooltip,\n // Read through the ref so a host may pass the provider as an inline\n // arrow without its new identity tearing the canvas down each render.\n buyerAccessTokenProvider: props.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n buyerAccessToken: callbacks.current.buyerAccessToken,\n },\n {\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHold: (result) => callbacks.current.onHold?.(result),\n onHoldRestored: (result) => callbacks.current.onHoldRestored?.(result),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onGAClick: (area) => callbacks.current.onGAClick?.(area),\n onError: (err) => callbacks.current.onError?.(err),\n onDeckTap: (floorId) => callbacks.current.onDeckTap?.(floorId),\n onHint: (message) => callbacks.current.onHint?.(message),\n onSeatHover: (details) => callbacks.current.onSeatHover?.(details),\n },\n ));\n chartRef.current = chart;\n void chart.render();\n\n return () => {\n chart.destroy();\n chartRef.current = null;\n };\n // Rebuild only when the identity of the chart changes — this dependency\n // array is SEATING_CHART_IDENTITY_PROPS, spelled out because React's\n // linter (and its compiler) must see the literal list.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, initialView, errorDisplay]);\n\n useImperativeHandle(ref, () => bindSeatingChartHandle(() => chartRef.current), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\n/**\n * The `useEffect` dependency array above must list every identity prop, and\n * React's linter and compiler both require it to be a literal — so it cannot be\n * spread from `SEATING_CHART_IDENTITY_PROPS` the way Vue's watcher and Angular's\n * `ngOnChanges` do. This is the compile-time proof that the literal is still\n * complete: add a prop to the shared list without adding it above and\n * `MissingIdentityDeps` stops being `never`, which fails this line. Types only —\n * nothing here reaches the bundle.\n */\ntype MissingIdentityDeps = Exclude<\n SeatingChartIdentityProp,\n | 'event' | 'apiBase' | 'maxSelection' | 'numberOfPlacesToSelect' | 'selectionValidators'\n | 'publicKey' | 'locale'\n | 'currency' | 'colorblindSafe' | 'initialView' | 'errorDisplay'\n>;\ntype Assert<T extends true> = T;\ntype _IdentityDepsAreComplete = Assert<[MissingIdentityDeps] extends [never] ? true : false>;\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n EmbeddedDesigner as CoreEmbeddedDesigner,\n type EmbeddedDesignerMessage,\n} from '@seatlayer/js';\n\nexport type { EmbeddedDesignerMessage } from '@seatlayer/js';\n\nexport interface EmbeddedDesignerHandle {\n /** Recreate the iframe with a newly-minted session URL. */\n setDesignerUrl(designerUrl: string): void;\n /** The currently mounted iframe, if any. */\n getIframe(): HTMLIFrameElement | null;\n}\n\nexport interface EmbeddedDesignerProps {\n /** Short-lived `designerUrl` returned by your backend. Never pass an `sk_` key. */\n designerUrl: string;\n expectedChartId?: string;\n expectedWorkspaceId?: string;\n title?: string;\n className?: string;\n style?: CSSProperties;\n iframeClassName?: string;\n iframeStyle?: Partial<CSSStyleDeclaration>;\n allow?: string;\n referrerPolicy?: ReferrerPolicy;\n /**\n * Show the built-in branded loading skeleton and error/expiry card inside the\n * container while the Designer boots. Defaults to `true`. Set `false` when you\n * render your own loading and error chrome.\n */\n showLoadingState?: boolean;\n /**\n * If the Designer never posts `ready` within this many milliseconds, the host\n * shows the error card with a timeout message. Defaults to `20000`.\n */\n loadingTimeoutMs?: number;\n /**\n * How the iframe is sized. `'fill'` (the default) is **container-aware**: if the\n * container has a definite height (a sized block, `flex-1 min-h-0`, a resolved\n * `%`) the Designer fills 100% of it and tracks its size via a `ResizeObserver`;\n * if the container is content-sized (full-page usage) the Designer fills the\n * viewport (`window.innerHeight` minus the iframe's top offset). Either way the\n * result is clamped to `minHeight` and re-probed on resize. Heights are applied\n * with `!important` so a host theme can't override them. Pass a number for a\n * fixed pixel height you manage yourself.\n */\n height?: 'fill' | number;\n /** Lower bound for `'fill'` sizing. Defaults to `480`. */\n minHeight?: number;\n /**\n * Legacy content-height auto-grow via the `seatlayer.designer.resize`\n * protocol. Only honored when `height` is a number; with the default\n * `height: 'fill'` the resize messages are ignored and the SDK sizes the iframe\n * to the container or viewport.\n */\n autoResize?: boolean;\n /**\n * Called when the user presses \"Try again\" on the error card. Mint a fresh\n * session and set the new `designerUrl` (recreating the iframe returns it to\n * the loading state). When omitted, \"Try again\" reloads the current URL.\n *\n * When supplied, it also powers automatic session renewal — see\n * {@link EmbeddedDesignerProps.autoRenewSession}.\n */\n onRequestRelaunch?: () => void;\n /**\n * Keep long editing sessions alive with no expiry wall. When you supply\n * `onRequestRelaunch`, the SDK schedules a silent relaunch shortly before the\n * session's `expiresAt` (mint a fresh session and update `designerUrl` in your\n * `onRequestRelaunch` handler), and makes one automatic recovery attempt if an\n * expiry error still slips through before showing the \"Try again\" card. Defaults\n * to `true` whenever `onRequestRelaunch` is provided; a no-op without it. Set\n * `false` to keep the fully manual \"Try again\" behavior.\n */\n autoRenewSession?: boolean;\n onReady?: (message: EmbeddedDesignerMessage) => void;\n onSaved?: (message: EmbeddedDesignerMessage) => void;\n onPublished?: (message: EmbeddedDesignerMessage) => void;\n onClose?: (message: EmbeddedDesignerMessage) => void;\n onError?: (message: EmbeddedDesignerMessage) => void;\n}\n\n/**\n * Native-feeling React host for the secure SeatLayer Designer iframe.\n * A new `designerUrl` always recreates the iframe, so a new fragment token can\n * never retain state from an earlier chart session.\n */\nexport const EmbeddedDesigner = forwardRef<EmbeddedDesignerHandle, EmbeddedDesignerProps>(\n function EmbeddedDesigner(props, ref) {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const designerRef = useRef<CoreEmbeddedDesigner | null>(null);\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n const designer = new CoreEmbeddedDesigner({\n designerUrl: props.designerUrl,\n container,\n expectedChartId: props.expectedChartId,\n expectedWorkspaceId: props.expectedWorkspaceId,\n title: props.title,\n className: props.iframeClassName,\n style: props.iframeStyle,\n allow: props.allow,\n referrerPolicy: props.referrerPolicy,\n showLoadingState: props.showLoadingState,\n loadingTimeoutMs: props.loadingTimeoutMs,\n height: props.height,\n minHeight: props.minHeight,\n autoResize: props.autoResize,\n autoRenewSession: props.autoRenewSession,\n // Only forward a relaunch hook when the host supplied one, so the core's\n // \"reload the same URL in place\" fallback still applies otherwise.\n onRequestRelaunch: props.onRequestRelaunch\n ? () => callbacks.current.onRequestRelaunch?.()\n : undefined,\n onReady: (message) => callbacks.current.onReady?.(message),\n onSaved: (message) => callbacks.current.onSaved?.(message),\n onPublished: (message) => callbacks.current.onPublished?.(message),\n onClose: (message) => callbacks.current.onClose?.(message),\n onError: (message) => callbacks.current.onError?.(message),\n });\n designer.mount();\n designerRef.current = designer;\n return () => {\n designer.destroy();\n designerRef.current = null;\n };\n // Session/chart identity changes must recreate the iframe. Sizing and\n // relaunch policy are updated in place below; callbacks are read from refs.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.designerUrl, props.expectedChartId, props.expectedWorkspaceId, props.title, props.iframeClassName, props.iframeStyle, props.allow, props.referrerPolicy, props.showLoadingState, props.loadingTimeoutMs, props.autoResize]);\n\n useEffect(() => {\n designerRef.current?.setSizing(props.height, props.minHeight);\n }, [props.height, props.minHeight]);\n\n useEffect(() => {\n designerRef.current?.setRelaunchPolicy(\n props.onRequestRelaunch ? () => callbacks.current.onRequestRelaunch?.() : undefined,\n props.autoRenewSession,\n );\n }, [!!props.onRequestRelaunch, props.autoRenewSession]);\n\n useImperativeHandle(ref, () => ({\n setDesignerUrl: (designerUrl) => { designerRef.current?.setDesignerUrl(designerUrl); },\n getIframe: () => designerRef.current?.getIframe() ?? null,\n }), []);\n\n return <div ref={containerRef} className={props.className} style={props.style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatPicker as CoreSeatPicker,\n type SeatPickerOptions,\n type SeatPickerTheme,\n type SeatPickerPricing,\n type SeatPickerBestAvailableOptions,\n type SeatPickerBuyerView,\n type SeatPickerBuyerViewOptions,\n type PickerMapTheme,\n type PickerSelectionValidity,\n type RendererViewMode,\n type SelectedSeat,\n type HoldResult,\n} from '@seatlayer/js';\n\nexport type {\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n PickerSelectionValidity,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from '@seatlayer/js';\n\n/** Imperative handle for the full-experience picker widget. */\nexport interface SeatPickerHandle {\n /** Logically close the picker. React still owns component unmount/teardown. */\n close(): void;\n /** Current selection with resolved prices. */\n getSelection(): SelectedSeat[];\n /** Select free objects by engine id or public label. */\n selectObjects(objects: string[]): SelectedSeat[];\n /** Deselect objects by engine id or public label. */\n deselectObjects(objects: string[]): void;\n /** Clear every unheld selection. */\n clearSelection(): void;\n /** Select every selectable object in the named categories. */\n selectCategories(categoryKeys: string[]): SelectedSeat[];\n /** Deselect every selected object in the named categories. */\n deselectCategories(categoryKeys: string[]): void;\n /** Replace the buyer-selectable object allow-list without remounting. */\n setSelectableObjects(objects: string[] | null): void;\n /** Change the active selection cap without remounting. */\n setMaxSelection(maxSelection: number): void;\n /** Current exact-count validity, or null when exact selection is disabled. */\n getSelectionValidity(): PickerSelectionValidity | null;\n /** Server-side best seats + hold, reflected in the widget tray. */\n bestAvailable(\n qty: number,\n categoryKey?: string,\n options?: SeatPickerBestAvailableOptions,\n ): Promise<HoldResult | null>;\n /** Current active/restored hold reflected in the tray. */\n getCurrentHold(): HoldResult | null;\n /** Restore an active hold by its opaque id. */\n resumeHold(holdId: string): Promise<HoldResult | null>;\n /** Remove one held ticket while preserving the remainder. */\n removeHeldTicket(label: string): Promise<boolean>;\n /** Release the current hold (if any) and reset the tray. */\n release(): Promise<void>;\n /**\n * Re-acquire the buyer access session after your app re-authorizes the buyer\n * (Sales Channels). Resolves false when the picker is not access-scoped.\n */\n refreshAccess(): Promise<boolean>;\n /** Re-ink the drawn map without rebuilding the picker or disturbing a hold. */\n setMapTheme(map: PickerMapTheme | null): void;\n /** Hide or restore duplicate event identity after mount. */\n setEventDetailsHidden(hidden: boolean): void;\n /** Replace host display-pricing overrides without remounting. */\n setPricing(pricing: SeatPickerPricing | undefined): void;\n /** Current colorblind-safe buyer preference. */\n isColorblindSafe(): boolean;\n /** Update the colorblind-safe buyer preference and renderer. */\n setColorblindSafe(on: boolean): void;\n /** Switch the underlying 2D map projection. */\n setViewMode(mode: RendererViewMode): void;\n /** Current 2D map projection. */\n getViewMode(): RendererViewMode;\n /** Current buyer surface: map or interactive 3D venue. */\n getBuyerView(): SeatPickerBuyerView;\n /** Switch the buyer surface, optionally carrying a 3D camera intent. */\n setBuyerView(view: SeatPickerBuyerView, options?: SeatPickerBuyerViewOptions): void;\n}\n\nexport interface SeatPickerProps extends Omit<SeatPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the full SeatPicker widget (header · live price panel ·\n * tray · GA · hold countdown · toasts). The widget is container-adaptive: give\n * the wrapping div a size and it lays itself out for that box (side panel wide,\n * bottom sheet narrow). For the one-call modal, use `SeatPicker.open()` from\n * `@seatlayer/js` directly.\n */\nexport const SeatPicker = forwardRef<SeatPickerHandle, SeatPickerProps>(\n function SeatPicker(props, ref) {\n const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeatPicker | null>(null);\n const closeRef = useRef<(() => void) | null>(null);\n\n // Always call the latest callbacks without rebuilding the widget.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n // Forward every option the host passed. Spreading rather than naming each\n // field keeps new core options (pricing, hideBadge, transport, …) working\n // here the day they ship: a hand-maintained list silently drops anything\n // it forgets, and `SeatPickerProps extends SeatPickerOptions` means such a\n // drop still type-checks clean for the host.\n const { className: _className, style: _style, ...options } = callbacks.current;\n\n const picker = new CoreSeatPicker({\n ...options,\n container: el,\n onCheckout: (hold, seats, handoff) => callbacks.current.onCheckout?.(hold, seats, handoff),\n onBooked: (handoff) => callbacks.current.onBooked?.(handoff),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHoldChange: (hold, seats, handoff) => callbacks.current.onHoldChange?.(hold, seats, handoff),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onHoldRestored: (hold, seats, handoff) => callbacks.current.onHoldRestored?.(hold, seats, handoff),\n onError: (err) => callbacks.current.onError?.(err),\n // Sales Channels. The provider is read through the ref for the same\n // reason as every other callback: a host may pass an inline arrow.\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n // Hosted checkout. Read through the ref like every other callback — the\n // spread above would freeze an inline arrow at construction, and these\n // two fire long after it (a payment webhook can land minutes later).\n onCheckoutUnavailable: (state) => callbacks.current.onCheckoutUnavailable?.(state),\n onOrderConfirmed: (order) => callbacks.current.onOrderConfirmed?.(order),\n });\n pickerRef.current = picker;\n let closed = false;\n const close = (): void => {\n if (closed) return;\n closed = true;\n if (pickerRef.current === picker) pickerRef.current = null;\n picker.close();\n };\n closeRef.current = close;\n void picker.render();\n\n return () => {\n if (!closed) picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n if (closeRef.current === close) closeRef.current = null;\n };\n // Rebuild only when the identity of the event/config changes. Object-valued\n // options (theme, messages, pricing, transport) stay out: hosts routinely\n // pass them as inline literals, so a new identity every render would tear\n // the widget down mid-selection. They are read fresh at construction.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, confirmSelection, seatView, checkout]);\n\n useImperativeHandle(\n ref,\n (): SeatPickerHandle => ({\n close: () => closeRef.current?.(),\n getSelection: () => pickerRef.current?.getSelection() ?? [],\n selectObjects: (objects) => pickerRef.current?.selectObjects(objects) ?? [],\n deselectObjects: (objects) => pickerRef.current?.deselectObjects(objects),\n clearSelection: () => pickerRef.current?.clearSelection(),\n selectCategories: (categoryKeys) => pickerRef.current?.selectCategories(categoryKeys) ?? [],\n deselectCategories: (categoryKeys) => pickerRef.current?.deselectCategories(categoryKeys),\n setSelectableObjects: (objects) => pickerRef.current?.setSelectableObjects(objects),\n setMaxSelection: (max) => pickerRef.current?.setMaxSelection(max),\n getSelectionValidity: () => pickerRef.current?.getSelectionValidity() ?? null,\n bestAvailable: (qty, categoryKey, options) =>\n pickerRef.current?.bestAvailable(qty, categoryKey, options) ?? Promise.resolve(null),\n getCurrentHold: () => pickerRef.current?.getCurrentHold() ?? null,\n resumeHold: (holdId) => pickerRef.current?.resumeHold(holdId) ?? Promise.resolve(null),\n removeHeldTicket: (label) => pickerRef.current?.removeHeldTicket(label) ?? Promise.resolve(false),\n release: () => pickerRef.current?.release() ?? Promise.resolve(),\n refreshAccess: () => pickerRef.current?.refreshAccess() ?? Promise.resolve(false),\n setMapTheme: (map) => pickerRef.current?.setMapTheme(map),\n setEventDetailsHidden: (hidden) => pickerRef.current?.setEventDetailsHidden(hidden),\n setPricing: (pricing) => pickerRef.current?.setPricing(pricing),\n isColorblindSafe: () => pickerRef.current?.isColorblindSafe() ?? false,\n setColorblindSafe: (on) => pickerRef.current?.setColorblindSafe(on),\n setViewMode: (mode) => pickerRef.current?.setViewMode(mode),\n getViewMode: () => pickerRef.current?.getViewMode() ?? 'flat',\n getBuyerView: () => pickerRef.current?.getBuyerView() ?? 'map',\n setBuyerView: (view, options) => pickerRef.current?.setBuyerView(view, options),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeasonPicker as CoreSeasonPicker,\n type SeasonAvailability,\n type SeasonCheckoutHandoff,\n type SeasonDescriptor,\n type SeasonPickerOptions,\n type SeasonRenewalIntent,\n} from '@seatlayer/js';\n\nexport type {\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonPickerOptions,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from '@seatlayer/js';\n\n/** Imperative controls for the fixed-inclusion Season buyer flow. */\nexport interface SeasonPickerHandle {\n holdSameSeat(labels: readonly string[], operationId: string): Promise<SeasonCheckoutHandoff>;\n restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;\n release(releaseActionId: string): Promise<void>;\n createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;\n getDescriptor(): SeasonDescriptor | null;\n getAvailability(): SeasonAvailability | null;\n getHandoff(): SeasonCheckoutHandoff | null;\n}\n\n/** Props accepted by the React Season wrapper. */\nexport interface SeasonPickerProps extends Omit<SeasonPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React lifecycle adapter for the distinct fixed-inclusion `SeasonPicker`.\n * It never receives a secret key and never turns a browser handoff into proof\n * of price, payment, booking, or renewal.\n */\nexport const SeasonPicker = forwardRef<SeasonPickerHandle, SeasonPickerProps>(\n function SeasonPicker(props, ref) {\n const {\n season,\n apiBase,\n publicKey,\n checkout,\n returnUrl,\n buyerAccessToken,\n initialOperationId,\n recoveryTimeoutMs,\n fetch,\n offer,\n maxSelection,\n numberOfPlacesToSelect,\n locale,\n initialView,\n enable3D,\n theme,\n className,\n style,\n } = props;\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeasonPicker | null>(null);\n const latest = useRef(props);\n latest.current = props;\n const offerKey = JSON.stringify(offer ?? null);\n const themeKey = JSON.stringify(theme ?? null);\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n\n const { className: _className, style: _style, ...options } = latest.current;\n const picker = new CoreSeasonPicker({\n ...options,\n container,\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => latest.current.buyerAccessTokenProvider!(context)\n : undefined,\n onHold: (handoff) => latest.current.onHold?.(handoff),\n onHoldChange: (handoff) => latest.current.onHoldChange?.(handoff),\n onContinue: (handoff) => latest.current.onContinue?.(handoff),\n onRenewalIntent: (intent) => latest.current.onRenewalIntent?.(intent),\n onAccessExpired: (event) => latest.current.onAccessExpired?.(event),\n onAccessUnavailable: (event) => latest.current.onAccessUnavailable?.(event),\n onStatusChange: (event) => latest.current.onStatusChange?.(event),\n onError: (error) => latest.current.onError?.(error),\n });\n pickerRef.current = picker;\n void picker.render().catch(() => undefined);\n\n return () => {\n picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n };\n }, [\n season, apiBase, publicKey, checkout, returnUrl,\n buyerAccessToken, initialOperationId, recoveryTimeoutMs, fetch,\n offerKey, maxSelection, numberOfPlacesToSelect, locale, initialView, enable3D, themeKey,\n ]);\n\n useImperativeHandle(ref, (): SeasonPickerHandle => ({\n holdSameSeat: (labels, operationId) => required(pickerRef).holdSameSeat(labels, operationId),\n restoreOperation: (operationId) => required(pickerRef).restoreOperation(operationId),\n release: (releaseActionId) => required(pickerRef).release(releaseActionId),\n createRenewalIntent: (offerId) => required(pickerRef).createRenewalIntent(offerId),\n getDescriptor: () => pickerRef.current?.getDescriptor() ?? null,\n getAvailability: () => pickerRef.current?.getAvailability() ?? null,\n getHandoff: () => pickerRef.current?.getHandoff() ?? null,\n }), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\nfunction required(ref: { current: CoreSeasonPicker | null }): CoreSeasonPicker {\n if (!ref.current) throw new Error('seatlayer: React SeasonPicker is not mounted');\n return ref.current;\n}\n","/**\n * @seatlayer/react — the React wrapper for the SeatLayer embed SDK.\n */\nexport { SeatingChart } from './SeatingChart';\nexport { EmbeddedDesigner } from './EmbeddedDesigner';\nexport type {\n SeatingChartProps,\n SeatingChartHandle,\n SelectedSeat,\n HoldResult,\n BestAvailableResult,\n GAAreaAvailability,\n HoldLineItem,\n SeatHoverDetails,\n} from './SeatingChart';\nexport type { EmbeddedDesignerProps, EmbeddedDesignerHandle, EmbeddedDesignerMessage } from './EmbeddedDesigner';\nexport { SeatPicker } from './SeatPicker';\nexport type {\n SeatPickerHandle,\n SeatPickerProps,\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from './SeatPicker';\nexport { SeasonPicker } from './SeasonPicker';\nexport type {\n SeasonPickerHandle,\n SeasonPickerProps,\n SeasonPickerOptions,\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from './SeasonPicker';\n// The framework-agnostic widget class — for the one-call modal (SeatPickerWidget.open()).\nexport { SeatPicker as SeatPickerWidget } from '@seatlayer/js';\n// Host-side embed helper: grows the iframe on `seatlayer:height` and pins it on\n// `seatlayer:fullscreen`. React hosts depend on this package alone, so it has to\n// be reachable here rather than only from @seatlayer/js.\nexport { attachPickerFrame } from '@seatlayer/js';\nexport type { AttachPickerFrameOptions } from '@seatlayer/js';\n\n// Organizer control room: Monitor + Inspect + bulk Block/unblock on one renderer.\nexport { SeatManager } from './SeatManager';\nexport type {\n SeatManagerHandle,\n SeatManagerProps,\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n} from './SeatManager';\nexport type {\n ControlRoomActivityEntry,\n ControlRoomSectionMetric,\n ControlRoomSnapshot,\n} from '@seatlayer/js/manager';\n// Sales Channels — buyer access sessions for private channel inventory.\nexport type {\n BuyerAccessToken,\n BuyerAccessTokenProvider,\n BuyerAccessRefreshReason,\n BuyerAccessUnavailableReason,\n BuyerAccessExpiredEvent,\n BuyerAccessUnavailableEvent,\n SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n"],"mappings":";;;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,OAIK;AAwGI;AA/EJ,IAAM,eAAe;AAAA,EAC1B,SAASA,cAAa,OAAO,KAAK;AAChC,UAAM;AAAA,MACJ;AAAA,MAAW;AAAA,MAAO;AAAA,MAAO;AAAA,MAAS;AAAA,MAAc;AAAA,MAAiB;AAAA,MACjE;AAAA,MAAwB;AAAA,MAAqB;AAAA,MAAW;AAAA,MAAQ;AAAA,MAChE;AAAA,MAAgB;AAAA,MAAa;AAAA,IAC/B,IAAI;AAEJ,UAAM,eAAe,OAA8B,IAAI;AACvD,UAAM,WAAW,OAAgC,IAAI;AAGrD,UAAM,YAAY,OAAO,KAAK;AAC9B,cAAU,UAAU;AAEpB,cAAU,MAAM;AACd,YAAM,KAAK,aAAa;AACxB,UAAI,CAAC,GAAI;AAET,YAAM,QAAQ,IAAI,iBAAiB;AAAA,QACjC;AAAA,QACA;AAAA,UACE;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,UAAU,UAAU,QAAQ;AAAA,UAC5B,aAAa,MAAM;AAAA;AAAA;AAAA,UAGnB,0BAA0B,MAAM,2BAC5B,CAAC,YAAY,UAAU,QAAQ,yBAA0B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,OAAc;AAAA,EACrE;AACF;AAEA,SAAS,SAAS,KAA6D;AAC7E,MAAI,CAAC,IAAI,QAAS,OAAM,IAAI,MAAM,8CAA8C;AAChF,SAAO,IAAI;AACb;;;ACnFA,SAAuB,cAAdE,mBAAsC;AAI/C,SAAS,yBAAyB;","names":["SeatingChart","forwardRef","useEffect","useImperativeHandle","useRef","jsx","EmbeddedDesigner","forwardRef","useEffect","useImperativeHandle","useRef","jsx","SeatPicker","forwardRef","useEffect","useImperativeHandle","useRef","jsx","SeasonPicker","SeatPicker"]}
1
+ {"version":3,"sources":["../src/SeatingChart.tsx","../src/EmbeddedDesigner.tsx","../src/SeatPicker.tsx","../src/SeasonPicker.tsx","../src/index.ts"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatingChart as CoreSeatingChart,\n bindSeatingChartHandle,\n buildSeatingChartOptions,\n type SeatingChartHandle,\n type SeatingChartIdentityProp,\n type SeatingChartOptions,\n} from '@seatlayer/js';\n\nexport type { SelectedSeat, HoldResult, BestAvailableResult, GAAreaAvailability, HoldLineItem } from '@seatlayer/js';\nexport type { SeatHoverDetails } from '@seatlayer/js';\n\n/** Imperative handle exposed via `ref` — call these to drive the picker from your app. */\nexport type { SeatingChartHandle } from '@seatlayer/js';\n\nexport interface SeatingChartProps extends Omit<SeatingChartOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic `@seatlayer/js` SDK.\n *\n * The underlying canvas is created once and torn down on unmount. Callback props\n * (`onSelectionChange`, `onHold`, `onError`, `onDeckTap`, `onHint`) may change\n * freely between renders without re-mounting the canvas — only the props in\n * `SEATING_CHART_IDENTITY_PROPS` (`event`, `apiBase`, `maxSelection`, `numberOfPlacesToSelect`, `selectionValidators`,\n * `publicKey`, `locale`, `currency`, `colorblindSafe`, `initialView`,\n * `errorDisplay`) trigger a rebuild.\n * (`messages`, `selectedObjects`, and `selectableObjects` are read once per\n * mount; change selection policy later through the imperative handle.)\n */\nexport const SeatingChart = forwardRef<SeatingChartHandle, SeatingChartProps>(\n function SeatingChart(props, ref) {\n const {\n className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects,\n numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency,\n colorblindSafe, initialView, errorDisplay,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const chartRef = useRef<CoreSeatingChart | null>(null);\n\n // Always call the latest callbacks without rebuilding the chart.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const chart = new CoreSeatingChart(buildSeatingChartOptions(\n el,\n {\n event,\n apiBase,\n maxSelection,\n selectedObjects,\n selectableObjects,\n numberOfPlacesToSelect,\n selectionValidators,\n publicKey,\n locale,\n currency,\n colorblindSafe,\n initialView,\n errorDisplay,\n messages: callbacks.current.messages,\n seatTooltip: props.seatTooltip,\n // Read through the ref so a host may pass the provider as an inline\n // arrow without its new identity tearing the canvas down each render.\n buyerAccessTokenProvider: props.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n buyerAccessToken: callbacks.current.buyerAccessToken,\n },\n {\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHold: (result) => callbacks.current.onHold?.(result),\n onHoldRestored: (result) => callbacks.current.onHoldRestored?.(result),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onGAClick: (area) => callbacks.current.onGAClick?.(area),\n onError: (err) => callbacks.current.onError?.(err),\n onDeckTap: (floorId) => callbacks.current.onDeckTap?.(floorId),\n onHint: (message) => callbacks.current.onHint?.(message),\n onSeatHover: (details) => callbacks.current.onSeatHover?.(details),\n },\n ));\n chartRef.current = chart;\n void chart.render();\n\n return () => {\n chart.destroy();\n chartRef.current = null;\n };\n // Rebuild only when the identity of the chart changes — this dependency\n // array is SEATING_CHART_IDENTITY_PROPS, spelled out because React's\n // linter (and its compiler) must see the literal list.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, initialView, errorDisplay]);\n\n useImperativeHandle(ref, () => bindSeatingChartHandle(() => chartRef.current), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\n/**\n * The `useEffect` dependency array above must list every identity prop, and\n * React's linter and compiler both require it to be a literal — so it cannot be\n * spread from `SEATING_CHART_IDENTITY_PROPS` the way Vue's watcher and Angular's\n * `ngOnChanges` do. This is the compile-time proof that the literal is still\n * complete: add a prop to the shared list without adding it above and\n * `MissingIdentityDeps` stops being `never`, which fails this line. Types only —\n * nothing here reaches the bundle.\n */\ntype MissingIdentityDeps = Exclude<\n SeatingChartIdentityProp,\n | 'event' | 'apiBase' | 'maxSelection' | 'numberOfPlacesToSelect' | 'selectionValidators'\n | 'publicKey' | 'locale'\n | 'currency' | 'colorblindSafe' | 'initialView' | 'errorDisplay'\n>;\ntype Assert<T extends true> = T;\ntype _IdentityDepsAreComplete = Assert<[MissingIdentityDeps] extends [never] ? true : false>;\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n EmbeddedDesigner as CoreEmbeddedDesigner,\n type EmbeddedDesignerMessage,\n} from '@seatlayer/js';\n\nexport type { EmbeddedDesignerMessage } from '@seatlayer/js';\n\nexport interface EmbeddedDesignerHandle {\n /** Recreate the iframe with a newly-minted session URL. */\n setDesignerUrl(designerUrl: string): void;\n /** The currently mounted iframe, if any. */\n getIframe(): HTMLIFrameElement | null;\n}\n\nexport interface EmbeddedDesignerProps {\n /** Short-lived `designerUrl` returned by your backend. Never pass an `sk_` key. */\n designerUrl: string;\n expectedChartId?: string;\n expectedWorkspaceId?: string;\n title?: string;\n className?: string;\n style?: CSSProperties;\n iframeClassName?: string;\n iframeStyle?: Partial<CSSStyleDeclaration>;\n allow?: string;\n referrerPolicy?: ReferrerPolicy;\n /**\n * Show the built-in branded loading skeleton and error/expiry card inside the\n * container while the Designer boots. Defaults to `true`. Set `false` when you\n * render your own loading and error chrome.\n */\n showLoadingState?: boolean;\n /**\n * If the Designer never posts `ready` within this many milliseconds, the host\n * shows the error card with a timeout message. Defaults to `20000`.\n */\n loadingTimeoutMs?: number;\n /**\n * How the iframe is sized. `'fill'` (the default) is **container-aware**: if the\n * container has a definite height (a sized block, `flex-1 min-h-0`, a resolved\n * `%`) the Designer fills 100% of it and tracks its size via a `ResizeObserver`;\n * if the container is content-sized (full-page usage) the Designer fills the\n * viewport (`window.innerHeight` minus the iframe's top offset). Either way the\n * result is clamped to `minHeight` and re-probed on resize. Heights are applied\n * with `!important` so a host theme can't override them. Pass a number for a\n * fixed pixel height you manage yourself.\n */\n height?: 'fill' | number;\n /** Lower bound for `'fill'` sizing. Defaults to `0` so a small host is never overrun. */\n minHeight?: number;\n /**\n * Legacy content-height auto-grow via the `seatlayer.designer.resize`\n * protocol. Only honored when `height` is a number; with the default\n * `height: 'fill'` the resize messages are ignored and the SDK sizes the iframe\n * to the container or viewport.\n */\n autoResize?: boolean;\n /**\n * Called when the user presses \"Try again\" on the error card. Mint a fresh\n * session and set the new `designerUrl` (recreating the iframe returns it to\n * the loading state). When omitted, \"Try again\" reloads the current URL.\n *\n * When supplied, it also powers automatic session renewal — see\n * {@link EmbeddedDesignerProps.autoRenewSession}.\n */\n onRequestRelaunch?: () => void;\n /**\n * Keep long editing sessions alive with no expiry wall. When you supply\n * `onRequestRelaunch`, the SDK schedules a silent relaunch shortly before the\n * session's `expiresAt` (mint a fresh session and update `designerUrl` in your\n * `onRequestRelaunch` handler), and makes one automatic recovery attempt if an\n * expiry error still slips through before showing the \"Try again\" card. Defaults\n * to `true` whenever `onRequestRelaunch` is provided; a no-op without it. Set\n * `false` to keep the fully manual \"Try again\" behavior.\n */\n autoRenewSession?: boolean;\n onReady?: (message: EmbeddedDesignerMessage) => void;\n onSaved?: (message: EmbeddedDesignerMessage) => void;\n onPublished?: (message: EmbeddedDesignerMessage) => void;\n onClose?: (message: EmbeddedDesignerMessage) => void;\n onError?: (message: EmbeddedDesignerMessage) => void;\n}\n\n/**\n * Native-feeling React host for the secure SeatLayer Designer iframe.\n * A new `designerUrl` always recreates the iframe, so a new fragment token can\n * never retain state from an earlier chart session.\n */\nexport const EmbeddedDesigner = forwardRef<EmbeddedDesignerHandle, EmbeddedDesignerProps>(\n function EmbeddedDesigner(props, ref) {\n const containerRef = useRef<HTMLDivElement | null>(null);\n const designerRef = useRef<CoreEmbeddedDesigner | null>(null);\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n const designer = new CoreEmbeddedDesigner({\n designerUrl: props.designerUrl,\n container,\n expectedChartId: props.expectedChartId,\n expectedWorkspaceId: props.expectedWorkspaceId,\n title: props.title,\n className: props.iframeClassName,\n style: props.iframeStyle,\n allow: props.allow,\n referrerPolicy: props.referrerPolicy,\n showLoadingState: props.showLoadingState,\n loadingTimeoutMs: props.loadingTimeoutMs,\n height: props.height,\n minHeight: props.minHeight,\n autoResize: props.autoResize,\n autoRenewSession: props.autoRenewSession,\n // Only forward a relaunch hook when the host supplied one, so the core's\n // \"reload the same URL in place\" fallback still applies otherwise.\n onRequestRelaunch: props.onRequestRelaunch\n ? () => callbacks.current.onRequestRelaunch?.()\n : undefined,\n onReady: (message) => callbacks.current.onReady?.(message),\n onSaved: (message) => callbacks.current.onSaved?.(message),\n onPublished: (message) => callbacks.current.onPublished?.(message),\n onClose: (message) => callbacks.current.onClose?.(message),\n onError: (message) => callbacks.current.onError?.(message),\n });\n designer.mount();\n designerRef.current = designer;\n return () => {\n designer.destroy();\n designerRef.current = null;\n };\n // Session/chart identity changes must recreate the iframe. Sizing and\n // relaunch policy are updated in place below; callbacks are read from refs.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [props.designerUrl, props.expectedChartId, props.expectedWorkspaceId, props.title, props.iframeClassName, props.iframeStyle, props.allow, props.referrerPolicy, props.showLoadingState, props.loadingTimeoutMs, props.autoResize]);\n\n useEffect(() => {\n designerRef.current?.setSizing(props.height, props.minHeight);\n }, [props.height, props.minHeight]);\n\n useEffect(() => {\n designerRef.current?.setRelaunchPolicy(\n props.onRequestRelaunch ? () => callbacks.current.onRequestRelaunch?.() : undefined,\n props.autoRenewSession,\n );\n }, [!!props.onRequestRelaunch, props.autoRenewSession]);\n\n useImperativeHandle(ref, () => ({\n setDesignerUrl: (designerUrl) => { designerRef.current?.setDesignerUrl(designerUrl); },\n getIframe: () => designerRef.current?.getIframe() ?? null,\n }), []);\n\n return <div ref={containerRef} className={props.className} style={props.style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatPicker as CoreSeatPicker,\n type SeatPickerOptions,\n type SeatPickerTheme,\n type SeatPickerPricing,\n type SeatPickerBestAvailableOptions,\n type SeatPickerBuyerView,\n type SeatPickerBuyerViewOptions,\n type PickerMapTheme,\n type PickerSelectionValidity,\n type RendererViewMode,\n type SelectedSeat,\n type HoldResult,\n} from '@seatlayer/js';\n\nexport type {\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n PickerSelectionValidity,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from '@seatlayer/js';\n\n/** Imperative handle for the full-experience picker widget. */\nexport interface SeatPickerHandle {\n /** Logically close the picker. React still owns component unmount/teardown. */\n close(): void;\n /** Current selection with resolved prices. */\n getSelection(): SelectedSeat[];\n /** Select free objects by engine id or public label. */\n selectObjects(objects: string[]): SelectedSeat[];\n /** Deselect objects by engine id or public label. */\n deselectObjects(objects: string[]): void;\n /** Clear every unheld selection. */\n clearSelection(): void;\n /** Select every selectable object in the named categories. */\n selectCategories(categoryKeys: string[]): SelectedSeat[];\n /** Deselect every selected object in the named categories. */\n deselectCategories(categoryKeys: string[]): void;\n /** Replace the buyer-selectable object allow-list without remounting. */\n setSelectableObjects(objects: string[] | null): void;\n /** Change the active selection cap without remounting. */\n setMaxSelection(maxSelection: number): void;\n /** Current exact-count validity, or null when exact selection is disabled. */\n getSelectionValidity(): PickerSelectionValidity | null;\n /** Server-side best seats + hold, reflected in the widget tray. */\n bestAvailable(\n qty: number,\n categoryKey?: string,\n options?: SeatPickerBestAvailableOptions,\n ): Promise<HoldResult | null>;\n /** Current active/restored hold reflected in the tray. */\n getCurrentHold(): HoldResult | null;\n /** Restore an active hold by its opaque id. */\n resumeHold(holdId: string): Promise<HoldResult | null>;\n /** Remove one held ticket while preserving the remainder. */\n removeHeldTicket(label: string): Promise<boolean>;\n /** Release the current hold (if any) and reset the tray. */\n release(): Promise<void>;\n /**\n * Re-acquire the buyer access session after your app re-authorizes the buyer\n * (Sales Channels). Resolves false when the picker is not access-scoped.\n */\n refreshAccess(): Promise<boolean>;\n /** Re-ink the drawn map without rebuilding the picker or disturbing a hold. */\n setMapTheme(map: PickerMapTheme | null): void;\n /** Hide or restore duplicate event identity after mount. */\n setEventDetailsHidden(hidden: boolean): void;\n /** Replace host display-pricing overrides without remounting. */\n setPricing(pricing: SeatPickerPricing | undefined): void;\n /** Current colorblind-safe buyer preference. */\n isColorblindSafe(): boolean;\n /** Update the colorblind-safe buyer preference and renderer. */\n setColorblindSafe(on: boolean): void;\n /** Switch the underlying 2D map projection. */\n setViewMode(mode: RendererViewMode): void;\n /** Current 2D map projection. */\n getViewMode(): RendererViewMode;\n /** Current buyer surface: map or interactive 3D venue. */\n getBuyerView(): SeatPickerBuyerView;\n /** Switch the buyer surface, optionally carrying a 3D camera intent. */\n setBuyerView(view: SeatPickerBuyerView, options?: SeatPickerBuyerViewOptions): void;\n}\n\nexport interface SeatPickerProps extends Omit<SeatPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the full SeatPicker widget (header · live price panel ·\n * tray · GA · hold countdown · toasts). The widget is container-adaptive: give\n * the wrapping div a size and it lays itself out for that box (side panel wide,\n * bottom sheet narrow). For the one-call modal, use `SeatPicker.open()` from\n * `@seatlayer/js` directly.\n */\nexport const SeatPicker = forwardRef<SeatPickerHandle, SeatPickerProps>(\n function SeatPicker(props, ref) {\n const { className, style, event, apiBase, maxSelection, selectedObjects, selectableObjects, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeatPicker | null>(null);\n const closeRef = useRef<(() => void) | null>(null);\n\n // Always call the latest callbacks without rebuilding the widget.\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n // Forward every option the host passed. Spreading rather than naming each\n // field keeps new core options (pricing, hideBadge, transport, …) working\n // here the day they ship: a hand-maintained list silently drops anything\n // it forgets, and `SeatPickerProps extends SeatPickerOptions` means such a\n // drop still type-checks clean for the host.\n const { className: _className, style: _style, ...options } = callbacks.current;\n\n const picker = new CoreSeatPicker({\n ...options,\n container: el,\n onCheckout: (hold, seats, handoff) => callbacks.current.onCheckout?.(hold, seats, handoff),\n onBooked: (handoff) => callbacks.current.onBooked?.(handoff),\n onSelectionChange: (seats) => callbacks.current.onSelectionChange?.(seats),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (seats) => callbacks.current.onSelectionValid?.(seats),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onHoldChange: (hold, seats, handoff) => callbacks.current.onHoldChange?.(hold, seats, handoff),\n onHoldExpired: () => callbacks.current.onHoldExpired?.(),\n onHoldRestored: (hold, seats, handoff) => callbacks.current.onHoldRestored?.(hold, seats, handoff),\n onError: (err) => callbacks.current.onError?.(err),\n // Sales Channels. The provider is read through the ref for the same\n // reason as every other callback: a host may pass an inline arrow.\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => callbacks.current.buyerAccessTokenProvider!(context)\n : undefined,\n onAccessExpired: (state) => callbacks.current.onAccessExpired?.(state),\n onAccessUnavailable: (state) => callbacks.current.onAccessUnavailable?.(state),\n onSelectedObjectUnavailable: (state) =>\n callbacks.current.onSelectedObjectUnavailable?.(state),\n // Hosted checkout. Read through the ref like every other callback — the\n // spread above would freeze an inline arrow at construction, and these\n // two fire long after it (a payment webhook can land minutes later).\n onCheckoutUnavailable: (state) => callbacks.current.onCheckoutUnavailable?.(state),\n onOrderConfirmed: (order) => callbacks.current.onOrderConfirmed?.(order),\n });\n pickerRef.current = picker;\n let closed = false;\n const close = (): void => {\n if (closed) return;\n closed = true;\n if (pickerRef.current === picker) pickerRef.current = null;\n picker.close();\n };\n closeRef.current = close;\n void picker.render();\n\n return () => {\n if (!closed) picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n if (closeRef.current === close) closeRef.current = null;\n };\n // Rebuild only when the identity of the event/config changes. Object-valued\n // options (theme, messages, pricing, transport) stay out: hosts routinely\n // pass them as inline literals, so a new identity every render would tear\n // the widget down mid-selection. They are read fresh at construction.\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [event, apiBase, maxSelection, numberOfPlacesToSelect, selectionValidators, publicKey, locale, currency, colorblindSafe, hideBadge, holdTtlMs, initialHoldId, restoreHold, holdOnClose, confirmSelection, seatView, checkout]);\n\n useImperativeHandle(\n ref,\n (): SeatPickerHandle => ({\n close: () => closeRef.current?.(),\n getSelection: () => pickerRef.current?.getSelection() ?? [],\n selectObjects: (objects) => pickerRef.current?.selectObjects(objects) ?? [],\n deselectObjects: (objects) => pickerRef.current?.deselectObjects(objects),\n clearSelection: () => pickerRef.current?.clearSelection(),\n selectCategories: (categoryKeys) => pickerRef.current?.selectCategories(categoryKeys) ?? [],\n deselectCategories: (categoryKeys) => pickerRef.current?.deselectCategories(categoryKeys),\n setSelectableObjects: (objects) => pickerRef.current?.setSelectableObjects(objects),\n setMaxSelection: (max) => pickerRef.current?.setMaxSelection(max),\n getSelectionValidity: () => pickerRef.current?.getSelectionValidity() ?? null,\n bestAvailable: (qty, categoryKey, options) =>\n pickerRef.current?.bestAvailable(qty, categoryKey, options) ?? Promise.resolve(null),\n getCurrentHold: () => pickerRef.current?.getCurrentHold() ?? null,\n resumeHold: (holdId) => pickerRef.current?.resumeHold(holdId) ?? Promise.resolve(null),\n removeHeldTicket: (label) => pickerRef.current?.removeHeldTicket(label) ?? Promise.resolve(false),\n release: () => pickerRef.current?.release() ?? Promise.resolve(),\n refreshAccess: () => pickerRef.current?.refreshAccess() ?? Promise.resolve(false),\n setMapTheme: (map) => pickerRef.current?.setMapTheme(map),\n setEventDetailsHidden: (hidden) => pickerRef.current?.setEventDetailsHidden(hidden),\n setPricing: (pricing) => pickerRef.current?.setPricing(pricing),\n isColorblindSafe: () => pickerRef.current?.isColorblindSafe() ?? false,\n setColorblindSafe: (on) => pickerRef.current?.setColorblindSafe(on),\n setViewMode: (mode) => pickerRef.current?.setViewMode(mode),\n getViewMode: () => pickerRef.current?.getViewMode() ?? 'flat',\n getBuyerView: () => pickerRef.current?.getBuyerView() ?? 'map',\n setBuyerView: (view, options) => pickerRef.current?.setBuyerView(view, options),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeasonPicker as CoreSeasonPicker,\n type SeasonAvailability,\n type SeasonCheckoutHandoff,\n type SeasonDescriptor,\n type SeasonPickerOptions,\n type SeasonRenewalIntent,\n} from '@seatlayer/js';\n\nexport type {\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonPickerOptions,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from '@seatlayer/js';\n\n/** Imperative controls for the fixed-inclusion Season buyer flow. */\nexport interface SeasonPickerHandle {\n holdSameSeat(labels: readonly string[], operationId: string): Promise<SeasonCheckoutHandoff>;\n restoreOperation(operationId: string): Promise<SeasonCheckoutHandoff | null>;\n release(releaseActionId: string): Promise<void>;\n createRenewalIntent(offerId: string): Promise<SeasonRenewalIntent>;\n getDescriptor(): SeasonDescriptor | null;\n getAvailability(): SeasonAvailability | null;\n getHandoff(): SeasonCheckoutHandoff | null;\n}\n\n/** Props accepted by the React Season wrapper. */\nexport interface SeasonPickerProps extends Omit<SeasonPickerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React lifecycle adapter for the distinct fixed-inclusion `SeasonPicker`.\n * It never receives a secret key and never turns a browser handoff into proof\n * of price, payment, booking, or renewal.\n */\nexport const SeasonPicker = forwardRef<SeasonPickerHandle, SeasonPickerProps>(\n function SeasonPicker(props, ref) {\n const {\n season,\n apiBase,\n publicKey,\n checkout,\n returnUrl,\n buyerAccessToken,\n initialOperationId,\n recoveryTimeoutMs,\n fetch,\n offer,\n maxSelection,\n numberOfPlacesToSelect,\n locale,\n initialView,\n enable3D,\n theme,\n className,\n style,\n } = props;\n const containerRef = useRef<HTMLDivElement | null>(null);\n const pickerRef = useRef<CoreSeasonPicker | null>(null);\n const latest = useRef(props);\n latest.current = props;\n const offerKey = JSON.stringify(offer ?? null);\n const themeKey = JSON.stringify(theme ?? null);\n\n useEffect(() => {\n const container = containerRef.current;\n if (!container) return;\n\n const { className: _className, style: _style, ...options } = latest.current;\n const picker = new CoreSeasonPicker({\n ...options,\n container,\n buyerAccessTokenProvider: options.buyerAccessTokenProvider\n ? (context) => latest.current.buyerAccessTokenProvider!(context)\n : undefined,\n onHold: (handoff) => latest.current.onHold?.(handoff),\n onHoldChange: (handoff) => latest.current.onHoldChange?.(handoff),\n onContinue: (handoff) => latest.current.onContinue?.(handoff),\n onRenewalIntent: (intent) => latest.current.onRenewalIntent?.(intent),\n onAccessExpired: (event) => latest.current.onAccessExpired?.(event),\n onAccessUnavailable: (event) => latest.current.onAccessUnavailable?.(event),\n onStatusChange: (event) => latest.current.onStatusChange?.(event),\n onError: (error) => latest.current.onError?.(error),\n });\n pickerRef.current = picker;\n void picker.render().catch(() => undefined);\n\n return () => {\n picker.destroy();\n if (pickerRef.current === picker) pickerRef.current = null;\n };\n }, [\n season, apiBase, publicKey, checkout, returnUrl,\n buyerAccessToken, initialOperationId, recoveryTimeoutMs, fetch,\n offerKey, maxSelection, numberOfPlacesToSelect, locale, initialView, enable3D, themeKey,\n ]);\n\n useImperativeHandle(ref, (): SeasonPickerHandle => ({\n holdSameSeat: (labels, operationId) => required(pickerRef).holdSameSeat(labels, operationId),\n restoreOperation: (operationId) => required(pickerRef).restoreOperation(operationId),\n release: (releaseActionId) => required(pickerRef).release(releaseActionId),\n createRenewalIntent: (offerId) => required(pickerRef).createRenewalIntent(offerId),\n getDescriptor: () => pickerRef.current?.getDescriptor() ?? null,\n getAvailability: () => pickerRef.current?.getAvailability() ?? null,\n getHandoff: () => pickerRef.current?.getHandoff() ?? null,\n }), []);\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n\nfunction required(ref: { current: CoreSeasonPicker | null }): CoreSeasonPicker {\n if (!ref.current) throw new Error('seatlayer: React SeasonPicker is not mounted');\n return ref.current;\n}\n","/**\n * @seatlayer/react — the React wrapper for the SeatLayer embed SDK.\n */\nexport { SeatingChart } from './SeatingChart';\nexport { EmbeddedDesigner } from './EmbeddedDesigner';\nexport type {\n SeatingChartProps,\n SeatingChartHandle,\n SelectedSeat,\n HoldResult,\n BestAvailableResult,\n GAAreaAvailability,\n HoldLineItem,\n SeatHoverDetails,\n} from './SeatingChart';\nexport type { EmbeddedDesignerProps, EmbeddedDesignerHandle, EmbeddedDesignerMessage } from './EmbeddedDesigner';\nexport { SeatPicker } from './SeatPicker';\nexport type {\n SeatPickerHandle,\n SeatPickerProps,\n SeatPickerOptions,\n SeatPickerTheme,\n SeatPickerPricing,\n SeatPickerBestAvailableOptions,\n SeatPickerBuyerView,\n SeatPickerBuyerViewOptions,\n PickerMapTheme,\n RendererViewMode,\n CheckoutHandoff,\n CheckoutLineItem,\n} from './SeatPicker';\nexport { SeasonPicker } from './SeasonPicker';\nexport type {\n SeasonPickerHandle,\n SeasonPickerProps,\n SeasonPickerOptions,\n SeasonAvailability,\n SeasonCheckoutHandoff,\n SeasonDescriptor,\n SeasonOperation,\n SeasonOperationState,\n SeasonOfferPresentation,\n SeasonRenewalIntent,\n SeasonStatusEvent,\n} from './SeasonPicker';\n// The framework-agnostic widget class — for the one-call modal (SeatPickerWidget.open()).\nexport { SeatPicker as SeatPickerWidget } from '@seatlayer/js';\n// Host-side embed helper: grows the iframe on `seatlayer:height` and pins it on\n// `seatlayer:fullscreen`. React hosts depend on this package alone, so it has to\n// be reachable here rather than only from @seatlayer/js.\nexport { attachPickerFrame } from '@seatlayer/js';\nexport type { AttachPickerFrameOptions } from '@seatlayer/js';\n\n// Organizer control room: Monitor + Inspect + bulk Block/unblock on one renderer.\nexport { SeatManager } from './SeatManager';\nexport type {\n SeatManagerHandle,\n SeatManagerProps,\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerSale,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n SeatManagerRoomState,\n} from './SeatManager';\nexport type {\n ControlRoomActivityEntry,\n ControlRoomSectionMetric,\n ControlRoomSnapshot,\n} from '@seatlayer/js/manager';\n// Sales Channels — buyer access sessions for private channel inventory.\nexport type {\n BuyerAccessToken,\n BuyerAccessTokenProvider,\n BuyerAccessRefreshReason,\n BuyerAccessUnavailableReason,\n BuyerAccessExpiredEvent,\n BuyerAccessUnavailableEvent,\n SelectedObjectUnavailableEvent,\n} from '@seatlayer/js';\n"],"mappings":";;;;;AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE,gBAAgB;AAAA,EAChB;AAAA,EACA;AAAA,OAIK;AAwGI;AA/EJ,IAAM,eAAe;AAAA,EAC1B,SAASA,cAAa,OAAO,KAAK;AAChC,UAAM;AAAA,MACJ;AAAA,MAAW;AAAA,MAAO;AAAA,MAAO;AAAA,MAAS;AAAA,MAAc;AAAA,MAAiB;AAAA,MACjE;AAAA,MAAwB;AAAA,MAAqB;AAAA,MAAW;AAAA,MAAQ;AAAA,MAChE;AAAA,MAAgB;AAAA,MAAa;AAAA,IAC/B,IAAI;AAEJ,UAAM,eAAe,OAA8B,IAAI;AACvD,UAAM,WAAW,OAAgC,IAAI;AAGrD,UAAM,YAAY,OAAO,KAAK;AAC9B,cAAU,UAAU;AAEpB,cAAU,MAAM;AACd,YAAM,KAAK,aAAa;AACxB,UAAI,CAAC,GAAI;AAET,YAAM,QAAQ,IAAI,iBAAiB;AAAA,QACjC;AAAA,QACA;AAAA,UACE;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA,UAAU,UAAU,QAAQ;AAAA,UAC5B,aAAa,MAAM;AAAA;AAAA;AAAA,UAGnB,0BAA0B,MAAM,2BAC5B,CAAC,YAAY,UAAU,QAAQ,yBAA0B,OAAO,IAChE;AAAA,UACJ,kBAAkB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ACF;AAEA,SAAS,SAAS,KAA6D;AAC7E,MAAI,CAAC,IAAI,QAAS,OAAM,IAAI,MAAM,8CAA8C;AAChF,SAAO,IAAI;AACb;;;ACnFA,SAAuB,cAAdE,mBAAsC;AAI/C,SAAS,yBAAyB;","names":["SeatingChart","forwardRef","useEffect","useImperativeHandle","useRef","jsx","EmbeddedDesigner","forwardRef","useEffect","useImperativeHandle","useRef","jsx","SeatPicker","forwardRef","useEffect","useImperativeHandle","useRef","jsx","SeasonPicker","SeatPicker"]}
package/dist/manager.cjs CHANGED
@@ -52,7 +52,9 @@ var SeatManager = (0, import_react.forwardRef)(
52
52
  numberOfPlacesToSelect,
53
53
  isObjectSelectable,
54
54
  tools,
55
- chrome
55
+ chrome,
56
+ kpis,
57
+ timeZone
56
58
  } = props;
57
59
  const containerRef = (0, import_react.useRef)(null);
58
60
  const managerRef = (0, import_react.useRef)(null);
@@ -88,11 +90,29 @@ var SeatManager = (0, import_react.forwardRef)(
88
90
  // `minimal` = just the map (a host with its own search, totals and
89
91
  // actions). Read once at mount, like `tools`.
90
92
  chrome,
93
+ // false when the host shows the numbers in its own header (CR04). Read once at mount.
94
+ kpis,
95
+ // The event's clock for every time the room shows (audit M8). Read once at mount.
96
+ timeZone,
97
+ // "Ask an admin of <organisation>" (CR16). Read once at mount.
98
+ organizationName: callbacks.current.organizationName,
99
+ // The host's sale facts (CR18); updated in place below.
100
+ sale: callbacks.current.sale,
101
+ // The host's overlays over the map (CR18 resale strip); updated in place below.
102
+ mapInsets: callbacks.current.mapInsets,
91
103
  theme: callbacks.current.theme,
92
104
  // Light / dark / follow the operator's own preference. Applied before
93
105
  // first paint so a cockpit asked for light never flashes the war-room
94
106
  // dark on the way in.
95
107
  themeMode: callbacks.current.themeMode,
108
+ // Where a link opens the room (board CR24): read once at mount, like `mode`.
109
+ colourBy: callbacks.current.colourBy,
110
+ focusSection: callbacks.current.focusSection,
111
+ focusSeat: callbacks.current.focusSeat,
112
+ focusSeats: callbacks.current.focusSeats,
113
+ focusCategory: callbacks.current.focusCategory,
114
+ arrivedFrom: callbacks.current.arrivedFrom,
115
+ onOpenTrend: callbacks.current.onOpenTrend ? (focus) => callbacks.current.onOpenTrend?.(focus) : void 0,
96
116
  onReady: () => callbacks.current.onReady?.(),
97
117
  onTallies: (t) => callbacks.current.onTallies?.(t),
98
118
  onActivity: (activity) => callbacks.current.onActivity?.(activity),
@@ -109,8 +129,11 @@ var SeatManager = (0, import_react.forwardRef)(
109
129
  onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),
110
130
  onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),
111
131
  onAreaClick: (area) => callbacks.current.onAreaClick?.(area),
132
+ // Only a host that can show an order gets the search's "Open order".
133
+ onOpenOrder: callbacks.current.onOpenOrder ? (order) => callbacks.current.onOpenOrder?.(order) : void 0,
112
134
  onActionComplete: (r) => callbacks.current.onActionComplete?.(r),
113
135
  onConnectionChange: (s) => callbacks.current.onConnectionChange?.(s),
136
+ onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),
114
137
  onError: (e) => callbacks.current.onError?.(e)
115
138
  });
116
139
  managerRef.current = manager;
@@ -132,6 +155,14 @@ var SeatManager = (0, import_react.forwardRef)(
132
155
  (0, import_react.useEffect)(() => {
133
156
  managerRef.current?.setTheme(props.theme);
134
157
  }, [props.theme]);
158
+ const sale = props.sale;
159
+ (0, import_react.useEffect)(() => {
160
+ managerRef.current?.setSale(sale);
161
+ }, [sale?.status, sale?.tone, sale?.openedAt, sale?.pageUrl]);
162
+ const insets = props.mapInsets;
163
+ (0, import_react.useEffect)(() => {
164
+ managerRef.current?.setMapInsets(insets ?? null);
165
+ }, [insets?.top, insets?.right, insets?.bottom, insets?.left]);
135
166
  (0, import_react.useEffect)(() => {
136
167
  managerRef.current?.setThemeMode(props.themeMode);
137
168
  }, [props.themeMode]);
@@ -213,7 +244,8 @@ var SeatManager = (0, import_react.forwardRef)(
213
244
  getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),
214
245
  getConnection: () => managerRef.current?.getConnection() ?? null,
215
246
  setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),
216
- zoomToFit: () => managerRef.current?.zoomToFit()
247
+ zoomToFit: () => managerRef.current?.zoomToFit(),
248
+ showObjects: (labels, name) => managerRef.current?.showObjects(labels, name)
217
249
  }),
218
250
  []
219
251
  );
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/manager.ts","../src/SeatManager.tsx"],"sourcesContent":["/**\n * `@seatlayer/react/manager` — the organizer cockpit component, and nothing else.\n *\n * The React counterpart of `@seatlayer/js/manager`, and it exists for the same\n * reason: importing `SeatManager` from the package root drags `SeatPicker`,\n * `SeatingChart` and `EmbeddedDesigner` in with it, and through them the buyer\n * half of the engine. See the header of `@seatlayer/js`'s `src/manager.ts` for\n * the measurement and why a bundler cannot undo it from the outside.\n *\n * The one rule that makes this work: this file — and `./SeatManager` behind it\n * — must import from `@seatlayer/js/manager`, never from `@seatlayer/js`. One\n * bare-barrel import anywhere in this graph re-admits the whole buyer SDK and\n * the saving silently disappears, which is exactly the kind of regression that\n * looks like nothing at all in a diff.\n *\n * The package root keeps exporting `SeatManager` unchanged.\n */\nexport { SeatManager } from './SeatManager';\nexport type {\n SeatManagerHandle,\n SeatManagerProps,\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n} from './SeatManager';\nexport type {\n ControlRoomActivityEntry,\n ControlRoomSectionMetric,\n ControlRoomSnapshot,\n} from '@seatlayer/js/manager';\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\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 SeatManagerConnection,\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 a\n// buyer SDK that also exports the cockpit, so importing the cockpit through it\n// drags SeatPicker, SeatingChart, EmbeddedDesigner and the engine code only\n// those reach into every bundle that renders a control room. See the header of\n// `@seatlayer/js`'s `src/manager.ts` for the measurement.\n} from '@seatlayer/js/manager';\n\nexport type {\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n SeatManagerFilteredSection,\n SeatManagerSelectionValidity,\n SeatManagerCategoryPrice,\n EventTableBookingMode,\n} from '@seatlayer/js/manager';\n\n/** Imperative handle for the organizer manage board. */\nexport interface SeatManagerHandle {\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.\n *\n * Null only before the manager has mounted. Pair with the `onConnectionChange`\n * prop: the callback gives the edges, this gives the answer on demand — which\n * is what a host needs on tab focus, when no transition is coming.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n}\n\nexport interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic {@link CoreSeatManager}. Give the\n * wrapping div a size (it fills its box — a war-room board wants a big one) and\n * the manager lays out the live map + KPI bar + rails inside it. Rebuilt only\n * when the event identity / apiBase changes. Tokens, declared capabilities,\n * theme, fallback currency, background liveness, and callbacks are updated in\n * place without tearing the board down.\n */\nexport const SeatManager = forwardRef<SeatManagerHandle, SeatManagerProps>(\n function SeatManager(props, ref) {\n const {\n className, style, apiBase, eventKey, token, tokenExpiresAt,\n mode, currency, keepLiveWhileHidden, followLive, capabilities,\n selectedObjects, selectableObjects, unavailableObjectsSelectable,\n unavailableObjects, unavailableObjectsReason, categoryPrices,\n maxSelectedObjects, numberOfPlacesToSelect, isObjectSelectable, tools, chrome,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const managerRef = useRef<CoreSeatManager | null>(null);\n\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const manager = new CoreSeatManager({\n container: el,\n apiBase,\n eventKey,\n token,\n tokenExpiresAt,\n mode,\n currency,\n keepLiveWhileHidden,\n followLive,\n capabilities,\n selectedObjects,\n selectableObjects,\n unavailableObjectsSelectable,\n unavailableObjects,\n unavailableObjectsReason,\n categoryPrices,\n maxSelectedObjects,\n numberOfPlacesToSelect,\n isObjectSelectable,\n // Which tools the cockpit offers (Watch / Manage / Host tools). Read\n // once at mount like `capabilities`: hosts decide this per surface,\n // not per render.\n tools,\n // `minimal` = just the map (a host with its own search, totals and\n // actions). Read once at mount, like `tools`.\n chrome,\n theme: callbacks.current.theme,\n // Light / dark / follow the operator's own preference. Applied before\n // first paint so a cockpit asked for light never flashes the war-room\n // dark on the way in.\n themeMode: callbacks.current.themeMode,\n onReady: () => callbacks.current.onReady?.(),\n onTallies: (t: SeatManagerTallies) => callbacks.current.onTallies?.(t),\n onActivity: (activity: SeatManagerActivity) => callbacks.current.onActivity?.(activity),\n onControlRoom: (snapshot: ControlRoomSnapshot) => callbacks.current.onControlRoom?.(snapshot),\n onTokenRefresh: callbacks.current.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n onModeChange: (nextMode) => callbacks.current.onModeChange?.(nextMode),\n onFollowLiveChange: (enabled) => callbacks.current.onFollowLiveChange?.(enabled),\n onSelectionChange: (s: ExpandedSeat[]) => callbacks.current.onSelectionChange?.(s),\n onObjectSelected: (object) => callbacks.current.onObjectSelected?.(object),\n onObjectDeselected: (object) => callbacks.current.onObjectDeselected?.(object),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (state) => callbacks.current.onSelectionValid?.(state),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),\n onAreaClick: (area) => callbacks.current.onAreaClick?.(area),\n onActionComplete: (r: SeatManagerActionResult) => callbacks.current.onActionComplete?.(r),\n onConnectionChange: (s: SeatManagerConnection) => callbacks.current.onConnectionChange?.(s),\n onError: (e: unknown) => callbacks.current.onError?.(e),\n });\n managerRef.current = manager;\n void manager.render();\n\n return () => {\n manager.destroy();\n managerRef.current = null;\n };\n // Rebuild only on identity change (not on every callback change).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiBase, eventKey]);\n\n // Rotate credentials without losing camera, selection, realtime state or DOM.\n useEffect(() => {\n managerRef.current?.setToken(token, tokenExpiresAt);\n }, [token, tokenExpiresAt]);\n\n useEffect(() => {\n managerRef.current?.setCapabilities(capabilities);\n }, [capabilities]);\n\n useEffect(() => {\n managerRef.current?.setCurrency(currency);\n }, [currency]);\n\n useEffect(() => {\n managerRef.current?.setTheme(props.theme);\n }, [props.theme]);\n\n // Reflected in place: the cockpit keeps the operator's selection, the\n // camera and the realtime socket across a mode change.\n useEffect(() => {\n managerRef.current?.setThemeMode(props.themeMode);\n }, [props.themeMode]);\n\n useEffect(() => {\n managerRef.current?.setKeepLiveWhileHidden(keepLiveWhileHidden);\n }, [keepLiveWhileHidden]);\n\n useEffect(() => {\n managerRef.current?.setTokenRefresh(\n props.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n );\n }, [!!props.onTokenRefresh]);\n\n // Reflect a controlled `mode` prop onto the live instance without rebuilding.\n useEffect(() => {\n if (mode) managerRef.current?.setMode(mode);\n }, [mode]);\n\n useEffect(() => {\n if (followLive != null) managerRef.current?.setFollowLive(followLive);\n }, [followLive]);\n\n useEffect(() => {\n managerRef.current?.setSelectableObjects(selectableObjects ?? []);\n }, [selectableObjects]);\n\n useEffect(() => {\n managerRef.current?.setUnavailableObjectsSelectable(unavailableObjectsSelectable ?? true);\n }, [unavailableObjectsSelectable]);\n\n // Repainted in place: the listed seats change colour, nothing remounts.\n // The manager ignores a list with the same labels, so a host that rebuilds\n // the array each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);\n }, [unavailableObjects, unavailableObjectsReason]);\n\n // Hover prices change in place. The renderer ignores an equal price map,\n // so a host that rebuilds the object each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setCategoryPrices(categoryPrices);\n }, [categoryPrices]);\n\n useEffect(() => {\n managerRef.current?.setMaxSelectedObjects(maxSelectedObjects);\n }, [maxSelectedObjects]);\n\n useEffect(() => {\n managerRef.current?.setNumberOfPlacesToSelect(numberOfPlacesToSelect);\n }, [numberOfPlacesToSelect]);\n\n useEffect(() => {\n managerRef.current?.setObjectSelectable(isObjectSelectable);\n }, [isObjectSelectable]);\n\n useImperativeHandle(\n ref,\n (): SeatManagerHandle => ({\n setMode: (m) => managerRef.current?.setMode(m),\n setToken: (nextToken, expiresAt) => managerRef.current?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => managerRef.current?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => managerRef.current?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => managerRef.current?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => managerRef.current?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => managerRef.current?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => managerRef.current?.isFullscreen() ?? false,\n block: (labels, opts) => managerRef.current?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => managerRef.current?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => managerRef.current?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => managerRef.current?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => managerRef.current?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => managerRef.current?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => managerRef.current?.selectAll() ?? [],\n selectSection: (id) => managerRef.current?.selectSection(id) ?? [],\n selectByLabels: (labels) => managerRef.current?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => managerRef.current?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => managerRef.current?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => managerRef.current?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => managerRef.current?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => managerRef.current?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => managerRef.current?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => managerRef.current?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => managerRef.current?.clearFilteredSection(),\n focusSection: (label) => managerRef.current?.focusSection(label) ?? [],\n getFilteredSections: () => managerRef.current?.getFilteredSections() ?? [],\n clearSelection: () => managerRef.current?.clearSelection(),\n getSelection: () => managerRef.current?.getSelection() ?? [],\n getReport: () => managerRef.current?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => managerRef.current?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => managerRef.current?.getConnection() ?? null,\n setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => managerRef.current?.zoomToFit(),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,qBAsBO;AAySI;AAjNJ,IAAM,kBAAc;AAAA,EACzB,SAASA,aAAY,OAAO,KAAK;AAC/B,UAAM;AAAA,MACJ;AAAA,MAAW;AAAA,MAAO;AAAA,MAAS;AAAA,MAAU;AAAA,MAAO;AAAA,MAC5C;AAAA,MAAM;AAAA,MAAU;AAAA,MAAqB;AAAA,MAAY;AAAA,MACjD;AAAA,MAAiB;AAAA,MAAmB;AAAA,MACpC;AAAA,MAAoB;AAAA,MAA0B;AAAA,MAC9C;AAAA,MAAoB;AAAA,MAAwB;AAAA,MAAoB;AAAA,MAAO;AAAA,IACzE,IAAI;AAEJ,UAAM,mBAAe,qBAA8B,IAAI;AACvD,UAAM,iBAAa,qBAA+B,IAAI;AAEtD,UAAM,gBAAY,qBAAO,KAAK;AAC9B,cAAU,UAAU;AAEpB,gCAAU,MAAM;AACd,YAAM,KAAK,aAAa;AACxB,UAAI,CAAC,GAAI;AAET,YAAM,UAAU,IAAI,eAAAC,YAAgB;AAAA,QAClC,WAAW;AAAA,QACX;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAAA,QACA;AAA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S;AAAA,QACrF,uBAAuB,CAAC,QAAQ,WAAW,SAAS,sBAAsB,GAAG;AAAA,QAC7E,2BAA2B,CAAC,aAAa,WAAW,SAAS,0BAA0B,QAAQ;AAAA,QAC/F,sBAAsB,MAAM,WAAW,SAAS,qBAAqB,KAAK;AAAA,QAC1E,oBAAoB,CAAC,UAAU,WAAW,SAAS,mBAAmB,KAAK,KAAK,CAAC;AAAA,QACjF,sBAAsB,MAAM,WAAW,SAAS,qBAAqB;AAAA,QACrE,cAAc,CAAC,UAAU,WAAW,SAAS,aAAa,KAAK,KAAK,CAAC;AAAA,QACrE,qBAAqB,MAAM,WAAW,SAAS,oBAAoB,KAAK,CAAC;AAAA,QACzE,gBAAgB,MAAM,WAAW,SAAS,eAAe;AAAA,QACzD,cAAc,MAAM,WAAW,SAAS,aAAa,KAAK,CAAC;AAAA,QAC3D,WAAW,MAAM,WAAW,SAAS,UAAU,KAAK,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,QACzF,wBAAwB,CAAC,kBAAkB,WAAW,SAAS,uBAAuB,aAAa,KAC9F,QAAQ,OAAO,IAAI,MAAM,WAAW,CAAC;AAAA,QAC1C,QAAQ,CAAC,SAAS,WAAW,SAAS,OAAO,IAAI,KAAK,QAAQ,QAAQ,EAAE,SAAS,CAAC,GAAG,YAAY,KAAK,CAAC;AAAA,QACvG,eAAe,MAAM,WAAW,SAAS,cAAc,KAAK;AAAA,QAC5D,YAAY,CAAC,OAAO,WAAW,SAAS,WAAW,EAAE,KAAK,QAAQ,QAAQ;AAAA,QAC1E,WAAW,MAAM,WAAW,SAAS,UAAU;AAAA,MACjD;AAAA,MACA,CAAC;AAAA,IACH;AAEA,WAAO,4CAAC,SAAI,KAAK,cAAc,WAAsB,OAAc;AAAA,EACrE;AACF;","names":["SeatManager","CoreSeatManager"]}
1
+ {"version":3,"sources":["../src/manager.ts","../src/SeatManager.tsx"],"sourcesContent":["/**\n * `@seatlayer/react/manager` — the organizer cockpit component, and nothing else.\n *\n * The React counterpart of `@seatlayer/js/manager`, and it exists for the same\n * reason: importing `SeatManager` from the package root drags `SeatPicker`,\n * `SeatingChart` and `EmbeddedDesigner` in with it, and through them the buyer\n * half of the engine. See the header of `@seatlayer/js`'s `src/manager.ts` for\n * the measurement and why a bundler cannot undo it from the outside.\n *\n * The one rule that makes this work: this file — and `./SeatManager` behind it\n * — must import from `@seatlayer/js/manager`, never from `@seatlayer/js`. One\n * bare-barrel import anywhere in this graph re-admits the whole buyer SDK and\n * the saving silently disappears, which is exactly the kind of regression that\n * looks like nothing at all in a diff.\n *\n * The package root keeps exporting `SeatManager` unchanged.\n */\nexport { SeatManager } from './SeatManager';\nexport type {\n SeatManagerHandle,\n SeatManagerProps,\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerSale,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n} from './SeatManager';\nexport type {\n ControlRoomActivityEntry,\n ControlRoomSectionMetric,\n ControlRoomSnapshot,\n} from '@seatlayer/js/manager';\n","import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\nimport {\n SeatManager as CoreSeatManager,\n type SeatManagerOptions,\n type SeatManagerMode,\n type EventScopedManageToken,\n type SeatManagerTallies,\n type SeatManagerSale,\n type SeatManagerActivity,\n type SeatManagerActionResult,\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 a\n// buyer SDK that also exports the cockpit, so importing the cockpit through it\n// drags SeatPicker, SeatingChart, EmbeddedDesigner and the engine code only\n// those reach into every bundle that renders a control room. See the header of\n// `@seatlayer/js`'s `src/manager.ts` for the measurement.\n} from '@seatlayer/js/manager';\n\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} from '@seatlayer/js/manager';\n\n/** Imperative handle for the organizer manage board. */\nexport interface SeatManagerHandle {\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.\n *\n * Null only before the manager has mounted. Pair with the `onConnectionChange`\n * prop: the callback gives the edges, this gives the answer on demand — which\n * is what a host needs on tab focus, when no transition is coming.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n /** Light these seats and frame them, named in the legend; null clears (CR18). */\n showObjects(labels: readonly string[] | null, name?: string): void;\n}\n\nexport interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic {@link CoreSeatManager}. Give the\n * wrapping div a size (it fills its box — a war-room board wants a big one) and\n * the manager lays out the live map + KPI bar + rails inside it. Rebuilt only\n * when the event identity / apiBase changes. Tokens, declared capabilities,\n * theme, fallback currency, background liveness, and callbacks are updated in\n * place without tearing the board down.\n */\nexport const SeatManager = forwardRef<SeatManagerHandle, SeatManagerProps>(\n function SeatManager(props, ref) {\n const {\n className, style, apiBase, eventKey, token, tokenExpiresAt,\n mode, currency, keepLiveWhileHidden, followLive, capabilities,\n selectedObjects, selectableObjects, unavailableObjectsSelectable,\n unavailableObjects, unavailableObjectsReason, categoryPrices,\n maxSelectedObjects, numberOfPlacesToSelect, isObjectSelectable, tools, chrome, kpis, timeZone,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const managerRef = useRef<CoreSeatManager | null>(null);\n\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const manager = new CoreSeatManager({\n container: el,\n apiBase,\n eventKey,\n token,\n tokenExpiresAt,\n mode,\n currency,\n keepLiveWhileHidden,\n followLive,\n capabilities,\n selectedObjects,\n selectableObjects,\n unavailableObjectsSelectable,\n unavailableObjects,\n unavailableObjectsReason,\n categoryPrices,\n maxSelectedObjects,\n numberOfPlacesToSelect,\n isObjectSelectable,\n // Which tools the cockpit offers (Watch / Manage / Host tools). Read\n // once at mount like `capabilities`: hosts decide this per surface,\n // not per render.\n tools,\n // `minimal` = just the map (a host with its own search, totals and\n // actions). Read once at mount, like `tools`.\n chrome,\n // false when the host shows the numbers in its own header (CR04). Read once at mount.\n kpis,\n // The event's clock for every time the room shows (audit M8). Read once at mount.\n timeZone,\n // \"Ask an admin of <organisation>\" (CR16). Read once at mount.\n organizationName: callbacks.current.organizationName,\n // The host's sale facts (CR18); updated in place below.\n sale: callbacks.current.sale,\n // The host's overlays over the map (CR18 resale strip); updated in place below.\n mapInsets: callbacks.current.mapInsets,\n theme: callbacks.current.theme,\n // Light / dark / follow the operator's own preference. Applied before\n // first paint so a cockpit asked for light never flashes the war-room\n // dark on the way in.\n themeMode: callbacks.current.themeMode,\n // Where a link opens the room (board CR24): read once at mount, like `mode`.\n colourBy: callbacks.current.colourBy,\n focusSection: callbacks.current.focusSection,\n focusSeat: callbacks.current.focusSeat,\n focusSeats: callbacks.current.focusSeats,\n focusCategory: callbacks.current.focusCategory,\n arrivedFrom: callbacks.current.arrivedFrom,\n onOpenTrend: callbacks.current.onOpenTrend ? (focus) => callbacks.current.onOpenTrend?.(focus) : undefined,\n onReady: () => callbacks.current.onReady?.(),\n onTallies: (t: SeatManagerTallies) => callbacks.current.onTallies?.(t),\n onActivity: (activity: SeatManagerActivity) => callbacks.current.onActivity?.(activity),\n onControlRoom: (snapshot: ControlRoomSnapshot) => callbacks.current.onControlRoom?.(snapshot),\n onTokenRefresh: callbacks.current.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n onModeChange: (nextMode) => callbacks.current.onModeChange?.(nextMode),\n onFollowLiveChange: (enabled) => callbacks.current.onFollowLiveChange?.(enabled),\n onSelectionChange: (s: ExpandedSeat[]) => callbacks.current.onSelectionChange?.(s),\n onObjectSelected: (object) => callbacks.current.onObjectSelected?.(object),\n onObjectDeselected: (object) => callbacks.current.onObjectDeselected?.(object),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (state) => callbacks.current.onSelectionValid?.(state),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),\n onAreaClick: (area) => callbacks.current.onAreaClick?.(area),\n // Only a host that can show an order gets the search's \"Open order\".\n onOpenOrder: callbacks.current.onOpenOrder ? (order: { id: string; displayRef: string }) => callbacks.current.onOpenOrder?.(order) : undefined,\n onActionComplete: (r: SeatManagerActionResult) => callbacks.current.onActionComplete?.(r),\n onConnectionChange: (s: SeatManagerConnection) => callbacks.current.onConnectionChange?.(s),\n onRoomStateChange: (s) => callbacks.current.onRoomStateChange?.(s),\n onError: (e: unknown) => callbacks.current.onError?.(e),\n });\n managerRef.current = manager;\n void manager.render();\n\n return () => {\n manager.destroy();\n managerRef.current = null;\n };\n // Rebuild only on identity change (not on every callback change).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiBase, eventKey]);\n\n // Rotate credentials without losing camera, selection, realtime state or DOM.\n useEffect(() => {\n managerRef.current?.setToken(token, tokenExpiresAt);\n }, [token, tokenExpiresAt]);\n\n useEffect(() => {\n managerRef.current?.setCapabilities(capabilities);\n }, [capabilities]);\n\n useEffect(() => {\n managerRef.current?.setCurrency(currency);\n }, [currency]);\n\n useEffect(() => {\n managerRef.current?.setTheme(props.theme);\n }, [props.theme]);\n\n // By value: a host that rebuilds the object each render costs no repaint.\n const sale = props.sale;\n useEffect(() => {\n managerRef.current?.setSale(sale);\n }, [sale?.status, sale?.tone, sale?.openedAt, sale?.pageUrl]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // By value: a host that rebuilds the object each render costs no refit.\n const insets = props.mapInsets;\n useEffect(() => {\n managerRef.current?.setMapInsets(insets ?? null);\n }, [insets?.top, insets?.right, insets?.bottom, insets?.left]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // Reflected in place: the cockpit keeps the operator's selection, the\n // camera and the realtime socket across a mode change.\n useEffect(() => {\n managerRef.current?.setThemeMode(props.themeMode);\n }, [props.themeMode]);\n\n useEffect(() => {\n managerRef.current?.setKeepLiveWhileHidden(keepLiveWhileHidden);\n }, [keepLiveWhileHidden]);\n\n useEffect(() => {\n managerRef.current?.setTokenRefresh(\n props.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n );\n }, [!!props.onTokenRefresh]);\n\n // Reflect a controlled `mode` prop onto the live instance without rebuilding.\n useEffect(() => {\n if (mode) managerRef.current?.setMode(mode);\n }, [mode]);\n\n useEffect(() => {\n if (followLive != null) managerRef.current?.setFollowLive(followLive);\n }, [followLive]);\n\n useEffect(() => {\n managerRef.current?.setSelectableObjects(selectableObjects ?? []);\n }, [selectableObjects]);\n\n useEffect(() => {\n managerRef.current?.setUnavailableObjectsSelectable(unavailableObjectsSelectable ?? true);\n }, [unavailableObjectsSelectable]);\n\n // Repainted in place: the listed seats change colour, nothing remounts.\n // The manager ignores a list with the same labels, so a host that rebuilds\n // the array each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);\n }, [unavailableObjects, unavailableObjectsReason]);\n\n // Hover prices change in place. The renderer ignores an equal price map,\n // so a host that rebuilds the object each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setCategoryPrices(categoryPrices);\n }, [categoryPrices]);\n\n useEffect(() => {\n managerRef.current?.setMaxSelectedObjects(maxSelectedObjects);\n }, [maxSelectedObjects]);\n\n useEffect(() => {\n managerRef.current?.setNumberOfPlacesToSelect(numberOfPlacesToSelect);\n }, [numberOfPlacesToSelect]);\n\n useEffect(() => {\n managerRef.current?.setObjectSelectable(isObjectSelectable);\n }, [isObjectSelectable]);\n\n useImperativeHandle(\n ref,\n (): SeatManagerHandle => ({\n setMode: (m) => managerRef.current?.setMode(m),\n setToken: (nextToken, expiresAt) => managerRef.current?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => managerRef.current?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => managerRef.current?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => managerRef.current?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => managerRef.current?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => managerRef.current?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => managerRef.current?.isFullscreen() ?? false,\n block: (labels, opts) => managerRef.current?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => managerRef.current?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => managerRef.current?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => managerRef.current?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => managerRef.current?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => managerRef.current?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => managerRef.current?.selectAll() ?? [],\n selectSection: (id) => managerRef.current?.selectSection(id) ?? [],\n selectByLabels: (labels) => managerRef.current?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => managerRef.current?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => managerRef.current?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => managerRef.current?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => managerRef.current?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => managerRef.current?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => managerRef.current?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => managerRef.current?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => managerRef.current?.clearFilteredSection(),\n focusSection: (label) => managerRef.current?.focusSection(label) ?? [],\n getFilteredSections: () => managerRef.current?.getFilteredSections() ?? [],\n clearSelection: () => managerRef.current?.clearSelection(),\n getSelection: () => managerRef.current?.getSelection() ?? [],\n getReport: () => managerRef.current?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => managerRef.current?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => managerRef.current?.getConnection() ?? null,\n setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => managerRef.current?.zoomToFit(),\n showObjects: (labels, name) => managerRef.current?.showObjects(labels, name),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,mBAMO;AACP,qBAwBO;AA+UI;AAnPJ,IAAM,kBAAc;AAAA,EACzB,SAASA,aAAY,OAA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AQ,QAAQ,EAAE,SAAS,CAAC,GAAG,YAAY,KAAK,CAAC;AAAA,QACvG,eAAe,MAAM,WAAW,SAAS,cAAc,KAAK;AAAA,QAC5D,YAAY,CAAC,OAAO,WAAW,SAAS,WAAW,EAAE,KAAK,QAAQ,QAAQ;AAAA,QAC1E,WAAW,MAAM,WAAW,SAAS,UAAU;AAAA,QAC/C,aAAa,CAAC,QAAQ,SAAS,WAAW,SAAS,YAAY,QAAQ,IAAI;AAAA,MAC7E;AAAA,MACA,CAAC;AAAA,IACH;AAEA,WAAO,4CAAC,SAAI,KAAK,cAAc,WAAsB,OAAc;AAAA,EACrE;AACF;","names":["SeatManager","CoreSeatManager"]}
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { CSSProperties } from 'react';
3
3
  import { SeatManagerOptions, SeatManagerMode, EventScopedManageToken, ControlRoomSnapshot, EventTableBookingMode, ExpandedSeat, SeatManagerCategoryPrice, SeatManagerSelectionValidity, SeatManagerFilteredSection, ReportResult, LogEntry, SeatManagerConnection } from '@seatlayer/js/manager';
4
- export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerTallies } from '@seatlayer/js/manager';
4
+ export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerSale, SeatManagerTallies } from '@seatlayer/js/manager';
5
5
 
6
6
  /** Imperative handle for the organizer manage board. */
7
7
  interface SeatManagerHandle {
@@ -68,6 +68,8 @@ interface SeatManagerHandle {
68
68
  */
69
69
  getConnection(): SeatManagerConnection | null;
70
70
  zoomToFit(): void;
71
+ /** Light these seats and frame them, named in the legend; null clears (CR18). */
72
+ showObjects(labels: readonly string[] | null, name?: string): void;
71
73
  }
72
74
  interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {
73
75
  className?: string;
package/dist/manager.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import * as react from 'react';
2
2
  import { CSSProperties } from 'react';
3
3
  import { SeatManagerOptions, SeatManagerMode, EventScopedManageToken, ControlRoomSnapshot, EventTableBookingMode, ExpandedSeat, SeatManagerCategoryPrice, SeatManagerSelectionValidity, SeatManagerFilteredSection, ReportResult, LogEntry, SeatManagerConnection } from '@seatlayer/js/manager';
4
- export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerTallies } from '@seatlayer/js/manager';
4
+ export { ControlRoomActivityEntry, ControlRoomSectionMetric, ControlRoomSnapshot, EventScopedManageToken, SeatManagerActionResult, SeatManagerActivity, SeatManagerConnection, SeatManagerMode, SeatManagerOptions, SeatManagerSale, SeatManagerTallies } from '@seatlayer/js/manager';
5
5
 
6
6
  /** Imperative handle for the organizer manage board. */
7
7
  interface SeatManagerHandle {
@@ -68,6 +68,8 @@ interface SeatManagerHandle {
68
68
  */
69
69
  getConnection(): SeatManagerConnection | null;
70
70
  zoomToFit(): void;
71
+ /** Light these seats and frame them, named in the legend; null clears (CR18). */
72
+ showObjects(labels: readonly string[] | null, name?: string): void;
71
73
  }
72
74
  interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {
73
75
  className?: string;
package/dist/manager.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SeatManager
3
- } from "./chunk-UELO5MKZ.js";
3
+ } from "./chunk-JHSUDJXT.js";
4
4
  export {
5
5
  SeatManager
6
6
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seatlayer/react",
3
- "version": "0.104.1",
3
+ "version": "0.105.1",
4
4
  "description": "SeatLayer's official React seating chart and seat map SDK: live availability, seat selection, temporary holds, and a typed TypeScript API for ticketing apps.",
5
5
  "license": "MIT",
6
6
  "author": {
@@ -73,8 +73,8 @@
73
73
  "typescript"
74
74
  ],
75
75
  "dependencies": {
76
- "@seatlayer/core": "0.104.1",
77
- "@seatlayer/js": "0.104.1"
76
+ "@seatlayer/core": "0.105.1",
77
+ "@seatlayer/js": "0.105.1"
78
78
  },
79
79
  "peerDependencies": {
80
80
  "react": ">=17.0.0"
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/SeatManager.tsx"],"sourcesContent":["import {\n forwardRef,\n useEffect,\n useImperativeHandle,\n useRef,\n type CSSProperties,\n} from 'react';\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 SeatManagerConnection,\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 a\n// buyer SDK that also exports the cockpit, so importing the cockpit through it\n// drags SeatPicker, SeatingChart, EmbeddedDesigner and the engine code only\n// those reach into every bundle that renders a control room. See the header of\n// `@seatlayer/js`'s `src/manager.ts` for the measurement.\n} from '@seatlayer/js/manager';\n\nexport type {\n SeatManagerOptions,\n SeatManagerMode,\n EventScopedManageToken,\n SeatManagerTallies,\n SeatManagerActivity,\n SeatManagerActionResult,\n SeatManagerConnection,\n SeatManagerFilteredSection,\n SeatManagerSelectionValidity,\n SeatManagerCategoryPrice,\n EventTableBookingMode,\n} from '@seatlayer/js/manager';\n\n/** Imperative handle for the organizer manage board. */\nexport interface SeatManagerHandle {\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.\n *\n * Null only before the manager has mounted. Pair with the `onConnectionChange`\n * prop: the callback gives the edges, this gives the answer on demand — which\n * is what a host needs on tab focus, when no transition is coming.\n */\n getConnection(): SeatManagerConnection | null;\n zoomToFit(): void;\n}\n\nexport interface SeatManagerProps extends Omit<SeatManagerOptions, 'container'> {\n className?: string;\n style?: CSSProperties;\n}\n\n/**\n * React wrapper around the framework-agnostic {@link CoreSeatManager}. Give the\n * wrapping div a size (it fills its box — a war-room board wants a big one) and\n * the manager lays out the live map + KPI bar + rails inside it. Rebuilt only\n * when the event identity / apiBase changes. Tokens, declared capabilities,\n * theme, fallback currency, background liveness, and callbacks are updated in\n * place without tearing the board down.\n */\nexport const SeatManager = forwardRef<SeatManagerHandle, SeatManagerProps>(\n function SeatManager(props, ref) {\n const {\n className, style, apiBase, eventKey, token, tokenExpiresAt,\n mode, currency, keepLiveWhileHidden, followLive, capabilities,\n selectedObjects, selectableObjects, unavailableObjectsSelectable,\n unavailableObjects, unavailableObjectsReason, categoryPrices,\n maxSelectedObjects, numberOfPlacesToSelect, isObjectSelectable, tools, chrome,\n } = props;\n\n const containerRef = useRef<HTMLDivElement | null>(null);\n const managerRef = useRef<CoreSeatManager | null>(null);\n\n const callbacks = useRef(props);\n callbacks.current = props;\n\n useEffect(() => {\n const el = containerRef.current;\n if (!el) return;\n\n const manager = new CoreSeatManager({\n container: el,\n apiBase,\n eventKey,\n token,\n tokenExpiresAt,\n mode,\n currency,\n keepLiveWhileHidden,\n followLive,\n capabilities,\n selectedObjects,\n selectableObjects,\n unavailableObjectsSelectable,\n unavailableObjects,\n unavailableObjectsReason,\n categoryPrices,\n maxSelectedObjects,\n numberOfPlacesToSelect,\n isObjectSelectable,\n // Which tools the cockpit offers (Watch / Manage / Host tools). Read\n // once at mount like `capabilities`: hosts decide this per surface,\n // not per render.\n tools,\n // `minimal` = just the map (a host with its own search, totals and\n // actions). Read once at mount, like `tools`.\n chrome,\n theme: callbacks.current.theme,\n // Light / dark / follow the operator's own preference. Applied before\n // first paint so a cockpit asked for light never flashes the war-room\n // dark on the way in.\n themeMode: callbacks.current.themeMode,\n onReady: () => callbacks.current.onReady?.(),\n onTallies: (t: SeatManagerTallies) => callbacks.current.onTallies?.(t),\n onActivity: (activity: SeatManagerActivity) => callbacks.current.onActivity?.(activity),\n onControlRoom: (snapshot: ControlRoomSnapshot) => callbacks.current.onControlRoom?.(snapshot),\n onTokenRefresh: callbacks.current.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n onModeChange: (nextMode) => callbacks.current.onModeChange?.(nextMode),\n onFollowLiveChange: (enabled) => callbacks.current.onFollowLiveChange?.(enabled),\n onSelectionChange: (s: ExpandedSeat[]) => callbacks.current.onSelectionChange?.(s),\n onObjectSelected: (object) => callbacks.current.onObjectSelected?.(object),\n onObjectDeselected: (object) => callbacks.current.onObjectDeselected?.(object),\n onSelectionValidityChange: (state) => callbacks.current.onSelectionValidityChange?.(state),\n onSelectionValid: (state) => callbacks.current.onSelectionValid?.(state),\n onSelectionInvalid: (state) => callbacks.current.onSelectionInvalid?.(state),\n onSelectionLimit: (max) => callbacks.current.onSelectionLimit?.(max),\n onFilteredSectionChange: (sections) => callbacks.current.onFilteredSectionChange?.(sections),\n onAreaClick: (area) => callbacks.current.onAreaClick?.(area),\n onActionComplete: (r: SeatManagerActionResult) => callbacks.current.onActionComplete?.(r),\n onConnectionChange: (s: SeatManagerConnection) => callbacks.current.onConnectionChange?.(s),\n onError: (e: unknown) => callbacks.current.onError?.(e),\n });\n managerRef.current = manager;\n void manager.render();\n\n return () => {\n manager.destroy();\n managerRef.current = null;\n };\n // Rebuild only on identity change (not on every callback change).\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [apiBase, eventKey]);\n\n // Rotate credentials without losing camera, selection, realtime state or DOM.\n useEffect(() => {\n managerRef.current?.setToken(token, tokenExpiresAt);\n }, [token, tokenExpiresAt]);\n\n useEffect(() => {\n managerRef.current?.setCapabilities(capabilities);\n }, [capabilities]);\n\n useEffect(() => {\n managerRef.current?.setCurrency(currency);\n }, [currency]);\n\n useEffect(() => {\n managerRef.current?.setTheme(props.theme);\n }, [props.theme]);\n\n // Reflected in place: the cockpit keeps the operator's selection, the\n // camera and the realtime socket across a mode change.\n useEffect(() => {\n managerRef.current?.setThemeMode(props.themeMode);\n }, [props.themeMode]);\n\n useEffect(() => {\n managerRef.current?.setKeepLiveWhileHidden(keepLiveWhileHidden);\n }, [keepLiveWhileHidden]);\n\n useEffect(() => {\n managerRef.current?.setTokenRefresh(\n props.onTokenRefresh ? async () => callbacks.current.onTokenRefresh!() : undefined,\n );\n }, [!!props.onTokenRefresh]);\n\n // Reflect a controlled `mode` prop onto the live instance without rebuilding.\n useEffect(() => {\n if (mode) managerRef.current?.setMode(mode);\n }, [mode]);\n\n useEffect(() => {\n if (followLive != null) managerRef.current?.setFollowLive(followLive);\n }, [followLive]);\n\n useEffect(() => {\n managerRef.current?.setSelectableObjects(selectableObjects ?? []);\n }, [selectableObjects]);\n\n useEffect(() => {\n managerRef.current?.setUnavailableObjectsSelectable(unavailableObjectsSelectable ?? true);\n }, [unavailableObjectsSelectable]);\n\n // Repainted in place: the listed seats change colour, nothing remounts.\n // The manager ignores a list with the same labels, so a host that rebuilds\n // the array each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setUnavailableObjects(unavailableObjects ?? [], unavailableObjectsReason);\n }, [unavailableObjects, unavailableObjectsReason]);\n\n // Hover prices change in place. The renderer ignores an equal price map,\n // so a host that rebuilds the object each render costs no repaint.\n useEffect(() => {\n managerRef.current?.setCategoryPrices(categoryPrices);\n }, [categoryPrices]);\n\n useEffect(() => {\n managerRef.current?.setMaxSelectedObjects(maxSelectedObjects);\n }, [maxSelectedObjects]);\n\n useEffect(() => {\n managerRef.current?.setNumberOfPlacesToSelect(numberOfPlacesToSelect);\n }, [numberOfPlacesToSelect]);\n\n useEffect(() => {\n managerRef.current?.setObjectSelectable(isObjectSelectable);\n }, [isObjectSelectable]);\n\n useImperativeHandle(\n ref,\n (): SeatManagerHandle => ({\n setMode: (m) => managerRef.current?.setMode(m),\n setToken: (nextToken, expiresAt) => managerRef.current?.setToken(nextToken, expiresAt),\n setHeatOverlay: (enabled) => managerRef.current?.setHeatOverlay(enabled),\n setFollowLive: (enabled) => managerRef.current?.setFollowLive(enabled),\n setTrendWindow: (windowMinutes) => managerRef.current?.setTrendWindow(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n enterFullscreen: () => managerRef.current?.enterFullscreen() ?? Promise.resolve(),\n exitFullscreen: () => managerRef.current?.exitFullscreen() ?? Promise.resolve(),\n isFullscreen: () => managerRef.current?.isFullscreen() ?? false,\n block: (labels, opts) => managerRef.current?.block(labels, opts) ?? Promise.resolve(),\n unblock: (labels) => managerRef.current?.unblock(labels) ?? Promise.resolve(),\n unblockAll: () => managerRef.current?.unblockAll() ?? Promise.resolve(),\n cancelBooking: (labels, bookingRef) => managerRef.current?.cancelBooking(labels, bookingRef) ?? Promise.resolve(),\n setCategory: (categoryKey, labels) => managerRef.current?.setCategory(categoryKey, labels) ?? Promise.resolve(),\n setTableBooking: (tableIds, nextMode, bounds) => managerRef.current?.setTableBooking(tableIds, nextMode, bounds)\n ?? Promise.resolve(),\n selectAll: () => managerRef.current?.selectAll() ?? [],\n selectSection: (id) => managerRef.current?.selectSection(id) ?? [],\n selectByLabels: (labels) => managerRef.current?.selectByLabels(labels) ?? [],\n selectObjects: (labels) => managerRef.current?.selectObjects(labels) ?? [],\n deselectObjects: (labels) => managerRef.current?.deselectObjects(labels) ?? [],\n selectCategories: (keys) => managerRef.current?.selectCategories(keys) ?? [],\n deselectCategories: (keys) => managerRef.current?.deselectCategories(keys) ?? [],\n setSelectableObjects: (labels) => managerRef.current?.setSelectableObjects(labels),\n setUnavailableObjectsSelectable: (enabled) => managerRef.current?.setUnavailableObjectsSelectable(enabled),\n setUnavailableObjects: (labels, reason) => managerRef.current?.setUnavailableObjects(labels, reason),\n setCategoryPrices: (prices) => managerRef.current?.setCategoryPrices(prices),\n setObjectSelectable: (predicate) => managerRef.current?.setObjectSelectable(predicate),\n setMaxSelectedObjects: (max) => managerRef.current?.setMaxSelectedObjects(max),\n setNumberOfPlacesToSelect: (required) => managerRef.current?.setNumberOfPlacesToSelect(required),\n getSelectionValidity: () => managerRef.current?.getSelectionValidity() ?? null,\n setFilteredSection: (label) => managerRef.current?.setFilteredSection(label) ?? [],\n clearFilteredSection: () => managerRef.current?.clearFilteredSection(),\n focusSection: (label) => managerRef.current?.focusSection(label) ?? [],\n getFilteredSections: () => managerRef.current?.getFilteredSections() ?? [],\n clearSelection: () => managerRef.current?.clearSelection(),\n getSelection: () => managerRef.current?.getSelection() ?? [],\n getReport: () => managerRef.current?.getReport() ?? Promise.reject(new Error('not ready')),\n getControlRoomSnapshot: (windowMinutes) => managerRef.current?.getControlRoomSnapshot(windowMinutes)\n ?? Promise.reject(new Error('not ready')),\n getLog: (opts) => managerRef.current?.getLog(opts) ?? Promise.resolve({ entries: [], nextBefore: null }),\n getConnection: () => managerRef.current?.getConnection() ?? null,\n setHoldTtl: (ms) => managerRef.current?.setHoldTtl(ms) ?? Promise.resolve(),\n zoomToFit: () => managerRef.current?.zoomToFit(),\n }),\n [],\n );\n\n return <div ref={containerRef} className={className} style={style} />;\n },\n);\n"],"mappings":";AAAA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OAEK;AACP;AAAA,EACE,eAAe;AAAA,OAqBV;AAySI;AAjNJ,IAAM,cAAc;AAAA,EACzB,SAASA,aAAY,OAAO,KAAK;AAC/B,UAAM;AAAA,MACJ;AAAA,MAAW;AAAA,MAAO;AAAA,MAAS;AAAA,MAAU;AAAA,MAAO;AAAA,MAC5C;AAAA,MAAM;AAAA,MAAU;AAAA,MAAqB;AAAA,MAAY;AAAA,MACjD;AAAA,MAAiB;AAAA,MAAmB;AAAA,MACpC;AAAA,MAAoB;AAAA,MAA0B;AAAA,MAC9C;AAAA,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