@riverbankcms/sdk 0.179.0 → 0.180.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 (193) hide show
  1. package/README.md +2 -2
  2. package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
  3. package/dist/_dts/{Page-lWenra5i.d.ts → Page-DQOxVtp3.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
  5. package/dist/_dts/{client-qWn7xAwJ.d.ts → client-BP7VBRvs.d.ts} +235 -56
  6. package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-1-K2qi__.d.ts} +2 -2
  7. package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-Dfqz0Tcu.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
  9. package/dist/_dts/{index-DVSipdrT.d.ts → index-B0_2-65A.d.ts} +3 -3
  10. package/dist/_dts/{index-DCiSHd-C.d.ts → index-BeM5Ylwf.d.ts} +5 -3
  11. package/dist/_dts/{index-BYnG_vF5.d.ts → index-Blrw2oVk.d.ts} +1 -1
  12. package/dist/_dts/{index-CaCum9mM.d.ts → index-CB5Csefo.d.ts} +2 -2
  13. package/dist/_dts/{index-CZgJrhzT.d.ts → index-DCcxLa8p.d.ts} +2 -2
  14. package/dist/_dts/{index-7CDBZGb-.d.ts → index-DQBGwBPx.d.ts} +1 -1
  15. package/dist/_dts/{index-BU9uAkHB.d.ts → index-DQr358-m.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BG2tLGXj.d.ts} +7 -7
  17. package/dist/_dts/{request-BjKBCS7t.d.ts → request-P08l6mkr.d.ts} +2602 -821
  18. package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-BDHc8lFs.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-Y3IZBbtL.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +8 -8
  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 +3 -3
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  54. package/dist/_dts/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BvtNagjw.d.ts} +8 -7
  55. package/dist/_dts/{types-BOxSq-Bq.d.ts → types-BrK6SS5c.d.ts} +9 -8
  56. package/dist/_dts/{types-CT-KOxl_.d.ts → types-DpEAnP4F.d.ts} +7 -2
  57. package/dist/_dts/{types-B7e6Lmo5.d.ts → types-HAy1-Jjo.d.ts} +3 -3
  58. package/dist/_dts/{validation-Dz6qccue.d.ts → validation-D6q3tOBA.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +16 -16
  60. package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-CGxg37zx.mjs} +91 -59
  61. package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-DXegGSnS.mjs} +24 -3
  62. package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +5 -5
  63. package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +12 -7
  64. package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-CrpiyDSP.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-D0me9wnz.mjs} +8 -8
  66. package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CJITrGkF.mjs} +5 -4
  67. package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
  68. package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
  69. package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-CXfb7RRy.mjs} +7 -210
  70. package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1292 -224
  71. package/dist/client/{Page-ChJ2TGVk.mjs → Page-bX7iy_MK.mjs} +158 -50
  72. package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +22 -15
  73. package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-DCfdcb7s.mjs} +1 -1
  74. package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-DCqorVne.mjs} +6 -6
  75. package/dist/client/{accordion-B6SqU49k.mjs → accordion-wofJY8xY.mjs} +1 -1
  76. package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-CYl9NrqS.mjs} +410 -77
  77. package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
  78. package/dist/client/bookings.mjs +40 -10
  79. package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +2 -2
  80. package/dist/client/{carousel-C-YJliD-.mjs → carousel-BE1dEFsD.mjs} +1 -1
  81. package/dist/client/{cart-acGFWK9R.mjs → cart-BsjsdGZE.mjs} +3 -3
  82. package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-DylGUWXY.mjs} +1 -1
  83. package/dist/client/{checkout-SEontwhy.mjs → checkout-B5KxEUDr.mjs} +3 -3
  84. package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-C98fhch3.mjs} +1 -1
  85. package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
  86. package/dist/client/client.mjs +224 -158
  87. package/dist/client/constants-PfYJsEZF.mjs +101 -0
  88. package/dist/client/{context-DTrwaQtg.mjs → context-DtKdUdkO.mjs} +199 -27
  89. package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
  90. package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
  91. package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +3 -3
  92. package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-Du9a_xAN.mjs} +1980 -1517
  93. package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
  94. package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
  95. package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-CQMxQ8By.mjs} +4 -4
  96. package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
  97. package/dist/client/{form-DyH2juYT.mjs → form-Zl1_8RJ6.mjs} +3 -3
  98. package/dist/client/{form.client-DBwzkB0M.mjs → form.client-TaMUys6I.mjs} +4 -4
  99. package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-CpNPbPPM.mjs} +1 -1
  100. package/dist/client/{formatDate-CTEN7gxW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
  101. package/dist/client/gifting/client.mjs +5 -5
  102. package/dist/client/{gifting-CIx4V378.mjs → gifting-DNVa7-Wj.mjs} +4 -4
  103. package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-CFUq3GVx.mjs} +4 -4
  104. package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
  105. package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-Cg6083rn.mjs} +2 -2
  106. package/dist/client/{lookSurfaces-IqT_SVnX.mjs → lookSurfaces-gJ3OqPf9.mjs} +92 -2
  107. package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-VuL9I96G.mjs} +5 -5
  108. package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +18 -24
  109. package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-OBqsfT24.mjs} +1 -1
  110. package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
  111. package/dist/client/portal/client.mjs +299 -115
  112. package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
  113. package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
  114. package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
  115. package/dist/client/{productList-DE9GEFoZ.mjs → productList-BAdJ6z5S.mjs} +3 -3
  116. package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder-BLKAmX0S.mjs} +2 -2
  117. package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-Bj9cmHHF.mjs} +89 -50
  118. package/dist/client/rendering/client.mjs +22 -22
  119. package/dist/client/rendering/islands.mjs +1 -1
  120. package/dist/client/rendering.mjs +4 -4
  121. package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
  122. package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
  123. package/dist/client/{shop-C3wM0Hr4.mjs → shop-BKsgxm_-.mjs} +3 -3
  124. package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-Cbtk_kUW.mjs} +12 -12
  125. package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
  126. package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
  127. package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-Rnqa74Tk.mjs} +12 -12
  128. package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BaBfhjCq.mjs} +2 -2
  129. package/dist/client/{src-CCtanNlD.mjs → src-o7WEvbK1.mjs} +118 -3
  130. package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BOff1Kk5.mjs} +201 -7
  131. package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
  132. package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-BcFQRI_7.mjs} +1 -1
  133. package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-BvdcexDC.mjs} +7 -7
  134. package/dist/client/{view-LJVHVqsy.mjs → view-CTBwSpKv.mjs} +3 -3
  135. package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-CWIQyRIw.mjs} +1605 -442
  136. package/dist/preview-next/before-render.mjs +1 -0
  137. package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
  138. package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
  139. package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
  140. package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
  141. package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
  142. package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
  143. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
  144. package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
  145. package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +5735 -2073
  146. package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
  147. package/dist/preview-next/client/runtime.mjs +3 -3
  148. package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
  149. package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
  150. package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
  151. package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
  152. package/dist/preview-next/container-responsive.css +103 -10
  153. package/dist/preview-next/keepAlive.mjs +1 -1
  154. package/dist/preview-next/middleware.mjs +1 -1
  155. package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-FwFj8zGL.mjs} +43 -0
  156. package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
  157. package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
  158. package/dist/server/{bindings-Bly0dRs7.mjs → bindings-CS6ih1Yc.mjs} +4 -4
  159. package/dist/server/{client-CGJ2ztYp.mjs → client-m0ylCj_f.mjs} +847 -786
  160. package/dist/server/config-validation.mjs +1 -1
  161. package/dist/server/config.mjs +2 -2
  162. package/dist/server/data/resolveBlockData.mjs +1 -1
  163. package/dist/server/index.mjs +2 -2
  164. package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-vgWMz1uD.mjs} +6 -4
  165. package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-CIOL3-9t.mjs} +3 -3
  166. package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
  167. package/dist/server/next.mjs +43 -30
  168. package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
  169. package/dist/server/page-converter.mjs +1 -1
  170. package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-DJo_obpi.mjs} +9 -7
  171. package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BnSuoHON.mjs} +5 -1
  172. package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-BJuOzxzn.mjs} +550 -258
  173. package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-Cr8p8T7V.mjs} +1 -1
  174. package/dist/server/prebuild.mjs +1 -1
  175. package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-BZh57-ua.mjs} +4 -3
  176. package/dist/server/{registry-DH1VrsCl.mjs → registry-CvhFwbXJ.mjs} +240 -80
  177. package/dist/server/rendering/components/pageShared.mjs +1 -1
  178. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  179. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  180. package/dist/server/rendering/server.mjs +4 -4
  181. package/dist/server/rendering.mjs +8 -8
  182. package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-Cv_W1LVB.mjs} +39 -31
  183. package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
  184. package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
  185. package/dist/server/routing.mjs +1 -1
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-CRKbTm_7.mjs} +14 -10
  188. package/dist/server/theme-bridge.mjs +1 -1
  189. package/dist/server/{validation-3jOzYdPL.mjs → validation-DCl-FCk_.mjs} +4 -4
  190. package/dist/server/{version-8t0o6_jd.mjs → version-DT_R5JAR.mjs} +1 -1
  191. package/dist/styles/index.css +504 -27
  192. package/package.json +1 -1
  193. package/dist/client/constants-4o4_hl34.mjs +0 -6
@@ -1,11 +1,11 @@
1
- import { hr as Theme } from "./request-BjKBCS7t.js";
2
- import { u as RiverbankSiteConfig } from "./types-B7e6Lmo5.js";
3
- import { _ as RiverbankClient } from "./types-CT-KOxl_.js";
1
+ import { _r as Theme } from "./request-P08l6mkr.js";
2
+ import { u as RiverbankSiteConfig } from "./types-HAy1-Jjo.js";
3
+ import { _ as RiverbankClient } from "./types-DpEAnP4F.js";
4
4
  import { DataLoaderOverrides, DataLoaderSearchParams } from "./sdk/src/data/types.js";
5
- import { c as SdkRenderingMode, k as BlockOverrideRegistrations, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime } from "./Page-lWenra5i.js";
6
- import { i as LoadContentResult } from "./loadContent-CPKbFQyq.js";
7
- import { t as Metadata } from "./generatePageMetadata-CBKd0cJ4.js";
8
- import { c as RiverbankContentLoadError } from "./resolvePageContent-BqNyCHi8.js";
5
+ import { c as SdkRenderingMode, k as BlockOverrideRegistrations, o as SdkOverrideOnlyRendering, u as SdkThemeRuntime } from "./Page-DQOxVtp3.js";
6
+ import { i as LoadContentResult } from "./loadContent-BG2tLGXj.js";
7
+ import { t as Metadata } from "./generatePageMetadata-CSfAqmry.js";
8
+ import { c as RiverbankContentLoadError } from "./resolvePageContent-Y3IZBbtL.js";
9
9
  import { ReactNode } from "react";
10
10
 
11
11
  //#region .cache/declarations/sdk/src/next/content-load-failure.d.ts
