@riverbankcms/sdk 0.184.0 → 0.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (220) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DjBTJYiF.d.ts → BlocksIslandsHydrator-Bu0O7l4p.d.ts} +1 -1
  2. package/dist/_dts/{Page-BpXEM2ET.d.ts → Page-DYoL0IWL.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-Bb3h7KRE.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
  4. package/dist/_dts/{client-DgTRRtl_.d.ts → client-BKdjJ7A0.d.ts} +23 -4
  5. package/dist/_dts/{content-types-DZQJp_ak.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Ww1fmd-c.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-BGc7dju6.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
  8. package/dist/_dts/{index-Cni4jykw.d.ts → index-6WypKfbu.d.ts} +4 -4
  9. package/dist/_dts/{index-ukS-Ffem.d.ts → index-BMwrFX_K.d.ts} +1 -1
  10. package/dist/_dts/{index-W9-7djG3.d.ts → index-Bp5lk6I8.d.ts} +1 -1
  11. package/dist/_dts/{index-Cc85KVLW.d.ts → index-DTKn1H8g.d.ts} +1 -1
  12. package/dist/_dts/{index-DxxTQ_0V.d.ts → index-DX-Xe54X.d.ts} +2 -2
  13. package/dist/_dts/{index-BECaUNYs.d.ts → index-SD1fTP_7.d.ts} +2 -2
  14. package/dist/_dts/{loadContent-BlSWTlbD.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
  15. package/dist/_dts/{request-CZz2BoXJ.d.ts → request-BwYvMqLf.d.ts} +459 -109
  16. package/dist/_dts/{resolveBlockData-D12HXnS3.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-BteMsSGP.d.ts → resolvePageContent-BwUDLi_W.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  28. package/dist/_dts/sdk/src/index.d.ts +7 -7
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  36. package/dist/_dts/sdk/src/portal/index.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{serviceBookingOutline-aTlOvO3U.d.ts → serviceBookingOutline-CMNev0gz.d.ts} +10 -7
  54. package/dist/_dts/{types-CCcQlRBi.d.ts → types-BBazdRQf.d.ts} +3 -3
  55. package/dist/_dts/{types-Du4aMnWC.d.ts → types-BwngWRQ8.d.ts} +7 -7
  56. package/dist/_dts/{types-Bi7R07RX.d.ts → types-C9_amrul.d.ts} +2 -2
  57. package/dist/_dts/{validation-CjCWVmwe.d.ts → validation-B58kUTuV.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-CFLWxjxR.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
  59. package/dist/client/{BookingMailingListNote-C4LcfwyA.mjs → BookingMailingListNote-D_khdttF.mjs} +59 -60
  60. package/dist/client/{BookingQuestionFields-DdcmoHqQ.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +48 -35
  61. package/dist/client/{CalendarAction-DYGewmvh.mjs → CalendarAction-C-AbMmct.mjs} +1 -1
  62. package/dist/client/{CalendarNavigationChevron-ZfrUiiiI.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +6 -6
  63. package/dist/client/{DemoBookingPortalAccess-pzkGVkgG.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +4 -4
  64. package/dist/client/{EventCalendar.client-Ct1B3xI4.mjs → EventCalendar.client-By7e9nyF.mjs} +10 -10
  65. package/dist/client/{EventCombined.client-DgfNtcgW.mjs → EventCombined.client-BdRZXB14.mjs} +9 -9
  66. package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
  67. package/dist/client/{EventItem-KGKkK19N.mjs → EventItem-CDMa9zOX.mjs} +4 -4
  68. package/dist/client/{EventListWeekNavigation-Ba9ezxuC.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
  69. package/dist/client/{EventListing.client-xFKRDLwC.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
  70. package/dist/client/{EventListing.view-Dy36vWHi.mjs → EventListing.view-B6LOK-z4.mjs} +5 -5
  71. package/dist/client/{EventRegistrationPayment-Dth9L00x.mjs → EventRegistrationPayment-CARdr15t.mjs} +44 -35
  72. package/dist/client/{Page-DB5KODiu.mjs → Page-uP7AKSyp.mjs} +37 -30
  73. package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
  74. package/dist/client/{SiteTermsAgreementField-BDVP_HeK.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +2 -2
  75. package/dist/client/{StepIndicator-CLgDVzCs.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
  76. package/dist/client/{StepIndicator-DRyZ8igu.mjs → StepIndicator-Cb3NMw-Y.mjs} +29 -17
  77. package/dist/client/{accessibleSurfaces-CqroimVQ.mjs → accessibleSurfaces-q-dDOwsW.mjs} +5 -3
  78. package/dist/client/{accordion-BQYRP5xV.mjs → accordion-BYW2YSUN.mjs} +1 -1
  79. package/dist/client/{booking-form.client-B7ckDuOC.mjs → booking-form.client-DAlWWWjV.mjs} +108 -70
  80. package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
  81. package/dist/client/{bookingForm-BeD4650p.mjs → bookingForm-DtVk9p5l.mjs} +4 -4
  82. package/dist/client/bookings.mjs +5 -5
  83. package/dist/client/{boxStyleClassNames-CA7FirMH.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
  84. package/dist/client/{EventEmbeddedCheckoutStep-CjoaG1zy.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
  85. package/dist/client/{carousel-DJ9Aa1m3.mjs → carousel-msur7fxW.mjs} +1 -1
  86. package/dist/client/{cart-DdCenbTy.mjs → cart-Bx-JuY2n.mjs} +3 -3
  87. package/dist/client/{cart.client-BQm06qNw.mjs → cart.client-hB_9MimN.mjs} +1 -1
  88. package/dist/client/{checkout-45wPQULN.mjs → checkout-BVWZn5Qu.mjs} +3 -3
  89. package/dist/client/{checkout.client-bSv4cc5z.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
  90. package/dist/client/{checkoutUrls-CwlaMl3W.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
  91. package/dist/client/client.mjs +43 -18
  92. package/dist/client/{constants-DXV4KR7l.mjs → constants-yA1RJGXD.mjs} +1 -1
  93. package/dist/client/{context-lCPfX-xe.mjs → context-CG77Keax.mjs} +30 -3
  94. package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
  95. package/dist/client/{demoPortalMagicLink-Ce3Gyin_.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
  96. package/dist/client/{enhanceHeaderSection-CGcDE9aE.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +3 -3
  97. package/dist/client/{event-registration.client-DlPfn4YG.mjs → event-registration.client-Ckb4aDE9.mjs} +79 -58
  98. package/dist/client/{eventCalendar-CioAdryV.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
  99. package/dist/client/{eventCombined-Dwt0G6ez.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
  100. package/dist/client/{eventListing-B3H9ifOC.mjs → eventListing-CBYxfvNf.mjs} +4 -4
  101. package/dist/client/{eventRegistration-Do7cAhXb.mjs → eventRegistration-BhAqvkCb.mjs} +4 -4
  102. package/dist/client/{form-CsqzgC6v.mjs → form-CkOfk-Eb.mjs} +3 -3
  103. package/dist/client/{form.client-DVDB7hY6.mjs → form.client-Whi43oio.mjs} +4 -4
  104. package/dist/client/{form.parts-1q2rzSYt.mjs → form.parts-BgsWo2Me.mjs} +1 -1
  105. package/dist/client/gifting/client.mjs +7 -7
  106. package/dist/client/{gifting-BrXQGX-k.mjs → gifting-XtNpLcFI.mjs} +4 -4
  107. package/dist/client/{gifting.client--zAjnY5N.mjs → gifting.client-CraWj4I4.mjs} +173 -71
  108. package/dist/client/{gifting.interactive-CrwHpUJG.mjs → gifting.interactive-DiPDObN0.mjs} +3 -2
  109. package/dist/client/{gifting.parts-CcKdDaQq.mjs → gifting.parts-_mgGOcbA.mjs} +12 -43
  110. package/dist/client/{headerSection-DlcDH4bi.mjs → headerSection-CPIN3VSU.mjs} +2 -2
  111. package/dist/client/{islands-dMh0Oxli.mjs → islands-C95FyxUF.mjs} +11 -9
  112. package/dist/client/{newsletter-form.client-BxA1PsdS.mjs → newsletter-form.client-BgVJdKVe.mjs} +6 -6
  113. package/dist/client/{newsletter-form.interactive-D0iRg7p2.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +35 -15
  114. package/dist/client/{newsletter-form.parts-Dmuklz0r.mjs → newsletter-form.parts-poPgHrUh.mjs} +1 -1
  115. package/dist/client/{newsletterForm-CBzvgIfg.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
  116. package/dist/client/portal/client.mjs +978 -72
  117. package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
  118. package/dist/client/{portalRoutes-DiGibcZI.mjs → portalRoutes-D3Ttfv5x.mjs} +48 -13
  119. package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
  120. package/dist/client/{product-detail.client-D9MP8hvH.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
  121. package/dist/client/{product-list.client-wCz1qcUY.mjs → product-list.client-CftTl7n6.mjs} +1 -1
  122. package/dist/client/{productDetail-D9-fCY6c.mjs → productDetail-b1tpt585.mjs} +3 -3
  123. package/dist/client/{productList-PJyxXSac.mjs → productList-DRT5sabi.mjs} +3 -3
  124. package/dist/client/{propsDecoder-B8lrKGPw.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
  125. package/dist/client/{registry.server-CI63JVHW.mjs → registry.server-0UDNY7dO.mjs} +185 -224
  126. package/dist/client/rendering/client.mjs +23 -23
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +5 -5
  129. package/dist/client/{richText-coerce-Jt9hDHdh.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
  130. package/dist/client/{routeIslandApiConfig-ZSPcJWx1.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-_iW9oEYc.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
  132. package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
  133. package/dist/client/{shop-CbdJlWOw.mjs → shop-DL3CYR7i.mjs} +3 -3
  134. package/dist/client/{shop-commerce-BqLbzUUn.mjs → shop-commerce-CDth2_qq.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-BT0-zRqN.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
  136. package/dist/client/{shop-discount-apply.state-Cws0lnSb.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
  137. package/dist/client/{shop.client-0cNErhJT.mjs → shop.client-BI2iw6Z3.mjs} +56 -21
  138. package/dist/client/{shopShared-COuQ2MhQ.mjs → shopShared-BNWzgWAC.mjs} +2 -2
  139. package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
  140. package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
  141. package/dist/client/src-CXOxpNtj.mjs +3 -0
  142. package/dist/client/{timetableModel-DqI6U1BS.mjs → timetableModel-DZzGD6rS.mjs} +8 -8
  143. package/dist/client/{useAutomaticDiscountPreview-CeVUVzGf.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +1 -1
  144. package/dist/client/{useAvailableSlots-B0mjVhZr.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
  145. package/dist/client/{useDiscountCodeUi-B_hfgdAP.mjs → useDiscountCodeUi-DMtTHqex.mjs} +1 -1
  146. package/dist/client/{useEventPagination-Ct4A6iR1.mjs → useEventPagination-CM-DCokc.mjs} +7 -7
  147. package/dist/client/{view-Cj151w4m.mjs → view-CHOhliHv.mjs} +3 -3
  148. package/dist/client/{wizardSteps-B3gsXNnb.mjs → wizardSteps-BbroaNkT.mjs} +68 -22
  149. package/dist/preview-next/client/{PageSectionToolbar-Dv4CW0AQ.mjs → PageSectionToolbar-CR99z8BL.mjs} +3 -3
  150. package/dist/preview-next/client/{PreviewEditorSidebar-B7WW58uE.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +6 -6
  151. package/dist/preview-next/client/{PreviewEditorUI-BnJ1ughv.mjs → PreviewEditorUI-D6IG119o.mjs} +4 -4
  152. package/dist/preview-next/client/{PreviewShell-C7qWzAe4.mjs → PreviewShell-CKjkFOZS.mjs} +5 -5
  153. package/dist/preview-next/client/{SdkPreviewModeRuntime-CYi4UHtG.mjs → SdkPreviewModeRuntime-BexDQWGj.mjs} +4 -4
  154. package/dist/preview-next/client/{previewAssistantSlot-DrUoRNu9.mjs → previewAssistantSlot-DcEwU9l_.mjs} +977 -505
  155. package/dist/preview-next/client/{previewChromeRoot-CEYp90mM.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
  156. package/dist/preview-next/client/runtime.mjs +3 -3
  157. package/dist/preview-next/client/{sdk-runtime-DnO2_c0A.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
  158. package/dist/preview-next/client/{siteStyleAccess-B3PwHw2z.mjs → siteStyleAccess-BL1fZnUD.mjs} +1 -1
  159. package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
  160. package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
  161. package/dist/preview-next/client/{useAutosaveStatus-DrdQ4ier.mjs → useAutosaveStatus-CdFnzKac.mjs} +2 -2
  162. package/dist/preview-next/client/{useOpenBlockForSetup-kuGRKaRL.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +1 -1
  163. package/dist/preview-next/container-responsive.css +8 -0
  164. package/dist/preview-next/keepAlive.mjs +1 -1
  165. package/dist/preview-next/middleware.mjs +1 -1
  166. package/dist/preview-next/{route-contract-CwrXkLT3.mjs → route-contract-CQfEvfbg.mjs} +38 -13
  167. package/dist/server/{Block.shared-C5ucphCJ.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
  168. package/dist/server/{ThemeScopeCore-DvbqYXdK.mjs → ThemeScopeCore-BjxlpVaV.mjs} +5 -5
  169. package/dist/server/{accessibleSurfaces-CAcf1lHT.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +2 -2
  170. package/dist/server/{accordions-DjcsqjCK.mjs → accordions-C_C52VkS.mjs} +1 -1
  171. package/dist/server/{bindings-CFw4M-gZ.mjs → bindings-D-n66Oqc.mjs} +5 -5
  172. package/dist/server/{client-D0XCgITW.mjs → client-BGGlrkft.mjs} +41 -16
  173. package/dist/server/config-validation.mjs +1 -1
  174. package/dist/server/config.mjs +2 -2
  175. package/dist/server/{constants-BZduY8jG.mjs → constants-TkO9Uxma.mjs} +45 -10
  176. package/dist/server/data/resolveBlockData.mjs +1 -1
  177. package/dist/server/index.mjs +3 -3
  178. package/dist/server/{loadContent-C-qyB8Tq.mjs → loadContent-8H1hHdXo.mjs} +4 -4
  179. package/dist/server/{loadPage-BpKKmi8E.mjs → loadPage-BZyqF_g3.mjs} +3 -3
  180. package/dist/server/{lookMediaFrame-EFws7tAj.mjs → lookMediaFrame-Dw6R9B0L.mjs} +13 -11
  181. package/dist/server/manifest.mjs +2 -2
  182. package/dist/server/{navigation-DYkuiNXa.mjs → navigation-9TOyY5Zf.mjs} +1 -1
  183. package/dist/server/navigation.mjs +1 -1
  184. package/dist/server/next.mjs +9 -9
  185. package/dist/server/{overrideResolution-DmZn4xUE.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
  186. package/dist/server/page-converter.mjs +3 -3
  187. package/dist/server/{pageRenderPlan-DRB7cUZ0.mjs → pageRenderPlan-DmP0HVMu.mjs} +30 -8
  188. package/dist/server/{pageRuntimeSupport-Uv1xDieJ.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +3 -3
  189. package/dist/server/{pageShared-BdQF875z.mjs → pageShared-ALu7y5Dq.mjs} +272 -165
  190. package/dist/server/{parseThemeForPersistence-CwcWZL7u.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
  191. package/dist/server/{portal-BQ8qiQnk.mjs → portal-P4oHSRho.mjs} +2 -1
  192. package/dist/server/portal.mjs +2 -2
  193. package/dist/server/{prebuild-B51QZVNe.mjs → prebuild-BLL6RhjS.mjs} +1 -1
  194. package/dist/server/prebuild.mjs +1 -1
  195. package/dist/server/{prefetchBlockData-CppDAfJW.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
  196. package/dist/server/{registry-Bf4W8Qa7.mjs → registry-DD_s7l3Y.mjs} +82 -33
  197. package/dist/server/rendering/components/pageShared.mjs +1 -1
  198. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  199. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  200. package/dist/server/rendering/server.mjs +4 -4
  201. package/dist/server/rendering.mjs +9 -9
  202. package/dist/server/{resolveBlockData-DMHAZooQ.mjs → resolveBlockData-DnQ2N0lI.mjs} +2 -2
  203. package/dist/server/{resolveButtonColourStates-BMtAAPzp.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1 -1
  204. package/dist/server/{responseMedia-DKYfR518.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
  205. package/dist/server/{schema-DGaihVwp.mjs → schema-ClDfFtz2.mjs} +3 -3
  206. package/dist/server/server.mjs +3 -3
  207. package/dist/server/{servicePageContent-CRvmreX7.mjs → servicePageContent-CsUerbJ1.mjs} +14 -12
  208. package/dist/server/theme-bridge.mjs +3 -3
  209. package/dist/server/theme.mjs +2 -2
  210. package/dist/server/{three-pass-converter-mcy2E1Yd.mjs → three-pass-converter-CLJrZb7s.mjs} +1 -1
  211. package/dist/server/{titleSourceSchema-B2qFOUwZ.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -2
  212. package/dist/server/{types-C_S0pWbR.mjs → types-CcKy8_tj.mjs} +5 -3
  213. package/dist/server/{validation-CUtNT_EZ.mjs → validation-BbImAsVs.mjs} +5 -5
  214. package/dist/server/{version-DebJQ4zn.mjs → version-BY48jPoe.mjs} +1 -1
  215. package/dist/styles/index.css +192 -134
  216. package/package.json +1 -1
  217. package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
  218. package/dist/client/runtimeResponse-DlPBWBd9.mjs +0 -3
  219. package/dist/client/src-DqMbCjI1.mjs +0 -3
  220. package/dist/preview-next/client/src-EO5QoRlU.mjs +0 -3
@@ -1,7 +1,7 @@
1
- import { Fr as NavigationConfigItemInput, Pr as NavigationAuthoringLinkInput } from "./request-CZz2BoXJ.js";
2
- import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-DZQJp_ak.js";
3
- import { u as BindingTransformName } from "./index-Cc85KVLW.js";
4
- import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-CCcQlRBi.js";
1
+ import { Fr as NavigationConfigItemInput, Pr as NavigationAuthoringLinkInput } from "./request-BwYvMqLf.js";
2
+ import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-6K7zlJuF.js";
3
+ import { u as BindingTransformName } from "./index-DTKn1H8g.js";
4
+ import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-BBazdRQf.js";
5
5
  import { z as z$1 } from "zod";
6
6
 
7
7
  //#region .cache/declarations/sdk/src/config/content-validation.d.ts
@@ -77,22 +77,22 @@ function isSafeHttpsUrl(value) {
77
77
  //#endregion
78
78
  //#region src/rendering/islands/hydrateBlocksIslands.ts
79
79
  const defaultEnhancerLoaders = {
80
- accordion: () => import("./accordion-BQYRP5xV.mjs"),
81
- headerSection: () => import("./headerSection-DlcDH4bi.mjs"),
82
- carousel: () => import("./carousel-DJ9Aa1m3.mjs"),
83
- form: () => import("./form-CsqzgC6v.mjs"),
84
- "booking-form": () => import("./bookingForm-BeD4650p.mjs"),
85
- "event-registration": () => import("./eventRegistration-Do7cAhXb.mjs"),
86
- "event-listing": () => import("./eventListing-B3H9ifOC.mjs"),
87
- "event-calendar": () => import("./eventCalendar-CioAdryV.mjs"),
88
- "event-combined": () => import("./eventCombined-Dwt0G6ez.mjs"),
89
- "product-list": () => import("./productList-PJyxXSac.mjs"),
90
- "product-detail": () => import("./productDetail-D9-fCY6c.mjs"),
91
- "cart": () => import("./cart-DdCenbTy.mjs"),
92
- "checkout": () => import("./checkout-45wPQULN.mjs"),
93
- shop: () => import("./shop-CbdJlWOw.mjs"),
94
- "newsletter-form": () => import("./newsletterForm-CBzvgIfg.mjs"),
95
- gifting: () => import("./gifting-BrXQGX-k.mjs")
80
+ accordion: () => import("./accordion-BYW2YSUN.mjs"),
81
+ headerSection: () => import("./headerSection-CPIN3VSU.mjs"),
82
+ carousel: () => import("./carousel-msur7fxW.mjs"),
83
+ form: () => import("./form-CkOfk-Eb.mjs"),
84
+ "booking-form": () => import("./bookingForm-DtVk9p5l.mjs"),
85
+ "event-registration": () => import("./eventRegistration-BhAqvkCb.mjs"),
86
+ "event-listing": () => import("./eventListing-CBYxfvNf.mjs"),
87
+ "event-calendar": () => import("./eventCalendar-lqqQSzBQ.mjs"),
88
+ "event-combined": () => import("./eventCombined-BIMyHrd-.mjs"),
89
+ "product-list": () => import("./productList-DRT5sabi.mjs"),
90
+ "product-detail": () => import("./productDetail-b1tpt585.mjs"),
91
+ "cart": () => import("./cart-Bx-JuY2n.mjs"),
92
+ "checkout": () => import("./checkout-BVWZn5Qu.mjs"),
93
+ shop: () => import("./shop-DL3CYR7i.mjs"),
94
+ "newsletter-form": () => import("./newsletterForm-Dt6wFjTe.mjs"),
95
+ gifting: () => import("./gifting-XtNpLcFI.mjs")
96
96
  };
97
97
  const DEFAULT_MAX_RETRIES = 2;
98
98
  const RETRY_DELAYS_MS = [250, 1e3];
@@ -167,7 +167,7 @@ function isRetryableError(error) {
167
167
  * a transport envelope, which keeps it out of the hydrator's first-load graph.
168
168
  */
169
169
  async function restoreSurfaceTransport(rawProps) {
170
- const { restoreRuntimeResponse } = await import("./runtimeResponse-DlPBWBd9.mjs");
170
+ const { restoreRuntimeResponse } = await import("./runtimeResponse-LQnQdtNI.mjs");
171
171
  return restoreRuntimeResponse(rawProps);
172
172
  }
173
173
  function decodeLoadedProps(mod, props) {
@@ -1,12 +1,14 @@
1
1
  "use client";
2
- import { Cn as toUtcIsoDateTimeString, t as assertNever } from "./src-Do_s2lqH.mjs";
3
- import { Fr as decideSignInReturn, Io as RichText, Ir as nextSignInReturnExpiry, Lr as readSignInReturn, Nr as clearSignInReturnDrafts, Rr as signInReturnPath, so as requestSignIn, zr as sweepExpiredSignInReturnDrafts } from "./wizardSteps-B3gsXNnb.mjs";
4
- import { n as BookingQuestionFields } from "./BookingQuestionFields-DdcmoHqQ.mjs";
5
- import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-lCPfX-xe.mjs";
2
+ import { Cn as toUtcIsoDateTimeString, t as assertNever } from "./src-CJf3u16T.mjs";
3
+ import { Br as sweepExpiredSignInReturnDrafts, Ir as decideSignInReturn, Lr as nextSignInReturnExpiry, Pr as clearSignInReturnDrafts, Ro as RichText, Rr as readSignInReturn, co as requestSignIn, zr as signInReturnPath } from "./wizardSteps-BbroaNkT.mjs";
4
+ import { i as portalPath } from "./portalRoutes-D3Ttfv5x.mjs";
5
+ import { n as BookingQuestionFields } from "./BookingQuestionFields-Bia1E7Cj.mjs";
6
+ import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-CG77Keax.mjs";
6
7
  import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
7
- import { p as NavigationHandOffPanel } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
8
+ import { p as NavigationHandOffPanel } from "./DemoBookingPortalAccess-M2xKYQjX.mjs";
8
9
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
9
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-Ce3Gyin_.mjs";
10
+ import { t as SiteChoiceGroup } from "./SiteChoiceGroup-BZ5I0Vhy.mjs";
11
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-CgzNiOQ0.mjs";
10
12
  import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
11
13
  import * as React$1 from "react";
12
14
  import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
@@ -27,59 +29,28 @@ function DemoPortalSignInLink(props) {
27
29
  //#endregion
28
30
  //#region ../blocks/src/system/runtime/shared/components/PaymentChoiceRows.tsx
29
31
  /**
30
- * Payment choices as a radio group. Native radios give the whole row as the
31
- * hit area and arrow-key movement between choices; the selected row takes the
32
- * primary accent and disabled rows stay readable with their reason.
32
+ * Payment choices as SiteChoiceGroup rows. Each row carries its own
33
+ * selection and callback, so this hands the group the chosen id and routes
34
+ * a choice back to its row. A disabled row is never shown as chosen.
33
35
  */
34
36
  function PaymentChoiceRows(props) {
35
37
  const name = useId();
36
- return /* @__PURE__ */ jsx("div", {
37
- className: "rb-pay-choices",
38
- role: "radiogroup",
39
- "aria-label": props.label,
40
- children: props.rows.map((row) => {
41
- const selected = row.selected && !row.disabled;
42
- return /* @__PURE__ */ jsxs("label", {
43
- className: [
44
- "rb-pay-choice",
45
- selected && "rb-pay-choice--selected",
46
- row.disabled && "rb-pay-choice--disabled"
47
- ].filter(Boolean).join(" "),
48
- children: [
49
- /* @__PURE__ */ jsx("input", {
50
- type: "radio",
51
- className: "rb-pay-choice__radio",
52
- name,
53
- value: row.id,
54
- checked: selected,
55
- disabled: row.disabled,
56
- onChange: row.onSelect,
57
- onClick: selected ? row.onSelect : void 0
58
- }),
59
- /* @__PURE__ */ jsxs("span", {
60
- className: "rb-pay-choice__body",
61
- children: [
62
- /* @__PURE__ */ jsx("span", {
63
- className: "rb-pay-choice__label",
64
- children: row.label
65
- }),
66
- (row.details ?? []).map((detail) => /* @__PURE__ */ jsx("span", {
67
- className: "rb-pay-choice__detail",
68
- children: detail
69
- }, detail)),
70
- row.disabled && row.disabledReason ? /* @__PURE__ */ jsx("span", {
71
- className: "rb-pay-choice__reason",
72
- children: row.disabledReason
73
- }) : null
74
- ]
75
- }),
76
- row.price ? /* @__PURE__ */ jsx("span", {
77
- className: "rb-pay-choice__price",
78
- children: row.price
79
- }) : null
80
- ]
81
- }, row.id);
82
- })
38
+ const chosen = props.rows.find((row) => row.selected && !row.disabled);
39
+ return /* @__PURE__ */ jsx(SiteChoiceGroup, {
40
+ name,
41
+ legend: props.label,
42
+ legendHidden: true,
43
+ size: "row",
44
+ value: chosen?.id ?? "",
45
+ options: props.rows.map((row) => ({
46
+ value: row.id,
47
+ label: row.label,
48
+ details: row.details,
49
+ aside: row.price,
50
+ disabled: row.disabled,
51
+ disabledReason: row.disabledReason
52
+ })),
53
+ onChange: (id) => props.rows.find((row) => row.id === id && !row.disabled)?.onSelect()
83
54
  });
84
55
  }
85
56
  //#endregion
@@ -994,11 +965,16 @@ function QuestionSetSection(props) {
994
965
  }), props.children]
995
966
  });
996
967
  }
968
+ /** Answers are one per booking, so a group's booker says who an answer concerns. */
969
+ const SEVERAL_PEOPLE_QUESTIONS_NOTE = "If an answer is about someone else in your booking, please say who.";
997
970
  function QuestionFields(input) {
998
971
  const idPrefix = `${React$1.useId()}-`;
999
- return /* @__PURE__ */ jsx("div", {
972
+ return /* @__PURE__ */ jsxs("div", {
1000
973
  className: "rb-space-y-3",
1001
- children: /* @__PURE__ */ jsx(BookingQuestionFields, {
974
+ children: [input.props.severalPeople ? /* @__PURE__ */ jsx("p", {
975
+ className: "rb-bq-note",
976
+ children: SEVERAL_PEOPLE_QUESTIONS_NOTE
977
+ }) : null, /* @__PURE__ */ jsx(BookingQuestionFields, {
1002
978
  sections: input.set.sections,
1003
979
  values: input.props.values,
1004
980
  fieldErrors: input.props.fieldErrors,
@@ -1007,7 +983,7 @@ function QuestionFields(input) {
1007
983
  idPrefix,
1008
984
  showFirstSectionTitle: input.props.showFirstSectionTitle,
1009
985
  renderDocumentField: input.props.renderDocumentField
1010
- })
986
+ })]
1011
987
  });
1012
988
  }
1013
989
  function AlreadyAnswered(input) {
@@ -1057,6 +1033,29 @@ function OrganiserContactLine({ contact }) {
1057
1033
  ] });
1058
1034
  }
1059
1035
  //#endregion
1036
+ //#region ../blocks/src/system/runtime/shared/components/BookingNextStep.tsx
1037
+ function bookingNextStepHref(target) {
1038
+ return target.kind === "appointment" ? portalPath({
1039
+ page: "booking",
1040
+ ref: {
1041
+ tag: "appointment",
1042
+ appointmentId: target.appointmentId
1043
+ }
1044
+ }) : portalPath({ page: "bookings" });
1045
+ }
1046
+ function BookingNextStep({ target, className }) {
1047
+ return /* @__PURE__ */ jsx("div", {
1048
+ className: ["rb-mt-4", className ?? ""].join(" ").trim(),
1049
+ "data-booking-next-step": true,
1050
+ children: /* @__PURE__ */ jsx(ThemedButtonLink, {
1051
+ variant: "outline",
1052
+ size: "md",
1053
+ href: bookingNextStepHref(target),
1054
+ label: target.kind === "appointment" ? "View your booking" : "View your bookings"
1055
+ })
1056
+ });
1057
+ }
1058
+ //#endregion
1060
1059
  //#region ../blocks/src/system/runtime/shared/components/BookingMailingListNote.tsx
1061
1060
  function BookingMailingListNote(props) {
1062
1061
  const copy = getBookingMailingListNoteCopy(props.note, props.context);
@@ -1067,4 +1066,4 @@ function BookingMailingListNote(props) {
1067
1066
  });
1068
1067
  }
1069
1068
  //#endregion
1070
- export { MagicLinkForm as a, parseBookingSubmissionFailure as c, useSignInReturn as d, useBookingQuestionsRefresh as f, SignInNotice as i, useBookingNowIso as l, OrganiserContactLine as n, BookingConsentAgreement as o, PaymentChoiceRows as p, BookingQuestionSections as r, usePolling as s, BookingMailingListNote as t, portalSessionIdentity as u };
1069
+ export { SignInNotice as a, usePolling as c, portalSessionIdentity as d, useSignInReturn as f, BookingQuestionSections as i, parseBookingSubmissionFailure as l, PaymentChoiceRows as m, BookingNextStep as n, MagicLinkForm as o, useBookingQuestionsRefresh as p, OrganiserContactLine as r, BookingConsentAgreement as s, BookingMailingListNote as t, useBookingNowIso as u };
@@ -1,8 +1,9 @@
1
1
  "use client";
2
- import { Xt as capitalize } from "./src-Do_s2lqH.mjs";
3
- import { l as getInitialFieldValue } from "./bookingCalendar--aWnqFDn.mjs";
2
+ import { Xt as capitalize } from "./src-CJf3u16T.mjs";
3
+ import { l as getInitialFieldValue } from "./bookingCalendar-9nFa_do4.mjs";
4
4
  import { t as CheckboxChoice } from "./CheckboxChoice-CTMIII37.mjs";
5
5
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
6
+ import { n as SiteChoiceOptions } from "./SiteChoiceGroup-BZ5I0Vhy.mjs";
6
7
  import "react";
7
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
9
  const indefiniteArticle = (word) => /^(honest|honour|hour|heir)/i.test(word) ? "an" : /^(uni([^nmd]|$)|use|user|euro|one|once)/i.test(word) ? "a" : /^[aeiou]/i.test(word) ? "an" : "a";
@@ -98,24 +99,15 @@ function SelectQuestionInput({ field, inputId, value, disabled, control, onChang
98
99
  });
99
100
  }
100
101
  function RadioQuestionInput({ field, inputId, value, disabled, control, onChange }) {
101
- return /* @__PURE__ */ jsx("div", {
102
- className: "rb-space-y-2",
103
- children: field.options?.map((option) => /* @__PURE__ */ jsxs("label", {
104
- className: "form-check",
105
- children: [/* @__PURE__ */ jsx("input", {
106
- type: "radio",
107
- name: inputId,
108
- value: option.value,
109
- checked: value === option.value,
110
- disabled,
111
- className: "form-radio",
112
- "aria-invalid": control["aria-invalid"],
113
- onChange: (event) => onChange(event.target.value)
114
- }), /* @__PURE__ */ jsx("span", {
115
- className: "form-check-label",
116
- children: option.label
117
- })]
118
- }, option.value))
102
+ return /* @__PURE__ */ jsx(SiteChoiceOptions, {
103
+ size: "row",
104
+ name: inputId,
105
+ options: field.options ?? [],
106
+ value: toStringValue(value),
107
+ disabled,
108
+ invalid: control["aria-invalid"] === "true",
109
+ describedBy: control["aria-describedby"],
110
+ onChange
119
111
  });
120
112
  }
121
113
  function toggledValues(selected, value, checked) {
@@ -195,13 +187,17 @@ function questionControlProps(field, ids, error) {
195
187
  ...field.required ? { "aria-required": "true" } : {}
196
188
  };
197
189
  }
198
- /** Radios and multi-choice checkboxes answer one question with several controls, so they're a named group. */
199
- function isChoiceGroup(field) {
190
+ /**
191
+ * Radios and multi-choice checkboxes answer one question with several
192
+ * controls, so the question is a fieldset. The booking form's own fields
193
+ * follow the same rule, so it takes anything with a type and options.
194
+ */
195
+ function isFieldsetQuestion(field) {
200
196
  return field.type === "radio" || field.type === "checkbox" && (field.options?.length ?? 0) > 1;
201
197
  }
202
198
  function QuestionLabel({ field, inputId }) {
203
199
  const text = /* @__PURE__ */ jsxs(Fragment, { children: [field.label, field.required ? null : /* @__PURE__ */ jsx(OptionalMark, {})] });
204
- return isChoiceGroup(field) ? /* @__PURE__ */ jsx("legend", {
200
+ return isFieldsetQuestion(field) ? /* @__PURE__ */ jsx("legend", {
205
201
  className: "form-label rb-p-0",
206
202
  children: text
207
203
  }) : /* @__PURE__ */ jsx("label", {
@@ -210,22 +206,38 @@ function QuestionLabel({ field, inputId }) {
210
206
  children: text
211
207
  });
212
208
  }
213
- /** A choice group is a fieldset: the question is its legend, and the group carries required state and descriptions. */
214
- function QuestionFrame({ field, control, children }) {
215
- if (!isChoiceGroup(field)) return /* @__PURE__ */ jsx("div", {
216
- className: "rb-space-y-2",
217
- children
218
- });
209
+ /**
210
+ * The fieldset of a question answered with several controls: the question is
211
+ * its legend, and it carries the help and error descriptions. Radios make it
212
+ * a radio group, which carries the required state. Every surface that asks
213
+ * booking questions frames them with this.
214
+ */
215
+ function QuestionFieldset({ field, describedBy, required, className, children }) {
219
216
  return /* @__PURE__ */ jsx("fieldset", {
220
- className: "rb-space-y-2 rb-border-0 rb-p-0 rb-m-0 rb-min-w-0",
221
- "aria-describedby": control["aria-describedby"],
217
+ className,
218
+ "aria-describedby": describedBy,
222
219
  ...field.type === "radio" ? {
223
220
  role: "radiogroup",
224
- "aria-required": control["aria-required"]
221
+ "aria-required": required || void 0
225
222
  } : {},
226
223
  children
227
224
  });
228
225
  }
226
+ const BOOKING_FIELDSET_CLASS = "rb-space-y-2 rb-border-0 rb-p-0 rb-m-0 rb-min-w-0";
227
+ /** The booking surfaces' frame for one question: a fieldset for grouped controls, a plain stack otherwise. */
228
+ function BookingQuestionFrame({ field, describedBy, required, children }) {
229
+ if (!isFieldsetQuestion(field)) return /* @__PURE__ */ jsx("div", {
230
+ className: "rb-space-y-2",
231
+ children
232
+ });
233
+ return /* @__PURE__ */ jsx(QuestionFieldset, {
234
+ field,
235
+ describedBy,
236
+ required,
237
+ className: BOOKING_FIELDSET_CLASS,
238
+ children
239
+ });
240
+ }
229
241
  function QuestionField({ field, value, error, disabled, idPrefix, onChange, renderDocumentField }) {
230
242
  const inputId = `${idPrefix}${field.id}`;
231
243
  const helpTextId = field.helpText ? `${inputId}-help` : void 0;
@@ -234,9 +246,10 @@ function QuestionField({ field, value, error, disabled, idPrefix, onChange, rend
234
246
  errorId,
235
247
  helpTextId
236
248
  }, error);
237
- return /* @__PURE__ */ jsxs(QuestionFrame, {
249
+ return /* @__PURE__ */ jsxs(BookingQuestionFrame, {
238
250
  field,
239
- control,
251
+ describedBy: control["aria-describedby"],
252
+ required: Boolean(field.required),
240
253
  children: [
241
254
  /* @__PURE__ */ jsx(QuestionLabel, {
242
255
  field,
@@ -297,4 +310,4 @@ function BookingQuestionFields({ sections, values, fieldErrors = {}, onChange, d
297
310
  }, section.id)) });
298
311
  }
299
312
  //#endregion
300
- export { questionControlProps as a, isChoiceGroup as i, BookingQuestionFields as n, clientPersonPhrases as o, OptionalMark as r, indefiniteArticle as s, BookingQuestionFieldInput as t };
313
+ export { QuestionFieldset as a, clientPersonPhrases as c, OptionalMark as i, indefiniteArticle as l, BookingQuestionFields as n, isFieldsetQuestion as o, BookingQuestionFrame as r, questionControlProps as s, BookingQuestionFieldInput as t };
@@ -5,7 +5,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/event-registration/CalendarAction.tsx
6
6
  /** Download effects happen only after a click, including in editor preview. */
7
7
  async function downloadCalendar(calendar) {
8
- const { renderCalendarFeedIcs } = await import("./src-DqMbCjI1.mjs");
8
+ const { renderCalendarFeedIcs } = await import("./src-CXOxpNtj.mjs");
9
9
  const url = URL.createObjectURL(new Blob([renderCalendarFeedIcs(calendar.feed)], { type: "text/calendar;charset=utf-8" }));
10
10
  const link = document.createElement("a");
11
11
  link.href = url;
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { Cn as formatEventPrice } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
- import { bn as parseBookingLocalDate, nn as formatDate } from "./src-Do_s2lqH.mjs";
4
- import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Oo as getEventAvailabilityStatus, Qo as formatTime, _o as resolveEventCta, do as eventPlaceName, es as resolveEventTimeZone, po as formatEventLocation, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B3gsXNnb.mjs";
5
- import { d as listLookSlot, l as listItemPresentation } from "./islands-dMh0Oxli.mjs";
2
+ import { Cn as formatEventPrice } from "./newsletter-form.interactive-DpcfRbI_.mjs";
3
+ import { bn as parseBookingLocalDate, nn as formatDate } from "./src-CJf3u16T.mjs";
4
+ import { Ao as getEventAvailabilityStatus, Eo as formatEventRemainingPlaces, Ho as eventDateOptions, Mo as isEventFull, bo as resolveEventPageLink, es as formatTime, fo as eventPlaceName, mo as formatEventLocation, ns as resolveEventTimeZone, ts as groupEventsByDate, yo as resolveEventCta } from "./wizardSteps-BbroaNkT.mjs";
5
+ import { d as listLookSlot, l as listItemPresentation } from "./islands-C95FyxUF.mjs";
6
6
  import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
7
- import { d as formatDateKey, v as isToday } from "./src-uwCpbHXG.mjs";
8
- import { l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
7
+ import { f as formatDateKey, y as isToday } from "./src-CMuv8vSO.mjs";
8
+ import { l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-CDMa9zOX.mjs";
9
9
  import "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../core/src/duration.ts
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
3
- import { ao as leavePage, mr as isEmailAddress } from "./wizardSteps-B3gsXNnb.mjs";
4
- import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-DiGibcZI.mjs";
5
- import { i as BlockApiError, n as useBlockApi } from "./context-lCPfX-xe.mjs";
3
+ import { hr as isEmailAddress, oo as leavePage } from "./wizardSteps-BbroaNkT.mjs";
4
+ import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-D3Ttfv5x.mjs";
5
+ import { i as BlockApiError, n as useBlockApi } from "./context-CG77Keax.mjs";
6
6
  import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
7
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-Ce3Gyin_.mjs";
7
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-CgzNiOQ0.mjs";
8
8
  import React, { useCallback, useEffect, useId, useRef, useState } from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region ../blocks/src/system/runtime/api/types/discounts.ts
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { d as buildEventCalendarListingRender, kt as buildEventRuntimeFilters, on as buildEventListWeek, sn as eventListWeekDays } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
- import { g as resolveCalendarReadProfile } from "./src-Do_s2lqH.mjs";
4
- import { $o as groupEventsByDate, qo as formatEventHourLabel } from "./wizardSteps-B3gsXNnb.mjs";
5
- import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-ZfrUiiiI.mjs";
6
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-DqI6U1BS.mjs";
2
+ import { d as buildEventCalendarListingRender, kt as buildEventRuntimeFilters, on as buildEventListWeek, sn as eventListWeekDays } from "./newsletter-form.interactive-DpcfRbI_.mjs";
3
+ import { g as resolveCalendarReadProfile } from "./src-CJf3u16T.mjs";
4
+ import { Yo as formatEventHourLabel, ts as groupEventsByDate } from "./wizardSteps-BbroaNkT.mjs";
5
+ import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-oaHxRbUO.mjs";
6
+ import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-DZzGD6rS.mjs";
7
7
  import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
8
- import { d as formatDateKey, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
9
- import { u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
10
- import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-DgfNtcgW.mjs";
11
- import { i as useEventCollectionFilters } from "./useEventPagination-Ct4A6iR1.mjs";
12
- import { n as EventListingController } from "./EventListing.client-xFKRDLwC.mjs";
8
+ import { f as formatDateKey, h as getOrderedDayNames } from "./src-CMuv8vSO.mjs";
9
+ import { u as eventDisplayTitleText } from "./EventItem-CDMa9zOX.mjs";
10
+ import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-BdRZXB14.mjs";
11
+ import { i as useEventCollectionFilters } from "./useEventPagination-CM-DCokc.mjs";
12
+ import { n as EventListingController } from "./EventListing.client-BEGiiFnO.mjs";
13
13
  import { useEffect, useMemo, useState } from "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { At as getEventRuntimeFiltersKey, kt as buildEventRuntimeFilters, qt as toError, s as eventListingBlockRuntime } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
- import { Ft as calendarMonthDate, d as calendarQueryKey, f as calendarWindowBounds, h as planCalendarMonthRanges, l as calendarMonthKey, nn as formatDate, p as calendarWindowMonths$1, u as calendarPageResponseError, yn as getLocalScheduleDate } from "./src-Do_s2lqH.mjs";
4
- import { $o as groupEventsByDate, Bo as eventDateOptions, Lo as buildCalendarViewport, Qo as formatTime, Ro as eventCalendarWeekStart, no as getBlockApiReadStage } from "./wizardSteps-B3gsXNnb.mjs";
5
- import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-ZfrUiiiI.mjs";
6
- import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
7
- import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
2
+ import { At as getEventRuntimeFiltersKey, kt as buildEventRuntimeFilters, qt as toError, s as eventListingBlockRuntime } from "./newsletter-form.interactive-DpcfRbI_.mjs";
3
+ import { Ft as calendarMonthDate, d as calendarQueryKey, f as calendarWindowBounds, h as planCalendarMonthRanges, l as calendarMonthKey, nn as formatDate, p as calendarWindowMonths$1, u as calendarPageResponseError, yn as getLocalScheduleDate } from "./src-CJf3u16T.mjs";
4
+ import { Bo as eventCalendarWeekStart, Ho as eventDateOptions, es as formatTime, ro as getBlockApiReadStage, ts as groupEventsByDate, zo as buildCalendarViewport } from "./wizardSteps-BbroaNkT.mjs";
5
+ import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-oaHxRbUO.mjs";
6
+ import { n as useBlockApi } from "./context-CG77Keax.mjs";
7
+ import { d as listLookSlot } from "./islands-C95FyxUF.mjs";
8
8
  import { O as clsx, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
9
- import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-uwCpbHXG.mjs";
10
- import { u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
9
+ import { b as shiftCalendarAnchorDate, f as formatDateKey, h as getOrderedDayNames, l as addMonths, v as isSameCalendarDay } from "./src-CMuv8vSO.mjs";
10
+ import { u as eventDisplayTitleText } from "./EventItem-CDMa9zOX.mjs";
11
11
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
12
12
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
13
- import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Ct4A6iR1.mjs";
13
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-CM-DCokc.mjs";
14
14
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
16
  //#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
@@ -0,0 +1,147 @@
1
+ "use client";
2
+ import { r as loadBrowserStripe } from "./browserStripe-Dh-LcDoW.mjs";
3
+ import { D as SpinnerNode, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
4
+ import { useEffect, useRef, useState } from "react";
5
+ import { jsx, jsxs } from "react/jsx-runtime";
6
+ //#region ../commerce/src/purchase/checkoutPresentation.ts
7
+ function publishableKeyMode(publishableKey) {
8
+ if (publishableKey.startsWith("pk_live_")) return "live";
9
+ if (publishableKey.startsWith("pk_test_")) return "test";
10
+ return null;
11
+ }
12
+ function checkBrowserStripeKey(publishableKey, livemode) {
13
+ const key = publishableKey?.trim();
14
+ if (!key) return {
15
+ tag: "unavailable",
16
+ reason: "missing_key"
17
+ };
18
+ const mode = publishableKeyMode(key);
19
+ if (mode === null) return {
20
+ tag: "unavailable",
21
+ reason: "invalid_key"
22
+ };
23
+ return mode === (livemode ? "live" : "test") ? {
24
+ tag: "ready",
25
+ publishableKey: key
26
+ } : {
27
+ tag: "unavailable",
28
+ reason: "mode_mismatch"
29
+ };
30
+ }
31
+ //#endregion
32
+ //#region ../blocks/src/system/runtime/nodes/event-registration/EventEmbeddedCheckoutStep.tsx
33
+ function useStripeMount(props, container, load) {
34
+ const [status, setStatus] = useState("loading");
35
+ const callbacks = useRef(props);
36
+ callbacks.current = props;
37
+ useEffect(() => {
38
+ const lifecycle = {
39
+ active: true,
40
+ instance: null
41
+ };
42
+ setStatus("loading");
43
+ const fail = () => {
44
+ if (!lifecycle.active) return;
45
+ lifecycle.active = false;
46
+ lifecycle.instance?.destroy();
47
+ lifecycle.instance = null;
48
+ setStatus("failed");
49
+ };
50
+ const timeout = window.setTimeout(fail, 3e4);
51
+ const mount = async () => {
52
+ if (checkBrowserStripeKey(props.checkout.browser.publishableKey, props.checkout.livemode).tag !== "ready") throw new Error("Invalid payment configuration");
53
+ const stripe = await load(props.checkout.browser);
54
+ if (!lifecycle.active) return;
55
+ if (!stripe) throw new Error("Payment form unavailable");
56
+ const instance = await stripe.createEmbeddedCheckoutPage({
57
+ clientSecret: props.checkout.clientSecret,
58
+ onComplete: () => {
59
+ if (lifecycle.active) callbacks.current.onComplete();
60
+ }
61
+ });
62
+ if (!lifecycle.active || !container.current) {
63
+ instance.destroy();
64
+ return;
65
+ }
66
+ lifecycle.instance = instance;
67
+ instance.mount(container.current);
68
+ clearTimeout(timeout);
69
+ setStatus("ready");
70
+ };
71
+ mount().catch(fail);
72
+ return () => {
73
+ lifecycle.active = false;
74
+ clearTimeout(timeout);
75
+ lifecycle.instance?.destroy();
76
+ };
77
+ }, [
78
+ props.checkout,
79
+ container,
80
+ load
81
+ ]);
82
+ return status;
83
+ }
84
+ function EventEmbeddedCheckoutStep(props) {
85
+ return /* @__PURE__ */ jsx(EventEmbeddedCheckoutStepWithDeps, {
86
+ ...props,
87
+ load: loadBrowserStripe
88
+ });
89
+ }
90
+ function EventEmbeddedCheckoutStepWithDeps(props) {
91
+ const container = useRef(null);
92
+ const heading = useRef(null);
93
+ const status = useStripeMount(props, container, props.load);
94
+ useEffect(() => {
95
+ if (props.onBack) heading.current?.focus();
96
+ }, [props.onBack]);
97
+ return /* @__PURE__ */ jsxs("section", {
98
+ className: "er-embedded-payment",
99
+ children: [
100
+ props.onBack ? /* @__PURE__ */ jsx("button", {
101
+ type: "button",
102
+ className: "er-back-btn er-embedded-payment__back",
103
+ onClick: props.onBack,
104
+ children: "← Back"
105
+ }) : null,
106
+ /* @__PURE__ */ jsx("h2", {
107
+ ref: heading,
108
+ tabIndex: -1,
109
+ className: "rb-sr-only",
110
+ children: "Payment"
111
+ }),
112
+ status === "loading" && /* @__PURE__ */ jsxs("div", {
113
+ className: "er-center er-message",
114
+ role: "status",
115
+ "aria-live": "polite",
116
+ children: [/* @__PURE__ */ jsx("div", {
117
+ className: "er-icon",
118
+ children: /* @__PURE__ */ jsx(SpinnerNode, { size: "lg" })
119
+ }), /* @__PURE__ */ jsx("p", {
120
+ className: "er-text--muted",
121
+ children: "Loading secure payment…"
122
+ })]
123
+ }),
124
+ status === "failed" && /* @__PURE__ */ jsxs("div", {
125
+ className: "er-center er-message",
126
+ role: "alert",
127
+ children: [/* @__PURE__ */ jsx("p", {
128
+ className: "er-text--muted er-message",
129
+ children: "We couldn’t load the payment form."
130
+ }), /* @__PURE__ */ jsx(ThemedButton, {
131
+ type: "button",
132
+ variant: props.buttonVariant,
133
+ size: "md",
134
+ onClick: props.onRetry,
135
+ label: "Try again"
136
+ })]
137
+ }),
138
+ /* @__PURE__ */ jsx("div", {
139
+ ref: container,
140
+ className: "er-message",
141
+ style: { width: "100%" }
142
+ })
143
+ ]
144
+ });
145
+ }
146
+ //#endregion
147
+ export { EventEmbeddedCheckoutStepWithDeps, EventEmbeddedCheckoutStep as default };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { Cn as formatEventPrice, Qt as CardListLeadDate, Zt as CardListContentPart, en as resolveCardListSchedule, nn as EventQuickFacts, tn as selectCardListPresentation } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
- import { Bo as eventDateOptions, Go as formatEventCompactDateRail, Oo as getEventAvailabilityStatus, Xo as formatEventTimeRange, Zo as formatEventWeekdayTime, _o as resolveEventCta, ec as orderedLiveRunSessions, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B3gsXNnb.mjs";
4
- import { d as listLookSlot, l as listItemPresentation } from "./islands-dMh0Oxli.mjs";
5
- import { F as resolveOnColorForThemeToken, L as resolveTokenOrCssColorValue, P as isCssColorLiteral, et as pickBlackOrWhiteTextColor } from "./accessibleSurfaces-CqroimVQ.mjs";
2
+ import { Cn as formatEventPrice, Qt as CardListLeadDate, Zt as CardListContentPart, en as resolveCardListSchedule, nn as EventQuickFacts, tn as selectCardListPresentation } from "./newsletter-form.interactive-DpcfRbI_.mjs";
3
+ import { $o as formatEventWeekdayTime, Ao as getEventAvailabilityStatus, Eo as formatEventRemainingPlaces, Ho as eventDateOptions, Qo as formatEventTimeRange, bo as resolveEventPageLink, qo as formatEventCompactDateRail, rc as orderedLiveRunSessions, yo as resolveEventCta } from "./wizardSteps-BbroaNkT.mjs";
4
+ import { d as listLookSlot, l as listItemPresentation } from "./islands-C95FyxUF.mjs";
5
+ import { F as resolveOnColorForThemeToken, L as resolveTokenOrCssColorValue, P as isCssColorLiteral, et as pickBlackOrWhiteTextColor } from "./accessibleSurfaces-q-dDOwsW.mjs";
6
6
  import { p as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
7
7
  import React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
2
+ import { d as listLookSlot } from "./islands-C95FyxUF.mjs";
3
3
  import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx