@riverbankcms/sdk 0.183.0 → 0.184.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 (222) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
  9. package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
  10. package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
  11. package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
  12. package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
  13. package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
  14. package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.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-aTlOvO3U.d.ts} +15 -7
  55. package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
  56. package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
  57. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
  77. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
  78. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
  79. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  80. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
  81. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
  82. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
  83. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
  84. package/dist/client/bookings.mjs +4 -4
  85. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
  86. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  87. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
  88. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  89. package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
  90. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
  91. package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
  92. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
  94. package/dist/client/client.mjs +23 -35
  95. package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
  96. package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
  97. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
  98. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
  99. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
  100. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
  101. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
  102. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
  103. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
  104. package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
  105. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
  106. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +7 -7
  108. package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
  109. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
  110. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
  111. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
  112. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
  113. package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
  114. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
  115. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
  116. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
  117. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
  118. package/dist/client/portal/client.mjs +27 -15
  119. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
  120. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  121. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
  122. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
  123. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
  124. package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
  125. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
  126. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
  127. package/dist/client/rendering/client.mjs +28 -27
  128. package/dist/client/rendering/islands.mjs +1 -1
  129. package/dist/client/rendering.mjs +4 -4
  130. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
  131. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
  132. package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
  133. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
  134. package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
  135. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
  136. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
  137. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
  138. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
  139. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
  140. package/dist/client/spam-protection.mjs +1 -1
  141. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
  142. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
  143. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
  144. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
  145. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
  146. package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
  147. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  149. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
  153. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
  154. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
  155. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
  156. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  157. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
  159. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +3 -3
  161. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
  162. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
  163. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
  164. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
  165. package/dist/preview-next/container-responsive.css +150 -3
  166. package/dist/preview-next/keepAlive.mjs +1 -1
  167. package/dist/preview-next/middleware.mjs +1 -1
  168. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
  169. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
  170. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
  171. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
  172. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
  173. package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
  174. package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +2 -2
  177. package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/index.mjs +3 -3
  180. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
  181. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
  182. package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
  183. package/dist/server/manifest.mjs +2 -2
  184. package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
  185. package/dist/server/navigation.mjs +1 -1
  186. package/dist/server/next.mjs +9 -9
  187. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
  188. package/dist/server/page-converter.mjs +17 -4
  189. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
  190. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
  191. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
  192. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
  193. package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
  194. package/dist/server/portal.mjs +3 -3
  195. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
  196. package/dist/server/prebuild.mjs +1 -1
  197. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
  198. package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
  199. package/dist/server/rendering/components/pageShared.mjs +1 -1
  200. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  201. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  202. package/dist/server/rendering/server.mjs +4 -4
  203. package/dist/server/rendering.mjs +9 -9
  204. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
  205. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
  206. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
  207. package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
  210. package/dist/server/theme-bridge.mjs +5 -4
  211. package/dist/server/theme.mjs +2 -2
  212. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
  213. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
  214. package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
  215. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
  216. package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
  217. package/dist/styles/index.css +495 -50
  218. package/package.json +1 -1
  219. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  220. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  221. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  222. 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
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";
4
+ import { $n as serverPricedTotalCents, $t as toWholeSeriesRegistrationEvents, A as ownCoverPaysEveryDate, Ar as normalizeTicketSelectionLines, At as resolveEventRequiresPayment, Bs as eventRegistrationErrorEndsCommand, 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 eventRegistrationRefusalMessage, Ht as presentRoomChooser, I as buildEventRegistrationPaymentOptionsViewModel, J as resolveRegistrationAdmission, Jn as combinationWorking, Js as getStripeMinimumChargeRequirement, 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 parseEventRegistrationErrorReason, Ut as roomChoiceMessage, Vn as severalItemsOf, Vs as eventRegistrationErrors, Vt as isRoomChoiceRefusal, W as planRegistrationDetailsCheck, Wn as toggleSelectionItem, Wr as appliedDiscountHint, Ws as planCheckoutPaymentFlow, 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, ac as resolveBookingSignupOffer, 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 orderedLiveRunSessions, 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, 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, qt as toWaitlistClaimResolveFailure, rn as eventSignInRestoration, ro as PAGE_NAVIGATION, sn as decideSelectionRequirementsLayout, so as requestSignIn, sr as getImplicitSingleTicketType, tc as resolveWholeSeriesBookingPhase, tn as eventSignInDraftStore, tr as formatBookingWhen, u as createInitialRegistrationFlowState, un as runFieldErrors, ur as getVisibleTicketTypes, v as runsSelectionPaymentRequest, va as deriveBookingQuestions, 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, yc as publicEventPricingCurrency, yi as resolveEventRegistrationChoices, yn as canToggleSelectionItem, yr as getTicketSelectionRemainingPlaces, yt as entryChoosesEvent, zn as selectionTicketInputs, zs as defaultEventRegistrationErrorAppearance, zt as decideRoomStay } from "./wizardSteps-B3gsXNnb.mjs";
5
+ import { i as portalPath } from "./portalRoutes-DiGibcZI.mjs";
6
6
  import { c as checkBookingQuestionsAnswered } from "./bookingCalendar--aWnqFDn.mjs";