@@ -186,7 +186,8 @@ type CreateCatchAllPageBaseOptions = {
186
186
  /**
187
187
  * Function that returns the Riverbank client.
188
188
  * Called fresh on each request to support different caching strategies.
189
- * The catch-all installs Next caching on SDK root/server clients before reads.
189
+ * Build it with `createRiverbankClient` from `@riverbankcms/sdk/next`, which gives page reads Next's
190
+ * cache. A client from `@riverbankcms/sdk` or `@riverbankcms/sdk/server` has no framework cache.
190
191
  */
191
192
  getClient: () => RiverbankClient;
192
193
  /**
@@ -1,5 +1,5 @@
1
- import { Ar as PublicMapLocationParams, Ir as CalendarWindowPage, Lr as CalendarWindowRequest, jr as PublicMapLocationResult, n as FrameworkCacheAdapter } from "./request-BjKBCS7t.js";
2
- import { A as RoutableContentResponse, C as PublicPassesResponse, D as PublicTeamMembersResponse, I as SiteResponse, M as RouteOutcomeResponse, O as PublicWeeklySlotAvailabilityResponse, R as SitemapRoutesResponse, S as PublicMembershipsResponse, T as PublicProductsResponse, _ as PublicEndpointName, b as PublicFormResponse, g as PublicBookingServicesResponse, i as CheckRedirectResponse, j as RouteDecisionResponse, o as EntriesResponse, p as PageResponse, s as EntryResponse, v as PublicEventDetailsResponse, w as PublicProductCategorySelector, x as PublicFormsResponse, y as PublicEventsResponse } from "./contracts-CzWyAiJj.js";
1
+ import { Lr as CalendarWindowPage, Mr as PublicMapLocationResult, Rr as CalendarWindowRequest, jr as PublicMapLocationParams, n as FrameworkCacheAdapter } from "./request-P08l6mkr.js";
2
+ import { A as RoutableContentResponse, C as PublicPassesResponse, D as PublicTeamMembersResponse, I as SiteResponse, M as RouteOutcomeResponse, O as PublicWeeklySlotAvailabilityResponse, R as SitemapRoutesResponse, S as PublicMembershipsResponse, T as PublicProductsResponse, _ as PublicEndpointName, b as PublicFormResponse, g as PublicBookingServicesResponse, i as CheckRedirectResponse, j as RouteDecisionResponse, o as EntriesResponse, p as PageResponse, s as EntryResponse, v as PublicEventDetailsResponse, w as PublicProductCategorySelector, x as PublicFormsResponse, y as PublicEventsResponse } from "./contracts-Dfqz0Tcu.js";
3
3
 
4
4
  //#region .cache/declarations/sdk/src/client/runtimeCacheKeys.d.ts
5
5
  declare const publishedRuntimeCacheKeyBrand: unique symbol;
@@ -830,6 +830,11 @@ interface RiverbankClient {
830
830
  * @returns The base URL (e.g., 'https://dashboard.example.com/api')
831
831
  */
832
832
  getBaseUrl(): string;
833
+ /**
834
+ * Whether published page reads go through a framework cache. A client built with
835
+ * `createRiverbankClient` from `@riverbankcms/sdk/next` always has one.
836
+ */
837
+ hasFrameworkCache(): boolean;
833
838
  }
834
839
  //#endregion
835
840
  export { isPublishedRuntimeCacheKeyEndpoint as $, PublishedRuntimeCacheFreshness as A, classifyPublishedRuntimeCacheFreshness as B, SdkDefaultHeaderName as C, DerivePublishedRuntimeCacheKeyResult as D, DerivePublishedRuntimeCacheKeyInput as E, ResolveRuntimeCachePolicyInput as F, GetSiteRuntimeCacheParams as G, resolveRuntimeCachePolicy as H, RuntimeCacheLiveOnlyReason as I, ParsePublishedRuntimeCachePayloadSchemaVersionResult as J, ParsePublishedRuntimeCacheKeyDetailsResult as K, RuntimeCacheParams as L, PublishedRuntimeCacheReadInput as M, PublishedRuntimeCacheReadResult as N, PublishedRuntimeCacheAdapter as O, PublishedRuntimeCacheWriteInput as P, PublishedRuntimeNormalizedParams as Q, RuntimeCachePolicy as R, SdkCorrelationHeaders as S, ClassifyPublishedRuntimeCacheFreshnessInput as T, DEFAULT_PUBLISHED_RUNTIME_CACHE_PAYLOAD_SCHEMA_VERSION as U, derivePublishedRuntimeCacheKey as V, GetContentByPathRuntimeCacheParams as W, PublishedRuntimeCacheKeyEndpoint as X, PublishedRuntimeCacheKey as Y, PublishedRuntimeCachePayloadSchemaVersion as Z, RiverbankClient as _, GetEntriesBaseParams as a, SdkAuthConfig as b, GetSiteParams as c, ResilienceConfig as d, normalizeRuntimePublicPath as et, ResilienceDurableCacheDiagnostic as f, RetryConfig as g, ResilientData as h, EntriesResponseWithMeta as i, PublishedRuntimeCacheKeyError as j, PublishedRuntimeCacheAdapterErrorKind as k, PaginationMeta as l, ResilienceStatus as m, CircuitBreakerConfig as n, parsePublishedRuntimeCacheKeyDetails as nt, GetEntriesByIdentifiersParams as o, ResilienceSource as p, ParsePublishedRuntimeCacheKeyResult as q, CircuitState as r, parsePublishedRuntimeCachePayloadSchemaVersion as rt, GetPageParams as s, ApiKeyType as t, parsePublishedRuntimeCacheKey as tt, ResilienceCacheTier as u, RiverbankClientConfig as v, SdkMethodOptions as w, SdkCorrelationHeaderName as x, SDK_CORRELATION_HEADER_NAMES as y, RuntimeCachePolicyKind as z };
@@ -1,6 +1,6 @@
1
- import { Gt as SdkSiteLayoutConfig } from "./request-BjKBCS7t.js";
2
- import { H as SystemBlockKind, r as ContentConfig, x as FieldDefinition } from "./content-types-DL6GIvTm.js";
3
- import { c as NodeDefinition } from "./index-DCiSHd-C.js";
1
+ import { Kt as SdkSiteLayoutConfig } from "./request-P08l6mkr.js";
2
+ import { H as SystemBlockKind, r as ContentConfig, x as FieldDefinition } from "./content-types-1-K2qi__.js";
3
+ import { c as NodeDefinition } from "./index-BeM5Ylwf.js";
4
4
 
5
5
  //#region .cache/declarations/sdk/src/config/types.d.ts
