@riverbankcms/sdk 0.173.0 → 0.174.1

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 (208) hide show
  1. package/README.md +6 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-O50mTMCY.d.ts → BlocksIslandsHydrator-YRmc-Yxz.d.ts} +1 -1
  3. package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-Du0zX1B-.d.ts} +27 -16
  4. package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-4L8v3FkY.d.ts} +14 -7
  5. package/dist/_dts/{client-ZlNEIvlU.d.ts → client-B1J6Akyf.d.ts} +1 -1
  6. package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-CGGYI0u_.d.ts} +2 -2
  7. package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CHMlw9hT.d.ts} +5 -4
  8. package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DIHSU1Vr.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-JITXD6BU.d.ts} +2 -2
  10. package/dist/_dts/{index-Dq_AboWN.d.ts → index-BLEKFHt1.d.ts} +1 -1
  11. package/dist/_dts/{index-BnatulTs.d.ts → index-BgOr1Xyz.d.ts} +3 -3
  12. package/dist/_dts/{index-KXh8FQ2s.d.ts → index-CF62FntA.d.ts} +2 -2
  13. package/dist/_dts/{index-CJzs-yIJ.d.ts → index-CXZSy_9M.d.ts} +2 -2
  14. package/dist/_dts/{index-DutLU2d2.d.ts → index-D9ZYmGAJ.d.ts} +2 -1
  15. package/dist/_dts/{index-DW3eeNph.d.ts → index-DpJm0NpL.d.ts} +4 -4
  16. package/dist/_dts/{index-C611wjIL.d.ts → index-yWDbUojb.d.ts} +1 -1
  17. package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-M-s0p0rq.d.ts} +11 -11
  18. package/dist/_dts/{request-Bysk4QPI.d.ts → request-BK-pHf0P.d.ts} +3685 -1762
  19. package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-DZAlnhwt.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-CGa6QMgc.d.ts → resolvePageContent-DXUCWJ3y.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +9 -9
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  28. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  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 +4 -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 +13 -8
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +36 -204
  54. package/dist/_dts/{types-BwitGNTl.d.ts → types-CwmB2NHU.d.ts} +7 -7
  55. package/dist/_dts/{types-BoEk9ZON.d.ts → types-DjVNADXR.d.ts} +3 -3
  56. package/dist/_dts/{types-kpp8XyXv.d.ts → types-Dmow_FI6.d.ts} +2 -2
  57. package/dist/_dts/{validation-ChftKX-o.d.ts → validation-h8t1HLlL.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DRVx_XLi.mjs} +17 -17
  59. package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CwrMzj-k.mjs} +10 -10
  60. package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C2_hFT6K.mjs} +1 -1
  61. package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
  62. package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-Az1-TIEI.mjs} +6 -6
  63. package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-1p-pJ1lg.mjs} +5 -5
  64. package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-CDkkP-Lv.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-DK3aaz62.mjs} +7 -7
  66. package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-WeUipfIP.mjs} +4 -4
  67. package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-D3sbAeDo.mjs} +1 -1
  68. package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-DL3gGGmF.mjs} +3 -3
  69. package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-DKFImKOx.mjs} +6 -6
  70. package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-Dn9TpWyL.mjs} +45 -18
  71. package/dist/client/{LocationMapActions-CdRPU6gp.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
  72. package/dist/client/{MapDrawingSvg-DCLtxOnt.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
  73. package/dist/client/{Page-D46Dmr7b.mjs → Page-BpeP9xdt.mjs} +731 -1549
  74. package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-CP6zrwkl.mjs} +6 -242
  75. package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
  76. package/dist/client/{accordion-P8xcfKxq.mjs → accordion-nR7D4m1a.mjs} +1 -1
  77. package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-Ce-mQZ7W.mjs} +362 -47
  78. package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-B-qT_AQB.mjs} +4 -4
  79. package/dist/client/bookings.mjs +6 -6
  80. package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CrE3TDpW.mjs} +2 -29
  81. package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CVUOatsY.mjs} +1 -1
  82. package/dist/client/{cart-0Q4fjw_K.mjs → cart-DE0K6E0R.mjs} +3 -3
  83. package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-C23E6WQ5.mjs} +1 -1
  84. package/dist/client/{checkout-1J-3ftxF.mjs → checkout-76cdHyPL.mjs} +3 -3
  85. package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-DJOzqb26.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-CvIP5DCO.mjs} +1 -1
  87. package/dist/client/client.mjs +159 -7
  88. package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
  89. package/dist/client/{course-CmOuoZHN.mjs → course-DHIrXqNT.mjs} +2 -2
  90. package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
  91. package/dist/client/{dateFormatting-Dmfaczzq.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
  92. package/dist/client/{demoPortalMagicLink-CL7KGRta.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
  93. package/dist/client/{display-lL-YRApN.mjs → display-Cf_j5stk.mjs} +2574 -763
  94. package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-5GD5o4Mt.mjs} +3 -3
  95. package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-D7Oz1q2L.mjs} +1 -1
  96. package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-zbuX36aA.mjs} +137 -131
  97. package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-uZrksODt.mjs} +4 -4
  98. package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-DxhvNAx8.mjs} +4 -4
  99. package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-DCIH4BYG.mjs} +2 -2
  100. package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-B9KrnPvc.mjs} +4 -4
  101. package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-TjnURMKl.mjs} +4 -4
  102. package/dist/client/{form-DO6qKH3M.mjs → form-CfqIAhfN.mjs} +3 -3
  103. package/dist/client/{form.client-D12ljYiX.mjs → form.client-CL6fF0cW.mjs} +6 -6
  104. package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-Bf-L66Gg.mjs} +1 -1
  105. package/dist/client/{formatDate-BnhfIpCa.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
  106. package/dist/client/gifting/client.mjs +2 -2
  107. package/dist/client/{headerSection-BtFWtoUm.mjs → headerSection-WVXtOcuW.mjs} +2 -2
  108. package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-Bb7GAZpO.mjs} +9 -7
  109. package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-BqOVRdIc.mjs} +1 -1
  110. package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-DOVe-qY3.mjs} +3 -3
  111. package/dist/client/{noop-CN0o0yjH.mjs → noop-D5mFWXtN.mjs} +30 -6
  112. package/dist/client/portal/client.mjs +346 -272
  113. package/dist/client/{product-detail.client-d_sNCapC.mjs → product-detail.client-CNzeFnFf.mjs} +1 -1
  114. package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-LKpzC7pj.mjs} +1 -1
  115. package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-D2JNeEgx.mjs} +3 -3
  116. package/dist/client/{productList-CMx4-XlG.mjs → productList-DTgZXOEq.mjs} +3 -3
  117. package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-mpBQt2AT.mjs} +3 -3
  118. package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-DdTJyar2.mjs} +31 -47
  119. package/dist/client/rendering/client.mjs +26 -26
  120. package/dist/client/rendering/islands.mjs +1 -1
  121. package/dist/client/rendering.mjs +16 -13
  122. package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
  123. package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-8cfSgT0E.mjs} +1 -1
  124. package/dist/client/{runtimeResponse-IkOwKZD0.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
  125. package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
  126. package/dist/client/{shop-Cy6xXDM7.mjs → shop-5LBhftWx.mjs} +3 -3
  127. package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-DkValjZj.mjs} +12 -12
  128. package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-BOmXFmk_.mjs} +1 -1
  129. package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-D0ifS6KX.mjs} +2 -2
  130. package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-BTtZqNmv.mjs} +13 -13
  131. package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-DNRqG4aX.mjs} +18 -24
  132. package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-Nky6kPYr.mjs} +2 -2
  133. package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-DZArznD_.mjs} +25 -152
  134. package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
  135. package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BBnStWXU.mjs} +1 -1
  136. package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-d7viY_mu.mjs} +1 -1
  137. package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-Da2JqxGC.mjs} +6 -6
  138. package/dist/client/{view-Sw075FOY.mjs → view-BvuYmQJ5.mjs} +2 -2
  139. package/dist/client/{view-D6yebI4r.mjs → view-D9ObkFtz.mjs} +12 -11
  140. package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
  141. package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
  142. package/dist/preview-next/client/{PageSectionToolbar-DG2rXUmo.mjs → PageSectionToolbar-DwxHT-2k.mjs} +57 -144
  143. package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-D4SBxGU6.mjs} +758 -1279
  144. package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-D8mUct32.mjs} +29 -26
  145. package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-L2AEdNUQ.mjs} +50 -30
  146. package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-bhVAU2D2.mjs} +47 -19
  147. package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
  148. package/dist/preview-next/client/{previewAssistantSlot-La6MerV_.mjs → previewAssistantSlot-Jpj_HDra.mjs} +101003 -51855
  149. package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-CYTDvx4u.mjs} +1 -1
  150. package/dist/preview-next/client/runtime.mjs +3 -3
  151. package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CZHX6J_4.mjs} +2 -2
  152. package/dist/preview-next/client/siteStyleAccess-DmGIG9Hk.mjs +9356 -0
  153. package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-DQCyswQ-.mjs} +2 -2
  154. package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.mjs → useOpenBlockForSetup-LwE5yXvL.mjs} +19 -4
  155. package/dist/preview-next/container-responsive.css +117 -32
  156. package/dist/preview-next/keepAlive.mjs +1 -1
  157. package/dist/preview-next/middleware.mjs +1 -1
  158. package/dist/preview-next/{route-contract-CPV30ABr.mjs → route-contract-BOuNcOcN.mjs} +153 -2
  159. package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-wfJfhs08.mjs} +10 -5
  160. package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-BtrJNHTB.mjs} +23 -6
  161. package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
  162. package/dist/server/{bindings-Dge4sqel.mjs → bindings-P1CF2Gm6.mjs} +6 -4
  163. package/dist/server/{client-VVIQjC4r.mjs → client-CGtU5fHI.mjs} +156 -4
  164. package/dist/server/config-validation.mjs +1 -1
  165. package/dist/server/config.mjs +2 -2
  166. package/dist/server/customCss-BGB8gMVb.mjs +210 -0
  167. package/dist/server/data/resolveBlockData.mjs +1 -1
  168. package/dist/server/index.mjs +2 -2
  169. package/dist/server/{loadContent-BIJb3WAK.mjs → loadContent-ChnkJSay.mjs} +8 -9
  170. package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-DesHhgxj.mjs} +3 -3
  171. package/dist/server/lookMediaFrame-BBr0mkze.mjs +2626 -0
  172. package/dist/server/manifest.mjs +2 -2
  173. package/dist/server/next.mjs +9 -8
  174. package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-DHEkHcZs.mjs} +3 -4
  175. package/dist/server/page-converter.mjs +2 -2
  176. package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-0jvm0RBk.mjs} +29 -331
  177. package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-8-f1Zr9e.mjs} +14 -6
  178. package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-CuVFoV4z.mjs} +370 -291
  179. package/dist/server/{parseThemeForPersistence-CtgRtvo3.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
  180. package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
  181. package/dist/server/portal.mjs +1 -1
  182. package/dist/server/{prebuild-BjvFb0CA.mjs → prebuild-Bms_Y7wQ.mjs} +1 -1
  183. package/dist/server/prebuild.mjs +1 -1
  184. package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-5oC5kyHe.mjs} +2 -2
  185. package/dist/server/{registry-BMCfcev6.mjs → registry-DmqxC8th.mjs} +1258 -3166
  186. package/dist/server/rendering/components/pageShared.mjs +1 -1
  187. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  188. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -2
  189. package/dist/server/rendering/server.mjs +3 -3
  190. package/dist/server/rendering.mjs +7 -7
  191. package/dist/server/{resolveBlockData--yUbI-Ll.mjs → resolveBlockData-EYogtwQc.mjs} +1 -1
  192. package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
  193. package/dist/server/{schema-D5Vfmqzw.mjs → schema-CUDHMirj.mjs} +46 -153
  194. package/dist/server/server.mjs +3 -3
  195. package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
  196. package/dist/server/theme-bridge.mjs +21 -15
  197. package/dist/server/theme.mjs +2 -2
  198. package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
  199. package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
  200. package/dist/server/{validation-EgTtnTcY.mjs → validation-Bt_8IL1g.mjs} +4 -4
  201. package/dist/server/{version-LjgU0Cq1.mjs → version-DT_efohp.mjs} +1 -1
  202. package/dist/styles/index.css +989 -279
  203. package/package.json +1 -1
  204. package/dist/client/bookability-SargNwlO.mjs +0 -17
  205. package/dist/client/runtimeResponse-Wd6kwhE_.mjs +0 -3
  206. package/dist/preview-next/client/SiteChromeCustomizeButton-D1MGyN_Z.mjs +0 -55403
  207. package/dist/server/customCss-QymcmOZ-.mjs +0 -97
  208. package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { gn as staticHeaderChromeRuntime } from "./shop.interactive-CXhYl0DW.mjs";