7
- import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-DQNkfNLA.mjs";
7
+ import { i as useSiteTermsAgreement, r as siteTermsFailureKind } from "./SiteTermsAgreementField-BDVP_HeK.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 { s as indefiniteArticle } from "./BookingQuestionFields-DdcmoHqQ.mjs";
10
+ import { i as BlockApiError, n as useBlockApi } from "./context-lCPfX-xe.mjs";
11
+ import { n as EVENT_REGISTRATION_CHECKOUT_ATTEMPT_PARAM, r as paidInFullNote, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-DXV4KR7l.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-pzkGVkgG.mjs";
14
+ import { c as parseBookingSubmissionFailure, d as useSignInReturn, f as useBookingQuestionsRefresh, l as useBookingNowIso, s as usePolling, u as portalSessionIdentity } from "./BookingMailingListNote-C4LcfwyA.mjs";
15
+ import { t as useDiscountCodeUi } from "./useDiscountCodeUi-B_hfgdAP.mjs";
16
+ import { s as storeDemoBookingPass } from "./demoPortalMagicLink-Ce3Gyin_.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";
@@ -1081,7 +1081,8 @@ function eligibilityLookupReducer(state, action) {
1081
1081
  eligibility: null,
1082
1082
  settledRequestKey: action.requestKey,
1083
1083
  error: action.message,
1084
- closed: action.closed
1084
+ closed: action.closed,
1085
+ organiserContact: action.organiserContact
1085
1086
  };
1086
1087
  default: return assertNever(action);
1087
1088
  }
@@ -1219,14 +1220,17 @@ async function loadEligibility(input) {
1219
1220
  });
1220
1221
  } catch (error) {
1221
1222
  if (!input.isCurrent()) return;
1223
+ const organiserContact = error instanceof BlockApiError ? error.organiserContact : void 0;
1222
1224
  input.dispatch(isBookingsClosedRefusal(error) ? {
1223
1225
  type: "failed",
1224
1226
  requestKey: input.requestKey,
1227
+ organiserContact,
1225
1228
  closed: true,
1226
1229
  message: "Bookings for this event have closed."
1227
1230
  } : {
1228
1231
  type: "failed",
1229
1232
  requestKey: input.requestKey,
1233
+ organiserContact,
1230
1234
  closed: false,
1231
1235
  message: "We couldn’t load the booking options for this event. Try again, or contact the organiser if this keeps happening."
1232
1236
  });
@@ -1276,6 +1280,7 @@ function useEligibilityWithDeps(params, deps) {
1276
1280
  }, [api, requestKey]);
1277
1281
  const effectiveState = effectiveEligibilityState(state, requestKey, request !== null);
