@riverbankcms/sdk 0.174.1 → 0.175.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 (195) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-YRmc-Yxz.d.ts → BlocksIslandsHydrator-hb2IWD8K.d.ts} +1 -1
  2. package/dist/_dts/{Page-Du0zX1B-.d.ts → Page-BlY68ZF-.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-4L8v3FkY.d.ts → SdkPreviewMode-CA8hU7hW.d.ts} +2 -2
  4. package/dist/_dts/{client-B1J6Akyf.d.ts → client-B6tCvmG4.d.ts} +487 -11
  5. package/dist/_dts/{content-types-CGGYI0u_.d.ts → content-types-B9qryk4R.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CHMlw9hT.d.ts → contracts-DWoaRxj1.d.ts} +3 -3
  7. package/dist/_dts/{footerPageOutline-DIHSU1Vr.d.ts → footerPageOutline-Djdrhp5s.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-JITXD6BU.d.ts → generatePageMetadata-CFi0vxov.d.ts} +2 -2
  9. package/dist/_dts/{index-yWDbUojb.d.ts → index-Bl5_pjmq.d.ts} +1 -1
  10. package/dist/_dts/{index-CF62FntA.d.ts → index-Btp5nIoz.d.ts} +2 -2
  11. package/dist/_dts/{index-BLEKFHt1.d.ts → index-CQUzwOxO.d.ts} +1 -1
  12. package/dist/_dts/{index-D9ZYmGAJ.d.ts → index-DmhFb6R1.d.ts} +1 -1
  13. package/dist/_dts/{index-CXZSy_9M.d.ts → index-OtazQE3U.d.ts} +2 -2
  14. package/dist/_dts/{index-BgOr1Xyz.d.ts → index-YRQulWB4.d.ts} +3 -3
  15. package/dist/_dts/{index-DpJm0NpL.d.ts → index-_pXaCO12.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-M-s0p0rq.d.ts → loadContent-Hcuvs4pz.d.ts} +7 -7
  17. package/dist/_dts/{request-BK-pHf0P.d.ts → request-BT8i_vH-.d.ts} +1621 -385
  18. package/dist/_dts/{resolveBlockData-DZAlnhwt.d.ts → resolveBlockData-B-dJrunl.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DXUCWJ3y.d.ts → resolvePageContent-CVLYWcoI.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +13 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +3 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +2 -1
  54. package/dist/_dts/{types-DjVNADXR.d.ts → types-C0XZnjXz.d.ts} +3 -3
  55. package/dist/_dts/{types-CwmB2NHU.d.ts → types-CXL1QJSY.d.ts} +7 -7
  56. package/dist/_dts/{types-Dmow_FI6.d.ts → types-OKzbqRBx.d.ts} +2 -2
  57. package/dist/_dts/{validation-h8t1HLlL.d.ts → validation-Bxi66FtQ.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DRVx_XLi.mjs → BlocksIslandsHydrator-2xzlERTG.mjs} +17 -16
  59. package/dist/client/{BookingMailingListNote-CwrMzj-k.mjs → BookingMailingListNote-qsohSEdQ.mjs} +6 -6
  60. package/dist/client/{BookingPanelArrangement-C2_hFT6K.mjs → BookingPanelArrangement-DrdtON0q.mjs} +1 -1
  61. package/dist/client/{BookingQuestionFields-DZMrGvBh.mjs → BookingQuestionFields-CUFxBaTM.mjs} +3 -3
  62. package/dist/client/{CalendarNavigationChevron-Az1-TIEI.mjs → CalendarNavigationChevron-Ch0w0Utn.mjs} +34 -9
  63. package/dist/client/DemoBookingPortalAccess-DGgsjqXK.mjs +545 -0
  64. package/dist/client/{EventCalendar.client-CDkkP-Lv.mjs → EventCalendar.client-Dg4PHFJJ.mjs} +15 -25
  65. package/dist/client/{EventCombined.client-DK3aaz62.mjs → EventCombined.client-tky8JcnQ.mjs} +25 -17
  66. package/dist/client/{EventItem-WeUipfIP.mjs → EventItem-BybMSKNL.mjs} +4 -3
  67. package/dist/client/{EventListWeekNavigation-D3sbAeDo.mjs → EventListWeekNavigation-uvWRE5wi.mjs} +1 -1
  68. package/dist/client/{EventListing.client-DL3gGGmF.mjs → EventListing.client-DQx9dohz.mjs} +3 -3
  69. package/dist/client/{EventListing.view-DKFImKOx.mjs → EventListing.view-r31k8Icz.mjs} +8 -7
  70. package/dist/client/{EventRegistrationPayment-Dn9TpWyL.mjs → EventRegistrationPayment-BMmPDmSf.mjs} +635 -359
  71. package/dist/client/{LocationMapActions-BJT7MqP2.mjs → LocationMapActions-BecH-qhI.mjs} +1 -1
  72. package/dist/client/{MapDrawingSvg-DCIwlON6.mjs → MapDrawingSvg-BJzmFdcn.mjs} +18 -3
  73. package/dist/client/{Page-BpeP9xdt.mjs → Page-CWN_8cLZ.mjs} +601 -579
  74. package/dist/client/{DemoBookingPortalAccess-1p-pJ1lg.mjs → SiteTermsAgreementField-Dr5lj4oY.mjs} +4 -301
  75. package/dist/client/{StepIndicator-CP6zrwkl.mjs → StepIndicator-C7RJBOW3.mjs} +37 -12
  76. package/dist/client/{accordion-nR7D4m1a.mjs → accordion-uUi_N6mZ.mjs} +1 -1
  77. package/dist/client/{booking-form.client-Ce-mQZ7W.mjs → booking-form.client-CKHgxvsh.mjs} +229 -42
  78. package/dist/client/{bookingForm-B-qT_AQB.mjs → bookingForm-Bi74dmiS.mjs} +4 -4
  79. package/dist/client/bookings.mjs +22 -15
  80. package/dist/client/{boxStyleClassNames-CrE3TDpW.mjs → boxStyleClassNames-C-gFwhnO.mjs} +2 -1
  81. package/dist/client/{carousel-CVUOatsY.mjs → carousel-C0_BqMA0.mjs} +1 -1
  82. package/dist/client/{cart-DE0K6E0R.mjs → cart-BOHuppVu.mjs} +3 -3
  83. package/dist/client/{cart.client-C23E6WQ5.mjs → cart.client-IfJE1zAp.mjs} +1 -1
  84. package/dist/client/{checkout-76cdHyPL.mjs → checkout-C3Aj-aNa.mjs} +3 -3
  85. package/dist/client/{checkout.client-DJOzqb26.mjs → checkout.client-Tg9lfeYf.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-CvIP5DCO.mjs → checkoutUrls-OLqQdAXD.mjs} +1 -1
  87. package/dist/client/client.mjs +112 -21
  88. package/dist/client/{context-CNlesLfF.mjs → context-D8TpQXjX.mjs} +76 -58
  89. package/dist/client/{course-DHIrXqNT.mjs → course-DHmeQAvq.mjs} +2 -2
  90. package/dist/client/{creditProducts-KYMVIH3J.mjs → creditProducts-BQ1t1erI.mjs} +14 -61
  91. package/dist/client/{dateFormatting-B73Ll0s4.mjs → dateFormatting-ABCZWkpT.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-BVbLD4pi.mjs → demoPortalMagicLink-BdcuW_pa.mjs} +1 -1
  93. package/dist/client/display-DMqotaGU.mjs +11797 -0
  94. package/dist/client/{enhanceHeaderSection-5GD5o4Mt.mjs → enhanceHeaderSection-Ciuhsk0E.mjs} +3 -3
  95. package/dist/client/{event-details.client-D7Oz1q2L.mjs → event-details.client-CJapNbTv.mjs} +1 -1
  96. package/dist/client/{event-registration.client-zbuX36aA.mjs → event-registration.client-CAdcpnLc.mjs} +176 -75
  97. package/dist/client/{eventCalendar-uZrksODt.mjs → eventCalendar-BlsD5R8M.mjs} +4 -4
  98. package/dist/client/{eventCombined-DxhvNAx8.mjs → eventCombined-B9Ly3024.mjs} +4 -4
  99. package/dist/client/{eventDetails-DCIH4BYG.mjs → eventDetails-CbEGI4jO.mjs} +2 -2
  100. package/dist/client/{eventListing-B9KrnPvc.mjs → eventListing-ZSmvhWII.mjs} +4 -4
  101. package/dist/client/{eventRegistration-TjnURMKl.mjs → eventRegistration-D-yUcIyO.mjs} +4 -4
  102. package/dist/client/{form-CfqIAhfN.mjs → form-DG_YZSNn.mjs} +3 -3
  103. package/dist/client/{form.client-CL6fF0cW.mjs → form.client-BU6dM0-C.mjs} +4 -4
  104. package/dist/client/{form.parts-Bf-L66Gg.mjs → form.parts-Db0Iq7nx.mjs} +1 -1
  105. package/dist/client/{formatDate-Dp7POa9Y.mjs → formatDate-DFfWHpQB.mjs} +1 -1
  106. package/dist/client/gifting/client.mjs +5 -3
  107. package/dist/client/gifting-DMrsN4B4.mjs +28 -0
  108. package/dist/client/gifting.client-BVa2XYJB.mjs +404 -0
  109. package/dist/client/gifting.parts-C2u4Y-pf.mjs +86 -0
  110. package/dist/client/{headerSection-WVXtOcuW.mjs → headerSection-D91EzlOR.mjs} +2 -2
  111. package/dist/client/{display-Cf_j5stk.mjs → lookSurfaces-BDZLALxj.mjs} +2951 -14395
  112. package/dist/client/{newsletter-form.client-Bb7GAZpO.mjs → newsletter-form.client-BMGRiRpo.mjs} +7 -5
  113. package/dist/client/{newsletter-form.parts-BqOVRdIc.mjs → newsletter-form.parts-D5UfUaD3.mjs} +3 -3
  114. package/dist/client/{newsletterForm-DOVe-qY3.mjs → newsletterForm-B_67sNwa.mjs} +3 -3
  115. package/dist/client/{noop-D5mFWXtN.mjs → noop-DF8_EiFt.mjs} +93 -28
  116. package/dist/client/portal/client.mjs +313 -148
  117. package/dist/client/{product-detail.client-CNzeFnFf.mjs → product-detail.client-D-XNir0m.mjs} +1 -1
  118. package/dist/client/{product-list.client-LKpzC7pj.mjs → product-list.client-BLfYQ-qi.mjs} +1 -1
  119. package/dist/client/{productDetail-D2JNeEgx.mjs → productDetail-W0_0lDGe.mjs} +3 -3
  120. package/dist/client/{productList-DTgZXOEq.mjs → productList-ayAtPJdb.mjs} +3 -3
  121. package/dist/client/{propsDecoder-mpBQt2AT.mjs → propsDecoder-ChYKWjLA.mjs} +4 -3
  122. package/dist/client/{registry.server-DdTJyar2.mjs → registry.server-B1EEZkcr.mjs} +307 -240
  123. package/dist/client/rendering/client.mjs +25 -491
  124. package/dist/client/rendering/islands.mjs +1 -1
  125. package/dist/client/rendering.mjs +7 -6
  126. package/dist/client/{richText-coerce-C32cRQ03.mjs → richText-coerce-CDAfpMQU.mjs} +1 -1
  127. package/dist/client/{routeIslandApiConfig-8cfSgT0E.mjs → routeIslandApiConfig-CcGWvyht.mjs} +1 -1
  128. package/dist/client/{shop-5LBhftWx.mjs → shop-DbUUoHFJ.mjs} +3 -3
  129. package/dist/client/{shop-discount-apply.state-D0ifS6KX.mjs → shop-add-feedback-DvC2kP1K.mjs} +1 -78
  130. package/dist/client/{shop-commerce-DkValjZj.mjs → shop-commerce-aQqcDmyZ.mjs} +64 -32
  131. package/dist/client/{shop-commerce-store-BOmXFmk_.mjs → shop-commerce-store-Cd7USpuY.mjs} +1 -1
  132. package/dist/client/shop-discount-apply.state-DGvPBmVP.mjs +83 -0
  133. package/dist/client/{shop.client-BTtZqNmv.mjs → shop.client-BNZ9M8cG.mjs} +56 -19
  134. package/dist/client/{shop.interactive-DNRqG4aX.mjs → shop.interactive-CJAINJr3.mjs} +113 -35
  135. package/dist/client/{shopShared-Nky6kPYr.mjs → shopShared-DwVAuGsx.mjs} +2 -2
  136. package/dist/client/{timetableModel-DZArznD_.mjs → timetableModel-DBTIFWTb.mjs} +10 -10
  137. package/dist/client/{useAvailableSlots-CUVRD1nx.mjs → useAvailableSlots-BomyyKeo.mjs} +3 -3
  138. package/dist/client/{useDiscountCodeUi-d7viY_mu.mjs → useDiscountCodeUi-CCxHMWlU.mjs} +32 -17
  139. package/dist/client/{useEventPagination-Da2JqxGC.mjs → useEventPagination-Bjin_qaN.mjs} +7 -6
  140. package/dist/client/{view-BvuYmQJ5.mjs → view-BTk470k0.mjs} +3 -2
  141. package/dist/client/{view-D9ObkFtz.mjs → view-Cw4EmEPv.mjs} +99 -30
  142. package/dist/preview-next/client/{PageSectionToolbar-DwxHT-2k.mjs → PageSectionToolbar-bq7gbKvn.mjs} +4 -4
  143. package/dist/preview-next/client/{PreviewEditorSidebar-D4SBxGU6.mjs → PreviewEditorSidebar-DVsPNcos.mjs} +28 -25
  144. package/dist/preview-next/client/{PreviewEditorUI-D8mUct32.mjs → PreviewEditorUI-B-pq3aZc.mjs} +4 -4
  145. package/dist/preview-next/client/{PreviewShell-L2AEdNUQ.mjs → PreviewShell-ChyjB96e.mjs} +5 -5
  146. package/dist/preview-next/client/{SdkPreviewModeRuntime-bhVAU2D2.mjs → SdkPreviewModeRuntime-D_czeC0l.mjs} +84 -101
  147. package/dist/preview-next/client/{previewAssistantSlot-Jpj_HDra.mjs → previewAssistantSlot-B61mZd81.mjs} +4141 -2677
  148. package/dist/preview-next/client/{previewChromeRoot-CYTDvx4u.mjs → previewChromeRoot-dwOn9XtM.mjs} +1 -1
  149. package/dist/preview-next/client/runtime.mjs +3 -3
  150. package/dist/preview-next/client/{sdk-runtime-CZHX6J_4.mjs → sdk-runtime-DZDfOxoW.mjs} +2 -2
  151. package/dist/preview-next/client/{siteStyleAccess-DmGIG9Hk.mjs → siteStyleAccess-BZDIC-fA.mjs} +527 -236
  152. package/dist/preview-next/client/{useAutosaveStatus-DQCyswQ-.mjs → useAutosaveStatus-BbzLMf-l.mjs} +1 -1
  153. package/dist/preview-next/client/{useOpenBlockForSetup-LwE5yXvL.mjs → useOpenBlockForSetup-BEXcWQeI.mjs} +13 -4
  154. package/dist/preview-next/container-responsive.css +51 -3
  155. package/dist/preview-next/keepAlive.mjs +1 -1
  156. package/dist/preview-next/middleware.mjs +1 -1
  157. package/dist/preview-next/{route-contract-BOuNcOcN.mjs → route-contract-0gSlK9S0.mjs} +86 -12
  158. package/dist/server/{Block.shared-wfJfhs08.mjs → Block.shared-DeXXycg8.mjs} +4 -4
  159. package/dist/server/{ThemeScopeCore-BtrJNHTB.mjs → ThemeScopeCore-DFEM1a85.mjs} +16 -2
  160. package/dist/server/{bindings-P1CF2Gm6.mjs → bindings-7L3pC5Os.mjs} +13 -34
  161. package/dist/server/{client-CGtU5fHI.mjs → client-CgghATBm.mjs} +111 -20
  162. package/dist/server/config-validation.mjs +1 -1
  163. package/dist/server/config.mjs +2 -2
  164. package/dist/server/{customCss-BGB8gMVb.mjs → customCss-BZ8YSrQg.mjs} +1 -0
  165. package/dist/server/data/resolveBlockData.mjs +1 -1
  166. package/dist/server/index.mjs +2 -2
  167. package/dist/server/{loadContent-ChnkJSay.mjs → loadContent-D7M5Vcug.mjs} +5 -5
  168. package/dist/server/{loadPage-DesHhgxj.mjs → loadPage-CiTId05y.mjs} +2 -2
  169. package/dist/server/{lookMediaFrame-BBr0mkze.mjs → lookMediaFrame-CaH018pK.mjs} +24 -5
  170. package/dist/server/next.mjs +35 -9
  171. package/dist/server/{overrideResolution-DHEkHcZs.mjs → overrideResolution-CJ3MRI5Q.mjs} +1 -1
  172. package/dist/server/page-converter.mjs +1 -1
  173. package/dist/server/{pageRenderPlan-0jvm0RBk.mjs → pageRenderPlan-Cuos4Xcd.mjs} +97 -39
  174. package/dist/server/{pageRuntimeSupport-8-f1Zr9e.mjs → pageRuntimeSupport-CuVj3bkd.mjs} +4 -3
  175. package/dist/server/{pageShared-CuVFoV4z.mjs → pageShared-JxlV8_Bo.mjs} +1261 -1129
  176. package/dist/server/{parseThemeForPersistence-Cwqb5pZx.mjs → parseThemeForPersistence-DOsfofCy.mjs} +1 -1
  177. package/dist/server/{prebuild-Bms_Y7wQ.mjs → prebuild-BDhlJbAx.mjs} +1 -1
  178. package/dist/server/prebuild.mjs +1 -1
  179. package/dist/server/{prefetchBlockData-5oC5kyHe.mjs → prefetchBlockData-kERh_c0v.mjs} +2 -2
  180. package/dist/server/{registry-DmqxC8th.mjs → registry-cQ9N5W-n.mjs} +20432 -20165
  181. package/dist/server/rendering/components/pageShared.mjs +1 -1
  182. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  183. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  184. package/dist/server/rendering/server.mjs +3 -3
  185. package/dist/server/rendering.mjs +7 -7
  186. package/dist/server/{resolveBlockData-EYogtwQc.mjs → resolveBlockData-CN4UmmTK.mjs} +1 -1
  187. package/dist/server/{schema-CUDHMirj.mjs → schema-BpsqaSSU.mjs} +2 -2
  188. package/dist/server/server.mjs +3 -3
  189. package/dist/server/theme-bridge.mjs +1 -1
  190. package/dist/server/theme.mjs +2 -2
  191. package/dist/server/{validation-Bt_8IL1g.mjs → validation-3puM5SM8.mjs} +3 -3
  192. package/dist/server/{version-DT_efohp.mjs → version-B8g-Wx57.mjs} +1 -1
  193. package/dist/styles/index.css +295 -37
  194. package/package.json +1 -1
  195. package/dist/client/useDiscountApply-BBnStWXU.mjs +0 -199
@@ -1,4 +1,4 @@
1
- import { $n as BookingSubmitOptions, An as BookingFormServiceCategory, At as RegistrationSubject, Bt as RunPricingChoices, Ci as NonNegativeCents, Ct as PaymentSelection, Dn as BookingFormData$1, Dt as RegistrationEvent, En as BookingFormConfig$1, Et as RegistrationAttendanceMode, Fn as BookingPurchasablePackagesModel, Gn as BookingFlowStatus, Gt as CopyPart, Hn as BookingFieldView, Ht as SelectionPaymentSummary, Ii as BlockButtonRole, Jn as BookingFlowView, Jr as CombinationPricePlan, Jt as SelectionRequirementsLayout, Kn as BookingFlowStep, Kt as StateUpdate, Lt as BookingSelection, Mt as FormData, Nn as BookingPaymentAvailability, Nt as OccurrenceContext, On as BookingFormService, Ot as RegistrationResult, Pn as BookingPaymentChoice, Qn as BookingSubmitActionResult, Qt as TicketSelectionPurpose, Rt as RegistrationSelection, St as GuestErrors, Tt as PaymentStepState, Un as BookingFlowActionResult, Ut as SeveralItemsKind, Vt as SelectionPayment, Wn as BookingFlowFeedback, Wt as CombinationWorking, Xn as BookingSlotSelection, Xr as CurrencyCode, Xt as RegistrationAdmission, Yn as BookingResourceView, Yr as EventRegistrationErrorAction, Yt as RegistrationPresentation, Zn as BookingSlotView, Zr as EventRegistrationPricingOption, Zt as RegistrationTicketContinuation, _i as UtcIsoDateTimeString, _r as EventEmbeddedCheckout, _t as EligibilityData, ai as MailingListRuntimeContext, an as AutoAppliedDiscountPreview, at as EventRegistrationDirectPaymentSelectionState, bt as EventTicketSelectionLine, cr as getBookingServiceSlidingScale, ct as BookingPaymentSelectionViewModel, dt as PortalAuthState, en as EventSourceRecovery, f as CustomerEventRegistration, ft as PortalCreditState, g as PaymentMethod, gr as EventRegistrationPageSurfaceSubject, gt as SelectableEventTicketType, h as EventRegistrationPaymentSubject, hi as ZoneLabel, hr as BlockSiteTerms, ht as ExistingRegistrationLookupState, in as BoundBlockApiClient, it as EventRegistrationDirectPaymentOption, jn as BookingFormField$1, jt as ThemedButtonProps, kn as BookingSelectedCollectionOptionKind, kt as RegistrationStep, l as SelectionAttendance, lr as ProtectedSubmission, lt as RegistrationFlowState, m as EventCheckoutReturnRequest, mi as DisplayContext, mr as BrowserReadAuthority, mt as EligibilityLookupState, nr as LoadState, on as DiscountContext, or as BookingFieldValue, ot as EventRegistrationSiteCreditPreview, p as DirectCheckoutCollectionOptionKind, pi as BookingConsent, pr as BlockApiConfig, pt as PortalProfile, qn as BookingFlowStepId, qr as BookingQuestionsSubmissionFailure, qt as WaitlistInvitation, rt as BookingFormInteractiveIslandProps, sr as BookingQuestionsPaymentSnapshot, tn as BookingPageKind, ut as BookingQuestionsModel, v as PublicEvent, vi as AppointmentBookingReview, vt as EventPaymentState, wi as PositiveCents, wt as PaymentStatusRecoveryState, xt as Guest, yt as EventRegistrationClientProps, zn as BookingAppointmentPackagesModel, zt as RegistrationSelectionMode } from "./request-BK-pHf0P.js";
1
+ import { $n as BookingSlotView, $r as CurrencyCode, $t as TicketSelectionPurpose, An as BookingFormService, At as RegistrationStep, Bt as RegistrationSelectionMode, Ct as GuestErrors, Di as PositiveCents, Dt as RegistrationAttendanceMode, Ei as NonNegativeCents, Et as PaymentStepState, Fn as BookingPaymentAvailability, Gn as BookingFlowActionResult, Gt as CombinationWorking, Ht as SelectionPayment, In as BookingPaymentChoice, Jn as BookingFlowStep, Jt as WaitlistInvitation, Kn as BookingFlowFeedback, Kt as CopyPart, Ln as BookingPurchasablePackagesModel, Mn as BookingFormServiceCategory, Mt as ThemedButtonProps, Nn as BookingFormField$1, Nt as FormData, On as BookingFormConfig$1, Ot as RegistrationEvent, Pt as OccurrenceContext, Qn as BookingSlotSelection, Qr as PriceReductionSummary, Qt as RegistrationTicketContinuation, Rt as BookingSelection, St as Guest, Tt as PaymentStatusRecoveryState, Ut as SelectionPaymentSummary, Vn as BookingAppointmentPackagesModel, Vt as RunPricingChoices, Wn as BookingFieldView, Wt as SeveralItemsKind, Xn as BookingFlowView, Xr as CombinationPricePlan, Xt as RegistrationPresentation, Yn as BookingFlowStepId, Yr as BookingQuestionsSubmissionFailure, Yt as SelectionRequirementsLayout, Zn as BookingResourceView, Zr as EventRegistrationErrorAction, Zt as RegistrationAdmission, _i as DisplayContext, _r as BlockSiteTerms, _t as SelectableEventTicketType, an as BoundBlockApiClient, at as EventRegistrationDirectPaymentOption, bi as UtcIsoDateTimeString, bt as EventRegistrationClientProps, ci as MailingListRuntimeContext, cn as DiscountContext, cr as BookingFieldValue, dr as ProtectedSubmission, dt as RegistrationFlowState, ei as EventRegistrationPricingOption, er as BookingSubmitActionResult, f as CustomerEventRegistration, ft as PortalAuthState, g as PaymentMethod, gi as BookingConsent, gr as BrowserReadAuthority, gt as ExistingRegistrationLookupState, h as EventRegistrationPaymentSubject, hr as BlockApiConfig, ht as EligibilityLookupState, in as BlockApiClient, ir as LoadState, jn as BookingSelectedCollectionOptionKind, jt as RegistrationSubject, kn as BookingFormData$1, kt as RegistrationResult, l as SelectionAttendance, lr as BookingQuestionsPaymentSnapshot, lt as BookingPaymentSelectionViewModel, m as EventCheckoutReturnRequest, mt as PortalProfile, nn as BookingPageKind, on as AutoAppliedDiscountPreview, ot as EventRegistrationDirectPaymentSelectionState, p as DirectCheckoutCollectionOptionKind, pt as PortalCreditState, qn as BookingFlowStatus, qt as StateUpdate, rt as BookingFormInteractiveIslandProps, sn as DiscountApplyLine, st as EventRegistrationSiteCreditPreview, tn as EventSourceRecovery, tr as BookingSubmitOptions, ur as getBookingServiceSlidingScale, ut as BookingQuestionsModel, v as PublicEvent, vi as ZoneLabel, vr as EventRegistrationPageSurfaceSubject, vt as EligibilityData, wt as PaymentSelection, xi as AppointmentBookingReview, xt as EventTicketSelectionLine, yr as EventEmbeddedCheckout, yt as EventPaymentState, zi as BlockButtonRole, zt as RegistrationSelection } from "./request-BT8i_vH-.js";
2
2
  import { z as z$1 } from "zod";
3
3
  import * as React$1 from "react";
4
4
  import React, { ReactNode } from "react";
@@ -98,6 +98,37 @@ type BookingPaymentConfirmationSummary = Readonly<{
98
98
  priceCurrency: string;
99
99
  }>;
100
100
  //#endregion
101
+ //#region .cache/declarations/blocks/src/system/runtime/hooks/useManualDiscountPreview.d.ts
102
+ /** A preview belongs to the exact code, email and basket; late responses cannot price a newer draft. */
103
+ declare function useManualDiscountPreview(input: Readonly<{
104
+ api: BlockApiClient;
105
+ code: string;
106
+ email: string;
107
+ lines: DiscountApplyLine[];
108
+ }>): {
109
+ discount: {
110
+ type: "applied";
111
+ manualCodeEntryAllowed?: boolean;
112
+ priceReductions?: readonly [PriceReductionSummary, ...PriceReductionSummary[]];
113
+ codeCombinesWithCombinationPrices?: boolean;
114
+ code: string;
115
+ publicLabel: string;
116
+ description: string | null;
117
+ discountCents: number;
118
+ subtotalCents: number;
119
+ totalAfterDiscountCents: number;
120
+ currency: string;
121
+ } | null;
122
+ apply: () => Promise<void>;
123
+ refuse: (message: string) => void;
124
+ isApplying: boolean;
125
+ ready: boolean;
126
+ feedback: Readonly<{
127
+ tone: 'success' | 'error' | 'info';
128
+ message: string;
129
+ }> | null;
130
+ };
131
+ //#endregion
101
132
  //#region .cache/declarations/blocks/src/system/runtime/hooks/useHeadlessBookingFlow.d.ts
102
133
  type HeadlessBookingFlowOptions = Readonly<{
103
134
  now: UtcIsoDateTimeString;
@@ -198,6 +229,7 @@ type BookingDiscountModel = Readonly<{
198
229
  setCode: (code: string) => void;
199
230
  setOpen: (isOpen: boolean) => void;
200
231
  clear: () => void;
232
+ preview?: ReturnType<typeof useManualDiscountPreview>;
201
233
  }>;
202
234
  type BookingFlowActions = Readonly<{
203
235
  selectService: (serviceId: string) => void;
@@ -490,8 +522,8 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
490
522
  selectionCombination: Readonly<{
491
523
  working: CombinationWorking | null;
492
524
  hint: readonly CopyPart[] | null;
493
- }>; /** The code field's apply-and-preview, while combination prices apply; null keeps the field as it was. */
494
- combinationCodeField: Readonly<{
525
+ }>; /** The code field shares the booking's server quote. */
526
+ combinationCodeField: {
495
527
  apply: () => Promise<void>;
496
528
  applying: boolean;
497
529
  failed: boolean;
@@ -500,7 +532,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
500
532
  message: string;
501
533
  }> | null;
502
534
  hint: string;
503
- }> | null;
535
+ } | null;
504
536
  combinationAwaitingVisitor: boolean; /** The payment step's list of what several items cost; null for one item. */
505
537
  selectionPaymentSummary: SelectionPaymentSummary | null;
506
538
  runChoices: Readonly<Record<string, Readonly<{
@@ -595,7 +627,10 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
595
627
  showMagicLinkModal: boolean;
596
628
  setShowMagicLinkModal: (show: boolean) => void;
597
629
  handleLogout: () => void;
598
- paymentStepState: PaymentStepState;
630
+ paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
631
+ paymentHeldForCode: boolean; /** What the pass costs once an applied code is taken off; null when no code applies. */
632
+ passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
633
+ membershipFirstPaymentCents: number | null;
599
634
  handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
600
635
  paymentSelection: PaymentSelection;
601
636
  declinedPass: Readonly<{
@@ -675,29 +710,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
675
710
  quantity: number;
676
711
  }[]];
677
712
  payment: {
713
+ discount?: {
714
+ code: string;
715
+ savingCents: number;
716
+ currency: CurrencyCode;
717
+ } | undefined;
678
718
  kind: "free";
679
719
  balance: {
680
720
  kind: "settled";
681
721
  };
682
722
  } | {
723
+ discount?: {
724
+ code: string;
725
+ savingCents: number;
726
+ currency: CurrencyCode;
727
+ } | undefined;
683
728
  kind: "waived";
684
729
  balance: {
685
730
  kind: "settled";
686
731
  };
687
732
  } | {
733
+ discount?: {
734
+ code: string;
735
+ savingCents: number;
736
+ currency: CurrencyCode;
737
+ } | undefined;
688
738
  kind: "pass";
689
739
  passName: string | null;
690
740
  passCreditsUsed: number | null;
741
+ passCreditsRemaining?: number | undefined;
691
742
  balance: {
692
743
  kind: "settled";
693
744
  };
694
745
  } | {
746
+ discount?: {
747
+ code: string;
748
+ savingCents: number;
749
+ currency: CurrencyCode;
750
+ } | undefined;
695
751
  kind: "membership";
696
752
  membershipName: string | null;
697
753
  balance: {
698
754
  kind: "settled";
699
755
  };
700
756
  } | {
757
+ discount?: {
758
+ code: string;
759
+ savingCents: number;
760
+ currency: CurrencyCode;
761
+ } | undefined;
701
762
  kind: "manual_due";
702
763
  currency: CurrencyCode;
703
764
  balance: {
@@ -708,6 +769,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
708
769
  } | {
709
770
  amountPaidCents: NonNegativeCents;
710
771
  currency: CurrencyCode;
772
+ discount?: {
773
+ code: string;
774
+ savingCents: number;
775
+ currency: CurrencyCode;
776
+ } | undefined;
711
777
  kind: "managed_balance_due";
712
778
  balance: {
713
779
  kind: "due";
@@ -717,6 +783,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
717
783
  } | {
718
784
  amountPaidCents: NonNegativeCents;
719
785
  currency: CurrencyCode;
786
+ discount?: {
787
+ code: string;
788
+ savingCents: number;
789
+ currency: CurrencyCode;
790
+ } | undefined;
720
791
  kind: "monetary";
721
792
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
722
793
  balance: {
@@ -770,29 +841,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
770
841
  quantity: number;
771
842
  }[]];
772
843
  payment: {
844
+ discount?: {
845
+ code: string;
846
+ savingCents: number;
847
+ currency: CurrencyCode;
848
+ } | undefined;
773
849
  kind: "free";
774
850
  balance: {
775
851
  kind: "settled";
776
852
  };
777
853
  } | {
854
+ discount?: {
855
+ code: string;
856
+ savingCents: number;
857
+ currency: CurrencyCode;
858
+ } | undefined;
778
859
  kind: "waived";
779
860
  balance: {
780
861
  kind: "settled";
781
862
  };
782
863
  } | {
864
+ discount?: {
865
+ code: string;
866
+ savingCents: number;
867
+ currency: CurrencyCode;
868
+ } | undefined;
783
869
  kind: "pass";
784
870
  passName: string | null;
785
871
  passCreditsUsed: number | null;
872
+ passCreditsRemaining?: number | undefined;
786
873
  balance: {
787
874
  kind: "settled";
788
875
  };
789
876
  } | {
877
+ discount?: {
878
+ code: string;
879
+ savingCents: number;
880
+ currency: CurrencyCode;
881
+ } | undefined;
790
882
  kind: "membership";
791
883
  membershipName: string | null;
792
884
  balance: {
793
885
  kind: "settled";
794
886
  };
795
887
  } | {
888
+ discount?: {
889
+ code: string;
890
+ savingCents: number;
891
+ currency: CurrencyCode;
892
+ } | undefined;
796
893
  kind: "manual_due";
797
894
  currency: CurrencyCode;
798
895
  balance: {
@@ -803,6 +900,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
803
900
  } | {
804
901
  amountPaidCents: NonNegativeCents;
805
902
  currency: CurrencyCode;
903
+ discount?: {
904
+ code: string;
905
+ savingCents: number;
906
+ currency: CurrencyCode;
907
+ } | undefined;
806
908
  kind: "managed_balance_due";
807
909
  balance: {
808
910
  kind: "due";
@@ -812,6 +914,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
812
914
  } | {
813
915
  amountPaidCents: NonNegativeCents;
814
916
  currency: CurrencyCode;
917
+ discount?: {
918
+ code: string;
919
+ savingCents: number;
920
+ currency: CurrencyCode;
921
+ } | undefined;
815
922
  kind: "monetary";
816
923
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
817
924
  balance: {
@@ -864,29 +971,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
864
971
  quantity: number;
865
972
  }[]];
866
973
  payment: {
974
+ discount?: {
975
+ code: string;
976
+ savingCents: number;
977
+ currency: CurrencyCode;
978
+ } | undefined;
867
979
  kind: "free";
868
980
  balance: {
869
981
  kind: "settled";
870
982
  };
871
983
  } | {
984
+ discount?: {
985
+ code: string;
986
+ savingCents: number;
987
+ currency: CurrencyCode;
988
+ } | undefined;
872
989
  kind: "waived";
873
990
  balance: {
874
991
  kind: "settled";
875
992
  };
876
993
  } | {
994
+ discount?: {
995
+ code: string;
996
+ savingCents: number;
997
+ currency: CurrencyCode;
998
+ } | undefined;
877
999
  kind: "pass";
878
1000
  passName: string | null;
879
1001
  passCreditsUsed: number | null;
1002
+ passCreditsRemaining?: number | undefined;
880
1003
  balance: {
881
1004
  kind: "settled";
882
1005
  };
883
1006
  } | {
1007
+ discount?: {
1008
+ code: string;
1009
+ savingCents: number;
1010
+ currency: CurrencyCode;
1011
+ } | undefined;
884
1012
  kind: "membership";
885
1013
  membershipName: string | null;
886
1014
  balance: {
887
1015
  kind: "settled";
888
1016
  };
889
1017
  } | {
1018
+ discount?: {
1019
+ code: string;
1020
+ savingCents: number;
1021
+ currency: CurrencyCode;
1022
+ } | undefined;
890
1023
  kind: "manual_due";
891
1024
  currency: CurrencyCode;
892
1025
  balance: {
@@ -897,6 +1030,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
897
1030
  } | {
898
1031
  amountPaidCents: NonNegativeCents;
899
1032
  currency: CurrencyCode;
1033
+ discount?: {
1034
+ code: string;
1035
+ savingCents: number;
1036
+ currency: CurrencyCode;
1037
+ } | undefined;
900
1038
  kind: "managed_balance_due";
901
1039
  balance: {
902
1040
  kind: "due";
@@ -906,6 +1044,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
906
1044
  } | {
907
1045
  amountPaidCents: NonNegativeCents;
908
1046
  currency: CurrencyCode;
1047
+ discount?: {
1048
+ code: string;
1049
+ savingCents: number;
1050
+ currency: CurrencyCode;
1051
+ } | undefined;
909
1052
  kind: "monetary";
910
1053
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
911
1054
  balance: {
@@ -1041,29 +1184,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1041
1184
  quantity: number;
1042
1185
  }[]];
1043
1186
  payment: {
1187
+ discount?: {
1188
+ code: string;
1189
+ savingCents: number;
1190
+ currency: CurrencyCode;
1191
+ } | undefined;
1044
1192
  kind: "free";
1045
1193
  balance: {
1046
1194
  kind: "settled";
1047
1195
  };
1048
1196
  } | {
1197
+ discount?: {
1198
+ code: string;
1199
+ savingCents: number;
1200
+ currency: CurrencyCode;
1201
+ } | undefined;
1049
1202
  kind: "waived";
1050
1203
  balance: {
1051
1204
  kind: "settled";
1052
1205
  };
1053
1206
  } | {
1207
+ discount?: {
1208
+ code: string;
1209
+ savingCents: number;
1210
+ currency: CurrencyCode;
1211
+ } | undefined;
1054
1212
  kind: "pass";
1055
1213
  passName: string | null;
1056
1214
  passCreditsUsed: number | null;
1215
+ passCreditsRemaining?: number | undefined;
1057
1216
  balance: {
1058
1217
  kind: "settled";
1059
1218
  };
1060
1219
  } | {
1220
+ discount?: {
1221
+ code: string;
1222
+ savingCents: number;
1223
+ currency: CurrencyCode;
1224
+ } | undefined;
1061
1225
  kind: "membership";
1062
1226
  membershipName: string | null;
1063
1227
  balance: {
1064
1228
  kind: "settled";
1065
1229
  };
1066
1230
  } | {
1231
+ discount?: {
1232
+ code: string;
1233
+ savingCents: number;
1234
+ currency: CurrencyCode;
1235
+ } | undefined;
1067
1236
  kind: "manual_due";
1068
1237
  currency: CurrencyCode;
1069
1238
  balance: {
@@ -1074,6 +1243,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1074
1243
  } | {
1075
1244
  amountPaidCents: NonNegativeCents;
1076
1245
  currency: CurrencyCode;
1246
+ discount?: {
1247
+ code: string;
1248
+ savingCents: number;
1249
+ currency: CurrencyCode;
1250
+ } | undefined;
1077
1251
  kind: "managed_balance_due";
1078
1252
  balance: {
1079
1253
  kind: "due";
@@ -1083,6 +1257,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1083
1257
  } | {
1084
1258
  amountPaidCents: NonNegativeCents;
1085
1259
  currency: CurrencyCode;
1260
+ discount?: {
1261
+ code: string;
1262
+ savingCents: number;
1263
+ currency: CurrencyCode;
1264
+ } | undefined;
1086
1265
  kind: "monetary";
1087
1266
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
1088
1267
  balance: {
@@ -1136,29 +1315,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1136
1315
  quantity: number;
1137
1316
  }[]];
1138
1317
  payment: {
1318
+ discount?: {
1319
+ code: string;
1320
+ savingCents: number;
1321
+ currency: CurrencyCode;
1322
+ } | undefined;
1139
1323
  kind: "free";
1140
1324
  balance: {
1141
1325
  kind: "settled";
1142
1326
  };
1143
1327
  } | {
1328
+ discount?: {
1329
+ code: string;
1330
+ savingCents: number;
1331
+ currency: CurrencyCode;
1332
+ } | undefined;
1144
1333
  kind: "waived";
1145
1334
  balance: {
1146
1335
  kind: "settled";
1147
1336
  };
1148
1337
  } | {
1338
+ discount?: {
1339
+ code: string;
1340
+ savingCents: number;
1341
+ currency: CurrencyCode;
1342
+ } | undefined;
1149
1343
  kind: "pass";
1150
1344
  passName: string | null;
1151
1345
  passCreditsUsed: number | null;
1346
+ passCreditsRemaining?: number | undefined;
1152
1347
  balance: {
1153
1348
  kind: "settled";
1154
1349
  };
1155
1350
  } | {
1351
+ discount?: {
1352
+ code: string;
1353
+ savingCents: number;
1354
+ currency: CurrencyCode;
1355
+ } | undefined;
1156
1356
  kind: "membership";
1157
1357
  membershipName: string | null;
1158
1358
  balance: {
1159
1359
  kind: "settled";
1160
1360
  };
1161
1361
  } | {
1362
+ discount?: {
1363
+ code: string;
1364
+ savingCents: number;
1365
+ currency: CurrencyCode;
1366
+ } | undefined;
1162
1367
  kind: "manual_due";
1163
1368
  currency: CurrencyCode;
1164
1369
  balance: {
@@ -1169,6 +1374,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1169
1374
  } | {
1170
1375
  amountPaidCents: NonNegativeCents;
1171
1376
  currency: CurrencyCode;
1377
+ discount?: {
1378
+ code: string;
1379
+ savingCents: number;
1380
+ currency: CurrencyCode;
1381
+ } | undefined;
1172
1382
  kind: "managed_balance_due";
1173
1383
  balance: {
1174
1384
  kind: "due";
@@ -1178,6 +1388,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1178
1388
  } | {
1179
1389
  amountPaidCents: NonNegativeCents;
1180
1390
  currency: CurrencyCode;
1391
+ discount?: {
1392
+ code: string;
1393
+ savingCents: number;
1394
+ currency: CurrencyCode;
1395
+ } | undefined;
1181
1396
  kind: "monetary";
1182
1397
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
1183
1398
  balance: {
@@ -1230,29 +1445,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1230
1445
  quantity: number;
1231
1446
  }[]];
1232
1447
  payment: {
1448
+ discount?: {
1449
+ code: string;
1450
+ savingCents: number;
1451
+ currency: CurrencyCode;
1452
+ } | undefined;
1233
1453
  kind: "free";
1234
1454
  balance: {
1235
1455
  kind: "settled";
1236
1456
  };
1237
1457
  } | {
1458
+ discount?: {
1459
+ code: string;
1460
+ savingCents: number;
1461
+ currency: CurrencyCode;
1462
+ } | undefined;
1238
1463
  kind: "waived";
1239
1464
  balance: {
1240
1465
  kind: "settled";
1241
1466
  };
1242
1467
  } | {
1468
+ discount?: {
1469
+ code: string;
1470
+ savingCents: number;
1471
+ currency: CurrencyCode;
1472
+ } | undefined;
1243
1473
  kind: "pass";
1244
1474
  passName: string | null;
1245
1475
  passCreditsUsed: number | null;
1476
+ passCreditsRemaining?: number | undefined;
1246
1477
  balance: {
1247
1478
  kind: "settled";
1248
1479
  };
1249
1480
  } | {
1481
+ discount?: {
1482
+ code: string;
1483
+ savingCents: number;
1484
+ currency: CurrencyCode;
1485
+ } | undefined;
1250
1486
  kind: "membership";
1251
1487
  membershipName: string | null;
1252
1488
  balance: {
1253
1489
  kind: "settled";
1254
1490
  };
1255
1491
  } | {
1492
+ discount?: {
1493
+ code: string;
1494
+ savingCents: number;
1495
+ currency: CurrencyCode;
1496
+ } | undefined;
1256
1497
  kind: "manual_due";
1257
1498
  currency: CurrencyCode;
1258
1499
  balance: {
@@ -1263,6 +1504,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1263
1504
  } | {
1264
1505
  amountPaidCents: NonNegativeCents;
1265
1506
  currency: CurrencyCode;
1507
+ discount?: {
1508
+ code: string;
1509
+ savingCents: number;
1510
+ currency: CurrencyCode;
1511
+ } | undefined;
1266
1512
  kind: "managed_balance_due";
1267
1513
  balance: {
1268
1514
  kind: "due";
@@ -1272,6 +1518,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1272
1518
  } | {
1273
1519
  amountPaidCents: NonNegativeCents;
1274
1520
  currency: CurrencyCode;
1521
+ discount?: {
1522
+ code: string;
1523
+ savingCents: number;
1524
+ currency: CurrencyCode;
1525
+ } | undefined;
1275
1526
  kind: "monetary";
1276
1527
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
1277
1528
  balance: {
@@ -1472,8 +1723,8 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1472
1723
  selectionCombination: Readonly<{
1473
1724
  working: CombinationWorking | null;
1474
1725
  hint: readonly CopyPart[] | null;
1475
- }>; /** The code field's apply-and-preview, while combination prices apply; null keeps the field as it was. */
1476
- combinationCodeField: Readonly<{
1726
+ }>; /** The code field shares the booking's server quote. */
1727
+ combinationCodeField: {
1477
1728
  apply: () => Promise<void>;
1478
1729
  applying: boolean;
1479
1730
  failed: boolean;
@@ -1482,7 +1733,7 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1482
1733
  message: string;
1483
1734
  }> | null;
1484
1735
  hint: string;
1485
- }> | null;
1736
+ } | null;
1486
1737
  combinationAwaitingVisitor: boolean; /** The payment step's list of what several items cost; null for one item. */
1487
1738
  selectionPaymentSummary: SelectionPaymentSummary | null;
1488
1739
  runChoices: Readonly<Record<string, Readonly<{
@@ -1577,7 +1828,10 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1577
1828
  showMagicLinkModal: boolean;
1578
1829
  setShowMagicLinkModal: (show: boolean) => void;
1579
1830
  handleLogout: () => void;
1580
- paymentStepState: PaymentStepState;
1831
+ paymentStepState: PaymentStepState; /** Pay is off only because a typed code hasn't been applied yet, which the customer needs telling. */
1832
+ paymentHeldForCode: boolean; /** What the pass costs once an applied code is taken off; null when no code applies. */
1833
+ passPriceAfterCodeCents: number | null; /** A membership's first payment after its discount; it renews at the regular price. */
1834
+ membershipFirstPaymentCents: number | null;
1581
1835
  handlePaymentSelectionChange: (value: Parameters<(selection: PaymentSelection) => void>[0]) => void;
1582
1836
  paymentSelection: PaymentSelection;
1583
1837
  declinedPass: Readonly<{
@@ -1657,29 +1911,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1657
1911
  quantity: number;
1658
1912
  }[]];
1659
1913
  payment: {
1914
+ discount?: {
1915
+ code: string;
1916
+ savingCents: number;
1917
+ currency: CurrencyCode;
1918
+ } | undefined;
1660
1919
  kind: "free";
1661
1920
  balance: {
1662
1921
  kind: "settled";
1663
1922
  };
1664
1923
  } | {
1924
+ discount?: {
1925
+ code: string;
1926
+ savingCents: number;
1927
+ currency: CurrencyCode;
1928
+ } | undefined;
1665
1929
  kind: "waived";
1666
1930
  balance: {
1667
1931
  kind: "settled";
1668
1932
  };
1669
1933
  } | {
1934
+ discount?: {
1935
+ code: string;
1936
+ savingCents: number;
1937
+ currency: CurrencyCode;
1938
+ } | undefined;
1670
1939
  kind: "pass";
1671
1940
  passName: string | null;
1672
1941
  passCreditsUsed: number | null;
1942
+ passCreditsRemaining?: number | undefined;
1673
1943
  balance: {
1674
1944
  kind: "settled";
1675
1945
  };
1676
1946
  } | {
1947
+ discount?: {
1948
+ code: string;
1949
+ savingCents: number;
1950
+ currency: CurrencyCode;
1951
+ } | undefined;
1677
1952
  kind: "membership";
1678
1953
  membershipName: string | null;
1679
1954
  balance: {
1680
1955
  kind: "settled";
1681
1956
  };
1682
1957
  } | {
1958
+ discount?: {
1959
+ code: string;
1960
+ savingCents: number;
1961
+ currency: CurrencyCode;
1962
+ } | undefined;
1683
1963
  kind: "manual_due";
1684
1964
  currency: CurrencyCode;
1685
1965
  balance: {
@@ -1690,6 +1970,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1690
1970
  } | {
1691
1971
  amountPaidCents: NonNegativeCents;
1692
1972
  currency: CurrencyCode;
1973
+ discount?: {
1974
+ code: string;
1975
+ savingCents: number;
1976
+ currency: CurrencyCode;
1977
+ } | undefined;
1693
1978
  kind: "managed_balance_due";
1694
1979
  balance: {
1695
1980
  kind: "due";
@@ -1699,6 +1984,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1699
1984
  } | {
1700
1985
  amountPaidCents: NonNegativeCents;
1701
1986
  currency: CurrencyCode;
1987
+ discount?: {
1988
+ code: string;
1989
+ savingCents: number;
1990
+ currency: CurrencyCode;
1991
+ } | undefined;
1702
1992
  kind: "monetary";
1703
1993
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
1704
1994
  balance: {
@@ -1752,29 +2042,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1752
2042
  quantity: number;
1753
2043
  }[]];
1754
2044
  payment: {
2045
+ discount?: {
2046
+ code: string;
2047
+ savingCents: number;
2048
+ currency: CurrencyCode;
2049
+ } | undefined;
1755
2050
  kind: "free";
1756
2051
  balance: {
1757
2052
  kind: "settled";
1758
2053
  };
1759
2054
  } | {
2055
+ discount?: {
2056
+ code: string;
2057
+ savingCents: number;
2058
+ currency: CurrencyCode;
2059
+ } | undefined;
1760
2060
  kind: "waived";
1761
2061
  balance: {
1762
2062
  kind: "settled";
1763
2063
  };
1764
2064
  } | {
2065
+ discount?: {
2066
+ code: string;
2067
+ savingCents: number;
2068
+ currency: CurrencyCode;
2069
+ } | undefined;
1765
2070
  kind: "pass";
1766
2071
  passName: string | null;
1767
2072
  passCreditsUsed: number | null;
2073
+ passCreditsRemaining?: number | undefined;
1768
2074
  balance: {
1769
2075
  kind: "settled";
1770
2076
  };
1771
2077
  } | {
2078
+ discount?: {
2079
+ code: string;
2080
+ savingCents: number;
2081
+ currency: CurrencyCode;
2082
+ } | undefined;
1772
2083
  kind: "membership";
1773
2084
  membershipName: string | null;
1774
2085
  balance: {
1775
2086
  kind: "settled";
1776
2087
  };
1777
2088
  } | {
2089
+ discount?: {
2090
+ code: string;
2091
+ savingCents: number;
2092
+ currency: CurrencyCode;
2093
+ } | undefined;
1778
2094
  kind: "manual_due";
1779
2095
  currency: CurrencyCode;
1780
2096
  balance: {
@@ -1785,6 +2101,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1785
2101
  } | {
1786
2102
  amountPaidCents: NonNegativeCents;
1787
2103
  currency: CurrencyCode;
2104
+ discount?: {
2105
+ code: string;
2106
+ savingCents: number;
2107
+ currency: CurrencyCode;
2108
+ } | undefined;
1788
2109
  kind: "managed_balance_due";
1789
2110
  balance: {
1790
2111
  kind: "due";
@@ -1794,6 +2115,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1794
2115
  } | {
1795
2116
  amountPaidCents: NonNegativeCents;
1796
2117
  currency: CurrencyCode;
2118
+ discount?: {
2119
+ code: string;
2120
+ savingCents: number;
2121
+ currency: CurrencyCode;
2122
+ } | undefined;
1797
2123
  kind: "monetary";
1798
2124
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
1799
2125
  balance: {
@@ -1846,29 +2172,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1846
2172
  quantity: number;
1847
2173
  }[]];
1848
2174
  payment: {
2175
+ discount?: {
2176
+ code: string;
2177
+ savingCents: number;
2178
+ currency: CurrencyCode;
2179
+ } | undefined;
1849
2180
  kind: "free";
1850
2181
  balance: {
1851
2182
  kind: "settled";
1852
2183
  };
1853
2184
  } | {
2185
+ discount?: {
2186
+ code: string;
2187
+ savingCents: number;
2188
+ currency: CurrencyCode;
2189
+ } | undefined;
1854
2190
  kind: "waived";
1855
2191
  balance: {
1856
2192
  kind: "settled";
1857
2193
  };
1858
2194
  } | {
2195
+ discount?: {
2196
+ code: string;
2197
+ savingCents: number;
2198
+ currency: CurrencyCode;
2199
+ } | undefined;
1859
2200
  kind: "pass";
1860
2201
  passName: string | null;
1861
2202
  passCreditsUsed: number | null;
2203
+ passCreditsRemaining?: number | undefined;
1862
2204
  balance: {
1863
2205
  kind: "settled";
1864
2206
  };
1865
2207
  } | {
2208
+ discount?: {
2209
+ code: string;
2210
+ savingCents: number;
2211
+ currency: CurrencyCode;
2212
+ } | undefined;
1866
2213
  kind: "membership";
1867
2214
  membershipName: string | null;
1868
2215
  balance: {
1869
2216
  kind: "settled";
1870
2217
  };
1871
2218
  } | {
2219
+ discount?: {
2220
+ code: string;
2221
+ savingCents: number;
2222
+ currency: CurrencyCode;
2223
+ } | undefined;
1872
2224
  kind: "manual_due";
1873
2225
  currency: CurrencyCode;
1874
2226
  balance: {
@@ -1879,6 +2231,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1879
2231
  } | {
1880
2232
  amountPaidCents: NonNegativeCents;
1881
2233
  currency: CurrencyCode;
2234
+ discount?: {
2235
+ code: string;
2236
+ savingCents: number;
2237
+ currency: CurrencyCode;
2238
+ } | undefined;
1882
2239
  kind: "managed_balance_due";
1883
2240
  balance: {
1884
2241
  kind: "due";
@@ -1888,6 +2245,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
1888
2245
  } | {
1889
2246
  amountPaidCents: NonNegativeCents;
1890
2247
  currency: CurrencyCode;
2248
+ discount?: {
2249
+ code: string;
2250
+ savingCents: number;
2251
+ currency: CurrencyCode;
2252
+ } | undefined;
1891
2253
  kind: "monetary";
1892
2254
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
1893
2255
  balance: {
@@ -2023,29 +2385,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2023
2385
  quantity: number;
2024
2386
  }[]];
2025
2387
  payment: {
2388
+ discount?: {
2389
+ code: string;
2390
+ savingCents: number;
2391
+ currency: CurrencyCode;
2392
+ } | undefined;
2026
2393
  kind: "free";
2027
2394
  balance: {
2028
2395
  kind: "settled";
2029
2396
  };
2030
2397
  } | {
2398
+ discount?: {
2399
+ code: string;
2400
+ savingCents: number;
2401
+ currency: CurrencyCode;
2402
+ } | undefined;
2031
2403
  kind: "waived";
2032
2404
  balance: {
2033
2405
  kind: "settled";
2034
2406
  };
2035
2407
  } | {
2408
+ discount?: {
2409
+ code: string;
2410
+ savingCents: number;
2411
+ currency: CurrencyCode;
2412
+ } | undefined;
2036
2413
  kind: "pass";
2037
2414
  passName: string | null;
2038
2415
  passCreditsUsed: number | null;
2416
+ passCreditsRemaining?: number | undefined;
2039
2417
  balance: {
2040
2418
  kind: "settled";
2041
2419
  };
2042
2420
  } | {
2421
+ discount?: {
2422
+ code: string;
2423
+ savingCents: number;
2424
+ currency: CurrencyCode;
2425
+ } | undefined;
2043
2426
  kind: "membership";
2044
2427
  membershipName: string | null;
2045
2428
  balance: {
2046
2429
  kind: "settled";
2047
2430
  };
2048
2431
  } | {
2432
+ discount?: {
2433
+ code: string;
2434
+ savingCents: number;
2435
+ currency: CurrencyCode;
2436
+ } | undefined;
2049
2437
  kind: "manual_due";
2050
2438
  currency: CurrencyCode;
2051
2439
  balance: {
@@ -2056,6 +2444,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2056
2444
  } | {
2057
2445
  amountPaidCents: NonNegativeCents;
2058
2446
  currency: CurrencyCode;
2447
+ discount?: {
2448
+ code: string;
2449
+ savingCents: number;
2450
+ currency: CurrencyCode;
2451
+ } | undefined;
2059
2452
  kind: "managed_balance_due";
2060
2453
  balance: {
2061
2454
  kind: "due";
@@ -2065,6 +2458,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2065
2458
  } | {
2066
2459
  amountPaidCents: NonNegativeCents;
2067
2460
  currency: CurrencyCode;
2461
+ discount?: {
2462
+ code: string;
2463
+ savingCents: number;
2464
+ currency: CurrencyCode;
2465
+ } | undefined;
2068
2466
  kind: "monetary";
2069
2467
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
2070
2468
  balance: {
@@ -2118,29 +2516,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2118
2516
  quantity: number;
2119
2517
  }[]];
2120
2518
  payment: {
2519
+ discount?: {
2520
+ code: string;
2521
+ savingCents: number;
2522
+ currency: CurrencyCode;
2523
+ } | undefined;
2121
2524
  kind: "free";
2122
2525
  balance: {
2123
2526
  kind: "settled";
2124
2527
  };
2125
2528
  } | {
2529
+ discount?: {
2530
+ code: string;
2531
+ savingCents: number;
2532
+ currency: CurrencyCode;
2533
+ } | undefined;
2126
2534
  kind: "waived";
2127
2535
  balance: {
2128
2536
  kind: "settled";
2129
2537
  };
2130
2538
  } | {
2539
+ discount?: {
2540
+ code: string;
2541
+ savingCents: number;
2542
+ currency: CurrencyCode;
2543
+ } | undefined;
2131
2544
  kind: "pass";
2132
2545
  passName: string | null;
2133
2546
  passCreditsUsed: number | null;
2547
+ passCreditsRemaining?: number | undefined;
2134
2548
  balance: {
2135
2549
  kind: "settled";
2136
2550
  };
2137
2551
  } | {
2552
+ discount?: {
2553
+ code: string;
2554
+ savingCents: number;
2555
+ currency: CurrencyCode;
2556
+ } | undefined;
2138
2557
  kind: "membership";
2139
2558
  membershipName: string | null;
2140
2559
  balance: {
2141
2560
  kind: "settled";
2142
2561
  };
2143
2562
  } | {
2563
+ discount?: {
2564
+ code: string;
2565
+ savingCents: number;
2566
+ currency: CurrencyCode;
2567
+ } | undefined;
2144
2568
  kind: "manual_due";
2145
2569
  currency: CurrencyCode;
2146
2570
  balance: {
@@ -2151,6 +2575,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2151
2575
  } | {
2152
2576
  amountPaidCents: NonNegativeCents;
2153
2577
  currency: CurrencyCode;
2578
+ discount?: {
2579
+ code: string;
2580
+ savingCents: number;
2581
+ currency: CurrencyCode;
2582
+ } | undefined;
2154
2583
  kind: "managed_balance_due";
2155
2584
  balance: {
2156
2585
  kind: "due";
@@ -2160,6 +2589,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2160
2589
  } | {
2161
2590
  amountPaidCents: NonNegativeCents;
2162
2591
  currency: CurrencyCode;
2592
+ discount?: {
2593
+ code: string;
2594
+ savingCents: number;
2595
+ currency: CurrencyCode;
2596
+ } | undefined;
2163
2597
  kind: "monetary";
2164
2598
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
2165
2599
  balance: {
@@ -2212,29 +2646,55 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2212
2646
  quantity: number;
2213
2647
  }[]];
2214
2648
  payment: {
2649
+ discount?: {
2650
+ code: string;
2651
+ savingCents: number;
2652
+ currency: CurrencyCode;
2653
+ } | undefined;
2215
2654
  kind: "free";
2216
2655
  balance: {
2217
2656
  kind: "settled";
2218
2657
  };
2219
2658
  } | {
2659
+ discount?: {
2660
+ code: string;
2661
+ savingCents: number;
2662
+ currency: CurrencyCode;
2663
+ } | undefined;
2220
2664
  kind: "waived";
2221
2665
  balance: {
2222
2666
  kind: "settled";
2223
2667
  };
2224
2668
  } | {
2669
+ discount?: {
2670
+ code: string;
2671
+ savingCents: number;
2672
+ currency: CurrencyCode;
2673
+ } | undefined;
2225
2674
  kind: "pass";
2226
2675
  passName: string | null;
2227
2676
  passCreditsUsed: number | null;
2677
+ passCreditsRemaining?: number | undefined;
2228
2678
  balance: {
2229
2679
  kind: "settled";
2230
2680
  };
2231
2681
  } | {
2682
+ discount?: {
2683
+ code: string;
2684
+ savingCents: number;
2685
+ currency: CurrencyCode;
2686
+ } | undefined;
2232
2687
  kind: "membership";
2233
2688
  membershipName: string | null;
2234
2689
  balance: {
2235
2690
  kind: "settled";
2236
2691
  };
2237
2692
  } | {
2693
+ discount?: {
2694
+ code: string;
2695
+ savingCents: number;
2696
+ currency: CurrencyCode;
2697
+ } | undefined;
2238
2698
  kind: "manual_due";
2239
2699
  currency: CurrencyCode;
2240
2700
  balance: {
@@ -2245,6 +2705,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2245
2705
  } | {
2246
2706
  amountPaidCents: NonNegativeCents;
2247
2707
  currency: CurrencyCode;
2708
+ discount?: {
2709
+ code: string;
2710
+ savingCents: number;
2711
+ currency: CurrencyCode;
2712
+ } | undefined;
2248
2713
  kind: "managed_balance_due";
2249
2714
  balance: {
2250
2715
  kind: "due";
@@ -2254,6 +2719,11 @@ declare function useEventRegistrationWizard(options: UseEventRegistrationWizardO
2254
2719
  } | {
2255
2720
  amountPaidCents: NonNegativeCents;
2256
2721
  currency: CurrencyCode;
2722
+ discount?: {
2723
+ code: string;
2724
+ savingCents: number;
2725
+ currency: CurrencyCode;
2726
+ } | undefined;
2257
2727
  kind: "monetary";
2258
2728
  paymentMethod: "manual" | "mixed" | "store_credit" | "stripe";
2259
2729
  balance: {
@@ -2543,7 +3013,12 @@ type EventRegistrationDiscountModel = Readonly<{
2543
3013
  available: boolean;
2544
3014
  manualCodeEntryAllowed: boolean;
2545
3015
  loading: boolean;
2546
- autoAppliedDiscount: UseEventRegistrationWizardResult['autoAppliedDiscount'];
3016
+ autoAppliedDiscount: UseEventRegistrationWizardResult['autoAppliedDiscount']; /** A typed code is being checked with the server. */
3017
+ applying: boolean; /** Whether the code was accepted, and what it means for the price. */
3018
+ feedback: Readonly<{
3019
+ tone: 'success' | 'error';
3020
+ message: string;
3021
+ }> | null;
2547
3022
  }>;
2548
3023
  type EventRegistrationPortalAuthModel = Readonly<{
2549
3024
  state: PortalAuthState;
@@ -2568,7 +3043,8 @@ type EventRegistrationFlowActions = Readonly<{
2568
3043
  updateGuests: (guests: Guest[]) => void;
2569
3044
  selectPayment: (selection: EventRegistrationPaymentSelection) => void;
2570
3045
  setDiscountCode: (code: string) => void;
2571
- setDiscountOpen: (isOpen: boolean) => void;
3046
+ setDiscountOpen: (isOpen: boolean) => void; /** Checks a typed code with the server; checkout waits until it's accepted or removed. */
3047
+ applyDiscountCode: () => Promise<void>;
2572
3048
  requestLogin: () => void;
2573
3049
  logout: () => void;
2574
3050
  next: () => Promise<EventRegistrationFlowActionResult>;