3
- import { t as buildCartDisplay } from "./display-lL-YRApN.mjs";
2
+ import { _n as staticHeaderChromeRuntime } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { t as buildCartDisplay } from "./display-Cf_j5stk.mjs";
4
4
  import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
5
5
  import { n as NAV_DROPDOWN_SHIFT_PROPERTY } from "./navDropdownSizing-CUjDrcIt.mjs";
6
6
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
7
7
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
8
- import { n as useCommerceCart } from "./shop-commerce-store-DjoUpL3a.mjs";
8
+ import { n as useCommerceCart } from "./shop-commerce-store-BOmXFmk_.mjs";
9
9
  import * as React$1 from "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  import { createPortal } from "react-dom";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-D6yebI4r.mjs";
2
+ import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-D9ObkFtz.mjs";
3
3
  import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { $ as DEFAULT_BOOKING_BUTTON_TEXT, L as offeringNounForEvent, M as buildEventRegistrationInteractiveIslandProps, N as displayButtonText, at as courseTitleOf, et as bookingBarPlacement, in as formatEventPriceDisplay, it as bookingPanelHeading, j as buildEventRegistrationDisplayFromScopedEvents, nt as bookingEntry, rt as bookingEntryProgress, tt as bookingCardEntry } from "./shop.interactive-CXhYl0DW.mjs";
