@riverbankcms/sdk 0.183.0 → 0.185.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 (236) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
  9. package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
  10. package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
  11. package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
  12. package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
  13. package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
  14. package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.d.ts} +1 -1
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +7 -7
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  26. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  28. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  29. package/dist/_dts/sdk/src/index.d.ts +7 -7
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/portal/index.d.ts +10 -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 +6 -6
  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 +36 -1
  54. package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +19 -8
  55. package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
  56. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
  57. package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
  68. package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
  77. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
  78. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
  79. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
  80. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  81. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
  82. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
  83. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
  84. package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
  85. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
  86. package/dist/client/bookings.mjs +5 -5
  87. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
  88. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
  89. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  90. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.mjs} +2 -2
  91. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  92. package/dist/client/{cart-BuEp_cj4.mjs → cart-Bx-JuY2n.mjs} +3 -3
  93. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
  94. package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
  95. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
  96. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
  97. package/dist/client/client.mjs +61 -48
  98. package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
  99. package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
  100. package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
  101. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
  102. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
  103. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
  104. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
  105. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
  106. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
  107. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
  108. package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
  109. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
  110. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
  111. package/dist/client/gifting/client.mjs +8 -8
  112. package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
  113. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
  114. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
  115. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
  116. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
  117. package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
  118. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
  119. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
  120. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
  121. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
  122. package/dist/client/portal/client.mjs +999 -81
  123. package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
  124. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
  125. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  126. package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
  127. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
  128. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
  129. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
  130. package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
  131. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
  132. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
  133. package/dist/client/rendering/client.mjs +28 -27
  134. package/dist/client/rendering/islands.mjs +1 -1
  135. package/dist/client/rendering.mjs +5 -5
  136. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
  137. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
  138. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
  139. package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
  140. package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
  141. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
  142. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
  143. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
  144. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
  145. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
  146. package/dist/client/spam-protection.mjs +1 -1
  147. package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
  148. package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
  149. package/dist/client/src-CXOxpNtj.mjs +3 -0
  150. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
  151. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
  152. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
  153. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
  154. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
  155. package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
  156. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
  157. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  158. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  159. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  160. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-CR99z8BL.mjs} +582 -195
  161. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
  162. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
  163. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
  164. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +128 -27
  165. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  166. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  167. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DcEwU9l_.mjs} +7192 -3039
  168. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
  169. package/dist/preview-next/client/runtime.mjs +3 -3
  170. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
  171. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
  172. package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
  173. package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
  174. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
  175. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
  176. package/dist/preview-next/container-responsive.css +158 -3
  177. package/dist/preview-next/keepAlive.mjs +1 -1
  178. package/dist/preview-next/middleware.mjs +1 -1
  179. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CQfEvfbg.mjs} +54 -41
  180. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
  181. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
  182. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
  183. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
  184. package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
  185. package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
  186. package/dist/server/config-validation.mjs +1 -1
  187. package/dist/server/config.mjs +2 -2
  188. package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
  189. package/dist/server/data/resolveBlockData.mjs +1 -1
  190. package/dist/server/index.mjs +3 -3
  191. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
  192. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
  193. package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
  194. package/dist/server/manifest.mjs +2 -2
  195. package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
  196. package/dist/server/navigation.mjs +1 -1
  197. package/dist/server/next.mjs +9 -9
  198. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
  199. package/dist/server/page-converter.mjs +17 -4
  200. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
  201. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
  202. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
  203. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
  204. package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
  205. package/dist/server/portal.mjs +3 -3
  206. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
  207. package/dist/server/prebuild.mjs +1 -1
  208. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
  209. package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
  210. package/dist/server/rendering/components/pageShared.mjs +1 -1
  211. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  212. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  213. package/dist/server/rendering/server.mjs +4 -4
  214. package/dist/server/rendering.mjs +9 -9
  215. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
  216. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
  217. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
  218. package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
  219. package/dist/server/server.mjs +3 -3
  220. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
  221. package/dist/server/theme-bridge.mjs +5 -4
  222. package/dist/server/theme.mjs +2 -2
  223. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
  224. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
  225. package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
  226. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
  227. package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
  228. package/dist/styles/index.css +684 -181
  229. package/package.json +1 -1
  230. package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
  231. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  232. package/dist/client/src-DqMbCjI1.mjs +0 -3
  233. package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
  234. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  235. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  236. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
  import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
