@seatlayer/js 0.107.0 → 0.109.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{channelsMode-DV9D-48T.d.cts → channelsMode-BbYRQd0-.d.cts} +12 -0
- package/dist/{channelsMode-DV9D-48T.d.ts → channelsMode-BbYRQd0-.d.ts} +12 -0
- package/dist/chunk-U2Z2AGRX.js +1 -0
- package/dist/index.cjs +32 -22
- package/dist/index.d.cts +222 -16
- package/dist/index.d.ts +222 -16
- package/dist/index.js +21 -21
- package/dist/manager.cjs +46 -46
- package/dist/manager.d.cts +2 -2
- package/dist/manager.d.ts +2 -2
- package/dist/manager.js +18 -18
- package/dist/{managerExtras-K2UGS5TD.js → managerExtras-CHNB5GFR.js} +1 -1
- package/dist/pickerSalesClose-AVOFKQPC.js +11 -0
- package/package.json +2 -2
- package/dist/chunk-X7FRGMS2.js +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
|
|
1
|
+
import { PickerSeat, PickerGAArea, PickerMapTheme, PickerTransport, PickerSelectionValidator, RendererViewMode, PickerSelectionValidity, SeatPriceMap, ChartTheme, AccessibilityType, FloorLabelStyle, LodRung, SectionSummary, PickerAccessNeed, SeatHoverDetails, AccessibleSectionStep, AvailabilityRefreshOutcome, RendererMinimapSnapshot, ISeatmapRenderer, PickerController, ExpandedSeat, TableSelectionDetails, PickerSalesState } from '@seatlayer/core';
|
|
2
2
|
export { ExpandedSeat, PickerMapTheme, PickerSelectionValidator, PickerSelectionValidity, PickerSelectionViolation, RendererViewMode, SeatHoverDetails } from '@seatlayer/core';
|
|
3
|
-
import { T as ThemeMode } from './channelsMode-
|
|
4
|
-
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-
|
|
3
|
+
import { T as ThemeMode } from './channelsMode-BbYRQd0-.cjs';
|
|
4
|
+
export { A as AccessIntentForbidsDetails, a as AccessLinkRecord, b as AccessLinkReveal, c as AccessLinkState, d as AccessLinkStatus, e as AccessLinkStatusRecord, f as ArchiveBlockedDetails, g as AssignmentBuckets, h as AssignmentDropDetails, i as AssignmentResult, B as BucketRow, C as ChannelAccessIntent, j as ChannelAccessSummary, k as ChannelAllocationPage, l as ChannelAttribution, m as ChannelAuditEntry, n as ChannelAuditPage, o as ChannelCounts, p as ChannelListResult, q as ChannelPreviewProjection, r as ChannelRecord, s as ChannelReport, t as ChannelReportLinkRecord, u as ChannelReportLinkReveal, v as ChannelReportResult, w as ChannelReportRow, x as ChannelSeatStatus, y as ChannelState, z as ChannelsCapabilities, D as ChannelsClient, E as ChannelsMode, F as ChannelsModeHost, G as ChannelsRowView, H as ChannelsSeatView, I as ControlRoomActivityEntry, J as ControlRoomSectionMetric, K as ControlRoomSnapshot, L as EventCategoryAssignmentResult, M as EventScopedManageToken, N as EventTableBookingMode, O as EventTableBookingResult, P as IntentSwitchBlockedDetails, Q as InventoryBooking, R as InventoryBookingActivity, S as InventoryBookingDetail, U as InventoryBookingObject, V as InventoryBookingState, W as InventoryBookingsPage, X as InventoryBookingsQuery, Y as LogEntry, Z as LogPage, _ as ManageApi, $ as ManageApiError, a0 as ReportByStatus, a1 as ReportCategoryMeta, a2 as ReportCategoryRow, a3 as ReportResult, a4 as SeatManager, a5 as SeatManagerActionResult, a6 as SeatManagerActivity, a7 as SeatManagerArea, a8 as SeatManagerCapability, a9 as SeatManagerCategoryPrice, aa as SeatManagerConnection, ab as SeatManagerFilteredSection, ac as SeatManagerMode, ad as SeatManagerOptions, ae as SeatManagerRoomState, af as SeatManagerSale, ag as SeatManagerSelectionValidity, ah as SeatManagerTallies, ai as SelectionSourceRow } from './channelsMode-BbYRQd0-.cjs';
|
|
5
5
|
import * as _seatlayer_core_core_seatConfidence from '@seatlayer/core/core/seatConfidence';
|
|
6
6
|
import { SeatConfidenceDisclosure } from '@seatlayer/core/core/seatConfidence';
|
|
7
7
|
import { SeatViewStopName, Venue3DHandle, SeatState3D, SeatView } from '@seatlayer/core/view3d';
|
|
@@ -276,6 +276,8 @@ declare function createBuyerAccessContext(options: {
|
|
|
276
276
|
* a genuinely revoked one (typed terminal state, never a reconnect loop);
|
|
277
277
|
* - liveness by ping/pong only. Silence is normal and carries no information
|
|
278
278
|
* (protocol doc §5) — a quiet socket is never treated as a dead one;
|
|
279
|
+
* - wake on return: one `resume` frame when the buyer comes back to the page
|
|
280
|
+
* (see {@link WAKE_FRAME});
|
|
279
281
|
* - a polling fallback for a network that will not upgrade at all (see
|
|
280
282
|
* {@link FALLBACK_AFTER_FAILED_UPGRADES}).
|
|
281
283
|
*/
|
|
@@ -338,6 +340,12 @@ interface RealtimeSink {
|
|
|
338
340
|
shoppingSessions: number;
|
|
339
341
|
activeHolds: number;
|
|
340
342
|
}): void;
|
|
343
|
+
/** EH18: the event's raw `sales` frame; the closed view reads `state` and `revision`. */
|
|
344
|
+
onSales?(notice: {
|
|
345
|
+
state: string;
|
|
346
|
+
revision: number;
|
|
347
|
+
changedAt: number | null;
|
|
348
|
+
}): void;
|
|
341
349
|
}
|
|
342
350
|
interface SubscribeTicket {
|
|
343
351
|
ticket?: string;
|
|
@@ -372,6 +380,11 @@ interface BuyerRealtimeOptions {
|
|
|
372
380
|
poll?: () => void | Promise<void>;
|
|
373
381
|
/** The client just fell back to polling. The count beacon is sent anyway. */
|
|
374
382
|
onFallbackPolling?: () => void;
|
|
383
|
+
/** The hold this buyer owns, if any. Told to the server on every open, so
|
|
384
|
+
* this socket alone hears when that hold is booked (a `hold` frame). */
|
|
385
|
+
heldHoldId?: () => string | null;
|
|
386
|
+
/** The server says the hold this socket watches changed state (`booked`). */
|
|
387
|
+
onHoldState?: (holdId: string, state: string) => void;
|
|
375
388
|
/** Test seam. Defaults to the global WebSocket. */
|
|
376
389
|
socketFactory?: (url: string, protocols: string[]) => WebSocket;
|
|
377
390
|
/** Test seam for the keepalive/backoff timers. */
|
|
@@ -380,6 +393,8 @@ interface BuyerRealtimeOptions {
|
|
|
380
393
|
declare class BuyerRealtimeClient {
|
|
381
394
|
private readonly opts;
|
|
382
395
|
private ws;
|
|
396
|
+
/** The hold this socket has told the server it owns. */
|
|
397
|
+
private watched;
|
|
383
398
|
private stopped;
|
|
384
399
|
private attempt;
|
|
385
400
|
private reconnectTimer;
|
|
@@ -404,6 +419,9 @@ declare class BuyerRealtimeClient {
|
|
|
404
419
|
/** Armed only while the socket cannot upgrade. See FALLBACK_AFTER_FAILED_UPGRADES. */
|
|
405
420
|
private pollTimer;
|
|
406
421
|
private fellBack;
|
|
422
|
+
private lastWake;
|
|
423
|
+
private lastInput;
|
|
424
|
+
private detachWake;
|
|
407
425
|
constructor(options: BuyerRealtimeOptions);
|
|
408
426
|
/** True while availability is being read on a timer instead of the socket. */
|
|
409
427
|
get polling(): boolean;
|
|
@@ -416,6 +434,12 @@ declare class BuyerRealtimeClient {
|
|
|
416
434
|
/** Restart after the host re-authorized a revoked buyer (`refreshAccess()`). */
|
|
417
435
|
restart(): void;
|
|
418
436
|
private connect;
|
|
437
|
+
/**
|
|
438
|
+
* Tell the server this socket owns `holdId`, so it alone is told when that
|
|
439
|
+
* hold is booked. Only on an open socket: every open repeats it for the
|
|
440
|
+
* current hold, so nothing is queued and nothing reconnects to send it.
|
|
441
|
+
*/
|
|
442
|
+
watchHold(holdId: string | null): void;
|
|
419
443
|
private handleFrame;
|
|
420
444
|
/** The server answered our resume; cancel the fallback resync. */
|
|
421
445
|
private answered;
|
|
@@ -430,6 +454,14 @@ declare class BuyerRealtimeClient {
|
|
|
430
454
|
*/
|
|
431
455
|
private startPolling;
|
|
432
456
|
private stopPolling;
|
|
457
|
+
private now;
|
|
458
|
+
/**
|
|
459
|
+
* Listen for the buyer coming back. Outside a real DOM (SSR, a stubbed
|
|
460
|
+
* `document`) it attaches nothing, and the socket behaves as before.
|
|
461
|
+
*/
|
|
462
|
+
private attachWake;
|
|
463
|
+
/** Send one wake frame on the open socket, if the window allows. */
|
|
464
|
+
private wake;
|
|
433
465
|
/**
|
|
434
466
|
* Liveness is ping/pong, and only ping/pong. A socket that receives nothing
|
|
435
467
|
* for minutes is the normal, correct state for a narrowly-scoped buyer on a
|
|
@@ -1111,6 +1143,14 @@ interface SeatPickerPricing {
|
|
|
1111
1143
|
base?: number;
|
|
1112
1144
|
tiers?: Record<string, number>;
|
|
1113
1145
|
}>;
|
|
1146
|
+
/**
|
|
1147
|
+
* Unit prices for single seats or tables, by label: a flat number, or
|
|
1148
|
+
* `{ tiers: { tierId: price } }`. They win over `prices` and over the
|
|
1149
|
+
* event's own seat prices for exactly those seats.
|
|
1150
|
+
*/
|
|
1151
|
+
objects?: Record<string, number | {
|
|
1152
|
+
tiers: Record<string, number>;
|
|
1153
|
+
}>;
|
|
1114
1154
|
/** Custom money renderer (e.g. `(n) => n + '€'`). Defaults to Intl currency formatting. */
|
|
1115
1155
|
formatter?: (amount: number, currency: string) => string;
|
|
1116
1156
|
}
|
|
@@ -1646,6 +1686,15 @@ interface SeatPickerOptions {
|
|
|
1646
1686
|
* prices the hold, so a wrong entry can misprint a price, never mischarge one.
|
|
1647
1687
|
*/
|
|
1648
1688
|
type HostPrices = NonNullable<SeatPickerPricing['prices']>;
|
|
1689
|
+
/** Host unit prices for single seats or tables, by label (`pricing.objects`). */
|
|
1690
|
+
type HostObjectPrices = NonNullable<SeatPickerPricing['objects']>;
|
|
1691
|
+
/** Everything that can price one seat for a host. */
|
|
1692
|
+
interface HostSeatPricing {
|
|
1693
|
+
prices?: HostPrices;
|
|
1694
|
+
objects?: HostObjectPrices;
|
|
1695
|
+
/** The event's own seat prices (the chart's `seatPrices`). */
|
|
1696
|
+
seatPrices?: SeatPriceMap;
|
|
1697
|
+
}
|
|
1649
1698
|
|
|
1650
1699
|
/**
|
|
1651
1700
|
* Two things a NATIVE shell drawing its own chrome over the map needs from the
|
|
@@ -2047,6 +2096,7 @@ interface SeatingChartOptions {
|
|
|
2047
2096
|
*/
|
|
2048
2097
|
pricing?: {
|
|
2049
2098
|
prices?: HostPrices;
|
|
2099
|
+
objects?: HostObjectPrices;
|
|
2050
2100
|
};
|
|
2051
2101
|
/**
|
|
2052
2102
|
* Colorblind-safe rendering: category hues switch to an Okabe-Ito palette
|
|
@@ -2245,6 +2295,7 @@ declare class SeatingChart {
|
|
|
2245
2295
|
private maxSelection_;
|
|
2246
2296
|
private colorblindSafe_;
|
|
2247
2297
|
private hostPrices_;
|
|
2298
|
+
private hostObjects_;
|
|
2248
2299
|
private readonly hostSurface;
|
|
2249
2300
|
private categoryFilter_;
|
|
2250
2301
|
private accessibilityFilter_;
|
|
@@ -2345,6 +2396,9 @@ declare class SeatingChart {
|
|
|
2345
2396
|
getPickerState(): SeatingChartPickerState;
|
|
2346
2397
|
/** The host prices the picker state is using (see options.pricing). */
|
|
2347
2398
|
getHostPrices(): HostPrices | undefined;
|
|
2399
|
+
/** Everything that prices a seat for the host: its prices, its per-seat
|
|
2400
|
+
* prices and the event's own seat prices. */
|
|
2401
|
+
getHostPricing(): HostSeatPricing;
|
|
2348
2402
|
getCategoryAvailability(): Record<string, number>;
|
|
2349
2403
|
getBestAvailableZones(): Array<{
|
|
2350
2404
|
id: string;
|
|
@@ -2515,7 +2569,10 @@ declare class SeatingChart {
|
|
|
2515
2569
|
*/
|
|
2516
2570
|
setPricing(pricing: {
|
|
2517
2571
|
prices?: HostPrices;
|
|
2572
|
+
objects?: HostObjectPrices;
|
|
2518
2573
|
} | undefined): void;
|
|
2574
|
+
/** The host's own price for one seat (pricing.objects) as the map writes it; undefined when it set none. */
|
|
2575
|
+
private hostSeatPriceLabel;
|
|
2519
2576
|
/**
|
|
2520
2577
|
* The host's prices in the map's shape, so the seat hover card and the
|
|
2521
2578
|
* canvas labels print what the host charges, not the chart's own price.
|
|
@@ -3482,8 +3539,8 @@ interface SeatViewChrome {
|
|
|
3482
3539
|
/**
|
|
3483
3540
|
* The cart's arithmetic, in ONE place.
|
|
3484
3541
|
*
|
|
3485
|
-
* Held server lines
|
|
3486
|
-
*
|
|
3542
|
+
* Held server lines (priced by the picker's `heldPrice`), freshly-picked seats
|
|
3543
|
+
* and pending GA quantities (its `paidPrice`). The tray renders from this and the
|
|
3487
3544
|
* WebMCP `get_selection` tool reads it, so a buyer looking at the sheet and an
|
|
3488
3545
|
* agent asking what is selected can never be told two different totals — which
|
|
3489
3546
|
* is exactly what a second copy of these six reduces would eventually produce.
|
|
@@ -3650,6 +3707,112 @@ interface SalesClosedWords {
|
|
|
3650
3707
|
toast: string;
|
|
3651
3708
|
}
|
|
3652
3709
|
|
|
3710
|
+
/**
|
|
3711
|
+
* EH18 (owner-approved boards, 2026-10-23): the closed view of a picker whose
|
|
3712
|
+
* online sales closed, or whose event ended — a grey map with one card over it,
|
|
3713
|
+
* an open picker switched live by the event's `sales` frame, and held seats
|
|
3714
|
+
* that can still be paid for.
|
|
3715
|
+
*
|
|
3716
|
+
* Built as its own CDN asset (`seatlayer-sales.mjs`) and fetched only once a
|
|
3717
|
+
* picker is closed at load or a `sales` frame closes it, so a buyer on an open
|
|
3718
|
+
* event downloads none of it. Without it the picker still refuses picks and
|
|
3719
|
+
* shows "Sales closed"; this module adds the designed words and the card.
|
|
3720
|
+
*
|
|
3721
|
+
* IT IMPORTS NOTHING AT RUNTIME, for the reason given in hostedCheckout.ts: a
|
|
3722
|
+
* value import from the engine would put a second copy of it in this asset.
|
|
3723
|
+
* Everything arrives through {@link SalesCloseHost}, which SeatPicker is.
|
|
3724
|
+
*/
|
|
3725
|
+
/** `closed`: online sales shut (paused, or a close time passed while live). `ended`: the event is over. */
|
|
3726
|
+
type SalesView = 'closed' | 'ended';
|
|
3727
|
+
/** What this module reads and calls on the picker. */
|
|
3728
|
+
interface SalesCloseHost {
|
|
3729
|
+
salesClosed: boolean;
|
|
3730
|
+
salesState: string | null;
|
|
3731
|
+
readonly opts: {
|
|
3732
|
+
readOnly?: boolean;
|
|
3733
|
+
locale?: string;
|
|
3734
|
+
};
|
|
3735
|
+
hold: {
|
|
3736
|
+
items?: ReadonlyArray<{
|
|
3737
|
+
label: string;
|
|
3738
|
+
}>;
|
|
3739
|
+
} | null;
|
|
3740
|
+
salesInfo: {
|
|
3741
|
+
venueSelling: boolean;
|
|
3742
|
+
startsAt?: number | null;
|
|
3743
|
+
} | null;
|
|
3744
|
+
eventTimezone: string | null;
|
|
3745
|
+
root: HTMLDivElement | null;
|
|
3746
|
+
els: Record<string, HTMLElement>;
|
|
3747
|
+
destroyed: boolean;
|
|
3748
|
+
controller: {
|
|
3749
|
+
getSelection(): ReadonlyArray<{
|
|
3750
|
+
id: string;
|
|
3751
|
+
label: string;
|
|
3752
|
+
}>;
|
|
3753
|
+
deselect(ids: string[]): void;
|
|
3754
|
+
};
|
|
3755
|
+
heldTicketCount(): number;
|
|
3756
|
+
dismissConfirm(): void;
|
|
3757
|
+
applySalesClosed(): void;
|
|
3758
|
+
toast(message: string, tone: 'neutral'): void;
|
|
3759
|
+
}
|
|
3760
|
+
type Translate = (key: string, params?: Record<string, string | number>) => string;
|
|
3761
|
+
/** The picker's own translators, handed over once at load: this module imports nothing. */
|
|
3762
|
+
declare function translate(t: Translate, tCount: (key: string, count: number) => string): void;
|
|
3763
|
+
/** Which designed view applies; null keeps today's words (not yet on sale, a preview, an unnamed state). */
|
|
3764
|
+
declare function salesView(salesClosed: boolean, salesState: string | null | undefined, readOnly?: boolean): SalesView | null;
|
|
3765
|
+
/** The designed view for this picker now, or null. */
|
|
3766
|
+
declare const view: (host: SalesCloseHost) => SalesView | null;
|
|
3767
|
+
/** Closed online with seats already held: the buyer may still pay for them. */
|
|
3768
|
+
declare function finishing(host: SalesCloseHost): boolean;
|
|
3769
|
+
/** The pill, CTA and toast words for the designed views; null leaves the picker's own. */
|
|
3770
|
+
declare function words(host: SalesCloseHost): {
|
|
3771
|
+
pill: string;
|
|
3772
|
+
cta: string;
|
|
3773
|
+
toast: string;
|
|
3774
|
+
} | null;
|
|
3775
|
+
/** The tray's closed note: the view's title alone, as the card over the map carries the second line. */
|
|
3776
|
+
declare function note(host: SalesCloseHost): {
|
|
3777
|
+
heading: string;
|
|
3778
|
+
sentence: string;
|
|
3779
|
+
} | null;
|
|
3780
|
+
/** "It was on Fri 23 Oct at 19:30." in the event's own zone; '' when undated. */
|
|
3781
|
+
declare function eventEndedWhen(host: Pick<SalesCloseHost, 'salesInfo' | 'eventTimezone' | 'opts'>): string;
|
|
3782
|
+
/**
|
|
3783
|
+
* The one card over a closed map: what happened, and the one thing still true
|
|
3784
|
+
* for this buyer — the box office, the held seats they can still pay for, or
|
|
3785
|
+
* the date the event was on.
|
|
3786
|
+
*/
|
|
3787
|
+
declare function bannerHtml(host: SalesCloseHost, current: SalesView): string;
|
|
3788
|
+
/** The grey map and its one card. Idempotent; the picker runs it on every tray sync. */
|
|
3789
|
+
declare function sync(host: SalesCloseHost): void;
|
|
3790
|
+
/**
|
|
3791
|
+
* The event's live sales notice. Paused or ended closes the map at once, with
|
|
3792
|
+
* one toast; live opens it again. Picks not yet held are dropped; held seats
|
|
3793
|
+
* stay the buyer's. It never touches seat data.
|
|
3794
|
+
*/
|
|
3795
|
+
declare function applyNotice(host: SalesCloseHost, notice: {
|
|
3796
|
+
state?: unknown;
|
|
3797
|
+
revision?: unknown;
|
|
3798
|
+
}): void;
|
|
3799
|
+
|
|
3800
|
+
type __pickerSalesClose_SalesCloseHost = SalesCloseHost;
|
|
3801
|
+
type __pickerSalesClose_SalesView = SalesView;
|
|
3802
|
+
declare const __pickerSalesClose_applyNotice: typeof applyNotice;
|
|
3803
|
+
declare const __pickerSalesClose_bannerHtml: typeof bannerHtml;
|
|
3804
|
+
declare const __pickerSalesClose_eventEndedWhen: typeof eventEndedWhen;
|
|
3805
|
+
declare const __pickerSalesClose_finishing: typeof finishing;
|
|
3806
|
+
declare const __pickerSalesClose_note: typeof note;
|
|
3807
|
+
declare const __pickerSalesClose_salesView: typeof salesView;
|
|
3808
|
+
declare const __pickerSalesClose_sync: typeof sync;
|
|
3809
|
+
declare const __pickerSalesClose_translate: typeof translate;
|
|
3810
|
+
declare const __pickerSalesClose_view: typeof view;
|
|
3811
|
+
declare const __pickerSalesClose_words: typeof words;
|
|
3812
|
+
declare namespace __pickerSalesClose {
|
|
3813
|
+
export { type __pickerSalesClose_SalesCloseHost as SalesCloseHost, type __pickerSalesClose_SalesView as SalesView, __pickerSalesClose_applyNotice as applyNotice, __pickerSalesClose_bannerHtml as bannerHtml, __pickerSalesClose_eventEndedWhen as eventEndedWhen, __pickerSalesClose_finishing as finishing, __pickerSalesClose_note as note, __pickerSalesClose_salesView as salesView, __pickerSalesClose_sync as sync, __pickerSalesClose_translate as translate, __pickerSalesClose_view as view, __pickerSalesClose_words as words };
|
|
3814
|
+
}
|
|
3815
|
+
|
|
3653
3816
|
/**
|
|
3654
3817
|
* Hosted checkout — the payment step, as a module nobody downloads until a
|
|
3655
3818
|
* buyer actually asks to pay.
|
|
@@ -3706,6 +3869,9 @@ interface CheckoutOrderStatus {
|
|
|
3706
3869
|
pdfUrl?: string;
|
|
3707
3870
|
}
|
|
3708
3871
|
|
|
3872
|
+
/** The closed-view functions SeatPicker calls; see pickerSalesClose.ts. */
|
|
3873
|
+
type SalesCloseModule = Pick<typeof __pickerSalesClose, 'translate' | 'view' | 'words' | 'note' | 'finishing' | 'sync' | 'applyNotice'>;
|
|
3874
|
+
|
|
3709
3875
|
/**
|
|
3710
3876
|
* THE PHONE SHEET HAS THREE RESTING HEIGHTS, smallest first.
|
|
3711
3877
|
*
|
|
@@ -3752,8 +3918,9 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3752
3918
|
/** Exact ticket count required before checkout; null keeps ordinary 1..max behavior. */
|
|
3753
3919
|
/** @internal */ readonly exactTickets: number | null;
|
|
3754
3920
|
private lastSelectionValidity;
|
|
3755
|
-
/**
|
|
3756
|
-
|
|
3921
|
+
/** The host's own pricing (mount option or `setPricing`), kept separate from
|
|
3922
|
+
* live server offer overrides. */
|
|
3923
|
+
private hostPricing;
|
|
3757
3924
|
/** @internal */ readonly performanceGroup: PerformanceGroupPickerInternal | null;
|
|
3758
3925
|
/** Structural (not CSS) removal of per-performance money — see pickerInternal. */
|
|
3759
3926
|
/** @internal */ readonly suppressPricing: boolean;
|
|
@@ -3796,7 +3963,7 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3796
3963
|
* intentionally fetched in parallel, so its faster response is stored but
|
|
3797
3964
|
* stays visually quiet until this becomes true. */
|
|
3798
3965
|
private currencyResolved;
|
|
3799
|
-
|
|
3966
|
+
/** @internal */ eventTimezone: string | null;
|
|
3800
3967
|
/** The event's formatted date-time (event-zone), reused by the closed-state note. */
|
|
3801
3968
|
private eventWhenText;
|
|
3802
3969
|
private offerAvailability;
|
|
@@ -3933,6 +4100,18 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
3933
4100
|
* the wording it produces today.
|
|
3934
4101
|
*/
|
|
3935
4102
|
/** @internal */ salesState: PickerSalesState | null;
|
|
4103
|
+
/** @internal EH18: the chart load's event facts the closed view reads (box office, date). */
|
|
4104
|
+
salesInfo: {
|
|
4105
|
+
venueSelling: boolean;
|
|
4106
|
+
startsAt?: number | null;
|
|
4107
|
+
} | null;
|
|
4108
|
+
/**
|
|
4109
|
+
* @internal EH18: the closed view (`seatlayer-sales.mjs`), fetched only once
|
|
4110
|
+
* this picker is closed at load or a `sales` frame closes it. Until then, and
|
|
4111
|
+
* where the asset cannot load, the picker still refuses picks and says
|
|
4112
|
+
* "Sales closed".
|
|
4113
|
+
*/ salesUi: SalesCloseModule | null;
|
|
4114
|
+
private salesUiLoad;
|
|
3936
4115
|
/** Every seated category's live availability is 0 (sold-out overlay is up). */
|
|
3937
4116
|
private soldOut;
|
|
3938
4117
|
private soldoutEl;
|
|
@@ -4351,6 +4530,12 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4351
4530
|
get onGAPromptHook(): SeatPickerOptions['onGAPrompt'];
|
|
4352
4531
|
/** @internal The closed-sales words for this event's own sales state. */
|
|
4353
4532
|
closedWords(): SalesClosedWords;
|
|
4533
|
+
/** @internal Closed online with seats held: the buyer may still pay for them. */
|
|
4534
|
+
finishingHold(): boolean;
|
|
4535
|
+
/** Load the closed view once, then re-apply the closed state through it. */
|
|
4536
|
+
private withSalesUi;
|
|
4537
|
+
/** A `sales` frame. An open picker told sales are live has nothing to load. */
|
|
4538
|
+
private salesNotice;
|
|
4354
4539
|
/** @internal */ tf(key: string, fallback: string): string;
|
|
4355
4540
|
/** Sold-out overlay — an informational state with no unavailable action. */
|
|
4356
4541
|
private buildSoldoutOverlay;
|
|
@@ -4378,7 +4563,7 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4378
4563
|
* idempotent DOM apply used at load and on transition.
|
|
4379
4564
|
*/
|
|
4380
4565
|
private setSalesClosed;
|
|
4381
|
-
|
|
4566
|
+
/** @internal */ applySalesClosed(): void;
|
|
4382
4567
|
/**
|
|
4383
4568
|
* The badge follows the SERVED chart theme, and nothing else.
|
|
4384
4569
|
*
|
|
@@ -4567,6 +4752,14 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4567
4752
|
* hover surface they never reach, so the same facts arrive here as prose.
|
|
4568
4753
|
*/
|
|
4569
4754
|
private markedSeatAnnouncement;
|
|
4755
|
+
/**
|
|
4756
|
+
* What one seat sells at, per ticket type, priced as the cart prices it
|
|
4757
|
+
* (paidPrice: the host's price for the seat, the event's, a channel, an
|
|
4758
|
+
* offer, then the category). Undefined for an unpriced category.
|
|
4759
|
+
*/
|
|
4760
|
+
private seatPriceRangeOf;
|
|
4761
|
+
/** "£88", or "£60–£88" when the range is open. */
|
|
4762
|
+
private moneyRange;
|
|
4570
4763
|
/** aria-live readout when keyboard focus lands on a seat. */
|
|
4571
4764
|
/** @internal */ announceSeat(seat: ExpandedSeat | null): void;
|
|
4572
4765
|
/** @internal */ showTableDialog(table: TableSelectionDetails, held: boolean, returnFocus?: HTMLElement | null): void;
|
|
@@ -4674,12 +4867,23 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4674
4867
|
private applyChannelPricing;
|
|
4675
4868
|
private syncOffer;
|
|
4676
4869
|
/**
|
|
4677
|
-
* The price the buyer will actually pay for an object/category/tier:
|
|
4870
|
+
* The price the buyer will actually pay for an object/category/tier: the
|
|
4871
|
+
* seat's own price (the host's `pricing.objects`, then the event's), its
|
|
4678
4872
|
* scoped channel override, then the host/server offer, then the chart. Every
|
|
4679
4873
|
* price the widget DISPLAYS or hands off must flow through here — a map
|
|
4680
4874
|
* that shows one price while checkout charges another destroys trust.
|
|
4875
|
+
* A seat already on the hold is priced by `heldPrice` instead.
|
|
4681
4876
|
*/
|
|
4682
4877
|
/** @internal */ paidPrice(categoryKey: string | undefined, tierId: string | null | undefined, fallback: number, objectLabel?: string): number;
|
|
4878
|
+
/**
|
|
4879
|
+
* What a HELD line costs: the price the server froze on the hold, which is
|
|
4880
|
+
* what it charges. An offer read after the hold, or a channel price (the
|
|
4881
|
+
* server already applied it), never replaces it. Only an SDK-checkout host's
|
|
4882
|
+
* OWN price may — that host charges on its side — and its category price
|
|
4883
|
+
* only for a seat the event did not price on its own.
|
|
4884
|
+
*/
|
|
4885
|
+
/** @internal */ heldPrice(item: HoldLineItem): number;
|
|
4886
|
+
/** @internal */ hostObjectPrices(): SeatPickerPricing['objects'];
|
|
4683
4887
|
/** The half of a legend's inputs the rail and the price list share, resolved
|
|
4684
4888
|
* once so the two renderings cannot be given different answers. */
|
|
4685
4889
|
/** @internal */ legendDeps(): LegendDeps;
|
|
@@ -4733,6 +4937,8 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4733
4937
|
* on a different path, which nulls this.hold first).
|
|
4734
4938
|
*/
|
|
4735
4939
|
private detectBooked;
|
|
4940
|
+
/** The owner's socket says this hold was booked: settle it as a wire `booked` once did. */
|
|
4941
|
+
private settleBookedHold;
|
|
4736
4942
|
/**
|
|
4737
4943
|
* Say that the seats were lost, and make sure nothing says otherwise.
|
|
4738
4944
|
*
|
|
@@ -4964,12 +5170,12 @@ declare class SeatPicker implements GaPromptPicker {
|
|
|
4964
5170
|
* allowed to wait on it. Remounting the widget to hand it new options would
|
|
4965
5171
|
* tear down a live hold, so the override is settable in place.
|
|
4966
5172
|
*
|
|
4967
|
-
*
|
|
4968
|
-
*
|
|
4969
|
-
*
|
|
4970
|
-
*
|
|
4971
|
-
*
|
|
4972
|
-
*
|
|
5173
|
+
* These are the HOST'S prices. Live server offers stay merged on top of them,
|
|
5174
|
+
* as at mount. They reprice seats not yet held (`paidPrice`); a held line
|
|
5175
|
+
* keeps the hold's price, except that with SDK checkout the host's own price
|
|
5176
|
+
* for its category also reprices held lines and the handoff (`heldPrice`).
|
|
5177
|
+
* The worker still charges its hold, so with SeatLayer checkout a wrong call
|
|
5178
|
+
* here can misprint a fresh seat's price, never mischarge one.
|
|
4973
5179
|
*
|
|
4974
5180
|
* A no-op when the map is unchanged, so a host may call it on every poll.
|
|
4975
5181
|
*/
|