3
- import { $t as runPricingChoice, An as formatDate, B as placeCountCeiling, C as panelShouldOpen, D as registrationStepLabel, Dn as areEntitlementsDisabledForTicketCount, Ec as publicEventPricingCurrency, En as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, G as resolveRegistrationAvailabilityBlocker, Ht as SELECTION_LIMIT_NOTE, L as shouldPromptForLogin, La as resolveEventRegistrationScopedEvents, Ln as getTicketTypeAvailabilityLabel, Mn as formatPassCreditUsageLabel, Nn as formatRegistrationSchedule, O as registrationStepLabelContext, Oc as publicEventPricingStrategy, Oi as formatCentsAsCurrencyInput, Pn as formatTime, Qn as canRequestTicketOption, Qt as runNeedsPricingChoice, R as fullyBookedLabel, Rn as getVisibleTicketTypes, S as getEventSelectionMode, Sn as selectionItemName, Ut as SEVERAL_BOOKINGS_ACCOUNT_NOTE, Vn as withOccurrenceTitle, Wt as canToggleSelectionItem, X as isEventRegistrationAvailable, Xr as canJoinEventWaitlistOnAnyMode, Yr as canJoinEventWaitlist, Z as normalizeEventRegistrationMaxTickets, Zt as runChoiceUsable, _r as shownVenue, ac as INCOMPATIBLE_ATTENDANCE_MESSAGE, ai as selectMostOpenCapacitySource, an as selectionIncludes, ar as setTicketLineQuantity, bt as confirmationPaymentRows, cn as selectionPlacesLabel, ei as getEventAvailability, en as runUnitPriceCents, er as getTicketLineQuantity, fn as severalConfirmationSentence, ii as selectEventCapacitySource, in as selectionEntitlementNote, jn as formatEventDateTime, k as areEventRegistrationPaymentSelectionsEqual, kc as publicEventPricingType, ki as formatPrice$1, kn as formatBookingWhen, ln as selectionPlacesNote, mi as getRegistrationSuccessCopy, mr as placesLeftLabel, ni as getRemainingPlaces, nn as selectionConfirmationHint, nr as getTicketTypeLineMax, oi as groupPublicEventsByRun, ot as paymentChoiceDetails, pr as bookingPresentation, q as settledRemainingPlaces, ri as isEventFull, rn as selectionConsentLabel, sn as selectionItemsLabel, st as paymentChoicePrice, tn as selectionAtLimit, tr as getTicketSelectionTotal, un as selectionRowAvailability, vn as combinationOfferLine, xt as resolveFinishedPresentation, yn as combinationOffersOf, zn as occurrenceTitleOverride } from "./display-lL-YRApN.mjs";
4
- import { fn as formatCurrencyAmount } from "./noop-CN0o0yjH.mjs";
5
- import { S as formatCreditProductUnits, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
6
- import { c as NavigationHandOffPanel, i as SiteTermsChangedNotice, l as DiscountCodeDisclosure, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-CARUWQ_E.mjs";
7
- import { n as useBlockApi } from "./context-D0KCgbOq.mjs";
8
- import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-DwMlJB2V.mjs";
2
+ import { L as offeringNounForEvent, M as buildEventRegistrationInteractiveIslandProps, N as displayButtonText, an as formatEventPriceDisplay, at as bookingPanelHeading, et as DEFAULT_BOOKING_BUTTON_TEXT, it as bookingEntryProgress, j as buildEventRegistrationDisplayFromScopedEvents, nt as bookingCardEntry, ot as courseTitleOf, rt as bookingEntry, tt as bookingBarPlacement } from "./shop.interactive-DNRqG4aX.mjs";
3
+ import { $c as publicEventPricingCurrency, $t as runPricingChoice, An as formatDate, B as placeCountCeiling, C as panelShouldOpen, D as registrationStepLabel, Dn as areEntitlementsDisabledForTicketCount, En as ENTITLEMENT_SINGLE_TICKET_TOOLTIP, G as resolveRegistrationAvailabilityBlocker, Ha as resolveEventRegistrationScopedEvents, Ht as SELECTION_LIMIT_NOTE, L as shouldPromptForLogin, Ln as getTicketTypeAvailabilityLabel, Mi as formatCentsAsCurrencyInput, Mn as formatPassCreditUsageLabel, Nc as INCOMPATIBLE_ATTENDANCE_MESSAGE, Ni as formatPrice, Nn as formatRegistrationSchedule, O as registrationStepLabelContext, Pn as formatTime, Qn as canRequestTicketOption, Qt as runNeedsPricingChoice, R as fullyBookedLabel, Rn as getVisibleTicketTypes, S as getEventSelectionMode, Sn as selectionItemName, Ut as SEVERAL_BOOKINGS_ACCOUNT_NOTE, Vn as withOccurrenceTitle, Wt as canToggleSelectionItem, X as isEventRegistrationAvailable, Z as normalizeEventRegistrationMaxTickets, Zt as runChoiceUsable, _i as getRegistrationSuccessCopy, _r as shownVenue, an as selectionIncludes, ao as getEventAvailability, ar as setTicketLineQuantity, bt as confirmationPaymentRows, cn as selectionPlacesLabel, co as isEventFull, do as groupPublicEventsByRun, en as runUnitPriceCents, eo as canJoinEventWaitlist, er as getTicketLineQuantity, fn as severalConfirmationSentence, in as selectionEntitlementNote, jn as formatEventDateTime, k as areEventRegistrationPaymentSelectionsEqual, kn as formatBookingWhen, ln as selectionPlacesNote, lo as selectEventCapacitySource, mr as placesLeftLabel, nl as publicEventPricingType, nn as selectionConfirmationHint, nr as getTicketTypeLineMax, ot as paymentChoiceDetails, pr as bookingPresentation, q as settledRemainingPlaces, rn as selectionConsentLabel, sn as selectionItemsLabel, so as getRemainingPlaces, st as paymentChoicePrice, tl as publicEventPricingStrategy, tn as selectionAtLimit, to as canJoinEventWaitlistOnAnyMode, tr as getTicketSelectionTotal, un as selectionRowAvailability, uo as selectMostOpenCapacitySource, vn as combinationOfferLine, xt as resolveFinishedPresentation, yn as combinationOffersOf, zn as occurrenceTitleOverride } from "./display-Cf_j5stk.mjs";
4
+ import { mn as formatCurrencyAmount } from "./noop-D5mFWXtN.mjs";
5
+ import { S as formatCreditProductUnits, p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
6
+ import { c as NavigationHandOffPanel, i as SiteTermsChangedNotice, l as DiscountCodeDisclosure, r as SiteTermsAgreementField, s as eventSiteTermsSurface, t as BookingConfirmation } from "./DemoBookingPortalAccess-1p-pJ1lg.mjs";
7
+ import { n as useBlockApi } from "./context-CNlesLfF.mjs";
8
+ import { a as getWaitlistClaimEntryIdFromUrl, i as eventRegistrationCheckoutReturnRequest, o as getWaitlistClaimTokenFromUrl, r as useEventRegistrationWizard, t as EventPaymentMount } from "./EventRegistrationPayment-Dn9TpWyL.mjs";
9
9
  import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
10
- 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-CrSZCZn1.mjs";
11
10
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
12
11
  import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
13
12
  import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
14
13
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
15
14
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
16
- import { i as useBookingNowIso } from "./BookingQuestionFields-BewbU_cV.mjs";
17
- import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-Cyy0meCH.mjs";
15
+ import { i as useBookingNowIso } from "./BookingQuestionFields-DZMrGvBh.mjs";
16
+ import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-d7viY_mu.mjs";
18
17
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
19
- import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-LHQMODqB.mjs";
18
+ import { i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, r as MagicLinkForm, t as BookingMailingListNote } from "./BookingMailingListNote-CwrMzj-k.mjs";
20
19
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.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-CP6zrwkl.mjs";
21
21
  import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
22
22
  import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
23
23
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -520,10 +520,10 @@ function CombinationPricing(props) {
520
520
  className: "er-summary-bar-pricing",
521
521
  children: [/* @__PURE__ */ jsx("span", {
522
522
  className: "er-summary-bar-price er-summary-bar-price--struck",
523
- children: formatPrice$1(props.listCents, props.currency)
523
+ children: formatPrice(props.listCents, props.currency)
524
524
  }), /* @__PURE__ */ jsx("span", {
525
525
  className: "er-summary-bar-price",
526
- children: formatPrice$1(props.totalCents, props.currency)
526
+ children: formatPrice(props.totalCents, props.currency)
527
527
  })]
528
528
  });
529
529
  }
@@ -652,7 +652,7 @@ function EntitlementSummaryRow(props) {
652
652
  children: props.copy.productPrice ? /* @__PURE__ */ jsx("span", {
653
653
  className: "er-summary-bar-included",
654
654
  children: props.copy.productPrice
655
- }) : productPrice && productCurrency ? formatPrice$1(productPrice, productCurrency) : null
655
+ }) : productPrice && productCurrency ? formatPrice(productPrice, productCurrency) : null
656
656
  })]