3
- import { An as formatCurrencyAmount, St as roomChoicesSchema, dn as inferSiteDateLocale, t as assertNever, wn as resolveBookingBusinessTimeZone, xt as reviewedRoomsSchema } from "./src-Do_s2lqH.mjs";
4
- import { $n as serverPricedTotalCents, $s as orderedLiveRunSessions, $t as toWholeSeriesRegistrationEvents, A as ownCoverPaysEveryDate, Ar as normalizeTicketSelectionLines, At as resolveEventRequiresPayment, Bs as eventRegistrationErrors, Bt as defaultTicketOptions, C as currentSelectionFundingLookup, Ca as toBookingQuestionsPaymentSnapshot, Cn as primarySelectionItem, Cr as withRegistrationAvailability, Ct as beginWaitlistInvitation, D as fundingOptionPick, Dt as buildRegistrationSelectionRequest, E as fundingOptionKey, Ea as formatPrice, Et as withOfferedEvent, F as selectionFundingRequest, Ft as validateFormData, G as planRegistrationDetailsContinuation, Gn as combinationHintCopy, Gt as selectRoomOffer, H as getTicketSelectionPurpose, Hn as severalRunsChoiceMessage, Hs as parseEventRegistrationErrorReason, Ht as presentRoomChooser, I as buildEventRegistrationPaymentOptionsViewModel, J as resolveRegistrationAdmission, Jn as combinationWorking, Kt as isSameWaitlistClaim, L as buildSelectionCollectionOptions, Ls as decideSelectionAttendance, Lt as bookingLines, M as selectionFundingBasis, Mt as resolveRouteRequiresPayment, N as selectionFundingFetchWanted, Ni as groupPublicEventsByRun, Nn as selectionIncludes, Nt as toRegistrationRequestSubject, O as initialSelectionFundingLookup, P as selectionFundingReducer, Pn as selectionItemPrice, Pt as registrationQuestionsMessage, Q as visitorHoldsOwnPlace, Qn as selectionPreviewLines, R as decideEventRegistrationPayment, Rt as dayOptionsOf, S as chosenFundingOption, Sn as planSelectionPrice, Sr as shouldLoadRegistrationOptions, St as entryStart, T as fundingMoneyDates, Tr as getSingleSelectedPricingOptionId, Tt as invitationBooking, Un as summariseSelectionPayment, Us as planCheckoutPaymentFlow, Ut as roomChoiceMessage, Vn as severalItemsOf, Vs as eventRegistrationRefusalMessage, Vt as isRoomChoiceRefusal, W as planRegistrationDetailsCheck, Wn as toggleSelectionItem, Wr as appliedDiscountHint, Wt as roomSubmission, X as resolveRegistrationTicketContinuation, Xn as selectionCombinationHint, Xt as getRegistrationStartAt, Yn as paymentCaption, Zr as formatCommercePrice, Zt as toRegistrationEvents, _ as pickCollections, _r as getSlidingScaleForEvent, _t as bookingOccurrenceContext, a as registrationPresentation, an as buildSelectionRequirementsSubmission, ao as leavePage, b as selectionPaysNothing, ba as needsBookingQuestionsRefresh, bi as resolveEventRegistrationScopedEvents, bn as effectiveSelection, br as parseCurrencyInputToCents, bt as entryPageEvent, cn as deriveRunRequirements, cr as getPortalSubjectEmail, ct as calculateEventRegistrationPreviewTotal, d as decideEventChoice, dn as runsKeepingAnswers, dt as paymentChoiceDetails, ec as resolveWholeSeriesBookingPhase, en as EVENT_SIGN_IN_FORM_ID, er as findSelectedTicketType, f as isRegistrationLocked, fi as closedDatesCopy, fn as toRunRequirementsSnapshots, fr as transformRegistrationOptionsResponse, ft as paymentChoicePrice, g as paymentOptionFor, gr as getRegistrationOccurrenceId, gt as createBookingBrowserDraftStore, h as moneyCollections, hi as closedDateCopy, hn as ATTENDANCE_CHOICE_MESSAGE, hr as getCurrentTicketSelection, ht as restorableBrowserDraftCode, i as registrationPaymentRoute, ic as resolveBookingSignupOffer, in as toEventSignInDraft, j as selectionDatesQuote, jt as resolveRegistrationTarget, k as lookupChosenOption, kr as hasValidPricingOptionSelection, kt as resolveDiscountContext, ln as nextRunToRead, m as collectionsOf, ma as bookingQuestionsOwnerOf, mn as paymentReturnRestoration, mt as registrationBrowserDraftSchema, nn as eventSignInEnds, nt as resolveEventRegistrationSubmitPlan, o as registrationRoute, on as checkRunRequirements, p as registrationFlowReducer, pi as closedRunCopy, pn as withoutKeptAnswers, pt as registrationBrowserDraft, q as resolveGuestNextStepCheck, qn as combinationOffersOf, qs as getStripeMinimumChargeRequirement, qt as toWaitlistClaimResolveFailure, rn as eventSignInRestoration, ro as PAGE_NAVIGATION, sn as decideSelectionRequirementsLayout, so as requestSignIn, sr as getImplicitSingleTicketType, tn as eventSignInDraftStore, tr as formatBookingWhen, u as createInitialRegistrationFlowState, un as runFieldErrors, ur as getVisibleTicketTypes, v as runsSelectionPaymentRequest, va as deriveBookingQuestions, vc as publicEventPricingCurrency, vn as attendanceChoicePending, vr as getSlidingScaleSelectionMessage, vt as decideRegistrationEntry, w as fundingChoice, wn as quoteReductions, wt as invitationSubmission, x as cardStepServesDates, xn as incompleteRunChoiceMessage, xr as resolveHeldTicketPlaces, xt as entrySelectionMode, y as selectionItemLabels, ya as isBookingQuestionsOwner, yi as resolveEventRegistrationChoices, yn as canToggleSelectionItem, yr as getTicketSelectionRemainingPlaces, yt as entryChoosesEvent, zn as selectionTicketInputs, zs as eventRegistrationErrorEndsCommand, zt as decideRoomStay } from "./wizardSteps-DDvL3iza.mjs";
5
- import { i as portalPath } from "./portalRoutes-DTHlWg_F.mjs";
6
- import { c as checkBookingQuestionsAnswered } from "./bookingCalendar--aWnqFDn.mjs";
7
- import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-DQNkfNLA.mjs";
3
+ import { An as formatCurrencyAmount, St as roomChoicesSchema, dn as inferSiteDateLocale, t as assertNever, wn as resolveBookingBusinessTimeZone, xt as reviewedRoomsSchema } from "./src-CJf3u16T.mjs";
4
+ import { $ as visitorHoldsOwnPlace, $n as selectionPreviewLines, A as ownCoverPaysEveryDate, Ar as hasValidPricingOptionSelection, At as resolveDiscountContext, Bn as selectionTicketInputs, Bt as decideRoomStay, C as currentSelectionFundingLookup, Cn as planSelectionPrice, Cr as shouldLoadRegistrationOptions, Ct as entryStart, D as fundingOptionPick, Da as formatPrice, Dt as withOfferedEvent, E as fundingOptionKey, Er as getSingleSelectedPricingOptionId, Et as invitationBooking, F as selectionFundingRequest, Fn as selectionItemPrice, Ft as registrationQuestionsMessage, G as planRegistrationDetailsContinuation, Gn as toggleSelectionItem, Gr as appliedDiscountHint, Gs as eventRegistrationRefusalMessage, Gt as roomSubmission, H as getTicketSelectionPurpose, Hn as severalItemsOf, Hs as eventRegistrationErrorEndsCommand, Ht as isRoomChoiceRefusal, I as buildEventRegistrationPaymentOptionsViewModel, It as validateFormData, J as resolveGuestNextStepCheck, Jn as combinationOffersOf, Jt as toWaitlistClaimResolveFailure, K as registrationBookingRequirements, Kn as combinationHintCopy, Ks as parseEventRegistrationErrorReason, Kt as selectRoomOffer, L as buildSelectionCollectionOptions, M as selectionFundingBasis, Mt as resolveRegistrationTarget, N as selectionFundingFetchWanted, Nt as resolveRouteRequiresPayment, O as initialSelectionFundingLookup, Ot as buildRegistrationSelectionRequest, P as selectionFundingReducer, Pi as groupPublicEventsByRun, Pn as selectionIncludes, Pt as toRegistrationRequestSubject, Qr as formatCommercePrice, Qt as toRegistrationEvents, R as decideEventRegistrationPayment, Rt as bookingLines, S as chosenFundingOption, Sc as publicEventPricingCurrency, Sn as incompleteRunChoiceMessage, Sr as resolveHeldTicketPlaces, St as entrySelectionMode, T as fundingMoneyDates, Tn as quoteReductions, Tt as invitationSubmission, Un as severalRunsChoiceMessage, Us as eventRegistrationErrors, Ut as presentRoomChooser, Vs as defaultEventRegistrationErrorAppearance, Vt as defaultTicketOptions, W as planRegistrationDetailsCheck, Wn as summariseSelectionPayment, Ws as eventRegistrationRefusalAction, Wt as roomChoiceMessage, Xn as paymentCaption, Y as resolveRegistrationAdmission, Yn as combinationWorking, Z as resolveRegistrationTicketContinuation, Zn as selectionCombinationHint, Zs as getStripeMinimumChargeRequirement, Zt as getRegistrationStartAt, _ as pickCollections, _r as getRegistrationOccurrenceId, _t as createBookingBrowserDraftStore, a as registrationPresentation, an as toEventSignInDraft, b as selectionPaysNothing, ba as isBookingQuestionsOwner, bi as resolveEventRegistrationChoices, bn as canToggleSelectionItem, br as getTicketSelectionRemainingPlaces, bt as entryChoosesEvent, cc as resolveBookingSignupOffer, cn as decideSelectionRequirementsLayout, co as requestSignIn, cr as getImplicitSingleTicketType, d as decideEventChoice, dn as runFieldErrors, dr as getVisibleTicketTypes, en as toWholeSeriesRegistrationEvents, er as serverPricedTotalCents, f as isRegistrationLocked, fn as runsKeepingAnswers, ft as paymentChoiceDetails, g as paymentOptionFor, gi as closedDateCopy, gn as ATTENDANCE_CHOICE_MESSAGE, gr as getCurrentTicketSelection, gt as restorableBrowserDraftCode, h as moneyCollections, ha as bookingQuestionsOwnerOf, hn as paymentReturnRestoration, ht as registrationBrowserDraftSchema, i as registrationPaymentRoute, ic as resolveWholeSeriesBookingPhase, in as eventSignInRestoration, io as PAGE_NAVIGATION, j as selectionDatesQuote, jr as normalizeTicketSelectionLines, jt as resolveEventRequiresPayment, k as lookupChosenOption, ln as deriveRunRequirements, lr as getPortalSubjectEmail, lt as calculateEventRegistrationPreviewTotal, m as collectionsOf, mi as closedRunCopy, mn as withoutKeptAnswers, mt as registrationBrowserDraft, nn as eventSignInDraftStore, nr as formatBookingWhen, o as registrationRoute, on as buildSelectionRequirementsSubmission, oo as leavePage, p as registrationFlowReducer, pi as closedDatesCopy, pn as toRunRequirementsSnapshots, pr as transformRegistrationOptionsResponse, pt as paymentChoicePrice, qs as planCheckoutPaymentFlow, qt as isSameWaitlistClaim, rc as orderedLiveRunSessions, rn as eventSignInEnds, rt as resolveEventRegistrationSubmitPlan, sn as checkRunRequirements, tn as EVENT_SIGN_IN_FORM_ID, tr as findSelectedTicketType, u as createInitialRegistrationFlowState, un as nextRunToRead, v as runsSelectionPaymentRequest, vr as getSlidingScaleForEvent, vt as bookingOccurrenceContext, w as fundingChoice, wa as toBookingQuestionsPaymentSnapshot, wn as primarySelectionItem, wr as withRegistrationAvailability, wt as beginWaitlistInvitation, x as cardStepServesDates, xa as needsBookingQuestionsRefresh, xi as resolveEventRegistrationScopedEvents, xn as effectiveSelection, xr as parseCurrencyInputToCents, xt as entryPageEvent, y as selectionItemLabels, ya as deriveBookingQuestions, yn as attendanceChoicePending, yr as getSlidingScaleSelectionMessage, yt as decideRegistrationEntry, zs as decideSelectionAttendance, zt as dayOptionsOf } from "./wizardSteps-BbroaNkT.mjs";
5
+ import { i as portalPath } from "./portalRoutes-D3Ttfv5x.mjs";
6
+ import { c as checkBookingQuestionsAnswered } from "./bookingCalendar-9nFa_do4.mjs";
7
+ import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-BDqRo2C5.mjs";
8
8
  import { t as generateUuidV4 } from "./uuid-BETKW8rS.mjs";
