@riverbankcms/sdk 0.181.0 → 0.183.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 (226) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +49 -3
  3. package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
  4. package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-CEqZJZEE.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
  6. package/dist/_dts/{client-Chr9pNVW.d.ts → client-B_B_amKD.d.ts} +2 -3
  7. package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
  8. package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
  10. package/dist/_dts/{index-Brl6_I2j.d.ts → index-BOpUh8kO.d.ts} +1 -1
  11. package/dist/_dts/{index-CJkefwYh.d.ts → index-Bizdaxji.d.ts} +2 -2
  12. package/dist/_dts/{index-Diqt0PvG.d.ts → index-BxCmCit0.d.ts} +1 -1
  13. package/dist/_dts/{index-DG0OvBs0.d.ts → index-CjAkEWAp.d.ts} +4 -4
  14. package/dist/_dts/{index-D1WpKwQe.d.ts → index-iuFrbIjt.d.ts} +1 -1
  15. package/dist/_dts/{index-Dy50xUMK.d.ts → index-liuhlOX7.d.ts} +2 -2
  16. package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
  17. package/dist/_dts/{request-CA0izds5.d.ts → request-Gn0O1blj.d.ts} +25042 -23761
  18. package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-xzJ3c9Na.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +91 -2
  55. package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
  56. package/dist/_dts/{types-CgS3xLk8.d.ts → types-BoITy0rA.d.ts} +41 -4
  57. package/dist/_dts/{types-CQrsP1x_.d.ts → types-DBNuMtSk.d.ts} +16 -5
  58. package/dist/_dts/{types-R65DKjPn.d.ts → types-DHMcuoeQ.d.ts} +7 -7
  59. package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BIPO-XlE.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
  62. package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +27 -10
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
  67. package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
  70. package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Fr2qi2C2.mjs} +33 -186
  71. package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
  72. package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-COuEJzbO.mjs} +8 -8
  74. package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +41 -195
  75. package/dist/client/{Page-C7mygH_f.mjs → Page-CgbQZP5g.mjs} +2947 -1018
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
  78. package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
  79. package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-DyXoI3ob.mjs} +221 -20
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
  81. package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-wj4Rloo5.mjs} +1214 -724
  82. package/dist/client/{accordion-CsW8U3ff.mjs → accordion-BVXfjnh-.mjs} +1 -1
  83. package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-DycPGtke.mjs} +191 -71
  84. package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
  87. package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
  88. package/dist/client/{carousel-DJoleFV3.mjs → carousel-DyCLMP8s.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
  90. package/dist/client/{cart-EO5o6uPH.mjs → cart-BuEp_cj4.mjs} +3 -3
  91. package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-CAO39uDG.mjs} +1 -1
  92. package/dist/client/{checkout-NVfZW0kR.mjs → checkout-BoxzT64s.mjs} +3 -3
  93. package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
  95. package/dist/client/client.mjs +466 -94
  96. package/dist/client/{constants-CoOkvw__.mjs → constants-C_8AxMdm.mjs} +1 -1
  97. package/dist/client/{context-CRhn9qzS.mjs → context-D1L0pe__.mjs} +23 -5
  98. package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
  101. package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
  102. package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
  103. package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
  104. package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-aTLifOX7.mjs} +4 -4
  105. package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
  106. package/dist/client/{form-DM8Zbxbv.mjs → form-Dikmc2AO.mjs} +3 -3
  107. package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-zHaQK5I9.mjs} +5 -5
  108. package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-BLl9n8TH.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-DWIsqQru.mjs → gifting-CufPM38H.mjs} +4 -4
  111. package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client--N1GaSY8.mjs} +155 -84
  112. package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
  113. package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
  114. package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-BIaBpmk3.mjs} +2 -2
  115. package/dist/client/{noop-Dl4mZ-rr.mjs → islands-DJDLGQEm.mjs} +16008 -8676
  116. package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +384 -326
  118. package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
  119. package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +291 -101
  121. package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-DTHlWg_F.mjs} +33 -7
  123. package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
  124. package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
  125. package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-DhZAwo60.mjs} +3 -3
  126. package/dist/client/{productList-CiRs3mNb.mjs → productList-BiVpbZK2.mjs} +3 -3
  127. package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
  128. package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-C3OBRg7x.mjs} +2305 -873
  129. package/dist/client/rendering/client.mjs +29 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +5 -5
  132. package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-ms477Z08.mjs} +2 -2
  133. package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
  135. package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
  136. package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
  137. package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
  138. package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
  139. package/dist/client/{shop-Rx_gEMK8.mjs → shop-xt4dQ3HH.mjs} +3 -3
  140. package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
  141. package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-DS8t6749.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/{src-ZSqRK3dD.mjs → src-Do_s2lqH.mjs} +16 -19
  144. package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-Dy3nNfTG.mjs} +13 -17
  145. package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
  147. package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
  148. package/dist/client/{view-CC_yQLSA.mjs → view-4gnPcpWJ.mjs} +24 -9
  149. package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-DDvL3iza.mjs} +375 -186
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
  151. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
  153. package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
  154. package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3871 -1947
  155. package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
  156. package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
  157. package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +51 -20
  158. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
  159. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-CqH91EwA.mjs} +20687 -8562
  161. package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
  164. package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
  165. package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
  166. package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
  167. package/dist/preview-next/container-responsive.css +320 -0
  168. package/dist/preview-next/editor-chrome.css +23 -2
  169. package/dist/preview-next/keepAlive.mjs +1 -1
  170. package/dist/preview-next/middleware.mjs +1 -1
  171. package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-Ch0X99vE.mjs} +183 -18
  172. package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-B2FmczLO.mjs} +5 -5
  173. package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-DtAyv9qA.mjs} +51 -29
  174. package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-BtPqb76u.mjs} +509 -389
  175. package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
  176. package/dist/server/{bindings-DxojjtK3.mjs → bindings-B_9JuU66.mjs} +7 -7
  177. package/dist/server/{client-CDndhbYO.mjs → client-DC7cjiSw.mjs} +489 -93
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +2 -2
  180. package/dist/server/{constants-VyF5nEhL.mjs → constants-d6nPNJpe.mjs} +33 -6
  181. package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
  182. package/dist/server/data/resolveBlockData.mjs +1 -1
  183. package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-DxPrNOAB.mjs} +950 -316
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-hb27HYic.mjs} +11 -10
  186. package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-JToD8wDD.mjs} +3 -3
  187. package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-quBYlSKD.mjs → navigation-B2WhGofA.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +8 -8
  192. package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +3 -3
  194. package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +242 -336
  195. package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
  196. package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-m80Xu2pd.mjs} +1292 -877
  197. package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
  198. package/dist/server/{portal-CMW_b9mG.mjs → portal-B2wCQno_.mjs} +1 -1
  199. package/dist/server/portal.mjs +2 -2
  200. package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-BWIkFaXq.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
  203. package/dist/server/{registry-DM9dHfDC.mjs → registry-KtsOsAzY.mjs} +21703 -10936
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +9 -9
  209. package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
  210. package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
  211. package/dist/server/server.mjs +3 -3
  212. package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-ChEZDRwU.mjs} +38 -15
  213. package/dist/server/theme-bridge.mjs +34 -9
  214. package/dist/server/theme.mjs +2 -2
  215. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
  216. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
  217. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  218. package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
  219. package/dist/server/{validation-DG5jX3jH.mjs → validation-Cvi-1TZZ.mjs} +13 -9
  220. package/dist/server/{version-CipbxPHL.mjs → version-B-icAIV1.mjs} +1 -1
  221. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  222. package/dist/styles/index.css +2568 -154
  223. package/package.json +1 -1
  224. package/dist/client/gifting.parts-CedLgwa_.mjs +0 -86
  225. package/dist/client/runtimeResponse-DL_ARBpa.mjs +0 -3
  226. package/dist/client/types-BEaKfam_.mjs +0 -778
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Fs as bookingCollectionDatesOpen, Is as flexibleBalanceDueDay, Ks as resolveWholeSeriesPaymentDates, rc as getBookingInstalmentProtectedDepositAmountCents, uc as publicEventPricingDisplay } from "./wizardSteps-BliJOzEX.mjs";
2
+ import { Gs as flexibleBalanceDueDay, Ws as bookingCollectionDatesOpen, fc as getBookingInstalmentProtectedDepositAmountCents, tc as resolveWholeSeriesPaymentDates, yc as publicEventPricingDisplay } from "./wizardSteps-DDvL3iza.mjs";
3
3
  //#region ../blocks/src/system/runtime/nodes/events/domain/depositOffer.ts