657
657
  });
658
658
  }
@@ -699,9 +699,26 @@ function PaymentProductRow(props) {
699
699
  function summaryCountLabel(wizard, summaryEvent) {
700
700
  if (wizard.severalItems !== null) return selectionPlacesLabel(wizard.severalItems, wizard.selection, wizard.ticketsCount);
701
701
  if (wizard.ticketsCount <= 0) return null;
702
- const unit = summaryEvent && publicEventPricingStrategy(summaryEvent.pricing) === "tiered" ? "ticket" : "place";
702
+ const tiered = summaryEvent !== null && summaryEvent !== void 0 && publicEventPricingStrategy(summaryEvent.pricing) === "tiered";
703
+ if (tiered) {
704
+ const byType = ticketTypeCountLabel(wizard.selectedTicketLines, wizard.visibleTicketTypes);
705
+ if (byType) return byType;
706
+ }
707
+ const unit = tiered ? "ticket" : "place";
703
708
  return `${wizard.ticketsCount} ${unit}${wizard.ticketsCount === 1 ? "" : "s"}`;
704
709
  }
710
+ /** "1 Standard, 1 Concession" when tickets of more than one type are chosen; otherwise null. */
711
+ function ticketTypeCountLabel(lines, ticketTypes) {
712
+ const chosen = lines.filter((line) => line.quantity > 0);
713
+ if (chosen.length < 2) return null;
714
+ const parts = [];
715
+ for (const line of chosen) {
716
+ const name = ticketTypes.find((type) => type.pricingOptionId === line.pricingOptionId)?.name;
717
+ if (!name) return null;
718
+ parts.push(`${line.quantity} ${name}`);
719
+ }
720
+ return parts.join(", ");
721
+ }
705
722
  /**
706
723
  * The footer's one line (issue 1581): how many, the discount's name, then
707
724
  * when. Ticket types are tickets; a single price, or a course, is places.
@@ -809,7 +826,7 @@ function SeveralStepSummary({ wizard }) {
809
826
  className: "er-summary-bar-pricing",
810
827
  children: /* @__PURE__ */ jsx("span", {
811
828
  className: "er-summary-bar-price",
812
- children: formatPrice$1(total, currency)
829
+ children: formatPrice(total, currency)
813
830
  })
814
831
  }) : null,