9
- import { s as indefiniteArticle } from "./BookingQuestionFields-DCh9MUIF.mjs";
10
- import { i as BlockApiError, n as useBlockApi } from "./context-D1L0pe__.mjs";
11
- import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, r as paidInFullNote, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-C_8AxMdm.mjs";
9
+ import { l as indefiniteArticle } from "./BookingQuestionFields-Bia1E7Cj.mjs";
10
+ import { i as BlockApiError, n as useBlockApi } from "./context-CG77Keax.mjs";
11
+ import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, r as paidInFullNote, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-yA1RJGXD.mjs";
12
12
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
13
- import { i as discountEmailProblem } from "./DemoBookingPortalAccess-HFVkoOac.mjs";
14
- import { c as parseBookingSubmissionFailure, d as useSignInReturn, f as useBookingQuestionsRefresh, l as useBookingNowIso, s as usePolling, u as portalSessionIdentity } from "./BookingMailingListNote-qqTxGGS4.mjs";
15
- import { t as useDiscountCodeUi } from "./useDiscountCodeUi-DvdFFWOT.mjs";
16
- import { s as storeDemoBookingPass } from "./demoPortalMagicLink-BunFTnIq.mjs";
13
+ import { i as discountEmailProblem } from "./DemoBookingPortalAccess-M2xKYQjX.mjs";
14
+ import { c as usePolling, d as portalSessionIdentity, f as useSignInReturn, l as parseBookingSubmissionFailure, p as useBookingQuestionsRefresh, u as useBookingNowIso } from "./BookingMailingListNote-D_khdttF.mjs";
15
+ import { t as useDiscountCodeUi } from "./useDiscountCodeUi-DMtTHqex.mjs";
16
+ import { s as storeDemoBookingPass } from "./demoPortalMagicLink-CgzNiOQ0.mjs";
17
17
  import { Suspense, lazy, useCallback, useEffect, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
18
18
  import { jsx } from "react/jsx-runtime";
19
19
  import { z } from "zod";
@@ -352,13 +352,6 @@ function resolveRegistrationRecoveryAction(step, action) {
352
352
  if (step === "verifying-payment" || step === "verifying-timeout" || step === "payment") return "none";
353
353
  return action;
354
354
  }
355
- /**
356
- * After the details check refuses the booker (an earlier unpaid booking of theirs stands, or it couldn't be
357
- * found safely), Try again returns to their details so continuing runs the check again. Not 'retry', which
358
- * goes straight to payment and is for a refused submission. Not 'places', which on a full event swaps the
359
- * message for the waitlist offer.
360
- */
361
- const DETAILS_CHECK_REFUSAL_RECOVERY = "details";
362
355
  function shouldRefreshAfterRegistrationError(step, action, enabled) {
363
356
  return enabled || step === "error" && action === "places";
364
357
  }
@@ -1081,7 +1074,8 @@ function eligibilityLookupReducer(state, action) {
1081
1074
  eligibility: null,
1082
1075
  settledRequestKey: action.requestKey,
1083
1076
  error: action.message,
1084
- closed: action.closed
1077
+ closed: action.closed,
1078
+ organiserContact: action.organiserContact
1085
1079
  };
1086
1080
  default: return assertNever(action);
1087
1081
  }