4
4
  const NO_DEPOSIT = { kind: "none" };
5
5
  /**
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
  import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
3
- import { Dn as parsePositiveCents, Tt as normalizeCurrencyCode, _t as unknownKind, c as blockSiteTermsSchema, ft as bookingQuestionsDocumentAnswerValueSchema, gt as exactSchema, ht as evolvingSchema, k as beforeBookingQuestionsPresentationSchema, kn as toNonNegativeCents, m as calendarWindowPageSchema, pt as bookingQuestionsTaskDetailSchema, v as publicPassProductCollectionSchema } from "./src-ZSqRK3dD.mjs";
3
+ import { Dn as parsePositiveCents, Tt as normalizeCurrencyCode, _t as unknownKind, c as blockSiteTermsSchema, ft as bookingQuestionsDocumentAnswerValueSchema, gt as exactSchema, ht as evolvingSchema, k as beforeBookingQuestionsPresentationSchema, kn as toNonNegativeCents, m as calendarWindowPageSchema, pt as bookingQuestionsTaskDetailSchema, v as publicPassProductCollectionSchema } from "./src-Do_s2lqH.mjs";
4
4
  import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
5
- import { C as customerProfileSchema, E as eventTicketBreakdownLineSchema, S as portalCreditSchema, T as eventGuestSchema, b as customerPassSchema, d as verifiedSiteTermsAcceptanceSchema, n as customerOrderSchema, s as cancelledMoneySchema, v as customerMembershipSchema, w as enabledModulesSchema } from "./portalOrders-COGn4BKG.mjs";
5
+ import { C as customerProfileSchema, E as eventTicketBreakdownLineSchema, S as portalCreditSchema, T as eventGuestSchema, b as customerPassSchema, d as verifiedSiteTermsAcceptanceSchema, n as customerOrderSchema, s as cancelledMoneySchema, v as customerMembershipSchema, w as enabledModulesSchema } from "./portalOrders-tCxS04g0.mjs";
6
6
  import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
7
7
  import { t as EVENT_BOOKING_RESPONSE_QUERY } from "./events-9LPvwbWp.mjs";
8
8
  import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
@@ -1822,6 +1822,23 @@ function portalVisitorFor(config) {
1822
1822
  sessionToken: auth.token
1823
1823
  });
1824
1824
  }
1825
+ /** The booking wizard waits on these options, so a stall must end in its "Try again" error. */
1826
+ const REGISTRATION_OPTIONS_TIMEOUT_MS = 15e3;
1827
+ async function fetchWithTimeout(url, init, timeoutMs) {
1828
+ const controller = new AbortController();
1829
+ const timer = setTimeout(() => controller.abort(), timeoutMs);
1830
+ try {
1831
+ return await fetch(url, {
1832
+ ...init,
1833
+ signal: controller.signal
1834
+ });
1835
+ } catch (error) {
1836
+ if (controller.signal.aborted) throw new BlockApiError("The request took too long. Try again.", 0, "TIMEOUT");
1837
+ throw error;
1838
+ } finally {
1839
+ clearTimeout(timer);
1840
+ }
1841
+ }
1825
1842
  function createBlockApi(config) {
1826
1843
  const { baseUrl, authOverrides, siteId, isPreview, readAuthority } = config;
1827
1844
  const auth = readAuthority ? readAuthority.kind === "preview" ? {
@@ -1851,7 +1868,7 @@ function createBlockApi(config) {
1851
1868
  return queryParams;
1852
1869
  }
1853
1870
  async function request(endpoint, options) {
1854
- const { path, body, query, skipDedup = false, decoder } = options ?? {};
1871
+ const { path, body, query, skipDedup = false, decoder, timeoutMs } = options ?? {};
1855
1872
  const requestUrl = `${baseUrl}${path ?? endpoint.path}`;
1856
1873
  const selectedAuth = selectAuth(endpoint);
1857
1874
  const queryParams = bindReadQuery(endpoint, query);
@@ -1867,7 +1884,7 @@ function createBlockApi(config) {
1867
1884
  };
1868
1885
  if (body !== void 0) fetchOptions.body = JSON.stringify(body);
1869
1886
  const doFetch = async () => {
1870
- const response = await fetch(url, fetchOptions);
1887
+ const response = timeoutMs === void 0 ? await fetch(url, fetchOptions) : await fetchWithTimeout(url, fetchOptions, timeoutMs);
1871
1888
  if (!response.ok) {
1872
1889
  const details = await extractErrorDetails(response);
1873
1890
  throw new BlockApiError(details.message, response.status, details.code, details.tag, details.fieldErrors, details.giftCardExpiry);
@@ -2048,7 +2065,8 @@ function createBlockApi(config) {
2048
2065
  const path = buildPath(EVENTS.registrationOptions.path, { siteId: sid });
2049
2066
  const response = await request(EVENTS.registrationOptions, {
2050
2067
  path,
2051
- body: data
2068
+ body: data,
2069
+ timeoutMs: REGISTRATION_OPTIONS_TIMEOUT_MS
2052
2070
  });
2053
2071
  if (!isSingleRegistrationOptions(response)) throw new Error("Registration options came back for a selection instead of one booking.");
2054
2072
  return response;
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Cn as toUtcIsoDateTimeString, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, an as formatDateTimeRange, cn as formatTime, fn as resolveBookingDisplayContext, in as formatDateTime$1, nn as formatDate } from "./src-ZSqRK3dD.mjs";
2
+ import { Cn as toUtcIsoDateTimeString, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, an as formatDateTimeRange, cn as formatTime, fn as resolveBookingDisplayContext, in as formatDateTime$1, nn as formatDate } from "./src-Do_s2lqH.mjs";
3
3
  //#region ../blocks/src/portal/dateFormatting.ts
4
4
  /** Optional API timestamps enter the display model here; invalid values never render a Date. */
5
5
  function readInstant(value) {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as BlockApiError } from "./context-CRhn9qzS.mjs";
2
+ import { i as BlockApiError } from "./context-D1L0pe__.mjs";
3
3
  //#region ../blocks/src/system/runtime/shared/utils/demoBookingPassStorage.ts
4
4
  const STORAGE_KEY = "riverbank:demo-booking-passes:v1";
5
5
  const CHECKOUT_RETURN_EMAIL_KEY = "riverbank:demo-booking-checkout-email:v1";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { hn as staticHeaderChromeRuntime } from "./newsletter-form.interactive-RuM86VAv.mjs";
3
- import { Gr as buildCartDisplay } from "./wizardSteps-BliJOzEX.mjs";
4
- import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { _n as staticHeaderChromeRuntime } from "./newsletter-form.interactive-hzpkW9NQ.mjs";
3
+ import { Gr as buildCartDisplay } from "./wizardSteps-DDvL3iza.mjs";
4
+ import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-Bc9DBbVp.mjs";
5
5
  import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
6
- import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-C9PcsSTj.mjs";
6
+ import { n as resolveDedicatedCheckoutPath, t as useCommerceCart } from "./shop-commerce-store-7mO6KY7_.mjs";
7
7
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
8
8
  import * as React$1 from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,25 +1,25 @@
1
1
  "use client";
2
- import { A as bookingPanelHeading, Cn as formatEventPriceDisplay, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-RuM86VAv.mjs";
3
- import { An as formatCurrencyAmount, t as assertNever } from "./src-ZSqRK3dD.mjs";
4
- import { An as selectionConfirmationHint, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as selectMostOpenCapacitySource, Dn as runPricingChoice, Dr as getTicketSelectionTotal, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Es as INCOMPATIBLE_ATTENDANCE_MESSAGE, Fn as selectionItemsLabel, In as selectionPlacesLabel, It as ADD_A_PLACE, Jt as confirmationPaymentRows, K as registrationStopsHere, Kn as combinationOfferLine, Li as getRegistrationSuccessCopy, Ln as selectionPlacesNote, Mn as selectionEntitlementNote, Nn as selectionIncludes, On as runUnitPriceCents, Or as getTicketTypeLineMax, Os as setRoomChoicePeople, Rn as selectionRowAvailability, So as selectEventCapacitySource, Tn as runChoiceUsable, U as placeCountCeiling, Ur as shownVenue, V as fullyBookedLabel, Y as resolveRegistrationAvailabilityBlocker, Yt as resolveFinishedPresentation, Z as settledRemainingPlaces, Zn as selectionItemName, _i as resolveEventRegistrationScopedEvents, _n as SEVERAL_BOOKINGS_ACCOUNT_NOTE, ao as bookingPresentation, ar as formatRunScheduleLines, bo as getRemainingPlaces, c as registrationStepLabelContext, dc as publicEventPricingStrategy, dr as occurrenceTitleOverride, dt as paymentChoiceDetails, et as isEventRegistrationAvailable, fc as publicEventPricingType, ft as paymentChoicePrice, ga as formatPrice, gn as SELECTION_LIMIT_NOTE, ha as formatCentsAsCurrencyInput, ir as formatRegistrationSchedule, jn as selectionConsentLabel, jr as setTicketLineQuantity, kn as selectionAtLimit, l as areEventRegistrationPaymentSelectionsEqual, lc as publicEventPricingCurrency, lr as getTicketTypeAvailabilityLabel, mo as canJoinEventWaitlistOnAnyMode, n as getEventSelectionMode, nr as formatDate, or as formatTime, po as canJoinEventWaitlist, pr as withOccurrenceTitle, qn as combinationOffersOf, r as panelShouldOpen, rr as formatEventDateTime, s as registrationStepLabel, tr as formatBookingWhen, tt as normalizeEventRegistrationMaxTickets, ur as getVisibleTicketTypes, vo as getEventAvailability, wr as canRequestTicketOption, xo as isEventFull, yn as canToggleSelectionItem, yt as entryChoosesEvent, z as shouldPromptForLogin } from "./wizardSteps-BliJOzEX.mjs";
5
- import { i as portalPath } from "./portalRoutes-D72yvtDh.mjs";
6
- import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-B4z-e4Wq.mjs";
7
- import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-DSqCJL8E.mjs";
8
- import { n as useBlockApi } from "./context-CRhn9qzS.mjs";
9
- import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
10
- import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-CoOkvw__.mjs";
11
- import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-DFLPyuqe.mjs";
2
+ import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, Tn as formatEventPriceDisplay, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-hzpkW9NQ.mjs";
3
+ import { An as formatCurrencyAmount, t as assertNever } from "./src-Do_s2lqH.mjs";
4
+ import { An as selectionConfirmationHint, Ao as isEventFull, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as canJoinEventWaitlistOnAnyMode, Dn as runPricingChoice, Do as getEventAvailability, Dr as getTicketSelectionTotal, Ea as formatPrice, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Fn as selectionItemsLabel, In as selectionPlacesLabel, Is as INCOMPATIBLE_ATTENDANCE_MESSAGE, It as ADD_A_PLACE, Jt as confirmationPaymentRows, K as registrationStopsHere, Kn as combinationOfferLine, Ln as selectionPlacesNote, Mn as selectionEntitlementNote, Mo as selectMostOpenCapacitySource, Nn as selectionIncludes, On as runUnitPriceCents, Or as getTicketTypeLineMax, Rn as selectionRowAvailability, Rs as setRoomChoicePeople, So as canJoinEventWaitlist, Ta as formatCentsAsCurrencyInput, Tn as runChoiceUsable, U as placeCountCeiling, Ur as shownVenue, V as fullyBookedLabel, Vi as getRegistrationSuccessCopy, Y as resolveRegistrationAvailabilityBlocker, Yt as resolveFinishedPresentation, Z as settledRemainingPlaces, Zn as selectionItemName, _n as SEVERAL_BOOKINGS_ACCOUNT_NOTE, ar as formatRunScheduleLines, bc as publicEventPricingStrategy, bi as resolveEventRegistrationScopedEvents, c as registrationStepLabelContext, dr as occurrenceTitleOverride, dt as paymentChoiceDetails, et as isEventRegistrationAvailable, ft as paymentChoicePrice, gn as SELECTION_LIMIT_NOTE, ir as formatRegistrationSchedule, jn as selectionConsentLabel, jo as selectEventCapacitySource, jr as setTicketLineQuantity, kn as selectionAtLimit, ko as getRemainingPlaces, l as areEventRegistrationPaymentSelectionsEqual, lo as bookingPresentation, lr as getTicketTypeAvailabilityLabel, n as getEventSelectionMode, nr as formatDate, or as formatTime, pr as withOccurrenceTitle, qn as combinationOffersOf, r as panelShouldOpen, rr as formatEventDateTime, s as registrationStepLabel, tr as formatBookingWhen, tt as normalizeEventRegistrationMaxTickets, ur as getVisibleTicketTypes, vc as publicEventPricingCurrency, wr as canRequestTicketOption, xc as publicEventPricingType, yn as canToggleSelectionItem, yt as entryChoosesEvent, z as shouldPromptForLogin } from "./wizardSteps-DDvL3iza.mjs";
5
+ import { i as portalPath } from "./portalRoutes-DTHlWg_F.mjs";
6
+ import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-DQNkfNLA.mjs";
7
+ import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-BTLYhVxD.mjs";
8
+ import { n as useBlockApi } from "./context-D1L0pe__.mjs";
9
+ import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-Bc9DBbVp.mjs";
10
+ import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-C_8AxMdm.mjs";
11
+ import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-DyXoI3ob.mjs";
12
+ import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-HFVkoOac.mjs";
12
13
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
13
- import { t as CheckboxChoice } from "./CheckboxChoice-C8i4NraK.mjs";
14
+ import { t as CheckboxChoice } from "./CheckboxChoice-BdGxZWeg.mjs";
14
15
  import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
15
16
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
16
17
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
17
- import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-uWfR2kaG.mjs";
18
- import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-klgfGn7f.mjs";
18
+ import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-qqTxGGS4.mjs";
19
+ import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-DvdFFWOT.mjs";
19
20
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
20
- import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-atfDU82W.mjs";
21
21
  import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
22
- import { t as CalendarAction } from "./CalendarAction-D_Glwvz2.mjs";
22
+ import { t as CalendarAction } from "./CalendarAction-RcdaStG7.mjs";
23
23
  import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
24
24
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
25
25
  import { createPortal } from "react-dom";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
4
- import { t as EventCalendarClient } from "./EventCalendar.client-zDL4-t-B.mjs";
2
+ import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
4
+ import { t as EventCalendarClient } from "./EventCalendar.client-BtkJW8bA.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BtCg87-N.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-B6nQeqvH.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventCalendar.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
3
- import { n as EventCombinedIslandClient } from "./EventCombined.client-uciDKLID.mjs";
4
- import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
2
+ import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
3
+ import { n as EventCombinedIslandClient } from "./EventCombined.client-DxaGjFFS.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BtCg87-N.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-B6nQeqvH.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventCombined.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
4
- import { t as EventListingClient } from "./EventListing.client-DA57Qoyx.mjs";
2
+ import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
4
+ import { t as EventListingClient } from "./EventListing.client-BhGxfbjt.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BtCg87-N.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-B6nQeqvH.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventListing.tsx
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { n as EventRegistrationIslandClient } from "./event-registration.client-D7YYKySQ.mjs";
3
- import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
4
- import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
2
+ import { n as EventRegistrationIslandClient } from "./event-registration.client-DiSxkBUP.mjs";
3
+ import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-BtCg87-N.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-B6nQeqvH.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventRegistration.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
4
- import { t as FormNodeClient } from "./form.client-e2z_Tlgk.mjs";
2
+ import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
4
+ import { t as FormNodeClient } from "./form.client-zHaQK5I9.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
6
  import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
7
7
  import "react";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { n as err, r as ok, t as assertNever } from "./src-ZSqRK3dD.mjs";
3
- import { n as useBlockApi } from "./context-CRhn9qzS.mjs";
4
- import { i as listLookSlot } from "./noop-Dl4mZ-rr.mjs";
5
- import { x as clsx } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { n as err, r as ok, t as assertNever } from "./src-Do_s2lqH.mjs";
3
+ import { n as useBlockApi } from "./context-D1L0pe__.mjs";
4
+ import { d as listLookSlot } from "./islands-DJDLGQEm.mjs";
5
+ import { x as clsx } from "./ThemedButton-Bc9DBbVp.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
7
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Ctljy1a3.mjs";
7
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-BLl9n8TH.mjs";
8
8
  import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
9
9
  import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
10
10
  import { useReducer, useRef } from "react";
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { i as listLookSlot, r as listLookControl } from "./noop-Dl4mZ-rr.mjs";
3
- import { t as CheckboxChoice } from "./CheckboxChoice-C8i4NraK.mjs";
4
- import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-BNnKuir8.mjs";
2
+ import { d as listLookSlot, u as listLookControl } from "./islands-DJDLGQEm.mjs";
3
+ import { t as CheckboxChoice } from "./CheckboxChoice-BdGxZWeg.mjs";
4
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-BG7my0Qf.mjs";
5
5
  import "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/form.fields.tsx
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  "use client";
3
- import { Cn as toUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, jn as formatGiftCardAmountLabel, nn as formatDate } from "../src-ZSqRK3dD.mjs";
4
- import { i as portalPath } from "../portalRoutes-D72yvtDh.mjs";
5
- import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-CRhn9qzS.mjs";
6
- import { t as logger } from "../noop-Dl4mZ-rr.mjs";
7
- import { n as ThemedButton, r as ThemedButtonLink } from "../ThemedButton-PFOhXktM.mjs";
3
+ import { Cn as toUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, jn as formatGiftCardAmountLabel, nn as formatDate } from "../src-Do_s2lqH.mjs";
4
+ import { i as portalPath } from "../portalRoutes-DTHlWg_F.mjs";
5
+ import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-D1L0pe__.mjs";
6
+ import { c as logger } from "../islands-DJDLGQEm.mjs";
7
+ import { n as ThemedButton, r as ThemedButtonLink } from "../ThemedButton-Bc9DBbVp.mjs";
8
8
  import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
9
- import { s as readChosenGiftAmounts } from "../gifting.parts-CedLgwa_.mjs";
10
- import { t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-CWDGSTBu.mjs";
11
- import { t as GiftingClient } from "../gifting.client-QsSWF0uA.mjs";
9
+ import { c as readChosenGiftAmounts } from "../gifting.parts-CRtiRzo-.mjs";
10
+ import { t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-BunFTnIq.mjs";
11
+ import { t as GiftingClient } from "../gifting.client--N1GaSY8.mjs";
12
12
  import React from "react";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
14
  import { useRouter } from "next/navigation";
@@ -62,6 +62,7 @@ function previewState(value) {
62
62
  submitting: false,
63
63
  feedback: null
64
64
  };
65
+ case "cancelled": return { kind: "cancelled" };
65
66
  case "already_claimed": return { kind: "already_claimed" };
66
67
  case "expired": return {
67
68
  kind: "expired",
@@ -102,6 +103,7 @@ function reduceRedeemState(state, action) {
102
103
  claim: action.claim,
103
104
  signIn: action.claim.signIn ? "pending" : "not_signed_in"
104
105
  };
106
+ case "cancelled": return { kind: "cancelled" };
105
107
  case "already_claimed": return { kind: "already_claimed" };
106
108
  case "expired": return {
107
109
  kind: "expired",
@@ -133,6 +135,7 @@ function claimErrorAction(error) {
133
135
  type: "feedback",
134
136
  value: "rate_limited"
135
137
  };
138
+ if (error.tag === "GIFT_CARD_CANCELLED") return { type: "cancelled" };
136
139
  if (error.tag === "GIFT_CARD_ALREADY_CLAIMED") return { type: "already_claimed" };
137
140
  return {
138
141
  type: "feedback",
@@ -282,7 +285,11 @@ function RedeemResult({ state, ...props }) {
282
285
  /* @__PURE__ */ jsx("p", {
283
286
  className: "rb-portal-notice rb-portal-notice--problem",
284
287
  role: "alert",
285
- children: state.kind === "already_claimed" ? /* @__PURE__ */ jsxs(Fragment, { children: [
288
+ children: state.kind === "cancelled" ? /* @__PURE__ */ jsxs(Fragment, { children: [
289
+ "This gift card has been cancelled. If you think that's a mistake, please ",
290
+ /* @__PURE__ */ jsx(Contact, { ...props }),
291
+ "."
292
+ ] }) : state.kind === "already_claimed" ? /* @__PURE__ */ jsxs(Fragment, { children: [
286
293
  "This gift card has already been redeemed. If that wasn't you, ",
287
294
  /* @__PURE__ */ jsx(Contact, { ...props }),
288
295
  "."
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-CRhn9qzS.mjs";
3
- import { s as readChosenGiftAmounts } from "./gifting.parts-CedLgwa_.mjs";
4
- import { t as defineIslandPropsDecoder } from "./propsDecoder--uHW4tFM.mjs";
5
- import { t as GiftingClient } from "./gifting.client-QsSWF0uA.mjs";
2
+ import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
3
+ import { c as readChosenGiftAmounts } from "./gifting.parts-CRtiRzo-.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
5
+ import { t as GiftingClient } from "./gifting.client--N1GaSY8.mjs";
6
6
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";