815
832
  /* @__PURE__ */ jsx(CombinationDetail, { working })
@@ -918,21 +935,21 @@ function EventRegistrationSummaryBar(props) {
918
935
  className: "er-summary-bar-pricing",
919
936
  children: productMethod ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
920
937
  className: "er-summary-bar-price er-summary-bar-price--struck",
921
- children: formatPrice$1(subtotalCents, summaryCurrency)
938
+ children: formatPrice(subtotalCents, summaryCurrency)
922
939
  }), /* @__PURE__ */ jsx("div", {
923
940
  className: "er-summary-bar-included",
924
941
  children: entitlementCopy.pricingNote
925
942
  })] }) : flexibleBalanceSummary ? /* @__PURE__ */ jsx(FlexibleBalancePricing, {
926
943
  summary: flexibleBalanceSummary,
927
- fallbackDueToday: formatPrice$1(discountedTotalCents, summaryCurrency)
944
+ fallbackDueToday: formatPrice(discountedTotalCents, summaryCurrency)
928
945
  }) : autoAppliedDiscount && autoAppliedDiscountCents > 0 ? /* @__PURE__ */ jsxs(Fragment, { children: [
929
946
  /* @__PURE__ */ jsx("span", {
930
947
  className: "er-summary-bar-price er-summary-bar-price--struck",
931
- children: formatPrice$1(subtotalCents, summaryCurrency)
948
+ children: formatPrice(subtotalCents, summaryCurrency)
932
949
  }),
933
950
  /* @__PURE__ */ jsx("span", {
934
951
  className: "er-summary-bar-price",
935
- children: formatPrice$1(discountedTotalCents, summaryCurrency)
952
+ children: formatPrice(discountedTotalCents, summaryCurrency)
936
953
  }),
937
954
  autoAppliedDiscount.description ? /* @__PURE__ */ jsx("div", {
938
955
  className: "er-summary-bar-product-detail er-summary-bar-discount-detail",
@@ -940,7 +957,7 @@ function EventRegistrationSummaryBar(props) {
940
957
  }) : null
941
958
  ] }) : /* @__PURE__ */ jsx("span", {
942
959
  className: "er-summary-bar-price",
943
- children: formatPrice$1(subtotalCents, summaryCurrency)
960
+ children: formatPrice(subtotalCents, summaryCurrency)
944
961
  })
945
962
  }),
946
963
  /* @__PURE__ */ jsx(CombinationDetail, { working })
@@ -1426,9 +1443,9 @@ function BookingQuantityPrompt(props) {
1426
1443
  }