1278
1282
  return {
1283
+ organiserContact: effectiveState.tag === "failed" ? effectiveState.organiserContact : effectiveState.tag === "resolved" ? effectiveState.eligibility.organiserContact : effectiveState.tag === "loading" ? effectiveState.previousEligibility?.organiserContact : void 0,
1279
1284
  state: effectiveState,
1280
1285
  eligibility: effectiveState.tag === "loading" ? effectiveState.previousEligibility : effectiveState.eligibility,
1281
1286
  settledRequestKey: effectiveState.settledRequestKey,
@@ -1534,6 +1539,12 @@ function parseEventRegistrationFailure(error) {
1534
1539
  * know, as a form built before that reason was added won't, reads as a general refusal.
1535
1540
  */
1536
1541
  function registrationErrorPresentation(failure, bookings = "one") {
1542
+ return {
1543
+ ...defaultEventRegistrationErrorAppearance,
1544
+ ...registrationErrorContent(failure, bookings)
1545
+ };
1546
+ }
1547
+ function registrationErrorContent(failure, bookings) {
1537
1548
  if (failure.discountRefused) return {
1538
1549
  message: failure.message,
1539
1550
  action: "payment-options"
@@ -1543,10 +1554,15 @@ function registrationErrorPresentation(failure, bookings = "one") {
1543
1554
  action: "details"
1544
1555
  };
1545
1556
  const reason = failure.reason;
1546
- if (reason) return {
1547
- message: eventRegistrationRefusalMessage(reason, failure.message, bookings),
1548
- action: eventRegistrationErrors[reason].action
1549
- };
1557
+ if (reason) {
1558
+ const entry = eventRegistrationErrors[reason];
1559
+ return {
1560
+ heading: entry.heading ?? defaultEventRegistrationErrorAppearance.heading,
1561
+ tone: entry.tone ?? defaultEventRegistrationErrorAppearance.tone,
1562
+ message: eventRegistrationRefusalMessage(reason, failure.message, bookings),
1563
+ action: entry.action
1564
+ };
1565
+ }
1550
1566
  if (failure.isClientError) {
1551
1567
  const { message, action } = eventRegistrationErrors.invalidCommitInput;
1552
1568
  return {
@@ -1827,6 +1843,7 @@ function registrationRequestIntentKey(request) {
1827
1843
  ...intent,
1828
1844
  checkout: checkout ? {
1829
1845
  discountCode: checkout.discountCode,
1846
+ quotedAutomaticDiscountCode: checkout.quotedAutomaticDiscountCode,
1830
1847
  collectionOptionKind: checkout.collectionOptionKind
1831
1848
  } : void 0
1832
1849
  });
@@ -1837,6 +1854,7 @@ function buildRegistrationRequest(options, prepared, invitation, method, members
1837
1854
  checkout: {
1838
1855
  returnUrl: eventPaymentReturnUrl(prepared.registrationCommandId),
1839
1856
  discountCode: options.discountCode.trim() || void 0,
1857
+ quotedAutomaticDiscountCode: options.quotedAutomaticDiscountCode,
1840
1858
  collectionOptionKind: prepared.selectionSnapshot.method === "stripe" ? prepared.selectionSnapshot.collectionOptionKind : void 0
1841
1859
  },
1842
1860
  ticketSelections: toTicketSelectionRequests(prepared.ticketSelections),
@@ -1908,7 +1926,7 @@ function bookingCount(target) {
1908
1926
  /** Keep feedback, field errors and navigation together when a submission fails. */
1909
1927
  function reportFailedRegistration(options, error) {
1910
1928
  const parsed = parseEventRegistrationFailure(error);
1911
- const { message, action } = registrationErrorPresentation(parsed, bookingCount(options.registrationTarget));
1929
+ const { message, action, heading, tone } = registrationErrorPresentation(parsed, bookingCount(options.registrationTarget));
1912
1930
  const failure = {
1913
1931
  message,
1914
1932
  questionFieldErrors: parsed.questionFieldErrors,
@@ -1916,7 +1934,10 @@ function reportFailedRegistration(options, error) {
1916
1934
  };
1917
1935
  if (parsed.discountRefused) options.onDiscountRefused?.(message);
1918
1936
  options.setErrorAction?.(action);
1919
- options.setErrorMessage(message);
1937
+ options.setErrorMessage(message, {
1938
+ heading,
1939
+ tone
1940
+ });
1920
1941
  options.setSubmissionFailure(failure);
1921
1942
  if (isRoomChoiceRefusal(parsed.reason)) options.refreshOptions?.();
1922
1943
  options.setStep(failedRegistrationStep(parsed, options.selectionFunding));
@@ -1989,6 +2010,26 @@ function decideSelectionQuoteAnswer(pending, result) {
1989
2010
  fundingChanged: result.type === "fundingChanged" ? result : null
1990
2011
  };
1991
2012
  }
2013
+ /** A refused submission invalidates the old automatic fallback, independently of the typed draft. */
2014
+ function decideAutomaticSelectionQuoteAnswer(pending, result, message) {
2015
+ const answer = decideSelectionQuoteAnswer({
2016
+ ...pending,
2017
+ draftCode: "",
2018
+ uncoded: void 0
2019
+ }, result);
2020
+ return {
2021
+ ...answer,
2022
+ state: pending.draftCode.trim() && answer.state.status === "priced" ? {
2023
+ ...pending,
2024
+ status: "refused",
2025
+ message,
2026
+ uncoded: answer.state.preview
2027
+ } : {
2028
+ ...answer.state,
2029
+ draftCode: pending.draftCode
2030
+ }
2031
+ };
2032
+ }
1992
2033
  function decideSelectionQuoteResponse(pending, result) {
1993
2034
  const typed = Boolean(pending.draftCode.trim());
1994
2035
  if (result.type === "rejected" || result.type === "fundingChanged") return unpricedQuote(pending, typed, result);
@@ -2061,20 +2102,26 @@ function pricedPreview(state) {
2061
2102
  function selectionPriceSettled(input, state) {
2062
2103
  return !(!serverPricesTotal(input) && state.key !== null && Boolean(state.draftCode.trim()) && state.status !== "priced") && (pricedPreview(state) !== null || freeSelection(input) || singleBookingNeedsNoAnswer(input, state));
2063
2104
  }
2105
+ /** The automatic code is carried separately, so it never becomes a visitor's typed code. */
2106
+ function quotedAutomaticCode(quote) {
2107
+ return quote?.source === "automatic" && quote.preview.type === "applied" ? quote.preview.code : void 0;
2108
+ }
2064
2109
  /** The only projection that can expose a selection's payable total and submitted code. */
2065
2110
  function decidedSelectionPricing(input, state, apply) {
2066
2111
  const priced = state.status === "priced" ? state : null;
2067
2112
  const fallback = priced === null ? pricedPreview(state) : null;
2113
+ const quote = selectionQuoteOf(priced) ?? (fallback ? {
2114
+ preview: fallback,
2115
+ source: "automatic"
2116
+ } : null);
2068
2117
  const settled = selectionPriceSettled(input, state);
2069
2118
  const waiting = quoteWaiting(input, state, settled);
2070
2119
  return {
2071
2120
  state,
2072
- quote: selectionQuoteOf(priced) ?? (fallback ? {
2073
- preview: fallback,
2074
- source: "automatic"
2075
- } : null),
2121
+ quote,
2076
2122
  draftCode: state.draftCode,
2077
2123
  decidedCode: priced?.decidedCode,
2124
+ quotedAutomaticDiscountCode: quotedAutomaticCode(quote),
2078
2125
  ready: settled,
2079
2126
  payableCents: selectionPayable(input, state),
2080
2127
  quoting: waiting.quoting,
@@ -2193,13 +2240,22 @@ function presentSelectionCombination(input) {
2193
2240
  /** The checkout and quote both consume the code decided by this response. */
2194
2241
  async function requestSelectionQuote(input) {
2195
2242
  try {
2196
- const code = "selection" in input.request && input.request.selection.funding.kind === "entitlement" ? "" : input.pending.draftCode.trim();
2243
+ const code = "selection" in input.request && input.request.selection.funding.kind === "entitlement" || input.automaticRefusal !== void 0 ? "" : input.pending.draftCode.trim();
2244
+ const emailProblem = code ? discountEmailProblem(input.email) : null;
2245
+ if (emailProblem) return {
2246
+ state: {
2247
+ ...input.pending,
2248
+ status: "refused",
2249
+ message: emailProblem
2250
+ },
2251
+ fundingChanged: null
2252
+ };
2197
2253
  const result = await input.api.applyDiscountCode({
2198
2254
  customerEmail: input.email.trim(),
2199
2255
  ...input.request,
2200
2256
  ...code ? { discountCode: code } : {}
2201
2257
  });
2202
- return decideSelectionQuoteAnswer(input.pending, result);
2258
+ return input.automaticRefusal === void 0 ? decideSelectionQuoteAnswer(input.pending, result) : decideAutomaticSelectionQuoteAnswer(input.pending, result, input.automaticRefusal);
2203
2259
  } catch {
2204
2260
  return {
2205
2261
  state: {
@@ -2227,20 +2283,12 @@ function useSelectionCombinationPricing(input) {
2227
2283
  latestKey.current = key;
2228
2284
  const registrationPreview = seededFromOptions ? input.registrationPreview : null;
2229
2285
  const current = seedRegistrationQuote(currentSelectionQuote(state, key), registrationPreview);
2230
- const apply = async () => {
2286
+ const apply = async (automaticRefusal) => {
2231
2287
  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
2288
  const pending = {
2242
2289
  ...current,
2243
- status: "pending"
2290
+ status: "pending",
2291
+ ...automaticRefusal === void 0 ? {} : { uncoded: void 0 }
2244
2292
  };
2245
2293
  setCarried(false);
2246
2294
  setState(pending);
@@ -2249,11 +2297,12 @@ function useSelectionCombinationPricing(input) {
2249
2297
  api: input.api,
2250
2298
  email: input.email,
2251
2299
  request,
2252
- pending
2300
+ pending,
2301
+ automaticRefusal
2253
2302
  });
2254
2303
  setState((previous) => latestKey.current === pending.key && previous === pending ? answer.state : previous);
2255
2304
  if (latestPending.current !== pending || latestKey.current !== pending.key || answer.fundingChanged === null) return;
2256
- setCarried(Boolean(pending.draftCode.trim()));
2305
+ setCarried(automaticRefusal === void 0 && Boolean(pending.draftCode.trim()));
2257
2306
  input.onFundingChanged(answer.fundingChanged.funding, answer.fundingChanged.message);
2258
2307
  };
2259
2308
  useEffect(() => {
@@ -2284,14 +2333,10 @@ function useSelectionCombinationPricing(input) {
2284
2333
  };
2285
2334
  return {
2286
2335
  ...decidedSelectionPricing(input, current, apply),
2336
+ refreshAutomatic: (message) => apply(message),
2287
2337
  editCode,
2288
2338
  carryCode,
2289
- reset,
2290
- refuse: (message) => setState({
2291
- ...current,
2292
- status: "refused",
2293
- message
2294
- })
2339
+ reset
2295
2340
  };
2296
2341
  }
2297
2342
  //#endregion
@@ -3699,7 +3744,11 @@ function useEventRegistrationWizardWithDeps(options, deps) {
3699
3744
  });
3700
3745
  clearWaitlistClaimLocation();
3701
3746
  }, []);
3702
- const [submissionErrorMessage, setErrorMessage] = useState("");
3747
+ const [submissionError, setSubmissionError] = useState({
3748
+ message: "",
3749
+ ...defaultEventRegistrationErrorAppearance
3750
+ });
3751
+ const submissionErrorMessage = submissionError.message;
3703
3752
  const [submissionErrorAction, setErrorAction] = useState("retry");
3704
3753
  const [optionsRefreshKey, setOptionsRefreshKey] = useState(0);
3705
3754
  const { authState: portalAuthState, profile: portalProfile } = deps.usePortalAuth();
@@ -3832,6 +3881,14 @@ function useEventRegistrationWizardWithDeps(options, deps) {
3832
3881
  const existingRegistrations = useMemo(() => existingRegistrationResult.registrations.filter((registration) => registration.occurrenceId === registrationOccurrenceId), [existingRegistrationResult.registrations, registrationOccurrenceId]);
3833
3882
  const registrationOptionsState = eligibilityResult.state;
3834
3883
  const eligibility = eligibilityResult.eligibility;
3884
+ const organiserContact = eligibilityResult.organiserContact ?? eligibility?.organiserContact;
3885
+ const setErrorMessage = useCallback((message, appearance = defaultEventRegistrationErrorAppearance) => {
3886
+ setSubmissionError({
3887
+ message,
3888
+ ...appearance,
3889
+ organiserContact
3890
+ });
3891
+ }, [organiserContact]);
3835
3892
  const eligibilityLoading = eligibilityResult.isLoading;
3836
3893
  const eligibilityError = eligibilityResult.error;
3837
3894
  const portalCreditState = eligibilityResult.creditState;
@@ -3978,6 +4035,7 @@ function useEventRegistrationWizardWithDeps(options, deps) {
3978
4035
  const admission = resolveRegistrationAdmission({
3979
4036
  eligibility,
3980
4037
  eligibilityError,
4038
+ organiserContact,
3981
4039
  bookingsClosed: eligibilityResult.bookingsClosed,
3982
4040
  eligibilityLoading,
3983
4041
  holdsOwnPlace: visitorHoldsOwnPlace({
@@ -4413,9 +4471,11 @@ function useEventRegistrationWizardWithDeps(options, deps) {
4413
4471
  requireGuestDetails,
4414
4472
  guests,
4415
4473
  discountCode: discountView.submittedCode,
4474
+ quotedAutomaticDiscountCode: combinationPricing.quotedAutomaticDiscountCode,
4416
4475
  onDiscountRefused: (message) => {
4417
4476
  discountUi.setDiscountUiOpen(true);
4418
- combinationPricing.refuse(message);
4477
+ setOptionsRefreshKey((value) => value + 1);
4478
+ combinationPricing.refreshAutomatic(message);
4419
4479
  },
4420
4480
  quoteReady: combinationPricing.ready,
4421
4481
  selectionFunding: funding.choice,
@@ -4708,6 +4768,9 @@ function useEventRegistrationWizardWithDeps(options, deps) {
4708
4768
  guestSectionShake,
4709
4769
  handleGuestShakeEnd,
4710
4770
  errorMessage,
4771
+ errorHeading: submissionError.heading,
4772
+ errorTone: submissionError.tone,
4773
+ organiserContact: submissionError.organiserContact ?? organiserContact,
4711
4774
  questionFieldErrors: flowState.questionFieldErrors,
4712
4775
  bookingQuestions: questions,
4713
4776
  /** How the selection's questions and agreement are asked: once, or once per run. */
@@ -5227,7 +5290,7 @@ function availableCreditCents(state, currency) {
5227
5290
  }
5228
5291
  //#endregion
5229
5292
  //#region ../blocks/src/system/runtime/nodes/event-registration/EventRegistrationPayment.tsx
5230
- const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-B2c5dR49.mjs"));
5293
+ const Payment = lazy(() => import("./EventEmbeddedCheckoutStep-CjoaG1zy.mjs"));
5231
5294
  /** The one Stripe mount, shared by the standard wizard and headless arrangements. */
5232
5295
  function EventPaymentMount({ state, onComplete, onRetry, onBack, buttonVariant }) {
5233
5296
  if (state.kind === "abandoning") return /* @__PURE__ */ jsx("p", {