@seatlayer/core 0.110.1 → 0.111.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/ar-IOQUWTKM.js +1 -0
- package/dist/be-XLR5WTXS.js +1 -0
- package/dist/bg-AVCWLASZ.js +1 -0
- package/dist/ca-TKG35ICB.js +1 -0
- package/dist/{chunk-5IADCFUU.js → chunk-5FIX35HN.js} +1 -1
- package/dist/{chunk-6CBJBESS.js → chunk-5GHPGPWE.js} +1 -1
- package/dist/{chunk-GWGWNBGU.js → chunk-AZWAP4OE.js} +1 -1
- package/dist/chunk-BXQQKDIX.js +1 -0
- package/dist/{chunk-NVAF2E7Q.js → chunk-FZ74MVKY.js} +1 -1
- package/dist/{chunk-GVVZR3YS.js → chunk-MN4M5QZ4.js} +1 -1
- package/dist/chunk-N6K5NQYG.js +1 -0
- package/dist/{chunk-2VYFNNYC.js → chunk-NQLQNJV2.js} +1 -1
- package/dist/{chunk-ZY6WTPTI.js → chunk-NXS6JFBI.js} +1 -1
- package/dist/{chunk-DLHW3UDD.js → chunk-XWTAFHYQ.js} +1 -1
- package/dist/{chunk-YRDOE3N7.js → chunk-Z6YGWTT3.js} +1 -1
- package/dist/core/chart-ops/index.cjs +1 -1
- package/dist/core/chart-ops/index.d.cts +1 -1
- package/dist/core/chart-ops/index.d.ts +1 -1
- package/dist/core/chart-ops/index.js +1 -1
- package/dist/core/inventory/index.cjs +1 -1
- package/dist/core/inventory/index.js +1 -1
- package/dist/core/layout/index.cjs +1 -1
- package/dist/core/layout/index.js +1 -1
- package/dist/core/sections/index.js +1 -1
- package/dist/cs-JRLKXXM5.js +1 -0
- package/dist/cy-W3CYXTOV.js +1 -0
- package/dist/da-HG4PFYWH.js +1 -0
- package/dist/de-KOM2AXXJ.js +1 -0
- package/dist/el-NBRQ66EQ.js +1 -0
- package/dist/es-AVEG4ZNM.js +1 -0
- package/dist/et-33PIOTI4.js +1 -0
- package/dist/fa-CDV2VTXV.js +1 -0
- package/dist/fi-TKATIOE6.js +1 -0
- package/dist/fr-TMDNSR5N.js +1 -0
- package/dist/he-4G7OVLJX.js +1 -0
- package/dist/hi-XKXNYPYF.js +1 -0
- package/dist/hr-BX444QNM.js +1 -0
- package/dist/hu-FM46JMDP.js +1 -0
- package/dist/id-CBVTYGFP.js +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +33 -25
- package/dist/index.d.ts +33 -25
- package/dist/index.js +1 -1
- package/dist/it-ZOFOAG6E.js +1 -0
- package/dist/ja-NKEBMXTO.js +1 -0
- package/dist/ko-RUCELYV7.js +1 -0
- package/dist/ku-KKYBDVSA.js +1 -0
- package/dist/localeLoaders-YQXZZVNH.js +1 -0
- package/dist/lt-3CJ37W7A.js +1 -0
- package/dist/lv-H37RDMRX.js +1 -0
- package/dist/ms-E5RVBRE6.js +1 -0
- package/dist/nl-QHEOTQ7U.js +1 -0
- package/dist/no-43HJQ5MK.js +1 -0
- package/dist/pl-4LKJHMFJ.js +1 -0
- package/dist/pt-LSSE5QHE.js +1 -0
- package/dist/ro-U2QASPIY.js +1 -0
- package/dist/ru-PTMWREXY.js +1 -0
- package/dist/sk-AY2N2ORA.js +1 -0
- package/dist/sl-5MQJVNB7.js +1 -0
- package/dist/sr-25FTJPUA.js +1 -0
- package/dist/{stage-CKb7aNoH.d.cts → stage-BtqKu5aX.d.cts} +1 -1
- package/dist/{stage-CKb7aNoH.d.ts → stage-BtqKu5aX.d.ts} +1 -1
- package/dist/sv-7VQX4BFH.js +1 -0
- package/dist/th-E53HQMDC.js +1 -0
- package/dist/tr-IIR6E7OD.js +1 -0
- package/dist/uk-HBINQ4XE.js +1 -0
- package/dist/vi-TX6I5RWN.js +1 -0
- package/dist/view3d/index.cjs +195 -77
- package/dist/view3d/index.d.cts +259 -78
- package/dist/view3d/index.d.ts +259 -78
- package/dist/view3d/index.js +193 -75
- package/dist/view3d/scene/scene.worker.cjs +1 -1
- package/dist/view3d/scene/scene.worker.js +1 -1
- package/dist/zh-Hans-7QNBTEYC.js +1 -0
- package/dist/zh-Hant-6KK3D42X.js +1 -0
- package/package.json +1 -1
- package/dist/ar-C5PA2DVE.js +0 -1
- package/dist/be-TMKSMYPN.js +0 -1
- package/dist/bg-V6HTEDUB.js +0 -1
- package/dist/ca-CTZMHWW4.js +0 -1
- package/dist/chunk-3V32MDJI.js +0 -1
- package/dist/chunk-4AGC7B64.js +0 -1
- package/dist/cs-FUDGOUFL.js +0 -1
- package/dist/cy-5RRARIAP.js +0 -1
- package/dist/da-PONPPWKY.js +0 -1
- package/dist/de-PKG7AAB5.js +0 -1
- package/dist/el-H7OFU4QQ.js +0 -1
- package/dist/es-QSW5IZ6U.js +0 -1
- package/dist/et-GTMPSS72.js +0 -1
- package/dist/fa-SGLTFGJF.js +0 -1
- package/dist/fi-7YTEAVDM.js +0 -1
- package/dist/fr-ECCQ24MZ.js +0 -1
- package/dist/he-YHMMDOX7.js +0 -1
- package/dist/hi-GRAQX2E6.js +0 -1
- package/dist/hr-MN33LRIJ.js +0 -1
- package/dist/hu-NW3SMQVM.js +0 -1
- package/dist/id-3OPRAUF7.js +0 -1
- package/dist/it-RYM74YWO.js +0 -1
- package/dist/ja-4NI6DG5D.js +0 -1
- package/dist/ko-C4F6UEMK.js +0 -1
- package/dist/ku-DMSBMWTC.js +0 -1
- package/dist/localeLoaders-G3GCGLPW.js +0 -1
- package/dist/lt-3EXKKZFG.js +0 -1
- package/dist/lv-4EWNRDCG.js +0 -1
- package/dist/ms-7LJBSAEJ.js +0 -1
- package/dist/nl-GWTIWXRW.js +0 -1
- package/dist/no-T3FW2WLX.js +0 -1
- package/dist/pl-OG5OBRHR.js +0 -1
- package/dist/pt-YQ6VES5R.js +0 -1
- package/dist/ro-VK5MASYF.js +0 -1
- package/dist/ru-YU5CYR6T.js +0 -1
- package/dist/sk-CE7PXAYL.js +0 -1
- package/dist/sl-EYUPV4BG.js +0 -1
- package/dist/sr-PPXCN4IK.js +0 -1
- package/dist/sv-WR2BJBCJ.js +0 -1
- package/dist/th-JUB2DODR.js +0 -1
- package/dist/tr-GFHA7FT6.js +0 -1
- package/dist/uk-3FTS2SRK.js +0 -1
- package/dist/vi-7OTXPOQV.js +0 -1
- package/dist/zh-Hans-FD4XNYUA.js +0 -1
- package/dist/zh-Hant-7TXVJKJQ.js +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -1610,6 +1610,17 @@ declare function applyOrganizerSeatGlyph(shape: Shape, glyph: SeatStateGlyph | n
|
|
|
1610
1610
|
|
|
1611
1611
|
declare const ownPriceRings: SeatRingHook;
|
|
1612
1612
|
|
|
1613
|
+
/**
|
|
1614
|
+
* What a buyer reads about an area's live availability: "480 LEFT", "SOLD OUT",
|
|
1615
|
+
* or, under the wheelchair filter, its wheelchair places. The one rule for the
|
|
1616
|
+
* words, so the 3D view's area tag (the widget hands it these through
|
|
1617
|
+
* `Venue3DHandle.setAreaStates`) says what the 2D map says.
|
|
1618
|
+
*/
|
|
1619
|
+
declare function gaAvailabilityText(state: {
|
|
1620
|
+
available: number;
|
|
1621
|
+
wheelchairFree?: number | null;
|
|
1622
|
+
}): string;
|
|
1623
|
+
|
|
1613
1624
|
/**
|
|
1614
1625
|
* What an availability refresh means for the buyer who is looking at the map.
|
|
1615
1626
|
*
|
|
@@ -2726,20 +2737,17 @@ declare class PickerController {
|
|
|
2726
2737
|
/** Narrow (phone) layout, as reported by the host widget; see setNarrowLayout. */
|
|
2727
2738
|
private narrowLayout;
|
|
2728
2739
|
/**
|
|
2729
|
-
* The host tells the controller which layout it is in
|
|
2730
|
-
*
|
|
2731
|
-
*
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
2740
|
+
* The host tells the controller which layout it is in (`SeatPicker` calls
|
|
2741
|
+
* this; optional on older hosts). The row-band rung (rows drawn as
|
|
2742
|
+
* category-coloured lines before the seats appear) runs on every layout:
|
|
2743
|
+
* the owner first wanted it desktop-only, then, the same evening
|
|
2744
|
+
* (2026-09-07), on the phone as well. A layout change still re-applies the
|
|
2745
|
+
* preview, so it takes the same path as before.
|
|
2734
2746
|
*/
|
|
2735
2747
|
setNarrowLayout(narrow: boolean): void;
|
|
2736
2748
|
/**
|
|
2737
|
-
* Bands are wanted where the host asked
|
|
2738
|
-
*
|
|
2739
|
-
* owner first wanted the lines desktop-only, then, the same evening
|
|
2740
|
-
* (2026-09-07), on the phone as well — so a phone section tap lands on the
|
|
2741
|
-
* category lines like desktop. Flip the constant to make the rung
|
|
2742
|
-
* desktop-only again; the `sectionDetail` theme knob turns it off per chart.
|
|
2749
|
+
* Bands are wanted where the host asked for the section preview and the
|
|
2750
|
+
* chart allows them: the `sectionDetail` theme knob turns them off per chart.
|
|
2743
2751
|
*/
|
|
2744
2752
|
private rowBandsWanted;
|
|
2745
2753
|
private applyRowBandPreview;
|
|
@@ -2786,6 +2794,12 @@ declare class PickerController {
|
|
|
2786
2794
|
setGASelection(selected: ReadonlyMap<string, number> | null): void;
|
|
2787
2795
|
/** Mirror live GA availability (and the pending chip) onto the map. */
|
|
2788
2796
|
pushGAState(): void;
|
|
2797
|
+
/**
|
|
2798
|
+
* Every GA area's live state, exactly as the 2D map is given it: places
|
|
2799
|
+
* free, this buyer's count, and the wheelchair places under that filter. A
|
|
2800
|
+
* host hands a 3D view this record, with its words and its price filter.
|
|
2801
|
+
*/
|
|
2802
|
+
gaStates(): Record<string, GAAreaState>;
|
|
2789
2803
|
/** Select a quantity from one GA area and hold it atomically. */
|
|
2790
2804
|
holdGA(areaId: string, qty: number, options?: {
|
|
2791
2805
|
tierId?: string | null;
|
|
@@ -3421,19 +3435,6 @@ declare function formatDate(value: number | Date, opts?: Intl.DateTimeFormatOpti
|
|
|
3421
3435
|
*/
|
|
3422
3436
|
declare function loadLocale(code?: string | null, stored?: string | null): Promise<Locale>;
|
|
3423
3437
|
|
|
3424
|
-
/**
|
|
3425
|
-
* Money formatting — the ONE place currency rendering happens.
|
|
3426
|
-
*
|
|
3427
|
-
* Ticket money is multi-currency: the org sets a default and each event can
|
|
3428
|
-
* override it (ISO 4217 code delivered with the event/chart payload). Until
|
|
3429
|
-
* those backend fields land, callers fall back to DEFAULT_CURRENCY, which is
|
|
3430
|
-
* kept at EUR so live buyer pages render exactly what they rendered when the
|
|
3431
|
-
* symbol was hardcoded. Flipping an org to USD/INR/… later is data, not code.
|
|
3432
|
-
*
|
|
3433
|
-
* Amounts are in MAJOR units (45 === €45) matching Category.price in
|
|
3434
|
-
* src/core/types.ts. If/when backend money fields arrive in minor units,
|
|
3435
|
-
* convert at the API boundary, not here.
|
|
3436
|
-
*/
|
|
3437
3438
|
declare const DEFAULT_CURRENCY = "USD";
|
|
3438
3439
|
/**
|
|
3439
3440
|
* The ONE fallback chain for ticket money (owner rule 2026-09-27): the event's
|
|
@@ -3474,6 +3475,13 @@ declare function formatMoney(amount: number, currency?: string, fractionDigits?:
|
|
|
3474
3475
|
* `*_minor` field), not how many digits a price is displayed with.
|
|
3475
3476
|
*/
|
|
3476
3477
|
declare function currencyExponent(currency?: string): number;
|
|
3478
|
+
/**
|
|
3479
|
+
* The step an amount the organiser types must keep, in minor units: 10 (0.010)
|
|
3480
|
+
* in the three-decimal currencies (BHD, KWD, OMR), whose last decimal must be 0
|
|
3481
|
+
* for Razorpay and Checkout.com; 1 elsewhere. The server refuses the same
|
|
3482
|
+
* amounts (workers/api/src/payments/money.ts `minorAmountStep`).
|
|
3483
|
+
*/
|
|
3484
|
+
declare function minorAmountStep(currency?: string): 1 | 10;
|
|
3477
3485
|
/**
|
|
3478
3486
|
* Minor units → major units. `9000` USD cents is `90`; `9000` JPY is `9000`.
|
|
3479
3487
|
*
|
|
@@ -3487,4 +3495,4 @@ declare function formatMinor(minor: number, currency?: string, locale?: string):
|
|
|
3487
3495
|
/** Bare symbol for input adornments ("€", "$", "₹"). */
|
|
3488
3496
|
declare function currencySymbol(currency?: string): string;
|
|
3489
3497
|
|
|
3490
|
-
export { AccessibilityType, type AccessibleSectionStep, type AccessibleSectionSummary, type AccessibleSpread, type AvailabilityRefreshInput, type AvailabilityRefreshOutcome, BoothType, CURRENCY_CHOICES, Category, CategoryTier, ChartDoc, DEFAULT_CURRENCY, type Dict, type Direction, EMPTY_AVAILABILITY_REFRESH, EventConfigurationRef, EventConfigurationVersion, ExpandedSeat, FloorLabelStyle, GAAreaState, HOLD_CLOCK_SKEW_MS, type HoldConflict, type HoldInfo, type HoldRecoveryShape, type HoldSelectionRequest, type HoldServerItem, ISeatmapRenderer, LABEL_FADE_MS, LEGIBILITY_HYSTERESIS_PX, LOCALE_NAMES, LabelLayers, type Locale, LodRung, type MoneyFormatOptions, type PanoramaResult, type PickerAccessNeed, type PickerCallbacks, PickerController, type PickerGAArea, type PickerMapTheme, type PickerOptions, type PickerRealtimeConnection, type PickerRealtimeSink, type PickerRenderPerformanceProfile, type PickerSalesNotice, type PickerSalesState, type PickerSeat, PickerSelectionError, type PickerSelectionValidator, type PickerSelectionValidity, type PickerSelectionViolation, type PickerStatusChange, type PickerTransport, Point, RendererCallbacks, RendererMinimapSnapshot, RendererOptions, RendererQualityEvidence, RendererViewMode, SUPPORTED_LOCALES, SeatCommercialAttributes, type SeatHoverDetails, SeatMark, type SeatNoteInput, type SeatNoteRow, type SeatNoteTone, type SeatPrice, type SeatPriceMap, SeatRingHook, SeatStatus, SeatmapRenderer, type SectionCategory, type SectionSummary, TRANSLATED_LOCALES, type TableSelectionDetails, accessNeedsFor, accessibilityLabelKey, applyOrganizerSeatGlyph, asPickerSalesState, attachVisibilityCatchUp, clearOrganizerSeatGlyph, compactRowLabel, createRenderer, crossesThreshold, currencyExponent, currencySymbol, formatDate, formatMinor, formatMoney, fromMinorUnits, generateSeatPanorama, generateSeatThumb, getLocale, holdHasLapsed, holdRecoveryShape, hysteresisScale, isDeadHoldRefusal, isLocaleLoaded, isOrganizerGlyphPainted, loadLocale, localeDirection, numberLocale, onLocaleChange, ownPriceRings, reconcileAvailability, refreshChangedSomething, renderedPx, resolveCurrency, resolveLocale, seatBasePrice, seatNoteRowModel, seatPriceEntry, seatPriceFor, seatPriceRange, setLocale, setMoneyLocale, setStringOverrides, shouldWaitForHoldExpiry, t, tCount, zoomTowardPoint };
|
|
3498
|
+
export { AccessibilityType, type AccessibleSectionStep, type AccessibleSectionSummary, type AccessibleSpread, type AvailabilityRefreshInput, type AvailabilityRefreshOutcome, BoothType, CURRENCY_CHOICES, Category, CategoryTier, ChartDoc, DEFAULT_CURRENCY, type Dict, type Direction, EMPTY_AVAILABILITY_REFRESH, EventConfigurationRef, EventConfigurationVersion, ExpandedSeat, FloorLabelStyle, GAAreaState, HOLD_CLOCK_SKEW_MS, type HoldConflict, type HoldInfo, type HoldRecoveryShape, type HoldSelectionRequest, type HoldServerItem, ISeatmapRenderer, LABEL_FADE_MS, LEGIBILITY_HYSTERESIS_PX, LOCALE_NAMES, LabelLayers, type Locale, LodRung, type MoneyFormatOptions, type PanoramaResult, type PickerAccessNeed, type PickerCallbacks, PickerController, type PickerGAArea, type PickerMapTheme, type PickerOptions, type PickerRealtimeConnection, type PickerRealtimeSink, type PickerRenderPerformanceProfile, type PickerSalesNotice, type PickerSalesState, type PickerSeat, PickerSelectionError, type PickerSelectionValidator, type PickerSelectionValidity, type PickerSelectionViolation, type PickerStatusChange, type PickerTransport, Point, RendererCallbacks, RendererMinimapSnapshot, RendererOptions, RendererQualityEvidence, RendererViewMode, SUPPORTED_LOCALES, SeatCommercialAttributes, type SeatHoverDetails, SeatMark, type SeatNoteInput, type SeatNoteRow, type SeatNoteTone, type SeatPrice, type SeatPriceMap, SeatRingHook, SeatStatus, SeatmapRenderer, type SectionCategory, type SectionSummary, TRANSLATED_LOCALES, type TableSelectionDetails, accessNeedsFor, accessibilityLabelKey, applyOrganizerSeatGlyph, asPickerSalesState, attachVisibilityCatchUp, clearOrganizerSeatGlyph, compactRowLabel, createRenderer, crossesThreshold, currencyExponent, currencySymbol, formatDate, formatMinor, formatMoney, fromMinorUnits, gaAvailabilityText, generateSeatPanorama, generateSeatThumb, getLocale, holdHasLapsed, holdRecoveryShape, hysteresisScale, isDeadHoldRefusal, isLocaleLoaded, isOrganizerGlyphPainted, loadLocale, localeDirection, minorAmountStep, numberLocale, onLocaleChange, ownPriceRings, reconcileAvailability, refreshChangedSomething, renderedPx, resolveCurrency, resolveLocale, seatBasePrice, seatNoteRowModel, seatPriceEntry, seatPriceFor, seatPriceRange, setLocale, setMoneyLocale, setStringOverrides, shouldWaitForHoldExpiry, t, tCount, zoomTowardPoint };
|
package/dist/index.d.ts
CHANGED
|
@@ -1610,6 +1610,17 @@ declare function applyOrganizerSeatGlyph(shape: Shape, glyph: SeatStateGlyph | n
|
|
|
1610
1610
|
|
|
1611
1611
|
declare const ownPriceRings: SeatRingHook;
|
|
1612
1612
|
|
|
1613
|
+
/**
|
|
1614
|
+
* What a buyer reads about an area's live availability: "480 LEFT", "SOLD OUT",
|
|
1615
|
+
* or, under the wheelchair filter, its wheelchair places. The one rule for the
|
|
1616
|
+
* words, so the 3D view's area tag (the widget hands it these through
|
|
1617
|
+
* `Venue3DHandle.setAreaStates`) says what the 2D map says.
|
|
1618
|
+
*/
|
|
1619
|
+
declare function gaAvailabilityText(state: {
|
|
1620
|
+
available: number;
|
|
1621
|
+
wheelchairFree?: number | null;
|
|
1622
|
+
}): string;
|
|
1623
|
+
|
|
1613
1624
|
/**
|
|
1614
1625
|
* What an availability refresh means for the buyer who is looking at the map.
|
|
1615
1626
|
*
|
|
@@ -2726,20 +2737,17 @@ declare class PickerController {
|
|
|
2726
2737
|
/** Narrow (phone) layout, as reported by the host widget; see setNarrowLayout. */
|
|
2727
2738
|
private narrowLayout;
|
|
2728
2739
|
/**
|
|
2729
|
-
* The host tells the controller which layout it is in
|
|
2730
|
-
*
|
|
2731
|
-
*
|
|
2732
|
-
*
|
|
2733
|
-
*
|
|
2740
|
+
* The host tells the controller which layout it is in (`SeatPicker` calls
|
|
2741
|
+
* this; optional on older hosts). The row-band rung (rows drawn as
|
|
2742
|
+
* category-coloured lines before the seats appear) runs on every layout:
|
|
2743
|
+
* the owner first wanted it desktop-only, then, the same evening
|
|
2744
|
+
* (2026-09-07), on the phone as well. A layout change still re-applies the
|
|
2745
|
+
* preview, so it takes the same path as before.
|
|
2734
2746
|
*/
|
|
2735
2747
|
setNarrowLayout(narrow: boolean): void;
|
|
2736
2748
|
/**
|
|
2737
|
-
* Bands are wanted where the host asked
|
|
2738
|
-
*
|
|
2739
|
-
* owner first wanted the lines desktop-only, then, the same evening
|
|
2740
|
-
* (2026-09-07), on the phone as well — so a phone section tap lands on the
|
|
2741
|
-
* category lines like desktop. Flip the constant to make the rung
|
|
2742
|
-
* desktop-only again; the `sectionDetail` theme knob turns it off per chart.
|
|
2749
|
+
* Bands are wanted where the host asked for the section preview and the
|
|
2750
|
+
* chart allows them: the `sectionDetail` theme knob turns them off per chart.
|
|
2743
2751
|
*/
|
|
2744
2752
|
private rowBandsWanted;
|
|
2745
2753
|
private applyRowBandPreview;
|
|
@@ -2786,6 +2794,12 @@ declare class PickerController {
|
|
|
2786
2794
|
setGASelection(selected: ReadonlyMap<string, number> | null): void;
|
|
2787
2795
|
/** Mirror live GA availability (and the pending chip) onto the map. */
|
|
2788
2796
|
pushGAState(): void;
|
|
2797
|
+
/**
|
|
2798
|
+
* Every GA area's live state, exactly as the 2D map is given it: places
|
|
2799
|
+
* free, this buyer's count, and the wheelchair places under that filter. A
|
|
2800
|
+
* host hands a 3D view this record, with its words and its price filter.
|
|
2801
|
+
*/
|
|
2802
|
+
gaStates(): Record<string, GAAreaState>;
|
|
2789
2803
|
/** Select a quantity from one GA area and hold it atomically. */
|
|
2790
2804
|
holdGA(areaId: string, qty: number, options?: {
|
|
2791
2805
|
tierId?: string | null;
|
|
@@ -3421,19 +3435,6 @@ declare function formatDate(value: number | Date, opts?: Intl.DateTimeFormatOpti
|
|
|
3421
3435
|
*/
|
|
3422
3436
|
declare function loadLocale(code?: string | null, stored?: string | null): Promise<Locale>;
|
|
3423
3437
|
|
|
3424
|
-
/**
|
|
3425
|
-
* Money formatting — the ONE place currency rendering happens.
|
|
3426
|
-
*
|
|
3427
|
-
* Ticket money is multi-currency: the org sets a default and each event can
|
|
3428
|
-
* override it (ISO 4217 code delivered with the event/chart payload). Until
|
|
3429
|
-
* those backend fields land, callers fall back to DEFAULT_CURRENCY, which is
|
|
3430
|
-
* kept at EUR so live buyer pages render exactly what they rendered when the
|
|
3431
|
-
* symbol was hardcoded. Flipping an org to USD/INR/… later is data, not code.
|
|
3432
|
-
*
|
|
3433
|
-
* Amounts are in MAJOR units (45 === €45) matching Category.price in
|
|
3434
|
-
* src/core/types.ts. If/when backend money fields arrive in minor units,
|
|
3435
|
-
* convert at the API boundary, not here.
|
|
3436
|
-
*/
|
|
3437
3438
|
declare const DEFAULT_CURRENCY = "USD";
|
|
3438
3439
|
/**
|
|
3439
3440
|
* The ONE fallback chain for ticket money (owner rule 2026-09-27): the event's
|
|
@@ -3474,6 +3475,13 @@ declare function formatMoney(amount: number, currency?: string, fractionDigits?:
|
|
|
3474
3475
|
* `*_minor` field), not how many digits a price is displayed with.
|
|
3475
3476
|
*/
|
|
3476
3477
|
declare function currencyExponent(currency?: string): number;
|
|
3478
|
+
/**
|
|
3479
|
+
* The step an amount the organiser types must keep, in minor units: 10 (0.010)
|
|
3480
|
+
* in the three-decimal currencies (BHD, KWD, OMR), whose last decimal must be 0
|
|
3481
|
+
* for Razorpay and Checkout.com; 1 elsewhere. The server refuses the same
|
|
3482
|
+
* amounts (workers/api/src/payments/money.ts `minorAmountStep`).
|
|
3483
|
+
*/
|
|
3484
|
+
declare function minorAmountStep(currency?: string): 1 | 10;
|
|
3477
3485
|
/**
|
|
3478
3486
|
* Minor units → major units. `9000` USD cents is `90`; `9000` JPY is `9000`.
|
|
3479
3487
|
*
|
|
@@ -3487,4 +3495,4 @@ declare function formatMinor(minor: number, currency?: string, locale?: string):
|
|
|
3487
3495
|
/** Bare symbol for input adornments ("€", "$", "₹"). */
|
|
3488
3496
|
declare function currencySymbol(currency?: string): string;
|
|
3489
3497
|
|
|
3490
|
-
export { AccessibilityType, type AccessibleSectionStep, type AccessibleSectionSummary, type AccessibleSpread, type AvailabilityRefreshInput, type AvailabilityRefreshOutcome, BoothType, CURRENCY_CHOICES, Category, CategoryTier, ChartDoc, DEFAULT_CURRENCY, type Dict, type Direction, EMPTY_AVAILABILITY_REFRESH, EventConfigurationRef, EventConfigurationVersion, ExpandedSeat, FloorLabelStyle, GAAreaState, HOLD_CLOCK_SKEW_MS, type HoldConflict, type HoldInfo, type HoldRecoveryShape, type HoldSelectionRequest, type HoldServerItem, ISeatmapRenderer, LABEL_FADE_MS, LEGIBILITY_HYSTERESIS_PX, LOCALE_NAMES, LabelLayers, type Locale, LodRung, type MoneyFormatOptions, type PanoramaResult, type PickerAccessNeed, type PickerCallbacks, PickerController, type PickerGAArea, type PickerMapTheme, type PickerOptions, type PickerRealtimeConnection, type PickerRealtimeSink, type PickerRenderPerformanceProfile, type PickerSalesNotice, type PickerSalesState, type PickerSeat, PickerSelectionError, type PickerSelectionValidator, type PickerSelectionValidity, type PickerSelectionViolation, type PickerStatusChange, type PickerTransport, Point, RendererCallbacks, RendererMinimapSnapshot, RendererOptions, RendererQualityEvidence, RendererViewMode, SUPPORTED_LOCALES, SeatCommercialAttributes, type SeatHoverDetails, SeatMark, type SeatNoteInput, type SeatNoteRow, type SeatNoteTone, type SeatPrice, type SeatPriceMap, SeatRingHook, SeatStatus, SeatmapRenderer, type SectionCategory, type SectionSummary, TRANSLATED_LOCALES, type TableSelectionDetails, accessNeedsFor, accessibilityLabelKey, applyOrganizerSeatGlyph, asPickerSalesState, attachVisibilityCatchUp, clearOrganizerSeatGlyph, compactRowLabel, createRenderer, crossesThreshold, currencyExponent, currencySymbol, formatDate, formatMinor, formatMoney, fromMinorUnits, generateSeatPanorama, generateSeatThumb, getLocale, holdHasLapsed, holdRecoveryShape, hysteresisScale, isDeadHoldRefusal, isLocaleLoaded, isOrganizerGlyphPainted, loadLocale, localeDirection, numberLocale, onLocaleChange, ownPriceRings, reconcileAvailability, refreshChangedSomething, renderedPx, resolveCurrency, resolveLocale, seatBasePrice, seatNoteRowModel, seatPriceEntry, seatPriceFor, seatPriceRange, setLocale, setMoneyLocale, setStringOverrides, shouldWaitForHoldExpiry, t, tCount, zoomTowardPoint };
|
|
3498
|
+
export { AccessibilityType, type AccessibleSectionStep, type AccessibleSectionSummary, type AccessibleSpread, type AvailabilityRefreshInput, type AvailabilityRefreshOutcome, BoothType, CURRENCY_CHOICES, Category, CategoryTier, ChartDoc, DEFAULT_CURRENCY, type Dict, type Direction, EMPTY_AVAILABILITY_REFRESH, EventConfigurationRef, EventConfigurationVersion, ExpandedSeat, FloorLabelStyle, GAAreaState, HOLD_CLOCK_SKEW_MS, type HoldConflict, type HoldInfo, type HoldRecoveryShape, type HoldSelectionRequest, type HoldServerItem, ISeatmapRenderer, LABEL_FADE_MS, LEGIBILITY_HYSTERESIS_PX, LOCALE_NAMES, LabelLayers, type Locale, LodRung, type MoneyFormatOptions, type PanoramaResult, type PickerAccessNeed, type PickerCallbacks, PickerController, type PickerGAArea, type PickerMapTheme, type PickerOptions, type PickerRealtimeConnection, type PickerRealtimeSink, type PickerRenderPerformanceProfile, type PickerSalesNotice, type PickerSalesState, type PickerSeat, PickerSelectionError, type PickerSelectionValidator, type PickerSelectionValidity, type PickerSelectionViolation, type PickerStatusChange, type PickerTransport, Point, RendererCallbacks, RendererMinimapSnapshot, RendererOptions, RendererQualityEvidence, RendererViewMode, SUPPORTED_LOCALES, SeatCommercialAttributes, type SeatHoverDetails, SeatMark, type SeatNoteInput, type SeatNoteRow, type SeatNoteTone, type SeatPrice, type SeatPriceMap, SeatRingHook, SeatStatus, SeatmapRenderer, type SectionCategory, type SectionSummary, TRANSLATED_LOCALES, type TableSelectionDetails, accessNeedsFor, accessibilityLabelKey, applyOrganizerSeatGlyph, asPickerSalesState, attachVisibilityCatchUp, clearOrganizerSeatGlyph, compactRowLabel, createRenderer, crossesThreshold, currencyExponent, currencySymbol, formatDate, formatMinor, formatMoney, fromMinorUnits, gaAvailabilityText, generateSeatPanorama, generateSeatThumb, getLocale, holdHasLapsed, holdRecoveryShape, hysteresisScale, isDeadHoldRefusal, isLocaleLoaded, isOrganizerGlyphPainted, loadLocale, localeDirection, minorAmountStep, numberLocale, onLocaleChange, ownPriceRings, reconcileAvailability, refreshChangedSomething, renderedPx, resolveCurrency, resolveLocale, seatBasePrice, seatNoteRowModel, seatPriceEntry, seatPriceFor, seatPriceRange, setLocale, setMoneyLocale, setStringOverrides, shouldWaitForHoldExpiry, t, tCount, zoomTowardPoint };
|