1427
1444
  function SlidingScaleAmountField(props) {
1428
1445
  const id = props.id ?? "er-sliding-amount";
1429
- const minLabel = formatPrice$1(props.slidingScale.minAmount, props.currency);
1430
- const maxLabel = formatPrice$1(props.slidingScale.maxAmount, props.currency);
1431
- const suggestedLabel = props.slidingScale.suggestedAmount !== null ? formatPrice$1(props.slidingScale.suggestedAmount, props.currency) : null;
1446
+ const minLabel = formatPrice(props.slidingScale.minAmount, props.currency);
1447
+ const maxLabel = formatPrice(props.slidingScale.maxAmount, props.currency);
1448
+ const suggestedLabel = props.slidingScale.suggestedAmount !== null ? formatPrice(props.slidingScale.suggestedAmount, props.currency) : null;
1432
1449
  return /* @__PURE__ */ jsxs("div", {
1433
1450
  className: "er-field",
1434
1451
  children: [
@@ -1482,9 +1499,10 @@ function TicketTypeQuantityRows(props) {
1482
1499
  const availabilityLabel = getTicketTypeAvailabilityLabel(ticketType);
1483
1500
  const ticketTypeRemainingLabel = placesLeftLabel({
1484
1501
  kind: "ticketType",
1485
- remaining: ticketType.availability.remainingPlaces
1502
+ remaining: ticketType.availability.remainingPlaces,
1503
+ dateRemaining: props.availableSpots ?? null
1486
1504
  }, props.display);
1487
- const priceLabel = ticketType.priceAmount > 0 ? formatPrice$1(ticketType.priceAmount, props.currency) : "Free";
1505
+ const priceLabel = ticketType.priceAmount > 0 ? formatPrice(ticketType.priceAmount, props.currency) : "Free";
1488
1506
  const maxAllowed = getTicketTypeLineMax({
1489
1507
  currentQuantity: quantity,
1490
1508
  totalSelectedQuantity,
@@ -1792,7 +1810,7 @@ function RunTicketTypeChoice({ run, name, choice, facts, onChange }) {
1792
1810
  id: option.id,
1793
1811
  label: option.name,
1794
1812
  details: option.description ? [option.description] : [],
1795
- price: option.priceAmount > 0 ? formatPrice$1(option.priceAmount, currency) : "Free",
1813
+ price: option.priceAmount > 0 ? formatPrice(option.priceAmount, currency) : "Free",
1796
1814
  selected: choice.pricingOptionId === option.id,
1797
1815
  disabled: !usable,
1798
1816
  disabledReason: usable ? void 0 : "Not available",
@@ -1929,110 +1947,98 @@ function SeveralRunsTicketStep(props) {
1929
1947
  }
1930
1948
  //#endregion
1931
1949
  //#region ../blocks/src/system/runtime/nodes/event-registration/SelectionPaymentSummary.tsx
1932
- /** Pence always show here ("£36.00"), so whole and part pounds line up in the list. */
1933
- function formatPrice(cents, currency) {
1934
- return formatCurrencyAmount(cents, currency);
1935
- }
1936
- function Rows(props) {
1937
- return props.rows.map((row) => /* @__PURE__ */ jsxs("div", {
1938
- className: "er-confirmation-summary__row",
1939
- children: [/* @__PURE__ */ jsx("dt", { children: row.label }), /* @__PURE__ */ jsx("dd", { children: row.value })]
1940
- }, row.key));
1941
- }
1942
- /**
1943
- * Several items with combination prices (issue 1725): each combination's
1944
- * items under its name with what each now costs, the rest "At the usual
1945
- * price", then the places, any code, the total and the saving.
1946
- */
1947
- function CombinedSummary(props) {
1948
- const { summary, currency } = props;
1949
- const money = (cents) => formatPrice(cents, currency);
1950
- return /* @__PURE__ */ jsxs(Fragment, { children: [
1951
- /* @__PURE__ */ jsxs("div", {
1952
- className: "er-confirmation-summary er-selection-payment",
1953
- children: [summary.groups.map((group) => /* @__PURE__ */ jsxs(React.Fragment, { children: [group.heading ? /* @__PURE__ */ jsx("p", {
1954
- className: "er-selection-payment__group",
1955
- children: group.heading
1956
- }) : null, /* @__PURE__ */ jsx("dl", {
1957
- className: "er-selection-payment__lines",
1958
- children: /* @__PURE__ */ jsx(Rows, { rows: group.lines.map((line) => ({
1959
- key: line.key,
1960
- label: line.label,
1961
- value: money(line.amountCents)
1962
- })) })
1963
- })] }, group.key)), /* @__PURE__ */ jsx("dl", {
1964
- className: "er-selection-payment__lines er-selection-payment__totals",
1965
- children: /* @__PURE__ */ jsx(Rows, { rows: [
1966
- {
1967
- key: "places",
1968
- label: summary.placesLabel,
1969
- value: money(summary.subtotalCents)
1970
- },
1971
- ...summary.reductions.map((row) => ({
1972
- key: row.key,
1973
- label: row.label,
1974
- value: `−${money(row.amountCents)}`
1975
- })),
1976
- {
1977
- key: "total",
1978
- label: "Total",
1979
- value: money(summary.totalCents)
1980
- }
1981
- ] })
1982
- })]
1983
- }),
1984
- summary.note ? /* @__PURE__ */ jsx("p", {
1985
- className: "er-combination-note",
1986
- role: "status",
1987
- children: summary.note
1988
- }) : null,
1989
- summary.savingCents !== null ? /* @__PURE__ */ jsxs("p", {
1990
- className: "er-combination-saving",
1991
- children: ["You save ", money(summary.savingCents)]
1992
- }) : null
1993
- ] });
1950
+ function Lines(props) {
1951
+ return /* @__PURE__ */ jsx("dl", {
1952
+ className: "er-selection-payment__lines",
1953
+ children: props.lines.map((line) => /* @__PURE__ */ jsxs("div", {
1954
+ className: "er-confirmation-summary__row",
1955
+ children: [/* @__PURE__ */ jsxs("dt", { children: [line.label, line.multiplier ? /* @__PURE__ */ jsxs("span", {
1956
+ className: "er-selection-payment__multiplier",
1957
+ children: [
1958
+ line.multiplier.places,
1959
+ " × ",
1960
+ props.money(line.multiplier.unitPriceCents)
1961
+ ]
1962
+ }) : null] }), /* @__PURE__ */ jsx("dd", { children: props.money(line.amountCents) })]
1963
+ }, line.key))
1964
+ });
1965
+ }
1966
+ function Totals(props) {
1967
+ const { money } = props;
1968
+ return /* @__PURE__ */ jsxs("dl", {
1969
+ className: "er-selection-payment__lines er-selection-payment__totals",
1970
+ children: [[...props.subtotalCents === null ? [] : [{
1971
+ key: "subtotal",
1972
+ label: "Subtotal",
1973
+ value: money(props.subtotalCents)
1974
+ }], ...props.reductions.map((row) => ({
1975
+ key: row.key,
1976
+ label: row.label,
1977
+ value: `−${money(row.amountCents)}`
1978
+ }))].map((row) => /* @__PURE__ */ jsxs("div", {
1979
+ className: "er-confirmation-summary__row",
1980
+ children: [/* @__PURE__ */ jsx("dt", { children: row.label }), /* @__PURE__ */ jsx("dd", { children: row.value })]
1981
+ }, row.key)), /* @__PURE__ */ jsxs("div", {
1982
+ className: "er-confirmation-summary__row er-selection-payment__total",
1983
+ children: [/* @__PURE__ */ jsx("dt", { children: "Total" }), /* @__PURE__ */ jsx("dd", { children: money(props.totalCents) })]
1984
+ })]
1985
+ });
1994
1986
  }
1995
1987
  /**
1996
- * What several items cost, above the payment choice (issue 1725): each item
1997
- * at its price for one place, the places on each, then the total; grouped by
1998
- * combination when combination prices apply.
1988
+ * What several items cost, above the payment choice (issue 1725): the items
1989
+ * and places as a caption, each item at what all its places cost, then the
1990
+ * total (after a subtotal and any code when something comes off). With
1991
+ * combination prices the items are grouped by combination, with the note
1992
+ * and saving under the list.
1999
1993
  */
2000
1994
  function SelectionPaymentSummary(props) {
2001
1995
  const { summary, currency } = props;
1996
+ const money = (cents) => formatCurrencyAmount(cents, currency);
1997
+ const groups = summary.kind === "combined" ? summary.groups : [{
1998
+ key: "items",
1999
+ heading: null,
2000
+ lines: summary.lines
2001
+ }];
2002
2002
  return /* @__PURE__ */ jsxs("div", {
2003
2003
  className: "rb-reg-stack er-stack er-selection-payment-summary",
2004
- children: [/* @__PURE__ */ jsx("h3", {
2005
- tabIndex: -1,
2006
- className: "er-title",
2007
- children: "Your booking"
2008
- }), summary.kind === "combined" ? /* @__PURE__ */ jsx(CombinedSummary, {
2009
- summary,
2010
- currency
2011
- }) : /* @__PURE__ */ jsx("dl", {
2012
- className: "er-confirmation-summary er-selection-payment",
2013
- children: /* @__PURE__ */ jsx(Rows, { rows: [
2014
- ...summary.lines.map((line) => ({
2015
- key: line.key,
2016
- label: line.label,
2017
- value: formatPrice(line.amountCents, currency)
2018
- })),
2019
- {
2020
- key: "places",
2021
- label: summary.placesLabel,
2022
- value: formatPrice(summary.subtotalCents, currency)
2023
- },
2024
- ...summary.reductions.map((row) => ({
2025
- key: row.key,
2026
- label: row.label,
2027
- value: `−${formatPrice(row.amountCents, currency)}`
2028
- })),
2029
- {
2030
- key: "total",
2031
- label: "Total",
2032
- value: formatPrice(summary.totalCents, currency)
2033
- }
2034
- ] })
2035
- })]
2004
+ children: [
2005
+ /* @__PURE__ */ jsx("h3", {
2006
+ tabIndex: -1,
2007
+ className: "er-title",
2008
+ children: "Your booking"
2009
+ }),
2010
+ /* @__PURE__ */ jsxs("div", {
2011
+ className: "er-confirmation-summary er-selection-payment",
2012
+ children: [
2013
+ /* @__PURE__ */ jsx("p", {
2014
+ className: "er-selection-payment__caption",
2015
+ children: summary.caption
2016
+ }),
2017
+ groups.map((group) => /* @__PURE__ */ jsxs(React.Fragment, { children: [group.heading ? /* @__PURE__ */ jsx("p", {
2018
+ className: "er-selection-payment__group",
2019
+ children: group.heading
2020
+ }) : null, /* @__PURE__ */ jsx(Lines, {
2021
+ lines: group.lines,
2022
+ money
2023
+ })] }, group.key)),
2024
+ /* @__PURE__ */ jsx(Totals, {
2025
+ subtotalCents: summary.subtotalCents,
2026
+ reductions: summary.reductions,
2027
+ totalCents: summary.totalCents,
2028
+ money
2029
+ })
2030
+ ]
2031
+ }),
2032
+ summary.kind === "combined" && summary.note ? /* @__PURE__ */ jsx("p", {
2033
+ className: "er-combination-note",
2034
+ role: "status",
2035
+ children: summary.note
2036
+ }) : null,
2037
+ summary.kind === "combined" && summary.savingCents !== null ? /* @__PURE__ */ jsxs("p", {
2038
+ className: "er-combination-saving",
2039
+ children: ["You save ", money(summary.savingCents)]
2040
+ }) : null
2041
+ ]
2036
2042
  });
2037
2043
  }
2038
2044
  //#endregion
@@ -2928,7 +2934,7 @@ function SiteCreditPreviewPanel(props) {
2928
2934
  children: [
2929
2935
  "You have",
2930
2936
  " ",
2931
- formatPrice$1(preview.availableCreditCents, preview.creditCurrency),
2937
+ formatPrice(preview.availableCreditCents, preview.creditCurrency),
2932
2938
  " ",
2933
2939
  "in site credit, but it can't be used for this",
2934
2940
  " ",
@@ -2947,18 +2953,18 @@ function SiteCreditPreviewPanel(props) {
2947
2953
  }),
2948
2954
  /* @__PURE__ */ jsxs("p", {
2949
2955
  className: "er-text",
2950
- children: ["Available: ", formatPrice$1(preview.availableCreditCents, props.currency)]
2956
+ children: ["Available: ", formatPrice(preview.availableCreditCents, props.currency)]
2951
2957
  }),
2952
2958
  /* @__PURE__ */ jsx("p", {
2953
2959
  className: "er-text",
2954
- children: preview.outcome === "credit_only" ? `Your credit covers this registration. ${formatPrice$1(preview.appliedCreditCents, props.currency)} will be used and no card payment is needed.` : preview.cardDueNowCents === 0 ? `${formatPrice$1(preview.appliedCreditCents, props.currency)} will be applied automatically. No card payment is needed today.` : `${formatPrice$1(preview.appliedCreditCents, props.currency)} will be applied automatically. ${formatPrice$1(preview.cardDueNowCents, props.currency)} is due by card today.`
2960
+ children: preview.outcome === "credit_only" ? `Your credit covers this registration. ${formatPrice(preview.appliedCreditCents, props.currency)} will be used and no card payment is needed.` : preview.cardDueNowCents === 0 ? `${formatPrice(preview.appliedCreditCents, props.currency)} will be applied automatically. No card payment is needed today.` : `${formatPrice(preview.appliedCreditCents, props.currency)} will be applied automatically. ${formatPrice(preview.cardDueNowCents, props.currency)} is due by card today.`
2955
2961
  }),
2956
2962
  preview.laterBalanceCents > 0 && /* @__PURE__ */ jsxs("p", {
2957
2963
  className: "er-text er-text--muted",
2958
2964
  children: [
2959
2965
  "Remaining balance after today:",
2960
2966
  " ",
2961
- formatPrice$1(preview.laterBalanceCents, props.currency)
2967
+ formatPrice(preview.laterBalanceCents, props.currency)
2962
2968
  ]
2963
2969
  }),
2964
2970
  preview.remainingCreditCents > 0 && /* @__PURE__ */ jsxs("p", {
@@ -2966,7 +2972,7 @@ function SiteCreditPreviewPanel(props) {
2966
2972
  children: [
2967
2973
  "Credit left afterwards:",
2968
2974
  " ",
2969
- formatPrice$1(preview.remainingCreditCents, props.currency)
2975
+ formatPrice(preview.remainingCreditCents, props.currency)
2970
2976
  ]
2971
2977
  }),
2972
2978
  preview.manualDiscountPending && /* @__PURE__ */ jsx("p", {
@@ -3077,7 +3083,7 @@ function purchasablePassChoices(eligibility) {
3077
3083
  },
3078
3084
  label: pass.name,
3079
3085
  details: [`${pass.creditsTotal} credits`, ...pass.description ? [pass.description] : []],
3080
- price: formatPrice$1(pass.price, pass.currency)
3086
+ price: formatPrice(pass.price, pass.currency)
3081
3087
  }));
3082
3088
  }
3083
3089
  function purchasableMembershipChoices(eligibility) {
@@ -3093,7 +3099,7 @@ function purchasableMembershipChoices(eligibility) {
3093
3099
  },
3094
3100
  label: membership.name,
3095
3101
  details: membership.description ? [membership.description] : [],
3096
- price: `${formatPrice$1(membership.price, membership.currency)}/${membership.interval}`
3102
+ price: `${formatPrice(membership.price, membership.currency)}/${membership.interval}`
3097
3103
  }));
3098
3104
  }
3099
3105
  /** Passes and memberships, when the selection can use them (one item, issue 1725). */
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
4
- import { t as EventCalendarClient } from "./EventCalendar.client-CaI6upCX.mjs";
2
+ import { t as BlockApiProvider } from "./context-CNlesLfF.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-mpBQt2AT.mjs";
4
+ import { t as EventCalendarClient } from "./EventCalendar.client-CDkkP-Lv.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DTET8f__.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-8cfSgT0E.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-D0KCgbOq.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
4
- import { n as EventCombinedIslandClient } from "./EventCombined.client-CoRUaYHY.mjs";
2
+ import { t as BlockApiProvider } from "./context-CNlesLfF.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-mpBQt2AT.mjs";
4
+ import { n as EventCombinedIslandClient } from "./EventCombined.client-DK3aaz62.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DTET8f__.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-8cfSgT0E.mjs";
7
7
  import "react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  //#region src/rendering/islands/enhancers/eventCombined.tsx
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
3
- import { t as EventDetailsIslandClient } from "./event-details.client-DH1-Jxsh.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-mpBQt2AT.mjs";
3
+ import { t as EventDetailsIslandClient } from "./event-details.client-D7Oz1q2L.mjs";
4
4
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
5
5
  import "react";
6
6
  import { jsx } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
4
- import { t as EventListingClient } from "./EventListing.client-DvJ5tGTx.mjs";
2
+ import { t as BlockApiProvider } from "./context-CNlesLfF.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-mpBQt2AT.mjs";
4
+ import { t as EventListingClient } from "./EventListing.client-DL3gGGmF.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DTET8f__.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-8cfSgT0E.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-GuuElczW.mjs";
3
- import { t as BlockApiProvider } from "./context-D0KCgbOq.mjs";
4
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
2
+ import { n as EventRegistrationIslandClient } from "./event-registration.client-zbuX36aA.mjs";
3
+ import { t as BlockApiProvider } from "./context-CNlesLfF.mjs";
4
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-mpBQt2AT.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
- import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DTET8f__.mjs";
6
+ import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-8cfSgT0E.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-D0KCgbOq.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
4
- import { t as FormNodeClient } from "./form.client-D12ljYiX.mjs";
2
+ import { t as BlockApiProvider } from "./context-CNlesLfF.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-mpBQt2AT.mjs";
4
+ import { t as FormNodeClient } from "./form.client-CL6fF0cW.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 { Wa as listLookSlot } from "./display-lL-YRApN.mjs";
3
- import { h as ok, m as err, p as assertNever } from "./creditProducts-BTRX4edc.mjs";
4
- import { n as useBlockApi } from "./context-D0KCgbOq.mjs";
2
+ import { vo as listLookSlot } from "./display-Cf_j5stk.mjs";
3
+ import { h as ok, m as err, p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
4
+ import { n as useBlockApi } from "./context-CNlesLfF.mjs";
5
5
  import { S as clsx } from "./ThemedButton-DuaYtnvG.mjs";
6
6
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
7
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-C8QHaQOI.mjs";
7
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Bf-L66Gg.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";
@@ -108,7 +108,7 @@ const FormNodeClient = ({ render }) => {
108
108
  const formData = new FormData(e.currentTarget);
109
109
  const honeypot = formData.get("company");
110
110
  if (typeof honeypot !== "string" || honeypot.trim()) return;
111
- await submit({
111
+ if (!(await submit({
112
112
  authorization: protection.submission.authorization,
113
113
  formId: form.id,
114
114
  data: submittedFormFields(formData),
@@ -117,7 +117,7 @@ const FormNodeClient = ({ render }) => {
117
117
  referer: typeof window !== "undefined" ? window.location.href : void 0,
118
118
  userAgent: typeof navigator !== "undefined" ? navigator.userAgent : void 0
119
119
  }
120
- });
120
+ })).ok) protection.reset();
121
121
  };
122
122
  if (state.tag === "succeeded") return /* @__PURE__ */ jsx(FormSuccessMessage, { display: render.display });
123
123
  const errorBanner = state.tag === "failed" ? /* @__PURE__ */ jsx(FeedbackMessage, {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Ua as listLookControl, Wa as listLookSlot } from "./display-lL-YRApN.mjs";
2
+ import { _o as listLookControl, vo as listLookSlot } from "./display-Cf_j5stk.mjs";
3
3
  import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
4
4
  import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-C-ql101B.mjs";
5
5
  import "react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Bt as formatDateTime, Rt as formatDate$1, on as parseUtcIsoDateTimeString, tn as parseBookingLocalDate } from "./noop-CN0o0yjH.mjs";
2
+ import { Bt as formatDate$1, Ht as formatDateTime, cn as parseUtcIsoDateTimeString, rn as parseBookingLocalDate } from "./noop-D5mFWXtN.mjs";
3
3
  //#region ../blocks/src/bindings/formatDate.ts
4
4
  /** Admit stored civil dates or offset-aware instants before core projection. */
5
5
  function formatDate(value, context, options) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  "use client";
3
- import { Rt as formatDate, in as resolveBookingTimeZoneId, pn as formatGiftCardAmountLabel, sn as toUtcIsoDateTimeString, t as logger } from "../noop-CN0o0yjH.mjs";
4
- import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-D0KCgbOq.mjs";
3
+ import { Bt as formatDate, hn as formatGiftCardAmountLabel, ln as toUtcIsoDateTimeString, on as resolveBookingTimeZoneId, t as logger } from "../noop-D5mFWXtN.mjs";
4
+ import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-CNlesLfF.mjs";
5
5
  import { i as ThemedButtonLink, r as ThemedButton } from "../ThemedButton-DuaYtnvG.mjs";
6
6
  import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
7
7
  import React from "react";
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-BZbUKstC.mjs";
3
- import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-B-eLGs2C.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-mpBQt2AT.mjs";
3
+ import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-5GD5o4Mt.mjs";
4
4
  //#region src/rendering/islands/enhancers/headerSection.ts
5
5
  const decode = defineIslandPropsDecoder("headerSection");
6
6
  const enhance = (root, props) => {