6
6
  /**
@@ -1,7 +1,7 @@
1
- import { Ht as NavigationAuthoringLinkInput, Ut as NavigationConfigItemInput } from "./request-BjKBCS7t.js";
2
- import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-DL6GIvTm.js";
3
- import { u as BindingTransformName } from "./index-DCiSHd-C.js";
4
- import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-B7e6Lmo5.js";
1
+ import { Ut as NavigationAuthoringLinkInput, Wt as NavigationConfigItemInput } from "./request-P08l6mkr.js";
2
+ import { d as TEMPLATE_BINDING_META_PATHS, i as ContentTypeConfig, r as ContentConfig } from "./content-types-1-K2qi__.js";
3
+ import { u as BindingTransformName } from "./index-BeM5Ylwf.js";
4
+ import { a as BlockFieldOptionsMap, d as SdkCustomBlock, i as BlockFieldExtensionsMap, r as BlockFieldExtension, u as RiverbankSiteConfig, x as SyncConfig } from "./types-HAy1-Jjo.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-B6SqU49k.mjs"),
81
- headerSection: () => import("./headerSection-DGcJfRS8.mjs"),
82
- carousel: () => import("./carousel-C-YJliD-.mjs"),
83
- form: () => import("./form-DyH2juYT.mjs"),
84
- "booking-form": () => import("./bookingForm-drZBwEZW.mjs"),
85
- "event-registration": () => import("./eventRegistration-COMHoRl6.mjs"),
86
- "event-listing": () => import("./eventListing-BaNAoC_M.mjs"),
87
- "event-calendar": () => import("./eventCalendar-CphYnImh.mjs"),
88
- "event-combined": () => import("./eventCombined-BvqjASB_.mjs"),
89
- "product-list": () => import("./productList-DE9GEFoZ.mjs"),
90
- "product-detail": () => import("./productDetail-DjuFvkey.mjs"),
91
- "cart": () => import("./cart-acGFWK9R.mjs"),
92
- "checkout": () => import("./checkout-SEontwhy.mjs"),
93
- shop: () => import("./shop-C3wM0Hr4.mjs"),
94
- "newsletter-form": () => import("./newsletterForm-CoTXDNFS.mjs"),
95
- gifting: () => import("./gifting-CIx4V378.mjs")
80
+ accordion: () => import("./accordion-wofJY8xY.mjs"),
81
+ headerSection: () => import("./headerSection-Cg6083rn.mjs"),
82
+ carousel: () => import("./carousel-BE1dEFsD.mjs"),
83
+ form: () => import("./form-Zl1_8RJ6.mjs"),
84
+ "booking-form": () => import("./bookingForm-kgVWtuMe.mjs"),
85
+ "event-registration": () => import("./eventRegistration-CprS9k1D.mjs"),
86
+ "event-listing": () => import("./eventListing-CQMxQ8By.mjs"),
87
+ "event-calendar": () => import("./eventCalendar-Di9wDfzl.mjs"),
88
+ "event-combined": () => import("./eventCombined-CNW6nBsB.mjs"),
89
+ "product-list": () => import("./productList-BAdJ6z5S.mjs"),
90
+ "product-detail": () => import("./productDetail-CRX_ZRfS.mjs"),
91
+ "cart": () => import("./cart-BsjsdGZE.mjs"),
92
+ "checkout": () => import("./checkout-B5KxEUDr.mjs"),
93
+ shop: () => import("./shop-BKsgxm_-.mjs"),
94
+ "newsletter-form": () => import("./newsletterForm-BkJe_RTv.mjs"),
95
+ gifting: () => import("./gifting-DNVa7-Wj.mjs")
96
96
  };
97
97
  const DEFAULT_MAX_RETRIES = 2;
98
98
  const RETRY_DELAYS_MS = [250, 1e3];
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { Jn as decideSignInReturn, Kn as clearSignInReturnDrafts, Qn as sweepExpiredSignInReturnDrafts, Xn as readSignInReturn, Yn as nextSignInReturnExpiry, Zn as signInReturnPath, ha as requestSignIn, za as RichText } from "./wizardSteps-CNDsxeJH.mjs";
3
- import { t as assertNever } from "./src-CCtanNlD.mjs";
4
- import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-DTrwaQtg.mjs";
2
+ import { $a as RichText, ar as clearSignInReturnDrafts, cr as nextSignInReturnExpiry, dr as sweepExpiredSignInReturnDrafts, ka as requestSignIn, lr as readSignInReturn, sr as decideSignInReturn, ur as signInReturnPath } from "./wizardSteps-CWIQyRIw.mjs";
3
+ import { t as assertNever } from "./src-o7WEvbK1.mjs";
4
+ import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-DXegGSnS.mjs";
5
+ import { i as BlockApiError, n as useBlockApi, r as useBlockApiOptional } from "./context-DtKdUdkO.mjs";
5
6
  import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
6
- import { f as NavigationHandOffPanel } from "./DemoBookingPortalAccess-uA9H8LIL.mjs";
7
- import { a as DemoPortalSignInLink, t as BookingQuestionFields } from "./BookingQuestionFields-C8IbeLHj.mjs";
7
+ import { p as NavigationHandOffPanel } from "./DemoBookingPortalAccess-0Ua44F1j.mjs";
8
8
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
9
- import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl } from "./demoPortalMagicLink-D0kOJYOX.mjs";
9
+ import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl } from "./demoPortalMagicLink-B8eDjhuG.mjs";
10
10
  import { n as getBookingMailingListNoteCopy } from "./mailingListSignupCopy-CX4sDozG.mjs";
11
11
  import * as React$1 from "react";
12
12
  import { useCallback, useEffect, useId, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
@@ -802,6 +802,73 @@ function getMagicLinkErrorMessage(error) {
802
802
  return error instanceof BlockApiError ? error.message : "We couldn’t send the sign-in link. Try again in a moment.";
803
803
  }
804
804
  //#endregion
805
+ //#region ../blocks/src/system/runtime/nodes/shared/SignInNotice.tsx
806
+ /**
807
+ * A one-line offer to sign in by email link, read as one sentence around the
808
+ * "Sign in" link ("Booked with us before? Sign in and we’ll…"). The booking
809
+ * flows share it; each says what signing in gets the booker. `returnPath`
810
+ * keeps what they've typed for when they come back.
811
+ */
812
+ function SignInNotice(props) {
813
+ const [open, setOpen] = React$1.useState(false);
814
+ const [handOff, setHandOff] = React$1.useState(null);
815
+ const api = useBlockApiOptional();
816
+ const signIn = () => {
817
+ const outcome = requestSignIn(window.location.href, () => setOpen(true), api?.config.pageNavigation);
818
+ if (outcome.kind === "handOff") setHandOff(outcome);
819
+ };
820
+ if (handOff) return /* @__PURE__ */ jsx(NavigationHandOffPanel, {
821
+ handOff,
822
+ onBack: () => setHandOff(null)
823
+ });
824
+ return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
825
+ className: "rb-bq-note",
826
+ children: [
827
+ props.lead,
828
+ " ",
829
+ /* @__PURE__ */ jsx("button", {
830
+ type: "button",
831
+ className: "rb-bq-link",
832
+ onClick: signIn,
833
+ children: "Sign in"
834
+ }),
835
+ " ",
836
+ props.after
837
+ ]
838
+ }), open ? /* @__PURE__ */ jsx(SignInModal, {
839
+ email: props.email,
840
+ returnPath: props.returnPath,
841
+ onClose: () => setOpen(false)
842
+ }) : null] });
843
+ }
844
+ function SignInModal(props) {
845
+ return /* @__PURE__ */ jsx(ModalShell, {
846
+ title: "Sign in with email",
847
+ titleId: `${React$1.useId()}-sign-in-title`,
848
+ onClose: props.onClose,
849
+ overlayClassName: "rb-reg-modal-overlay",
850
+ modalClassName: "rb-reg-modal",
851
+ titleClassName: "rb-reg-modal-title",
852
+ closeButtonClassName: "rb-reg-modal-close",
853
+ children: /* @__PURE__ */ jsx("div", {
854
+ className: "rb-reg-modal-content",
855
+ children: /* @__PURE__ */ jsx(MagicLinkForm, {
856
+ initialEmail: props.email,
857
+ subtitle: "Enter your email and we’ll send you a link to sign in.",
858
+ buttonText: "Send sign-in link",
859
+ successMessage: (email) => `We’ve sent a sign-in link to ${email}.`,
860
+ successDetail: "Open it on this device and you’ll come back to this booking with everything you’ve typed so far.",
861
+ successAction: {
862
+ label: "Back to my booking",
863
+ onClick: props.onClose
864
+ },
865
+ classPrefix: "rb-reg",
866
+ returnPath: props.returnPath
867
+ })
868
+ })
869
+ });
870
+ }
871
+ //#endregion
805
872
  //#region ../blocks/src/system/runtime/nodes/shared/BookingQuestionSections.tsx