@@ -1219,14 +1213,17 @@ async function loadEligibility(input) {
1219
1213
  });
1220
1214
  } catch (error) {
1221
1215
  if (!input.isCurrent()) return;
1216
+ const organiserContact = error instanceof BlockApiError ? error.organiserContact : void 0;
1222
1217
  input.dispatch(isBookingsClosedRefusal(error) ? {
1223
1218
  type: "failed",
1224
1219
  requestKey: input.requestKey,
1220
+ organiserContact,
1225
1221
  closed: true,
1226
1222
  message: "Bookings for this event have closed."
1227
1223
  } : {
1228
1224
  type: "failed",
1229
1225
  requestKey: input.requestKey,
1226
+ organiserContact,
1230
1227
  closed: false,
1231
1228
  message: "We couldn’t load the booking options for this event. Try again, or contact the organiser if this keeps happening."
1232
1229
  });
@@ -1276,6 +1273,7 @@ function useEligibilityWithDeps(params, deps) {
1276
1273
  }, [api, requestKey]);
1277
1274
  const effectiveState = effectiveEligibilityState(state, requestKey, request !== null);
1278
1275
  return {
1276
+ organiserContact: effectiveState.tag === "failed" ? effectiveState.organiserContact : effectiveState.tag === "resolved" ? effectiveState.eligibility.organiserContact : effectiveState.tag === "loading" ? effectiveState.previousEligibility?.organiserContact : void 0,
1279
1277
  state: effectiveState,
1280
1278
  eligibility: effectiveState.tag === "loading" ? effectiveState.previousEligibility : effectiveState.eligibility,
1281
1279
  settledRequestKey: effectiveState.settledRequestKey,
@@ -1534,6 +1532,12 @@ function parseEventRegistrationFailure(error) {
1534
1532
  * know, as a form built before that reason was added won't, reads as a general refusal.
1535
1533
  */
1536
1534
  function registrationErrorPresentation(failure, bookings = "one") {
1535
+ return {
1536
+ ...defaultEventRegistrationErrorAppearance,
1537
+ ...registrationErrorContent(failure, bookings)
1538
+ };
1539
+ }
1540
+ function registrationErrorContent(failure, bookings) {
1537
1541
  if (failure.discountRefused) return {
1538
1542
  message: failure.message,
1539
1543
  action: "payment-options"
@@ -1543,10 +1547,15 @@ function registrationErrorPresentation(failure, bookings = "one") {
1543
1547
  action: "details"
1544
1548
  };
1545
1549
  const reason = failure.reason;
1546
- if (reason) return {
1547
- message: eventRegistrationRefusalMessage(reason, failure.message, bookings),
1548
- action: eventRegistrationErrors[reason].action
1549
- };
1550
+ if (reason) {
1551
+ const entry = eventRegistrationErrors[reason];
1552
+ return {
1553
+ heading: entry.heading ?? defaultEventRegistrationErrorAppearance.heading,
1554
+ tone: entry.tone ?? defaultEventRegistrationErrorAppearance.tone,
1555
+ message: eventRegistrationRefusalMessage(reason, failure.message, bookings),
1556
+ action: eventRegistrationRefusalAction(reason, bookings)
1557
+ };
1558
+ }
1550
1559
  if (failure.isClientError) {
1551
1560
  const { message, action } = eventRegistrationErrors.invalidCommitInput;
1552
1561
  return {
@@ -1827,6 +1836,7 @@ function registrationRequestIntentKey(request) {
1827
1836
  ...intent,
1828
1837
  checkout: checkout ? {
1829
1838
  discountCode: checkout.discountCode,
1839
+ quotedAutomaticDiscountCode: checkout.quotedAutomaticDiscountCode,
1830
1840
  collectionOptionKind: checkout.collectionOptionKind
1831
1841
  } : void 0
1832
1842
  });
@@ -1837,6 +1847,7 @@ function buildRegistrationRequest(options, prepared, invitation, method, members
1837
1847
  checkout: {
1838
1848
  returnUrl: eventPaymentReturnUrl(prepared.registrationCommandId),
1839
1849
  discountCode: options.discountCode.trim() || void 0,
1850
+ quotedAutomaticDiscountCode: options.quotedAutomaticDiscountCode,
1840
1851
  collectionOptionKind: prepared.selectionSnapshot.method === "stripe" ? prepared.selectionSnapshot.collectionOptionKind : void 0
1841
1852
  },
1842
1853
  ticketSelections: toTicketSelectionRequests(prepared.ticketSelections),
@@ -1908,7 +1919,7 @@ function bookingCount(target) {
1908
1919
  /** Keep feedback, field errors and navigation together when a submission fails. */
1909
1920
  function reportFailedRegistration(options, error) {
1910
1921
  const parsed = parseEventRegistrationFailure(error);
1911
- const { message, action } = registrationErrorPresentation(parsed, bookingCount(options.registrationTarget));
1922
+ const { message, action, heading, tone } = registrationErrorPresentation(parsed, bookingCount(options.registrationTarget));
1912
1923
  const failure = {
1913
1924
  message,
1914
1925
  questionFieldErrors: parsed.questionFieldErrors,
@@ -1916,7 +1927,10 @@ function reportFailedRegistration(options, error) {
1916
1927
  };
1917
1928
  if (parsed.discountRefused) options.onDiscountRefused?.(message);
1918
1929
  options.setErrorAction?.(action);
1919
- options.setErrorMessage(message);
1930
+ options.setErrorMessage(message, {
1931
+ heading,
1932
+ tone
1933
+ });
1920
1934
  options.setSubmissionFailure(failure);
1921
1935
  if (isRoomChoiceRefusal(parsed.reason)) options.refreshOptions?.();
1922
1936
  options.setStep(failedRegistrationStep(parsed, options.selectionFunding));
@@ -1989,6 +2003,26 @@ function decideSelectionQuoteAnswer(pending, result) {
1989
2003
  fundingChanged: result.type === "fundingChanged" ? result : null
1990
2004
  };
1991
2005
  }
2006
+ /** A refused submission invalidates the old automatic fallback, independently of the typed draft. */
2007
+ function decideAutomaticSelectionQuoteAnswer(pending, result, message) {
2008
+ const answer = decideSelectionQuoteAnswer({
2009
+ ...pending,
2010
+ draftCode: "",
2011
+ uncoded: void 0
2012
+ }, result);
2013
+ return {
2014
+ ...answer,
2015
+ state: pending.draftCode.trim() && answer.state.status === "priced" ? {
2016
+ ...pending,
2017
+ status: "refused",
2018
+ message,
2019
+ uncoded: answer.state.preview
2020
+ } : {
2021
+ ...answer.state,
2022
+ draftCode: pending.draftCode
2023
+ }
2024
+ };
2025
+ }
1992
2026
  function decideSelectionQuoteResponse(pending, result) {
1993
2027
  const typed = Boolean(pending.draftCode.trim());
1994
2028
  if (result.type === "rejected" || result.type === "fundingChanged") return unpricedQuote(pending, typed, result);
@@ -2061,20 +2095,26 @@ function pricedPreview(state) {
2061
2095
  function selectionPriceSettled(input, state) {
2062
2096
  return !(!serverPricesTotal(input) && state.key !== null && Boolean(state.draftCode.trim()) && state.status !== "priced") && (pricedPreview(state) !== null || freeSelection(input) || singleBookingNeedsNoAnswer(input, state));
2063
2097
  }
2098
+ /** The automatic code is carried separately, so it never becomes a visitor's typed code. */
2099
+ function quotedAutomaticCode(quote) {
2100
+ return quote?.source === "automatic" && quote.preview.type === "applied" ? quote.preview.code : void 0;
2101
+ }
2064
2102
  /** The only projection that can expose a selection's payable total and submitted code. */
2065
2103
  function decidedSelectionPricing(input, state, apply) {
2066
2104
  const priced = state.status === "priced" ? state : null;
2067
2105
  const fallback = priced === null ? pricedPreview(state) : null;
2106
+ const quote = selectionQuoteOf(priced) ?? (fallback ? {
2107
+ preview: fallback,
2108
+ source: "automatic"
2109
+ } : null);
2068
2110
  const settled = selectionPriceSettled(input, state);
2069
2111
  const waiting = quoteWaiting(input, state, settled);
2070
2112
  return {
2071
2113
  state,
2072
- quote: selectionQuoteOf(priced) ?? (fallback ? {
2073
- preview: fallback,
2074
- source: "automatic"
2075
- } : null),
2114
+ quote,
2076
2115
  draftCode: state.draftCode,
2077
2116
  decidedCode: priced?.decidedCode,
2117
+ quotedAutomaticDiscountCode: quotedAutomaticCode(quote),
2078
2118
  ready: settled,
2079
2119
  payableCents: selectionPayable(input, state),
2080
2120
  quoting: waiting.quoting,
@@ -2193,13 +2233,22 @@ function presentSelectionCombination(input) {
2193
2233
  /** The checkout and quote both consume the code decided by this response. */
2194
2234
  async function requestSelectionQuote(input) {
2195
2235
  try {
2196
- const code = "selection" in input.request && input.request.selection.funding.kind === "entitlement" ? "" : input.pending.draftCode.trim();
2236
+ const code = "selection" in input.request && input.request.selection.funding.kind === "entitlement" || input.automaticRefusal !== void 0 ? "" : input.pending.draftCode.trim();
2237
+ const emailProblem = code ? discountEmailProblem(input.email) : null;
2238
+ if (emailProblem) return {
2239
+ state: {
2240
+ ...input.pending,
2241
+ status: "refused",
2242
+ message: emailProblem
2243
+ },
2244
+ fundingChanged: null
2245
+ };
2197
2246
  const result = await input.api.applyDiscountCode({
2198
2247
  customerEmail: input.email.trim(),
2199
2248
  ...input.request,
2200
2249
  ...code ? { discountCode: code } : {}
2201
2250
  });
2202
- return decideSelectionQuoteAnswer(input.pending, result);
2251
+ return input.automaticRefusal === void 0 ? decideSelectionQuoteAnswer(input.pending, result) : decideAutomaticSelectionQuoteAnswer(input.pending, result, input.automaticRefusal);
2203
2252
  } catch {
2204
2253
  return {
2205
2254
  state: {
@@ -2227,20 +2276,12 @@ function useSelectionCombinationPricing(input) {
2227
2276
  latestKey.current = key;
2228
2277
  const registrationPreview = seededFromOptions ? input.registrationPreview : null;
2229
2278
  const current = seedRegistrationQuote(currentSelectionQuote(state, key), registrationPreview);
2230
- const apply = async () => {
2279
+ const apply = async (automaticRefusal) => {
2231
2280
  if (key === null || request === null) return;
2232
- const emailProblem = current.draftCode.trim() ? discountEmailProblem(input.email) : null;
2233
- if (emailProblem) {
2234
- setState({
2235
- ...current,
2236
- status: "refused",
2237
- message: emailProblem
2238
- });
2239
- return;
2240
- }
2241
2281
  const pending = {
2242
2282
  ...current,
2243
- status: "pending"
2283
+ status: "pending",
2284
+ ...automaticRefusal === void 0 ? {} : { uncoded: void 0 }
2244
2285
  };
2245
2286
  setCarried(false);
2246
2287
  setState(pending);
@@ -2249,11 +2290,12 @@ function useSelectionCombinationPricing(input) {
2249
2290
  api: input.api,
2250
2291
  email: input.email,
2251
2292
  request,
2252
- pending
2293
+ pending,
2294
+ automaticRefusal
2253
2295
  });
2254
2296
  setState((previous) => latestKey.current === pending.key && previous === pending ? answer.state : previous);
2255
2297
  if (latestPending.current !== pending || latestKey.current !== pending.key || answer.fundingChanged === null) return;
2256
- setCarried(Boolean(pending.draftCode.trim()));
2298
+ setCarried(automaticRefusal === void 0 && Boolean(pending.draftCode.trim()));
2257
2299
  input.onFundingChanged(answer.fundingChanged.funding, answer.fundingChanged.message);
2258
2300
  };
2259
2301
  useEffect(() => {
@@ -2284,14 +2326,10 @@ function useSelectionCombinationPricing(input) {
2284
2326
  };
2285
2327
  return {
2286
2328
  ...decidedSelectionPricing(input, current, apply),
2329
+ refreshAutomatic: (message) => apply(message),
2287
2330
  editCode,
2288
2331
  carryCode,
2289
- reset,
2290
- refuse: (message) => setState({
2291
- ...current,
2292
- status: "refused",
2293
- message
2294
- })
2332
+ reset
2295
2333
  };
2296
2334
  }
2297
2335
  //#endregion
@@ -2532,6 +2570,7 @@ function ownedPassShortfall(facts) {
2532
2570
  default: return assertNever(facts.shortfall);
2533
2571
  }
2534
2572
  }
2573
+ const boughtPassEnds = (facts) => facts.endsOn === null ? "" : ` It ends on ${facts.endsOn}.`;
2535
2574
  function boughtPassShortfall(facts) {
2536
2575
  switch (facts.shortfall) {
2537
2576
  case "ends": return `It ends on ${facts.endsOn ?? ""}, so it covers ${datesCount(facts.covered)}. You pay for ${facts.moneyDays}.`;
@@ -2586,7 +2625,7 @@ const ENTITLEMENT_COPY = {
2586
2625
  coveredValue: credits(1),
2587
2626
  countsCredits: false,
2588
2627
  title: (facts) => facts.moneyDates === 0 ? `Buy ${indefiniteArticle(facts.name)} ${facts.name}` : `Buy ${indefiniteArticle(facts.name)} ${facts.name} and pay for the rest`,
2589
- detail: (facts) => facts.moneyDates === 0 ? `${credits(facts.creditsBefore ?? 0)}. ${facts.dateCount === 1 ? "This date uses" : "These dates use"} ${facts.covered}, leaving ${facts.creditsLeftAfter ?? 0}.` : boughtPassShortfall(facts),
2628
+ detail: (facts) => facts.moneyDates === 0 ? `${credits(facts.creditsBefore ?? 0)}. ${facts.dateCount === 1 ? "This date uses" : "These dates use"} ${facts.covered}, leaving ${facts.creditsLeftAfter ?? 0}.${boughtPassEnds(facts)}` : `${boughtPassShortfall(facts)}${facts.shortfall === "ends" ? "" : boughtPassEnds(facts)}`,
2590
2629
  price: (facts) => facts.toPay,
2591
2630
  button: (facts) => facts.moneyDates === 0 || facts.charge.cardCents === 0 ? "Buy pass and book" : `Buy pass and pay ${facts.toPay}`,
2592
2631
  boughtLine: (facts) => ({ note: facts.creditsBefore === 1 ? "Uses its 1 class" : `Uses ${facts.covered} of its ${facts.creditsBefore ?? facts.covered} classes, ${facts.creditsLeftAfter ?? 0} left for later` })
@@ -2601,12 +2640,20 @@ const ENTITLEMENT_COPY = {
2601
2640
  boughtLine: (facts) => ({ note: `${membershipRenewal(facts)} You can cancel from your account.` })
2602
2641
  }
2603
2642
  };
2643
+ /**
2644
+ * A pass's `expiresAt` is the midnight after its last day, so the day to name
2645
+ * is the one just before it: a 90-day pass bought on 16 Nov "ends on 14 Feb",
2646
+ * as its receipt says, not 15 Feb.
2647
+ */
2648
+ function passLastDay(expiresAt) {
2649
+ return expiresAt === null ? null : (/* @__PURE__ */ new Date(Date.parse(expiresAt) - 1)).toISOString();
2650
+ }
2604
2651
  function entitlementFacts(entitlement, currency) {
2605
2652
  switch (entitlement.kind) {
2606
2653
  case "ownedPass": return {
2607
2654
  creditsBefore: entitlement.credits.used + entitlement.credits.leftAfter,
2608
2655
  creditsLeftAfter: entitlement.credits.leftAfter,
2609
- ends: entitlement.expiresAt,
2656
+ ends: passLastDay(entitlement.expiresAt),
2610
2657
  boughtPrice: null,
2611
2658
  interval: null
2612
2659
  };
@@ -2620,7 +2667,7 @@ function entitlementFacts(entitlement, currency) {
2620
2667
  case "buyPass": return {
2621
2668
  creditsBefore: entitlement.credits.total,
2622
2669
  creditsLeftAfter: entitlement.credits.leftAfter,
2623
- ends: entitlement.expiresAt,
2670
+ ends: passLastDay(entitlement.expiresAt),
2624
2671
  boughtPrice: formatPrice(entitlement.priceCents, currency),
2625
2672
  interval: null
2626
2673
  };
@@ -2859,13 +2906,18 @@ function fundingDatesOf(selection, itemPrice) {
2859
2906
  priceCents: itemPrice(event)?.subtotalCents ?? null
2860
2907
  }] : []);
2861
2908
  }
2862
- /** "31 Jan", where the event is. */
2909
+ /**
2910
+ * "31 Jan", for the day a pass or membership ends. Those end at midnight where
2911
+ * the business is, not where one event happens to be, so an event abroad or
2912
+ * online doesn't move the last day.
2913
+ */
2863
2914
  function fundingDayFormatter(event) {
2915
+ const siteTimeZone = event?.siteTimeZone ?? null;
2864
2916
  return (iso) => formatBookingWhen({
2865
2917
  startsAt: iso,
2866
- timeZone: event?.timeZone ?? null,
2867
- siteTimeZone: event?.siteTimeZone ?? null,
2868
- deliveryMode: event?.deliveryMode ?? null
2918
+ timeZone: siteTimeZone,
2919
+ siteTimeZone,
2920
+ deliveryMode: "in_person"
2869
2921
  }, "dayMonth");
2870
2922
  }
2871
2923
  /**
@@ -2920,7 +2972,7 @@ async function checkGuestNextStep(input, request, setCheckingNextStep) {
2920
2972
  switch (plan.kind) {
2921
2973
  case "skip": return plan.outcome;
2922
2974
  case "blocked": return {
2923
- kind: "unavailable",
2975
+ kind: "checkFailed",
2924
2976
  message: plan.message
2925
2977
  };
2926
2978
  case "check": break;
@@ -2930,8 +2982,8 @@ async function checkGuestNextStep(input, request, setCheckingNextStep) {
2930
2982
  return await input.api.checkRegistrationNextStep(plan.request);
2931
2983
  } catch {
2932
2984
  return {
2933
- kind: "unavailable",
2934
- message: "We could not check availability. Please try again."
2985
+ kind: "checkFailed",
2986
+ message: "We couldn’t check availability just now. Please go back and try again."
2935
2987
  };
2936
2988
  } finally {
2937
2989
  setCheckingNextStep(false);
@@ -3699,7 +3751,11 @@ function useEventRegistrationWizardWithDeps(options, deps) {
3699
3751
  });
3700
3752
  clearWaitlistClaimLocation();
3701
3753
  }, []);
3702
- const [submissionErrorMessage, setErrorMessage] = useState("");
3754
+ const [submissionError, setSubmissionError] = useState({
3755
+ message: "",
3756
+ ...defaultEventRegistrationErrorAppearance
3757
+ });
3758
+ const submissionErrorMessage = submissionError.message;
3703
3759
  const [submissionErrorAction, setErrorAction] = useState("retry");
3704
3760
  const [optionsRefreshKey, setOptionsRefreshKey] = useState(0);
3705
3761
  const { authState: portalAuthState, profile: portalProfile } = deps.usePortalAuth();
@@ -3832,6 +3888,14 @@ function useEventRegistrationWizardWithDeps(options, deps) {
3832
3888
  const existingRegistrations = useMemo(() => existingRegistrationResult.registrations.filter((registration) => registration.occurrenceId === registrationOccurrenceId), [existingRegistrationResult.registrations, registrationOccurrenceId]);
3833
3889
  const registrationOptionsState = eligibilityResult.state;
3834
3890
  const eligibility = eligibilityResult.eligibility;
3891
+ const organiserContact = eligibilityResult.organiserContact ?? eligibility?.organiserContact;
3892
+ const setErrorMessage = useCallback((message, appearance = defaultEventRegistrationErrorAppearance) => {
3893
+ setSubmissionError({
3894
+ message,
3895
+ ...appearance,
3896
+ organiserContact
3897
+ });
3898
+ }, [organiserContact]);
3835
3899
  const eligibilityLoading = eligibilityResult.isLoading;
3836
3900
  const eligibilityError = eligibilityResult.error;
3837
3901
  const portalCreditState = eligibilityResult.creditState;
@@ -3978,6 +4042,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
3978
4042
  const admission = resolveRegistrationAdmission({
3979
4043
  eligibility,
3980
4044
  eligibilityError,
4045
+ organiserContact,
3981
4046
  bookingsClosed: eligibilityResult.bookingsClosed,
3982
4047
  eligibilityLoading,
3983
4048
  holdsOwnPlace: visitorHoldsOwnPlace({
@@ -4101,7 +4166,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
4101
4166
  formData,
4102
4167
  requireGuestDetails,
4103
4168
  guests,
4104
- ...detailsRequirementsCheck(requirements.checkRuns(), questions, currentEvent)
4169
+ ...detailsRequirementsCheck(requirements.checkRuns(), questions, bookingRequirementsEvent)
4105
4170
  });
4106
4171
  if (check.kind === "blocked") return blockDetailsCompletion(check.blocker);
4107
4172
  setErrors(check.errors);
@@ -4137,7 +4202,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
4137
4202
  kind: "unavailable",
4138
4203
  reason: "closed",
4139
4204
  message: continuation.message
4140
- }, DETAILS_CHECK_REFUSAL_RECOVERY);
4205
+ }, continuation.action);
4141
4206
  case "payment-step":
4142
4207
  setStep("select-payment");
4143
4208
  return {
@@ -4363,12 +4428,13 @@ function useEventRegistrationWizardWithDeps(options, deps) {
4363
4428
  });
4364
4429
  const shouldShowDiscountToggle = registrationDiscountEntryVisible(discountView);
4365
4430
  const requirementsLayout = useMemo(() => decideSelectionRequirementsLayout(selection), [selection]);
4431
+ const { event: bookingRequirementsEvent, consent: bookingConsent } = registrationBookingRequirements(admission, onceAskedEvent(requirementsLayout, currentEvent));
4366
4432
  const questions = useEventRegistrationQuestions({
4367
4433
  api,
4368
4434
  siteId: api.config.siteId,
4369
4435
  flow: flowState,
4370
4436
  dispatch: dispatchFlow,
4371
- event: onceAskedEvent(requirementsLayout, currentEvent),
4437
+ event: bookingRequirementsEvent,
4372
4438
  offersKeptAnswers: requirementsLayout.kind !== "shared",
4373
4439
  identity: portalIdentity,
4374
4440
  eventSource: options.eventSource,
@@ -4413,9 +4479,11 @@ function useEventRegistrationWizardWithDeps(options, deps) {
4413
4479
  requireGuestDetails,
4414
4480
  guests,
4415
4481
  discountCode: discountView.submittedCode,
4482
+ quotedAutomaticDiscountCode: combinationPricing.quotedAutomaticDiscountCode,
4416
4483
  onDiscountRefused: (message) => {
4417
4484
  discountUi.setDiscountUiOpen(true);
4418
- combinationPricing.refuse(message);
4485
+ setOptionsRefreshKey((value) => value + 1);
4486
+ combinationPricing.refreshAutomatic(message);
4419
4487
  },
4420
4488
  quoteReady: combinationPricing.ready,
4421
4489
  selectionFunding: funding.choice,
@@ -4708,8 +4776,12 @@ function useEventRegistrationWizardWithDeps(options, deps) {
4708
4776
  guestSectionShake,
4709
4777
  handleGuestShakeEnd,
4710
4778
  errorMessage,
4779
+ errorHeading: submissionError.heading,
4780
+ errorTone: submissionError.tone,
4781
+ organiserContact: submissionError.organiserContact ?? organiserContact,
4711
4782
  questionFieldErrors: flowState.questionFieldErrors,
4712
4783
  bookingQuestions: questions,
4784
+ bookingConsent,
4713
4785
  /** How the selection's questions and agreement are asked: once, or once per run. */
4714
4786
  requirementsLayout,
4715
4787
  /** One section per run when several runs ask different questions or agreements. */
@@ -4824,7 +4896,7 @@ function resolveSelectionChoiceMessages(input) {
4824
4896
  }
4825
4897
  /** The event whose questions are asked once; none when runs are asked separately. */
4826
4898
  function onceAskedEvent(layout, currentEvent) {
4827
- return layout.kind === "per_run" ? null : currentEvent;
4899
+ return layout.kind === "per_run" ? null : layout.kind === "shared" ? layout.source : currentEvent;
4828
4900
  }
4829
4901
  /**
4830
4902
  * What the details step checks for questions and agreement: each run's own
@@ -5227,7 +5299,7 @@ function availableCreditCents(state, currency) {
5227
5299
  }
5228
5300
  //#endregion
5229
5301
  //#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
5230
- const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-B2c5dR49.mjs"));
5302
+ const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-CJoxbx2Y.mjs"));
5231
5303
  /** The one Stripe mount, shared by the standard wizard and headless arrangements. */
5232
5304
  function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
5233
5305
  if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {