@riverbankcms/sdk 0.149.0 → 0.150.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.
Files changed (165) hide show
  1. package/dist/EventEmbeddedCheckoutStep-D00Kc8Zj.mjs +285 -0
  2. package/dist/{PreviewEditorSidebar-DBKln68M.mjs → PreviewEditorSidebar-7ZhmmnBB.mjs} +3 -3
  3. package/dist/{PreviewEditorUI-DpRX4Mum.mjs → PreviewEditorUI-BIJucTRd.mjs} +2 -2
  4. package/dist/{SdkPreviewModeRuntime-DJPmPY-r.mjs → SdkPreviewModeRuntime-tj45gmCX.mjs} +4 -3
  5. package/dist/{SiteChromeCustomizeContext-JYA0cJ_Z.mjs → SiteChromeCustomizeContext-BFOt0ss-.mjs} +4454 -4059
  6. package/dist/_dts/ai/src/contracts/proposals.d.ts +660 -0
  7. package/dist/_dts/ai/src/contracts/siteStyleProposalSchemas.d.ts +510 -0
  8. package/dist/_dts/api/src/billing.d.ts +2 -2
  9. package/dist/_dts/api/src/contentRuntime.d.ts +5 -1
  10. package/dist/_dts/api/src/footerCompositionContracts.d.ts +9 -0
  11. package/dist/_dts/api/src/footerSettings.d.ts +3 -3
  12. package/dist/_dts/api/src/index.d.ts +1 -1
  13. package/dist/_dts/api/src/navigation/bookingPortalLink.d.ts +13 -0
  14. package/dist/_dts/api/src/navigation.d.ts +1 -0
  15. package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +9 -173
  16. package/dist/_dts/api/src/sdkThemeWire.d.ts +12 -0
  17. package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -3
  18. package/dist/_dts/api/src/siteSettings.d.ts +2 -0
  19. package/dist/_dts/blocks/src/client/site-chrome.d.ts +1 -1
  20. package/dist/_dts/blocks/src/client.d.ts +2 -1
  21. package/dist/_dts/blocks/src/rendering/server.d.ts +1 -1
  22. package/dist/_dts/blocks/src/system/blocks/site-footer-runtime.d.ts +30 -3
  23. package/dist/_dts/blocks/src/system/designCapabilities.d.ts +10 -1
  24. package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +1 -1
  25. package/dist/_dts/blocks/src/system/runtime/api/types/events.d.ts +38 -18
  26. package/dist/_dts/blocks/src/system/runtime/hooks/useHeadlessEventRegistrationFlow.d.ts +1 -1
  27. package/dist/_dts/blocks/src/system/runtime/nodes/booking-form.server.d.ts +6 -0
  28. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.d.ts +13 -0
  29. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.d.ts +15 -0
  30. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +0 -1
  31. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/FullyBookedStep.d.ts +6 -0
  32. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentBlockingPanel.d.ts +3 -0
  33. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/PaymentSelectionStep.d.ts +2 -0
  34. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +15 -5
  35. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.planning.d.ts +4 -2
  36. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentLocation.d.ts +3 -0
  37. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/paymentResponse.d.ts +72 -0
  38. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationCompletion.d.ts +66 -5
  39. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationErrorRecovery.d.ts +1 -4
  40. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/registrationStateMachine.d.ts +13 -5
  41. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/sessionStorage.d.ts +11 -52
  42. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/types.d.ts +19 -2
  43. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationStripeReturn.d.ts +7 -42
  44. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationSubmit.d.ts +7 -8
  45. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +90 -24
  46. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useGuestRegistrationRecovery.d.ts +30 -0
  47. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/usePaymentStatusRecovery.d.ts +24 -12
  48. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useRegistrationAdmission.d.ts +18 -0
  49. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/wizardSteps.d.ts +6 -1
  50. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +1 -1
  51. package/dist/_dts/blocks/src/system/runtime/shared/stripe/browserStripe.d.ts +8 -0
  52. package/dist/_dts/blocks/src/system/transforms/registry/eventCalendar.d.ts +8 -0
  53. package/dist/_dts/commerce/src/purchase/checkoutCopy.d.ts +10 -0
  54. package/dist/_dts/commerce/src/purchase/checkoutPresentation.d.ts +49 -0
  55. package/dist/_dts/commerce/src/purchase/checkoutSessionMetadata.d.ts +4 -4
  56. package/dist/_dts/commerce/src/purchase/checkoutStripeFinalizationPlanning.d.ts +5 -1
  57. package/dist/_dts/commerce/src/purchase/event-registration-errors.d.ts +9 -0
  58. package/dist/_dts/commerce/src/purchase/index.d.ts +2 -0
  59. package/dist/_dts/commerce/src/purchase/orderItemMetadata.d.ts +1 -0
  60. package/dist/_dts/commerce/src/purchase/stripeCheckoutReturnUrl.d.ts +9 -2
  61. package/dist/_dts/commerce/src/purchase/types.d.ts +5 -6
  62. package/dist/_dts/content-editor/src/FooterComposerOverview.d.ts +3 -2
  63. package/dist/_dts/content-editor/src/footerPreviewRuntime.d.ts +6 -1
  64. package/dist/_dts/content-editor/src/useFooterComposerState.d.ts +7 -0
  65. package/dist/_dts/core/src/index.d.ts +1 -0
  66. package/dist/_dts/core/src/patch/index.d.ts +30 -0
  67. package/dist/_dts/db/src/generated/supabase/database.types.d.ts +30 -1
  68. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -1
  69. package/dist/_dts/sdk/src/bookings/types.d.ts +1 -1
  70. package/dist/_dts/sdk/src/version.d.ts +1 -1
  71. package/dist/_dts/theme-core/src/blocks/index.d.ts +1 -0
  72. package/dist/_dts/theme-core/src/blocks/opaquePanels.d.ts +147 -0
  73. package/dist/_dts/theme-core/src/boxBackgroundSchema.d.ts +22 -0
  74. package/dist/_dts/theme-core/src/buttons/buttonSurfaceContext.d.ts +22 -0
  75. package/dist/_dts/theme-core/src/cards/roles.d.ts +12 -0
  76. package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
  77. package/dist/_dts/theme-core/src/mock-themes/all.d.ts +198 -0
  78. package/dist/_dts/theme-core/src/palette/utils/index.d.ts +2 -0
  79. package/dist/_dts/theme-core/src/palette/utils/scrimContrast.d.ts +22 -0
  80. package/dist/_dts/theme-core/src/runtime/bridgeColourTokens.d.ts +10 -0
  81. package/dist/_dts/theme-core/src/schema.d.ts +330 -0
  82. package/dist/_dts/theme-core/src/site-styles/appearancePresetCatalog.d.ts +0 -51
  83. package/dist/_dts/theme-core/src/site-styles/blockAppearancePresets.d.ts +0 -51
  84. package/dist/_dts/theme-core/src/site-styles/lookResolution.d.ts +11 -0
  85. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorCapabilities.d.ts +7 -1
  86. package/dist/_dts/theme-core/src/site-styles/pageDesignEditorModel.d.ts +7 -1
  87. package/dist/_dts/theme-core/src/site-styles/previewRuntimeCapabilities.d.ts +12 -6
  88. package/dist/_dts/theme-core/src/site-styles/runtimeCompiler.d.ts +7 -4
  89. package/dist/_dts/theme-core/src/site-styles/sectionSurfaceBackgrounds.d.ts +65 -0
  90. package/dist/_dts/theme-core/src/site-styles/types.d.ts +17 -0
  91. package/dist/_dts/theme-core/src/surfaces/opaqueSurface.d.ts +43 -0
  92. package/dist/client/{BookingMailingListNote-Cr3EeTP5.mjs → BookingMailingListNote-CYHOufsI.mjs} +10 -440
  93. package/dist/client/{CheckboxChoice-B33MqoUo.mjs → CheckboxChoice-M-3HycLw.mjs} +1 -1
  94. package/dist/client/{DemoBookingPortalAccess-BFGB1Fay.mjs → DemoBookingPortalAccess-Cvr9O_ca.mjs} +2 -2
  95. package/dist/client/{EventCombined.client-DKYV0_ft.mjs → EventCombined.client-m5UZIobP.mjs} +7 -7
  96. package/dist/client/EventEmbeddedCheckoutStep-DL6zFAkA.mjs +289 -0
  97. package/dist/client/{EventListing.client-B9UIcEYc.mjs → EventListing.client-DeMfCM04.mjs} +2 -2
  98. package/dist/client/{LeafletStaticMap-CFLPkP0K.mjs → LeafletStaticMap-CvZ3gOdD.mjs} +1 -1
  99. package/dist/client/{checkoutUrls-CXhko2Rv.mjs → RichText-BtfNvQV6.mjs} +2 -29
  100. package/dist/client/{TerminalPanel-JjmgxEsR.mjs → TerminalPanel-CUCNEwlH.mjs} +2 -18
  101. package/dist/client/{ThemedButton-CKV1Jh2m.mjs → ThemedButton-C7WhXuRl.mjs} +2 -2
  102. package/dist/client/{accordion-DXWIfT3T.mjs → accordion-cQm5mjqs.mjs} +1 -1
  103. package/dist/client/{bookingForm-CjZgHNvv.mjs → bookingForm-BVPJE5RQ.mjs} +11 -10
  104. package/dist/client/bookings.mjs +2668 -1134
  105. package/dist/client/{carousel-DSLikmvZ.mjs → carousel-3vgnY7LC.mjs} +2 -2
  106. package/dist/client/{carousel.client-A2lG-9od.mjs → carousel.client-CISsdZvg.mjs} +1 -1
  107. package/dist/client/{cart-HDjWReFt.mjs → cart-BGK4oOjm.mjs} +3 -3
  108. package/dist/client/{checkout-CUvRZA3W.mjs → checkout-GsBLUNJD.mjs} +3 -3
  109. package/dist/client/checkoutUrls-ChxwaNtO.mjs +28 -0
  110. package/dist/client/client.mjs +3042 -1868
  111. package/dist/client/{colorStyles-j5U9v5JA.mjs → colorStyles-D-32xHZh.mjs} +2 -30
  112. package/dist/client/{context-DFmaZa-Q.mjs → context-D_8s12Fp.mjs} +1 -1
  113. package/dist/client/{dates-BBep1JnF.mjs → dates-DeJQbQ9T.mjs} +2 -2
  114. package/dist/client/{eventCalendar-zEobhxo4.mjs → eventCalendar-cmucD4NR.mjs} +10 -10
  115. package/dist/client/{eventCombined-Dp7bz5k-.mjs → eventCombined-ku3E9FTl.mjs} +4 -4
  116. package/dist/client/{eventDetails-FE-zqTt7.mjs → eventDetails-CyKZ61sF.mjs} +5 -5
  117. package/dist/client/{eventListing-BMt5snal.mjs → eventListing-B7yxGIhX.mjs} +4 -4
  118. package/dist/client/{eventRegistration-O6ZxHfOb.mjs → eventRegistration-BoXfSFgZ.mjs} +1403 -857
  119. package/dist/client/{form-DFa1D8vt.mjs → form-CNQOWhJo.mjs} +5 -5
  120. package/dist/client/{headerSection-CmjHLR-N.mjs → headerSection-DahaBJGQ.mjs} +3 -3
  121. package/dist/client/hooks.mjs +123 -64
  122. package/dist/client/{locationMap-BXKP_lGh.mjs → locationMap-BoDjqYlW.mjs} +4 -4
  123. package/dist/client/{media-Cl38iOMI.mjs → media-BFY0y2rb.mjs} +2 -1
  124. package/dist/client/{newsletterForm-CU-HmxGx.mjs → newsletterForm-DtzXDklw.mjs} +4 -4
  125. package/dist/client/{pricing-KEAEsibq.mjs → pricing-DXEh2Lhh.mjs} +1 -1
  126. package/dist/client/{productDetail-Ckp7MGnt.mjs → productDetail-D7cPa-00.mjs} +3 -3
  127. package/dist/client/{productList-D91V0sYa.mjs → productList-D1XMap66.mjs} +3 -3
  128. package/dist/client/{propsDecoder-DZd6RJeA.mjs → propsDecoder-DiIeBopB.mjs} +758 -245
  129. package/dist/client/rendering/client.mjs +4381 -2892
  130. package/dist/client/rendering/islands.mjs +19 -19
  131. package/dist/client/rendering.mjs +3026 -1852
  132. package/dist/client/result-DRW7JWXz.mjs +30 -0
  133. package/dist/client/{routeIslandApiConfig-E1EkhhYY.mjs → routeIslandApiConfig-wzR4lKAY.mjs} +1 -1
  134. package/dist/client/scrollToBlock-C86BYkyV.mjs +17 -0
  135. package/dist/client/{shop-4F2jLQPI.mjs → shop-CYT5P-S5.mjs} +8 -8
  136. package/dist/client/{shop-commerce-store-vicweP2K.mjs → shop-commerce-store-wKhsJQxI.mjs} +1 -1
  137. package/dist/client/{shop-commerce-BbfCJjB3.mjs → shop-commerce-ypBu_dx4.mjs} +9 -9
  138. package/dist/client/{shopShared-DlONJt0T.mjs → shopShared-DFGhYrf2.mjs} +52 -6
  139. package/dist/client/{useEventFilters-COYyL3m7.mjs → useEventFilters-blSbN5o7.mjs} +8 -8
  140. package/dist/preview-next/client/runtime.mjs +3 -3
  141. package/dist/{sdk-runtime-CwvFFjB-.mjs → sdk-runtime-2p8uQk1V.mjs} +1 -1
  142. package/dist/{separator-ByL72zUT.mjs → separator-Cvvzk0Oo.mjs} +1 -1
  143. package/dist/server/components.mjs +4066 -3765
  144. package/dist/server/config-validation.mjs +185 -126
  145. package/dist/server/config.mjs +185 -126
  146. package/dist/server/data.mjs +123 -64
  147. package/dist/server/index.mjs +1 -1
  148. package/dist/server/next.mjs +615 -314
  149. package/dist/server/page-converter.mjs +100 -56
  150. package/dist/server/prebuild.mjs +1 -1
  151. package/dist/server/rendering/server.mjs +4041 -3751
  152. package/dist/server/rendering.mjs +4069 -3768
  153. package/dist/server/routing.mjs +149 -72
  154. package/dist/server/server.mjs +124 -65
  155. package/dist/server/theme-bridge.mjs +1122 -310
  156. package/dist/server/theme.mjs +126 -116
  157. package/dist/spinner-CDo6AkDz.mjs +658 -0
  158. package/dist/styles/index.css +75 -212
  159. package/package.json +1 -1
  160. package/dist/_dts/billing/src/checkout/platform.d.ts +0 -77
  161. package/dist/_dts/billing/src/config/env.d.ts +0 -29
  162. package/dist/_dts/billing/src/stripe/client.d.ts +0 -29
  163. package/dist/_dts/blocks/src/system/runtime/hooks/usePaymentVerification.d.ts +0 -63
  164. package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventCheckoutHandoffRestore.d.ts +0 -9
  165. package/dist/client/urlParams-D71VXFGx.mjs +0 -47
@@ -0,0 +1,658 @@
1
+ "use client";
2
+ import "react";
3
+ import { jsx, jsxs } from "react/jsx-runtime";
4
+ import { z } from "zod";
5
+ //#region \0rolldown/runtime.js
6
+ var __create = Object.create;
7
+ var __defProp = Object.defineProperty;
8
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
9
+ var __getOwnPropNames = Object.getOwnPropertyNames;
10
+ var __getProtoOf = Object.getPrototypeOf;
11
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
12
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
13
+ var __exportAll = (all, no_symbols) => {
14
+ let target = {};
15
+ for (var name in all) __defProp(target, name, {
16
+ get: all[name],
17
+ enumerable: true
18
+ });
19
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
20
+ return target;
21
+ };
22
+ var __copyProps = (to, from, except, desc) => {
23
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
24
+ key = keys[i];
25
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
26
+ get: ((k) => from[k]).bind(null, key),
27
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
28
+ });
29
+ }
30
+ return to;
31
+ };
32
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
33
+ value: mod,
34
+ enumerable: true
35
+ }) : target, mod));
36
+ //#endregion
37
+ //#region ../core/src/result.ts
38
+ function ok(value) {
39
+ return {
40
+ ok: true,
41
+ value
42
+ };
43
+ }
44
+ function err(error) {
45
+ return {
46
+ ok: false,
47
+ error
48
+ };
49
+ }
50
+ //#endregion
51
+ //#region ../core/src/currency-format.ts
52
+ const CURRENCY_CODE_INPUT_PATTERN = /^[A-Za-z]{3}$/;
53
+ /** Parse + normalize a currency code, or return null if it isn't a 3-letter code. */
54
+ function parseCurrencyCode(value) {
55
+ return CURRENCY_CODE_INPUT_PATTERN.test(value) ? value.toUpperCase() : null;
56
+ }
57
+ const CURRENCY_LOCALE_BY_CODE = {
58
+ USD: "en-US",
59
+ GBP: "en-GB",
60
+ EUR: "de-DE",
61
+ AUD: "en-AU",
62
+ CAD: "en-CA",
63
+ NZD: "en-NZ",
64
+ JPY: "ja-JP",
65
+ CNY: "zh-CN",
66
+ CHF: "de-CH"
67
+ };
68
+ function resolveCurrencyLocale(currencyCode, override) {
69
+ return override ?? CURRENCY_LOCALE_BY_CODE[currencyCode] ?? "en";
70
+ }
71
+ function fractionDigitsFor(decimals, exactFormatter) {
72
+ switch (decimals) {
73
+ case "exact": return {};
74
+ case "auto": return {
75
+ minimumFractionDigits: 0,
76
+ maximumFractionDigits: exactFormatter.resolvedOptions().maximumFractionDigits
77
+ };
78
+ case "whole": return {
79
+ minimumFractionDigits: 0,
80
+ maximumFractionDigits: 0
81
+ };
82
+ }
83
+ }
84
+ /**
85
+ * The single currency-amount formatter for the product: minor units in,
86
+ * localized string out.
87
+ *
88
+ * The locale is derived from the currency by default, so output is deterministic
89
+ * across server and client (no SSR/hydration mismatch). All other money
90
+ * formatters in the codebase should delegate here rather than constructing their
91
+ * own `Intl.NumberFormat`.
92
+ */
93
+ function formatCurrencyAmount(amountCents, currency, options) {
94
+ return formatCurrencyMajorUnits(amountCents / 100, currency, options);
95
+ }
96
+ /**
97
+ * `formatCurrencyAmount` for an amount already in MAJOR units (29.99 = £29.99),
98
+ * such as a registrar price. Prefer minor units everywhere else.
99
+ */
100
+ function formatCurrencyMajorUnits(amount, currency, options) {
101
+ const currencyCode = currency.toUpperCase();
102
+ const locale = resolveCurrencyLocale(currencyCode, options?.locale);
103
+ try {
104
+ const exactFormatter = new Intl.NumberFormat(locale, {
105
+ style: "currency",
106
+ currency: currencyCode
107
+ });
108
+ return new Intl.NumberFormat(locale, {
109
+ style: "currency",
110
+ currency: currencyCode,
111
+ ...fractionDigitsFor(options?.decimals ?? "exact", exactFormatter)
112
+ }).format(amount);
113
+ } catch {
114
+ return `${amount.toFixed(2)} ${currencyCode}`;
115
+ }
116
+ }
117
+ //#endregion
118
+ //#region ../core/src/money-input.ts
119
+ function unsafeAsNonNegativeCents(value) {
120
+ return value;
121
+ }
122
+ /**
123
+ * Normalizes a derived amount to non-negative whole cents. This intentionally
124
+ * clamps negatives to zero; use parseNonNegativeCents for validation.
125
+ */
126
+ function toNonNegativeCents(value) {
127
+ return unsafeAsNonNegativeCents(Math.max(0, Math.trunc(value)));
128
+ }
129
+ //#endregion
130
+ //#region ../core/src/booking-instalments.ts
131
+ function isDepositBearingBookingInstalmentPlan(plan) {
132
+ switch (plan.kind) {
133
+ case "deposit_plus_one_remainder":
134
+ case "deposit_plus_scheduled_instalments": return true;
135
+ case "equal_scheduled_instalments": return false;
136
+ default: return assertNever$1(plan);
137
+ }
138
+ }
139
+ function getBookingInstalmentDepositRefundability(plan) {
140
+ return isDepositBearingBookingInstalmentPlan(plan) ? plan.depositRefundability : null;
141
+ }
142
+ function clampConfiguredAmount(amountCents, totalAmountCents) {
143
+ return Math.max(0, Math.min(amountCents, totalAmountCents));
144
+ }
145
+ function splitAmountWithRemainderInFirst(totalAmountCents, partCount) {
146
+ if (partCount <= 0) return [];
147
+ const baseAmountCents = Math.floor(totalAmountCents / partCount);
148
+ const remainderCents = totalAmountCents - baseAmountCents * partCount;
149
+ return Array.from({ length: partCount }, (_, index) => index === 0 ? baseAmountCents + remainderCents : baseAmountCents);
150
+ }
151
+ function addIntervalPreservingMonthAnchor(isoString, intervalCount, intervalUnit) {
152
+ const date = new Date(isoString);
153
+ if (!Number.isFinite(date.getTime())) return isoString;
154
+ switch (intervalUnit) {
155
+ case "day":
156
+ date.setUTCDate(date.getUTCDate() + intervalCount);
157
+ return date.toISOString();
158
+ case "week":
159
+ date.setUTCDate(date.getUTCDate() + intervalCount * 7);
160
+ return date.toISOString();
161
+ case "month": return addMonthsPreservingAnchorDay(date, intervalCount).toISOString();
162
+ default: return assertNever$1(intervalUnit);
163
+ }
164
+ }
165
+ function getBookingInstalmentPlanIntervalCount(plan) {
166
+ switch (plan.kind) {
167
+ case "deposit_plus_one_remainder": return plan.remainderDueCount;
168
+ case "deposit_plus_scheduled_instalments":
169
+ case "equal_scheduled_instalments": return plan.intervalCount;
170
+ default: return assertNever$1(plan);
171
+ }
172
+ }
173
+ function omitZeroAmountFutureRows(rows) {
174
+ if (rows.length <= 1) return rows;
175
+ const firstRow = rows[0];
176
+ if (firstRow === void 0) return [];
177
+ return [firstRow, ...rows.slice(1).filter((row) => row.amountCents > 0)];
178
+ }
179
+ function addMonthsPreservingAnchorDay(date, intervalCount) {
180
+ const anchorDay = date.getUTCDate();
181
+ const nextMonth = new Date(Date.UTC(date.getUTCFullYear(), date.getUTCMonth() + intervalCount, 1, date.getUTCHours(), date.getUTCMinutes(), date.getUTCSeconds(), date.getUTCMilliseconds()));
182
+ const lastDayOfTargetMonth = new Date(Date.UTC(nextMonth.getUTCFullYear(), nextMonth.getUTCMonth() + 1, 0)).getUTCDate();
183
+ nextMonth.setUTCDate(Math.min(anchorDay, lastDayOfTargetMonth));
184
+ return nextMonth;
185
+ }
186
+ function assertNever$1(value) {
187
+ throw new Error(`Unexpected value: ${String(value)}`);
188
+ }
189
+ //#endregion
190
+ //#region ../commerce/src/utils/assertNever.ts
191
+ function assertNever(value, message) {
192
+ if (message) throw new Error(message);
193
+ throw new Error(`Unexpected value: ${String(value)}`);
194
+ }
195
+ //#endregion
196
+ //#region ../commerce/src/purchase/bookingInstalmentSchedule.ts
197
+ function resolveBookingInitialInstalmentAmountCents(input) {
198
+ const totalAmountCents = Math.max(0, input.totalAmountCents);
199
+ switch (input.plan.kind) {
200
+ case "deposit_plus_one_remainder":
201
+ case "deposit_plus_scheduled_instalments": return clampConfiguredAmount(input.plan.depositAmountCents, totalAmountCents);
202
+ case "equal_scheduled_instalments": return splitAmountWithRemainderInFirst(totalAmountCents, input.plan.instalmentCount)[0] ?? 0;
203
+ default: return assertNever(input.plan);
204
+ }
205
+ }
206
+ function buildBookingInstalmentSchedule(input) {
207
+ const totalAmountCents = Math.max(0, input.totalAmountCents);
208
+ switch (input.plan.kind) {
209
+ case "deposit_plus_one_remainder": {
210
+ const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
211
+ const remainderAmountCents = Math.max(0, totalAmountCents - depositAmountCents);
212
+ return omitZeroAmountFutureRows([createScheduleRow({
213
+ sequence: 1,
214
+ stateAtBooking: "paid_today",
215
+ dueAt: input.anchorAt,
216
+ amountCents: depositAmountCents
217
+ }), createScheduleRow({
218
+ sequence: 2,
219
+ stateAtBooking: "scheduled",
220
+ dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, input.plan.remainderDueCount, input.plan.intervalUnit),
221
+ amountCents: remainderAmountCents
222
+ })]);
223
+ }
224
+ case "deposit_plus_scheduled_instalments": {
225
+ const plan = input.plan;
226
+ const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
227
+ const instalmentAmounts = splitAmountWithRemainderInFirst(Math.max(0, totalAmountCents - depositAmountCents), plan.instalmentCount);
228
+ return omitZeroAmountFutureRows([createScheduleRow({
229
+ sequence: 1,
230
+ stateAtBooking: "paid_today",
231
+ dueAt: input.anchorAt,
232
+ amountCents: depositAmountCents
233
+ }), ...instalmentAmounts.map((amountCents, index) => createScheduleRow({
234
+ sequence: index + 2,
235
+ stateAtBooking: "scheduled",
236
+ dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * (index + 1), plan.intervalUnit),
237
+ amountCents
238
+ }))]);
239
+ }
240
+ case "equal_scheduled_instalments": {
241
+ const plan = input.plan;
242
+ return omitZeroAmountFutureRows(splitAmountWithRemainderInFirst(totalAmountCents, plan.instalmentCount).map((amountCents, index) => createScheduleRow({
243
+ sequence: index + 1,
244
+ stateAtBooking: index === 0 ? "paid_today" : "scheduled",
245
+ dueAt: index === 0 ? input.anchorAt : addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * index, plan.intervalUnit),
246
+ amountCents
247
+ })));
248
+ }
249
+ default: return assertNever(input.plan);
250
+ }
251
+ }
252
+ function createScheduleRow(input) {
253
+ return {
254
+ id: `payment-${input.sequence}`,
255
+ sequence: input.sequence,
256
+ stateAtBooking: input.stateAtBooking,
257
+ dueAt: input.dueAt,
258
+ amountCents: input.amountCents
259
+ };
260
+ }
261
+ //#endregion
262
+ //#region ../commerce/src/purchase/checkoutPaymentFlow.ts
263
+ function planCheckoutPaymentFlow(options) {
264
+ const amountDueCents = toNonNegativeCents(options.amountDueCents);
265
+ const discountCents = toNonNegativeCents(options.discountCents);
266
+ const availableCreditCents = toNonNegativeCents(options.availableCreditCents);
267
+ const minimumStripeChargeCents = toNonNegativeCents(options.minimumStripeChargeCents ?? 0);
268
+ if (amountDueCents <= 0) return {
269
+ kind: "bypass",
270
+ bypassReason: discountCents > 0 ? "discount_free" : "free",
271
+ reserveCreditCents: 0
272
+ };
273
+ if (!options.creditCurrencyMatches || availableCreditCents <= 0) return {
274
+ kind: "stripe",
275
+ reserveCreditCents: toNonNegativeCents(0)
276
+ };
277
+ if (availableCreditCents >= amountDueCents) return {
278
+ kind: "store_credit_only",
279
+ reserveCreditCents: amountDueCents
280
+ };
281
+ return {
282
+ kind: "stripe",
283
+ reserveCreditCents: planMixedPaymentCreditReservation({
284
+ amountDueCents,
285
+ availableCreditCents,
286
+ minimumStripeChargeCents
287
+ })
288
+ };
289
+ }
290
+ function planMixedPaymentCreditReservation(input) {
291
+ const chargeAfterFullCredit = input.amountDueCents - input.availableCreditCents;
292
+ if (input.minimumStripeChargeCents <= 0 || chargeAfterFullCredit <= 0 || chargeAfterFullCredit >= input.minimumStripeChargeCents) return input.availableCreditCents;
293
+ if (input.amountDueCents < input.minimumStripeChargeCents) return toNonNegativeCents(0);
294
+ return toNonNegativeCents(input.amountDueCents - input.minimumStripeChargeCents);
295
+ }
296
+ /**
297
+ * Apply site credit to a flexible-balance booking before card payment.
298
+ *
299
+ * Credit first reduces the configured payment due now. Once that payment is
300
+ * covered, any remaining credit reduces the later balance. If a partial credit
301
+ * application would leave a positive card charge below Stripe's minimum, less
302
+ * credit is used so the configured payment can still be collected.
303
+ */
304
+ function planFlexibleBalanceCreditFirst(input) {
305
+ const totalCents = toNonNegativeCents(input.totalAfterDiscountCents);
306
+ const configuredDueNowCents = toNonNegativeCents(Math.min(input.configuredPaymentDueNowCents, totalCents));
307
+ const availableCreditCents = toNonNegativeCents(input.creditCurrencyMatches ? input.availableCreditCents : 0);
308
+ const minimumStripeChargeCents = toNonNegativeCents(input.minimumStripeChargeCents ?? 0);
309
+ if (availableCreditCents >= totalCents && totalCents > 0) return {
310
+ kind: "credit_only",
311
+ reserveCreditCents: totalCents,
312
+ cardDueNowCents: toNonNegativeCents(0),
313
+ laterBalanceCents: toNonNegativeCents(0)
314
+ };
315
+ let reserveCreditCents = toNonNegativeCents(Math.min(availableCreditCents, totalCents));
316
+ if (reserveCreditCents >= configuredDueNowCents) return {
317
+ kind: "flexible_balance",
318
+ reserveCreditCents,
319
+ cardDueNowCents: toNonNegativeCents(0),
320
+ laterBalanceCents: toNonNegativeCents(totalCents - reserveCreditCents)
321
+ };
322
+ const plannedCardDueNowCents = toNonNegativeCents(configuredDueNowCents - reserveCreditCents);
323
+ if (plannedCardDueNowCents > 0 && plannedCardDueNowCents < minimumStripeChargeCents) {
324
+ if (configuredDueNowCents < minimumStripeChargeCents) return {
325
+ kind: "card_below_minimum",
326
+ reserveCreditCents: toNonNegativeCents(0),
327
+ cardDueNowCents: configuredDueNowCents,
328
+ laterBalanceCents: toNonNegativeCents(totalCents - configuredDueNowCents)
329
+ };
330
+ reserveCreditCents = toNonNegativeCents(configuredDueNowCents - minimumStripeChargeCents);
331
+ }
332
+ const cardDueNowCents = toNonNegativeCents(configuredDueNowCents - reserveCreditCents);
333
+ return {
334
+ kind: "flexible_balance",
335
+ reserveCreditCents,
336
+ cardDueNowCents,
337
+ laterBalanceCents: toNonNegativeCents(totalCents - reserveCreditCents - cardDueNowCents)
338
+ };
339
+ }
340
+ //#endregion
341
+ //#region ../commerce/src/purchase/settlement.ts
342
+ function normalizeCurrencyCode(raw) {
343
+ const normalized = raw.trim().toUpperCase();
344
+ if (!/^[A-Z]{3}$/.test(normalized)) throw new Error(`Invalid currency code: ${raw}`);
345
+ return normalized;
346
+ }
347
+ //#endregion
348
+ //#region ../commerce/src/purchase/checkoutSessionMetadata.ts
349
+ const datedOfferingSharedEngineMetadataShape = {
350
+ datedOfferingEngineContractVersion: z.literal("shared_v1"),
351
+ datedOfferingEngineRouteKind: z.literal("shared_whole_series_registration"),
352
+ datedOfferingCapacityHoldId: z.string().uuid(),
353
+ datedOfferingCapacityHoldAuditRef: z.string().uuid(),
354
+ customerId: z.string().uuid(),
355
+ eventSeriesId: z.string().uuid()
356
+ };
357
+ z.object(datedOfferingSharedEngineMetadataShape);
358
+ const orderCheckoutSessionMetadataBaseShape = {
359
+ type: z.literal("order"),
360
+ site_id: z.string().uuid(),
361
+ order_id: z.string().uuid().optional(),
362
+ customer_email: z.string().email().optional(),
363
+ customer_name: z.string().optional(),
364
+ product_id: z.string().uuid().optional(),
365
+ attendee_id: z.string().uuid().optional(),
366
+ occurrence_id: z.string().uuid().optional(),
367
+ tickets_count: z.string().optional(),
368
+ notes: z.string().optional(),
369
+ discount_redemption_id: z.string().uuid().optional(),
370
+ discount_code_id: z.string().uuid().optional(),
371
+ discount_code: z.string().optional(),
372
+ discount_public_label: z.string().optional(),
373
+ credit_reservation_id: z.string().uuid().optional(),
374
+ credit_reserved_cents: z.string().optional(),
375
+ discount_code_amount_cents: z.string().optional(),
376
+ order_payment_reason: z.enum([
377
+ "instalment_payoff",
378
+ "flexible_balance_initial",
379
+ "flexible_balance_paydown"
380
+ ]).optional(),
381
+ order_payment_plan_id: z.string().uuid().optional(),
382
+ order_flexible_balance_contract_id: z.string().uuid().optional()
383
+ };
384
+ const absentDatedOfferingSharedEngineMetadataShape = {
385
+ datedOfferingEngineContractVersion: z.never().optional(),
386
+ datedOfferingEngineRouteKind: z.never().optional(),
387
+ datedOfferingCapacityHoldId: z.never().optional(),
388
+ datedOfferingCapacityHoldAuditRef: z.never().optional(),
389
+ customerId: z.never().optional(),
390
+ eventSeriesId: z.never().optional()
391
+ };
392
+ const LegacyOrderCheckoutSessionMetadataSchema = z.object({
393
+ ...orderCheckoutSessionMetadataBaseShape,
394
+ ...absentDatedOfferingSharedEngineMetadataShape
395
+ });
396
+ const SharedDatedOfferingOrderCheckoutSessionMetadataSchema = z.object({
397
+ ...orderCheckoutSessionMetadataBaseShape,
398
+ ...datedOfferingSharedEngineMetadataShape
399
+ });
400
+ z.union([SharedDatedOfferingOrderCheckoutSessionMetadataSchema, LegacyOrderCheckoutSessionMetadataSchema]);
401
+ //#endregion
402
+ //#region ../commerce/src/purchase/stripeCommissionMetadata.ts
403
+ /** Reasons are payment evidence, not an independent pricing policy. */
404
+ const STRIPE_COMMISSION_FREE_REASONS = [
405
+ "managed_billing",
406
+ "no_commission_plan",
407
+ "billing_evidence_invalid",
408
+ "fee_rounds_to_zero",
409
+ "payment_not_stripe"
410
+ ];
411
+ const historicalContext = {
412
+ currency: z.string().refine((value) => parseCurrencyCode(value) !== null).optional(),
413
+ sourcePlanId: z.string().trim().min(1).optional()
414
+ };
415
+ const percentSchema = z.number().finite().min(0).max(100);
416
+ z.discriminatedUnion("kind", [
417
+ z.object({
418
+ kind: z.literal("commission_free"),
419
+ reason: z.enum(STRIPE_COMMISSION_FREE_REASONS),
420
+ ...historicalContext
421
+ }),
422
+ z.object({
423
+ kind: z.literal("application_fee_amount"),
424
+ amountCents: z.number().int().nonnegative().max(Number.MAX_SAFE_INTEGER),
425
+ percent: percentSchema,
426
+ ...historicalContext
427
+ }),
428
+ z.object({
429
+ kind: z.literal("application_fee_percent"),
430
+ percent: percentSchema,
431
+ ...historicalContext
432
+ })
433
+ ]);
434
+ toNonNegativeCents(0);
435
+ //#endregion
436
+ //#region ../commerce/src/purchase/stripeMinimumCharge.ts
437
+ const STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY = {
438
+ GBP: 30,
439
+ USD: 50,
440
+ EUR: 50,
441
+ AED: 200,
442
+ AUD: 50,
443
+ BGN: 100,
444
+ BRL: 50,
445
+ CAD: 50,
446
+ CHF: 50,
447
+ CZK: 1500,
448
+ DKK: 250,
449
+ HKD: 400,
450
+ HUF: 17500,
451
+ JPY: 50,
452
+ MXN: 1e3,
453
+ MYR: 200,
454
+ NOK: 300,
455
+ NZD: 50,
456
+ PLN: 200,
457
+ RON: 200,
458
+ SEK: 300,
459
+ SGD: 50,
460
+ THB: 1e3
461
+ };
462
+ function isStripeMinimumChargeCurrency(currency) {
463
+ return currency in STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY;
464
+ }
465
+ function getStripeMinimumChargeRequirement(rawCurrency) {
466
+ let currency;
467
+ try {
468
+ currency = normalizeCurrencyCode(rawCurrency);
469
+ } catch {
470
+ return null;
471
+ }
472
+ const currencyKey = currency;
473
+ if (!isStripeMinimumChargeCurrency(currencyKey)) return null;
474
+ return {
475
+ currency,
476
+ minimumAmountCents: STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY[currencyKey]
477
+ };
478
+ }
479
+ //#endregion
480
+ //#region ../commerce/src/purchase/checkoutCopy.ts
481
+ /**
482
+ * Customer copy shared by checkout surfaces, so one approved wording reaches
483
+ * every place that shows it.
484
+ */
485
+ const checkoutCopy = {
486
+ /** A payment is still being confirmed; checking again is safe. */
487
+ checkoutStillConfirming: "We’re still confirming your payment. This can take a minute – you can check again, and you won’t be charged twice.",
488
+ /** A previous attempt can't be confirmed automatically; the business needs to check it. */
489
+ checkoutAssistanceRequired: "We can’t confirm your last payment attempt yet. Please don’t pay again – contact the business so they can check it."
490
+ };
491
+ //#endregion
492
+ //#region ../commerce/src/purchase/event-registration-errors.ts
493
+ const eventRegistrationErrors = {
494
+ registrationClosed: {
495
+ message: "Booking is currently closed for this event. Please contact the organiser if you’d like to find out more.",
496
+ action: "none"
497
+ },
498
+ paymentInvestigationRequired: {
499
+ message: "We still can’t confirm your payment. Please don’t make another payment. Contact the organiser so they can check your booking.",
500
+ action: "none"
501
+ },
502
+ paymentProviderUnavailable: {
503
+ message: "We couldn’t reach the payment provider. Please try again in a minute.",
504
+ action: "retry"
505
+ },
506
+ paymentHostUnavailable: {
507
+ message: "Card payments aren’t available on this web address yet. Please contact the organiser to book.",
508
+ action: "none"
509
+ },
510
+ checkoutTemporarilyUnavailable: {
511
+ message: "Event payments are temporarily unavailable while we make an update. Please try again later.",
512
+ action: "retry"
513
+ },
514
+ paymentPageUnavailable: {
515
+ message: "We couldn’t open the payment page. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
516
+ action: "retry"
517
+ },
518
+ paymentUnavailable: {
519
+ message: "Online payment is not available for this event right now. Please contact the organiser for help with booking.",
520
+ action: "none"
521
+ },
522
+ capacityChanged: {
523
+ message: "Sorry, there aren’t enough places left for your selection. Please check the available places and choose again.",
524
+ action: "places"
525
+ },
526
+ selectionChanged: {
527
+ message: "The booking options for this event have changed. Please check the latest options and choose your places again.",
528
+ action: "places"
529
+ },
530
+ registrationPreparationChanged: {
531
+ message: "The booking options for this event have changed. Please check the latest options and choose your places again.",
532
+ action: "places"
533
+ },
534
+ registrationAlreadyExists: {
535
+ message: "You already have a booking for this event. Please check your bookings to see its status. If you need help, contact the organiser.",
536
+ action: "portal"
537
+ },
538
+ holdExpired: {
539
+ message: "Your reservation has timed out. Please check availability and choose your places again.",
540
+ action: "start"
541
+ },
542
+ waitlistUnavailable: {
543
+ message: "Sorry, the waiting list place offered in this invitation is no longer available. Please check the event for available places or contact the organiser for help.",
544
+ action: "event"
545
+ },
546
+ paymentContextMismatch: {
547
+ message: "The payment options for this event have changed. Please check the latest options before continuing.",
548
+ action: "payment-options"
549
+ },
550
+ verificationFailed: {
551
+ message: "We couldn’t confirm this request came from a person. Please refresh the page and try again.",
552
+ action: "none"
553
+ },
554
+ idempotencyConflict: {
555
+ message: "You’ve already started booking this event. Please finish in the other tab if it’s still open, or check your booking status before starting again.",
556
+ action: "portal"
557
+ },
558
+ invalidCommitInput: {
559
+ message: "We couldn’t accept your booking details. Please check the information you entered and try again. If this keeps happening, contact the organiser for help.",
560
+ action: "details"
561
+ }
562
+ };
563
+ function parseEventRegistrationErrorReason(value) {
564
+ return typeof value === "string" && Object.prototype.hasOwnProperty.call(eventRegistrationErrors, value) ? value : null;
565
+ }
566
+ //#endregion
567
+ //#region ../commerce/src/purchase/checkoutPresentation.ts
568
+ function publishableKeyMode(publishableKey) {
569
+ if (publishableKey.startsWith("pk_live_")) return "live";
570
+ if (publishableKey.startsWith("pk_test_")) return "test";
571
+ return null;
572
+ }
573
+ function checkBrowserStripeKey(publishableKey, livemode) {
574
+ const key = publishableKey?.trim();
575
+ if (!key) return {
576
+ tag: "unavailable",
577
+ reason: "missing_key"
578
+ };
579
+ const mode = publishableKeyMode(key);
580
+ if (mode === null) return {
581
+ tag: "unavailable",
582
+ reason: "invalid_key"
583
+ };
584
+ return mode === (livemode ? "live" : "test") ? {
585
+ tag: "ready",
586
+ publishableKey: key
587
+ } : {
588
+ tag: "unavailable",
589
+ reason: "mode_mismatch"
590
+ };
591
+ }
592
+ //#endregion
593
+ //#region ../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs
594
+ function r(e) {
595
+ var t, f, n = "";
596
+ if ("string" == typeof e || "number" == typeof e) n += e;
597
+ else if ("object" == typeof e) if (Array.isArray(e)) {
598
+ var o = e.length;
599
+ for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
600
+ } else for (f in e) e[f] && (n && (n += " "), n += f);
601
+ return n;
602
+ }
603
+ function clsx() {
604
+ for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
605
+ return n;
606
+ }
607
+ //#endregion
608
+ //#region ../blocks/src/system/runtime/nodes/spinner.tsx
609
+ function resolveColorStyle(color) {
610
+ switch (color) {
611
+ case void 0: return;
612
+ case "inherit": return { color: "inherit" };
613
+ case "foreground": return { color: "rgb(var(--tb-foreground))" };
614
+ case "text": return { color: "rgb(var(--tb-text))" };
615
+ default: return;
616
+ }
617
+ }
618
+ function SpinnerNode({ className, size = "md", color, strokeWidth = 3, srLabel, style, ...rest }) {
619
+ const hasExplicitAriaLabel = typeof rest["aria-label"] === "string" && rest["aria-label"].trim().length > 0;
620
+ const accessibilityProps = srLabel ? {
621
+ role: "status",
622
+ "aria-live": "polite"
623
+ } : hasExplicitAriaLabel ? {} : { "aria-hidden": true };
624
+ const trackStroke = color === "inherit" ? "currentColor" : "var(--rb-spinner-track-color)";
625
+ const trackOpacity = color === "inherit" ? .25 : 1;
626
+ return /* @__PURE__ */ jsxs("span", {
627
+ ...accessibilityProps,
628
+ className: clsx("rb-spinner", size ? `rb-spinner--${size}` : null, color === "inherit" ? "rb-spinner--inherit" : null, className),
629
+ style: {
630
+ ...resolveColorStyle(color),
631
+ ...style ?? {}
632
+ },
633
+ ...rest,
634
+ children: [/* @__PURE__ */ jsxs("svg", {
635
+ viewBox: "0 0 24 24",
636
+ fill: "none",
637
+ "aria-hidden": "true",
638
+ children: [/* @__PURE__ */ jsx("circle", {
639
+ cx: "12",
640
+ cy: "12",
641
+ r: "10",
642
+ stroke: trackStroke,
643
+ strokeWidth,
644
+ opacity: trackOpacity
645
+ }), /* @__PURE__ */ jsx("path", {
646
+ d: "M12 2a10 10 0 0 1 10 10",
647
+ stroke: "currentColor",
648
+ strokeWidth,
649
+ strokeLinecap: "round"
650
+ })]
651
+ }), srLabel ? /* @__PURE__ */ jsx("span", {
652
+ className: "rb-sr-only",
653
+ children: srLabel
654
+ }) : null]
655
+ });
656
+ }
657
+ //#endregion
658
+ export { __commonJSMin as _, parseEventRegistrationErrorReason as a, planCheckoutPaymentFlow as c, resolveBookingInitialInstalmentAmountCents as d, getBookingInstalmentDepositRefundability as f, ok as g, err as h, eventRegistrationErrors as i, planFlexibleBalanceCreditFirst as l, formatCurrencyAmount as m, clsx as n, checkoutCopy as o, getBookingInstalmentPlanIntervalCount as p, checkBrowserStripeKey as r, getStripeMinimumChargeRequirement as s, SpinnerNode as t, buildBookingInstalmentSchedule as u, __exportAll as v, __toESM as y };