806
873
  /**
807
874
  * The question set asked while booking, shared by the appointment booking
@@ -817,6 +884,8 @@ function BookingQuestionSections(props) {
817
884
  children: presentation.message
818
885
  });
819
886
  case "ask": return /* @__PURE__ */ jsxs(QuestionSetSection, { children: [presentation.signIn === "offered" ? /* @__PURE__ */ jsx(SignInNotice, {
887
+ lead: "Booked with us before?",
888
+ after: "and we’ll fill in the answers you gave last time.",
820
889
  email: props.signInEmail,
821
890
  returnPath: props.signInReturnPath
822
891
  }) : null, /* @__PURE__ */ jsx(QuestionFields, {
@@ -896,58 +965,21 @@ function AlreadyAnswered(input) {
896
965
  }) })]
897
966
  });
898
967
  }
899
- function SignInNotice(props) {
900
- const [open, setOpen] = React$1.useState(false);
901
- const [handOff, setHandOff] = React$1.useState(null);
902
- const api = useBlockApiOptional();
903
- const signIn = () => {
904
- const outcome = requestSignIn(window.location.href, () => setOpen(true), api?.config.pageNavigation);
905
- if (outcome.kind === "handOff") setHandOff(outcome);
906
- };
907
- const titleId = `${React$1.useId()}-sign-in-title`;
908
- if (handOff) return /* @__PURE__ */ jsx(NavigationHandOffPanel, {
909
- handOff,
910
- onBack: () => setHandOff(null)
911
- });
912
- return /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsxs("p", {
913
- className: "rb-bq-note",
914
- children: [
915
- "Booked with us before?",
916
- " ",
917
- /* @__PURE__ */ jsx("button", {
918
- type: "button",
919
- className: "rb-bq-link",
920
- onClick: signIn,
921
- children: "Sign in"
922
- }),
923
- " ",
924
- "and we’ll fill in the answers you gave last time."
925
- ]
926
- }), open ? /* @__PURE__ */ jsx(ModalShell, {
927
- title: "Sign in with email",
928
- titleId,
929
- onClose: () => setOpen(false),
930
- overlayClassName: "rb-reg-modal-overlay",
931
- modalClassName: "rb-reg-modal",
932
- titleClassName: "rb-reg-modal-title",
933
- closeButtonClassName: "rb-reg-modal-close",
934
- children: /* @__PURE__ */ jsx("div", {
935
- className: "rb-reg-modal-content",
936
- children: /* @__PURE__ */ jsx(MagicLinkForm, {
937
- initialEmail: props.email,
938
- subtitle: "Enter your email and we’ll send you a link to sign in.",
939
- buttonText: "Send sign-in link",
940
- successMessage: (email) => `We’ve sent a sign-in link to ${email}.`,
941
- successDetail: "Open it on this device and you’ll come back to this booking with everything you’ve typed so far.",
942
- successAction: {
943
- label: "Back to my booking",
944
- onClick: () => setOpen(false)
945
- },
946
- classPrefix: "rb-reg",
947
- returnPath: props.returnPath
948
- })
949
- })
950
- }) : null] });
968
+ //#endregion
969
+ //#region ../blocks/src/system/runtime/shared/components/OrganiserContactLine.tsx
970
+ /** The business's published email and phone, as links a client can tap. */
971
+ function OrganiserContactLine({ contact }) {
972
+ return /* @__PURE__ */ jsxs("p", { children: [
973
+ contact.email ? /* @__PURE__ */ jsx("a", {
974
+ href: `mailto:${contact.email}`,
975
+ children: contact.email
976
+ }) : null,
977
+ contact.email && contact.phone ? " · " : null,
978
+ contact.phone ? /* @__PURE__ */ jsx("a", {
979
+ href: `tel:${contact.phone.replace(/\s+/g, "")}`,
980
+ children: contact.phone
981
+ }) : null
982
+ ] });
951
983
  }
952
984
  //#endregion
953
985
  //#region ../blocks/src/system/runtime/shared/components/BookingMailingListNote.tsx
@@ -960,4 +992,4 @@ function BookingMailingListNote(props) {
960
992
  });
961
993
  }
962
994
  //#endregion
963
- export { usePolling as a, useBookingQuestionsRefresh as c, BookingConsentAgreement as i, PaymentChoiceRows as l, BookingQuestionSections as n, portalSessionIdentity as o, MagicLinkForm as r, useSignInReturn as s, BookingMailingListNote as t };
995
+ export { MagicLinkForm as a, portalSessionIdentity as c, PaymentChoiceRows as d, SignInNotice as i, useSignInReturn as l, OrganiserContactLine as n, BookingConsentAgreement as o, BookingQuestionSections as r, usePolling as s, BookingMailingListNote as t, useBookingQuestionsRefresh as u };
@@ -1,12 +1,33 @@
1
1
  "use client";
2
- import { pn as toUtcIsoDateTimeString } from "./src-CCtanNlD.mjs";
2
+ import { Gt as capitalize, vn as toUtcIsoDateTimeString } from "./src-o7WEvbK1.mjs";
3
3
  import { s as getInitialFieldValue } from "./creditProducts-BQ1t1erI.mjs";
4
- import { i as BlockApiError } from "./context-DTrwaQtg.mjs";
4
+ import { i as BlockApiError } from "./context-DtKdUdkO.mjs";
5
5
  import { i as ThemedButtonLink } from "./ThemedButton-CnSa7o-I.mjs";
6
6
  import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
7
7
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
8
8
  import { useCallback, useEffect, useState } from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ 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";
11
+ function clientPersonPhrases(noun) {
12
+ if (noun == null) return {
13
+ label: "Who with",
14
+ chooseAnother: "Choose someone else",
15
+ anyone: "Anyone who's free",
16
+ chooseYours: "Choose who you'd like to see",
17
+ withName: (name) => `With ${name}`,
18
+ listLabel: () => "With"
19
+ };
20
+ const singularLabel = capitalize(noun.singular);
21
+ return {
22
+ label: singularLabel,
23
+ chooseAnother: `Choose another ${noun.singular}`,
24
+ anyone: `Any ${noun.singular}`,
25
+ chooseYours: `Choose your ${noun.singular}`,
26
+ withName: (name) => `${singularLabel}: ${name}`,
27
+ listLabel: (count) => count === 1 ? singularLabel : capitalize(noun.plural)
28
+ };
29
+ }
30
+ //#endregion
10
31
  //#region ../blocks/src/system/runtime/shared/components/DemoPortalSignInLink.tsx
11
32
  function DemoPortalSignInLink(props) {
12
33
  return /* @__PURE__ */ jsxs("div", { children: [
@@ -356,4 +377,4 @@ function BookingQuestionFields({ sections, values, fieldErrors = {}, onChange, d
356
377
  }, section.id)) });
357
378
  }
358
379
  //#endregion
359
- export { DemoPortalSignInLink as a, useBookingNowIso as i, OptionalMark as n, parseBookingSubmissionFailure as r, BookingQuestionFields as t };
380
+ export { DemoPortalSignInLink as a, useBookingNowIso as i, OptionalMark as n, clientPersonPhrases as o, parseBookingSubmissionFailure as r, indefiniteArticle as s, BookingQuestionFields as t };
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { bn as formatEventPrice } from "./newsletter-form.interactive-DCO1lErD.mjs";
3
- import { Da as formatEventRemainingPlaces, Na as isEventFull, Ua as eventDateOptions, no as groupEventsByDate, ro as resolveEventTimeZone, to as formatTime, xa as formatEventLocation, ya as eventPlaceName } from "./wizardSteps-CNDsxeJH.mjs";
4
- import { Kt as formatDate, un as parseBookingLocalDate } from "./src-CCtanNlD.mjs";
5
- import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-IqT_SVnX.mjs";
2
+ import { bn as formatEventPrice } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
+ import { Fa as formatEventLocation, Na as eventPlaceName, Va as formatEventRemainingPlaces, _o as resolveEventTimeZone, go as groupEventsByDate, ho as formatTime, qa as isEventFull, ro as eventDateOptions } from "./wizardSteps-CWIQyRIw.mjs";
4
+ import { Zt as formatDate, hn as parseBookingLocalDate } from "./src-o7WEvbK1.mjs";
5
+ import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
6
6
  import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
7
7
  import { d as formatDateKey, v as isToday } from "./src-uwCpbHXG.mjs";
8
- import { _ as resolveEventLinkProps, g as resolveEventCta, l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-Duhk1vnF.mjs";
8
+ import { _ as resolveEventLinkProps, g as resolveEventCta, l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
9
9
  import "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../core/src/duration.ts
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
- import { pa as leavePage } from "./wizardSteps-CNDsxeJH.mjs";
4
- import { i as BlockApiError, n as useBlockApi } from "./context-DTrwaQtg.mjs";
3
+ import { Bn as isEmailAddress, Da as leavePage } from "./wizardSteps-CWIQyRIw.mjs";
4
+ import { i as BlockApiError, n as useBlockApi } from "./context-DtKdUdkO.mjs";
5
5
  import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
6
- import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-D0kOJYOX.mjs";
6
+ import { i as requestDemoPortalMagicLink, r as buildPortalCallbackUrl, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-B8eDjhuG.mjs";
7
7
  import React, { useCallback, useEffect, useId, useRef, useState } from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region ../blocks/src/system/runtime/api/types/discounts.ts
@@ -220,7 +220,6 @@ function handOffDescription(props, offering) {
220
220
  }
221
221
  //#endregion
222
222
  //#region ../blocks/src/system/runtime/nodes/shop-checkout-form.ts
223
- const EMAIL_PATTERN = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
224
223
  function normalizeManualDiscountCode(raw) {
225
224
  const trimmed = raw.trim();
226
225
  return trimmed ? trimmed : null;
@@ -231,7 +230,7 @@ function normalizeCheckoutEmail(raw) {
231
230
  type: "missing_contact",
232
231
  message: "Please enter your email"
233
232
  });
234
- if (!EMAIL_PATTERN.test(email)) return err({
233
+ if (!isEmailAddress(email)) return err({
235
234
  type: "invalid_email",
236
235
  message: "Please enter a valid email address"
237
236
  });
@@ -352,9 +351,15 @@ function checkoutFormForDiscountUiState(form, discountUiState) {
352
351
  const DISCOUNT_APPLY_MESSAGES = {
353
352
  emptyCode: "Enter a discount code first.",
354
353
  emailRequired: "Enter your email before applying a code.",
354
+ emailInvalid: "Your email address doesn't look quite right. Check it, then apply the code again.",
355
355
  unavailable: "This code doesn't work for this booking.",
356
356
  unknown: "We couldn't check that code. Try again."
357
357
  };
358
+ /** Why a code can't be checked yet: the server prices a code for a customer, so it needs a valid email first. */
359
+ function discountEmailProblem(email) {
360
+ if (!email.trim()) return DISCOUNT_APPLY_MESSAGES.emailRequired;
361
+ return isEmailAddress(email) ? null : DISCOUNT_APPLY_MESSAGES.emailInvalid;
362
+ }
358
363
  /** A code the server refused at checkout, as opposed to the checkout itself failing. */
359
364
  function isDiscountCodeRefusal(error) {
360
365
  return error instanceof BlockApiError && error.fieldErrors.some((field) => field.field === "discountCode");
@@ -374,7 +379,7 @@ function planDiscountApplyRequest(options) {
374
379
  const discountCode = normalizeManualDiscountCode(options.state.draftCode);
375
380
  if (!discountCode) return refusedDiscountApply("empty_code", DISCOUNT_APPLY_MESSAGES.emptyCode);
376
381
  const email = normalizeCheckoutEmail(options.getCustomerEmail());
377
- if (!email.ok) return refusedDiscountApply("email_required", DISCOUNT_APPLY_MESSAGES.emailRequired);
382
+ if (!email.ok) return refusedDiscountApply("email_required", discountEmailProblem(options.getCustomerEmail()) ?? DISCOUNT_APPLY_MESSAGES.emailRequired);
378
383
  const linesPlan = options.getLines();
379
384
  if (!linesPlan.ok || linesPlan.lines.length === 0) return refusedDiscountApply("unavailable", DISCOUNT_APPLY_MESSAGES.unavailable);
380
385
  return {
@@ -542,4 +547,4 @@ function handlePortalAccessError(error) {
542
547
  };
543
548
  }
544
549
  //#endregion
545
- export { useDiscountApply as a, normalizeManualDiscountCode as c, planUnifiedCheckoutRequest as d, NavigationHandOffPanel as f, getAutoAppliedDiscountPreview as g, discountAvailabilityHasDiscounts as h, isDiscountCodeRefusal as i, planCartDiscountAvailabilityRequests as l, discountAvailabilityAllowsManualEntry as m, DemoBookingPortalAccess as n, aggregateCartDiscountUiState as o, DiscountCodeDisclosure as p, DISCOUNT_APPLY_MESSAGES as r, checkoutFormForDiscountUiState as s, BookingConfirmation as t, planDirectShopCheckoutRequest as u };
550
+ export { getAutoAppliedDiscountPreview as _, isDiscountCodeRefusal as a, checkoutFormForDiscountUiState as c, planDirectShopCheckoutRequest as d, planUnifiedCheckoutRequest as f, discountAvailabilityHasDiscounts as g, discountAvailabilityAllowsManualEntry as h, discountEmailProblem as i, normalizeManualDiscountCode as l, DiscountCodeDisclosure as m, DemoBookingPortalAccess as n, useDiscountApply as o, NavigationHandOffPanel as p, DISCOUNT_APPLY_MESSAGES as r, aggregateCartDiscountUiState as s, BookingConfirmation as t, planCartDiscountAvailabilityRequests as u };
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { $t as eventListWeekDays, Qt as buildEventListWeek, d as buildEventCalendarListingRender, in as buildEventRuntimeFilters } from "./newsletter-form.interactive-DCO1lErD.mjs";
3
- import { Xa as formatEventHourLabel, no as groupEventsByDate } from "./wizardSteps-CNDsxeJH.mjs";
4
- import { v as resolveCalendarReadProfile } from "./src-CCtanNlD.mjs";
5
- import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-Bbqij1XQ.mjs";
6
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-lhE29TNT.mjs";
2
+ import { $t as eventListWeekDays, Qt as buildEventListWeek, d as buildEventCalendarListingRender, in as buildEventRuntimeFilters } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
+ import { go as groupEventsByDate, uo as formatEventHourLabel } from "./wizardSteps-CWIQyRIw.mjs";
4
+ import { v as resolveCalendarReadProfile } from "./src-o7WEvbK1.mjs";
5
+ import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-VfP50sYm.mjs";
6
+ import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-BOff1Kk5.mjs";
7
7
  import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
8
8
  import { d as formatDateKey, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
9
- import { u as eventDisplayTitleText } from "./EventItem-Duhk1vnF.mjs";
10
- import { i as useEventCollectionFilters } from "./useEventPagination-C4rS2Xxl.mjs";
11
- import { n as EventListingController } from "./EventListing.client-B5ln77jG.mjs";
12
- 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-HeCNlliq.mjs";
9
+ import { u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
10
+ import { i as useEventCollectionFilters } from "./useEventPagination-BvdcexDC.mjs";
11
+ import { n as EventListingController } from "./EventListing.client-BNM_HuS0.mjs";
12
+ 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-D0me9wnz.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,17 +1,17 @@
1
1
  "use client";
2
- import { an as getEventRuntimeFiltersKey, in as buildEventRuntimeFilters, s as eventListingBlockRuntime, zt as toError } from "./newsletter-form.interactive-DCO1lErD.mjs";
3
- import { Ba as buildCalendarViewport, Ua as eventDateOptions, Va as eventCalendarWeekStart, no as groupEventsByDate, to as formatTime, ua as getBlockApiReadStage } from "./wizardSteps-CNDsxeJH.mjs";
4
- import { Et as calendarMonthDate, Kt as formatDate, _ as planCalendarMonthRanges, d as calendarMonthKey, f as calendarPageResponseError, h as calendarWindowMonths$1, ln as getLocalScheduleDate, m as calendarWindowBounds, p as calendarQueryKey } from "./src-CCtanNlD.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-Bbqij1XQ.mjs";
6
- import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
7
- import { r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
2
+ import { an as getEventRuntimeFiltersKey, in as buildEventRuntimeFilters, s as eventListingBlockRuntime, zt as toError } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
+ import { eo as buildCalendarViewport, go as groupEventsByDate, ho as formatTime, ro as eventDateOptions, to as eventCalendarWeekStart, wa as getBlockApiReadStage } from "./wizardSteps-CWIQyRIw.mjs";
4
+ import { At as calendarMonthDate, Zt as formatDate, _ as planCalendarMonthRanges, d as calendarMonthKey, f as calendarPageResponseError, h as calendarWindowMonths$1, m as calendarWindowBounds, mn as getLocalScheduleDate, p as calendarQueryKey } from "./src-o7WEvbK1.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-VfP50sYm.mjs";
6
+ import { n as useBlockApi } from "./context-DtKdUdkO.mjs";
7
+ import { r as listLookSlot } from "./lookSurfaces-gJ3OqPf9.mjs";
8
8
  import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
9
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-Duhk1vnF.mjs";
10
+ import { u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
11
11
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
12
12
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
13
13
  import { t as TabBarFragment } from "./TabBarFragment-DlKQRhP4.mjs";
14
- import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-C4rS2Xxl.mjs";
14
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-BvdcexDC.mjs";
15
15
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
17
17
  //#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { Jt as EventQuickFacts, Kt as resolveCardListSchedule, Ut as CardListContentPart, Wt as CardListLeadDate, bn as formatEventPrice, qt as selectCardListPresentation } from "./newsletter-form.interactive-DCO1lErD.mjs";
3
- import { $a as formatEventTimeRange, Ca as hasEventBookingClosedEarly, Da as formatEventRemainingPlaces, Ea as canJoinEventWaitlistOnAnyMode, Ja as formatEventCompactDateRail, Jo as resolveWholeSeriesBookingPhase, Na as isEventFull, Sa as resolveRuntimeEventDestination, Ua as eventDateOptions, eo as formatEventWeekdayTime, ja as getEventAvailabilityStatus, qo as orderedLiveRunSessions } from "./wizardSteps-CNDsxeJH.mjs";
2
+ import { Jt as EventQuickFacts, Kt as resolveCardListSchedule, Ut as CardListContentPart, Wt as CardListLeadDate, bn as formatEventPrice, qt as selectCardListPresentation } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
+ import { Ba as canJoinEventWaitlistOnAnyMode, Ga as getEventAvailabilityStatus, Ia as resolveRuntimeEventDestination, La as hasEventBookingClosedEarly, Va as formatEventRemainingPlaces, co as formatEventCompactDateRail, ds as orderedLiveRunSessions, fs as resolveWholeSeriesBookingPhase, mo as formatEventWeekdayTime, po as formatEventTimeRange, qa as isEventFull, ro as eventDateOptions } from "./wizardSteps-CWIQyRIw.mjs";
4
4
  import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
5
- import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-IqT_SVnX.mjs";
5
+ import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
6
6
  import { R as isCssColorLiteral, V as resolveTokenOrCssColorValue, st as getTextColorForBackground, z as resolveOnColorForThemeToken } from "./accessibleSurfaces-Wl8-_OVJ.mjs";
7
7
  import { i as ThemedButtonLink, p as ClockIcon } from "./ThemedButton-CnSa7o-I.mjs";
8
8
  import React from "react";
@@ -838,7 +838,8 @@ function cardItemSlotParents(arrangement) {
838
838
  "item-media": "item",
839
839
  dates: body,
840
840
  date: arrangement === "slides" || arrangement === "track" ? "item-media" : "dates",
841
- availability: body
841
+ availability: body,
842
+ facts: body
842
843
  };
843
844
  }
844
845
  //#endregion
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
2
+ import { r as listLookSlot } from "./lookSurfaces-gJ3OqPf9.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
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { in as buildEventRuntimeFilters } from "./newsletter-form.interactive-DCO1lErD.mjs";
3
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-BiutEqPK.mjs";
4
- import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-C4rS2Xxl.mjs";
2
+ import { in as buildEventRuntimeFilters } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-BlEm_xjq.mjs";
4
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-BvdcexDC.mjs";
5
5
  import { useMemo } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx