@riverbankcms/sdk 0.169.1 → 0.171.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 (227) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-DEhlJEwj.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
  3. package/dist/_dts/{Page-BhCfStX1.d.ts → Page-4fzXy8H9.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-DSYdsdmJ.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
  5. package/dist/_dts/{client-BZMn4Y99.d.ts → client-BPoU758C.d.ts} +32 -1
  6. package/dist/_dts/{content-types-EMK-E_r9.d.ts → content-types-TnkhoSls.d.ts} +3 -3
  7. package/dist/_dts/{contracts-DjYsGY3B.d.ts → contracts-7wrMA79U.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BtYUi-m0.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-D_fNTi5r.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
  10. package/dist/_dts/{index-NaRauKDR.d.ts → index-585vn6qb.d.ts} +72 -36
  11. package/dist/_dts/{index-BR0i0c3G.d.ts → index-CZKSUcDs.d.ts} +4 -4
  12. package/dist/_dts/{index-BV-qVnt7.d.ts → index-Cbw0IiY7.d.ts} +2 -2
  13. package/dist/_dts/{index-DgEwZ5WQ.d.ts → index-ChNbrcgD.d.ts} +1 -1
  14. package/dist/_dts/{index-QIbYMeI7.d.ts → index-DDKJfaLY.d.ts} +2 -2
  15. package/dist/_dts/{index-BzguBJzR.d.ts → index-DNCDENic.d.ts} +1 -1
  16. package/dist/_dts/{index-BYYhTQ_b.d.ts → index-W9R3Bnf2.d.ts} +3 -3
  17. package/dist/_dts/{loadContent-BmGH6NKl.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
  18. package/dist/_dts/{request-DssgRQSm.d.ts → request-jXTRN1Y4.d.ts} +45927 -42247
  19. package/dist/_dts/{resolveBlockData-5BqNxwL8.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-DIuwuFA7.d.ts → resolvePageContent-BBgih00D.d.ts} +2 -2
  21. package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +7 -7
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +4 -4
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +4740 -3
  55. package/dist/_dts/{types-cObpvZGF.d.ts → types-BXuVxDYo.d.ts} +2 -2
  56. package/dist/_dts/{types-DrAWDtqR.d.ts → types-DEAKoDNi.d.ts} +3 -3
  57. package/dist/_dts/{types-Z388-GR1.d.ts → types-kWvBwYK6.d.ts} +7 -7
  58. package/dist/_dts/{validation-hLr8zVrc.d.ts → validation-BAO0_ntM.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-CN2GyuuA.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-DSnSBNeq.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-ucgdMS35.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-BEdfJGpx.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-OpLehMpT.mjs → EventItem-BnwcoFQN.mjs} +13 -9
  70. package/dist/client/{EventListWeekNavigation-DTsVU6gc.mjs → EventListWeekNavigation-DuG6z02f.mjs} +2 -1
  71. package/dist/client/{EventListing.client-8MFGI9BA.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
  72. package/dist/client/{EventListing.view-BCvRqU86.mjs → EventListing.view-BM7rTVSL.mjs} +42 -397
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.mjs} +13 -13
  74. package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
  76. package/dist/client/Page-DH2sm4Cf.mjs +30247 -0
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-CsRlU46Y.mjs +894 -0
  79. package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
  80. package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
  81. package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-Bbn1-jJ8.mjs} +52 -2
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-B-M5l__W.mjs → cart-BozMM5NK.mjs} +3 -3
  90. package/dist/client/{cart.client-COAP4CEy.mjs → cart.client-CqOOxPbW.mjs} +1 -1
  91. package/dist/client/{checkout-ZHc8GfaG.mjs → checkout-CTWF5nbB.mjs} +3 -3
  92. package/dist/client/{checkout.client-DRralR3e.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
  94. package/dist/client/client.mjs +640 -226
  95. package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
  96. package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
  97. package/dist/client/{cta-CfuyGqXL.mjs → cta-pzQkBLgS.mjs} +2 -2
  98. package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
  100. package/dist/client/{display-DDNmyb0z.mjs → display-Cl6mgSJa.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
  104. package/dist/client/{eventCalendar-BY3AfYkK.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
  105. package/dist/client/{eventCombined-86P2vQCb.mjs → eventCombined-dELKxxIe.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
  107. package/dist/client/{eventListing-8jS0qGGC.mjs → eventListing-B2HTUWLq.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
  109. package/dist/client/form-DX70QG-J.mjs +27 -0
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.mjs} +3 -3
  112. package/dist/client/formSnapshot-Cy4abc0T.mjs +73 -0
  113. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  114. package/dist/client/gifting/client.mjs +3 -3
  115. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
  116. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
  117. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
  118. package/dist/client/{newsletterForm-o5wFBVHv.mjs → newsletterForm-D1MHoPbh.mjs} +5 -26
  119. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  120. package/dist/client/portal/client.mjs +294 -48
  121. package/dist/client/{product-detail.client-5hNA8aKU.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
  122. package/dist/client/{product-list.client-c-777ohj.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
  123. package/dist/client/{productDetail-hXttfQhE.mjs → productDetail-BN3zv5sa.mjs} +3 -3
  124. package/dist/client/{productList-BPsYP_jA.mjs → productList-GN_Id4bF.mjs} +3 -3
  125. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
  126. package/dist/client/{registry.server-CMrdUGGv.mjs → registry.server-BOyra8CA.mjs} +1032 -925
  127. package/dist/client/rendering/client.mjs +57 -32
  128. package/dist/client/rendering/islandDelivery.flight.mjs +43 -10
  129. package/dist/client/rendering/islands.mjs +1 -1
  130. package/dist/client/rendering.mjs +1956 -191
  131. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  132. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
  133. package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
  135. package/dist/client/{shop-Ds47onRS.mjs → shop-LjBLDBqF.mjs} +3 -3
  136. package/dist/client/{shop-commerce-B3PyRHaN.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
  137. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
  138. package/dist/client/{shop.client-RljK0qPB.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
  139. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
  140. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
  141. package/dist/client/spam-protection.mjs +1 -1
  142. package/dist/client/{timetableModel-BG7Ejxdr.mjs → timetableModel-D1jDTbms.mjs} +11 -11
  143. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  144. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  145. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
  146. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
  147. package/dist/client/{useEventPagination-spj7sGQP.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
  148. package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
  149. package/dist/client/{view-aAP2WbCR.mjs → view-ShYH3WXh.mjs} +3 -3
  150. package/dist/preview-next/before-render.mjs +33 -13
  151. package/dist/preview-next/chrome.css +4 -0
  152. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  153. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
  154. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
  155. package/dist/preview-next/client/{ArrangementLookControls-CoWdilcI.mjs → PageSectionToolbar-DsSqwrMS.mjs} +397 -23
  156. package/dist/preview-next/client/{PreviewEditorSidebar-BNCrO6PQ.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3266 -3215
  157. package/dist/preview-next/client/{PreviewEditorUI-inVZkLCd.mjs → PreviewEditorUI-C86Out4V.mjs} +6 -39
  158. package/dist/preview-next/client/{PreviewShell-CFQlAHTe.mjs → PreviewShell-CBWYjBvQ.mjs} +50 -41
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-Dgl7ktO4.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
  160. package/dist/preview-next/client/{SiteChromeCustomizeButton-DgDYHwkG.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1249 -22697
  161. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  162. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
  163. package/dist/preview-next/client/{previewAssistantSlot-DRDu7Ndv.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3481 -2113
  164. package/dist/preview-next/client/{previewChromeSurface-K6Q5uEMC.mjs → previewChromeRoot-DPeV7KaP.mjs} +52 -14
  165. package/dist/preview-next/client/runtime.mjs +3 -3
  166. package/dist/preview-next/client/{sdk-runtime-AGypzhcO.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
  167. package/dist/preview-next/client/{useAutosaveStatus-B2mn_l6c.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
  168. package/dist/preview-next/client/{useBlockCustomizeControls-CBXHo6ph.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +40 -21
  169. package/dist/preview-next/container-responsive.css +3093 -0
  170. package/dist/preview-next/editor-base.css +90 -178
  171. package/dist/preview-next/editor-chrome.css +25 -8
  172. package/dist/preview-next/keepAlive.mjs +1 -1
  173. package/dist/preview-next/middleware.mjs +1 -1
  174. package/dist/preview-next/{route-contract-jc2Bug-h.mjs → route-contract-CtSgU8UZ.mjs} +547 -196
  175. package/dist/server/{Block.shared-BHgQjX16.mjs → Block.shared-ifgaBglp.mjs} +4 -4
  176. package/dist/server/ThemeScopeCore-DGDOH6OU.mjs +1983 -0
  177. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
  178. package/dist/server/bindings-CiYpie1M.mjs +1802 -0
  179. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  180. package/dist/server/{client-C-asG6Cf.mjs → client-ngWuFsmN.mjs} +638 -224
  181. package/dist/server/config-template-validation.mjs +30 -4
  182. package/dist/server/config-validation.mjs +1 -1
  183. package/dist/server/config.mjs +3 -34
  184. package/dist/server/data/resolveBlockData.mjs +1 -1
  185. package/dist/server/index.mjs +3 -3
  186. package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
  187. package/dist/server/{loadPage-XgtQR90Z.mjs → loadPage-D4J747FQ.mjs} +2 -2
  188. package/dist/server/manifest.mjs +1 -1
  189. package/dist/server/next.mjs +8 -6
  190. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
  191. package/dist/server/{overrideResolution-Z5pwH-kz.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
  192. package/dist/server/page-converter.mjs +3 -3
  193. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  194. package/dist/server/{pageRenderPlan-DQAo35og.mjs → pageRenderPlan-DFv3h4Ib.mjs} +309 -289
  195. package/dist/server/{pageRuntimeSupport-g-K-FCHa.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
  196. package/dist/server/{pageShared-7mPhqqXX.mjs → pageShared-CAZD0LcY.mjs} +875 -328
  197. package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
  198. package/dist/server/{prebuild-C0m4KOT9.mjs → prebuild-BKOCND3b.mjs} +1 -1
  199. package/dist/server/prebuild.mjs +1 -1
  200. package/dist/server/{prefetchBlockData-DcLKHfHG.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
  201. package/dist/server/{registry-7_0_lUrh.mjs → registry-BogXzcOD.mjs} +4015 -2009
  202. package/dist/server/rendering/components/pageShared.mjs +1 -1
  203. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  204. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  205. package/dist/server/rendering/server.mjs +3 -3
  206. package/dist/server/rendering.mjs +7 -7
  207. package/dist/server/{resolveBlockData-q3WnpvyZ.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
  208. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
  209. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  210. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  211. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/theme-bridge.mjs +2 -2
  214. package/dist/server/theme.mjs +2 -1
  215. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  216. package/dist/server/{validation-CSMS6XmP.mjs → validation-vSBCWU3w.mjs} +9 -9
  217. package/dist/server/{version-DWeqmTXc.mjs → version-Cw5vFmUY.mjs} +1 -1
  218. package/dist/styles/index.css +521 -59
  219. package/package.json +1 -1
  220. package/dist/client/Page-Bu5TJU3L.mjs +0 -52239
  221. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  222. package/dist/client/form-RTqunrpz.mjs +0 -85
  223. package/dist/preview-next/client/useOpenBlockForSetup-BpZnBznt.mjs +0 -28
  224. package/dist/server/ThemeScopeCore-Ck0dhZA6.mjs +0 -24236
  225. package/dist/server/bindings-CAbTvrCZ.mjs +0 -257
  226. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  227. package/dist/server/loadContent-DKerbSnI.mjs +0 -578
@@ -994,6 +994,15 @@ function decideLocationSourcePermission(source, businessAddressVisibility) {
994
994
  }
995
995
  //#endregion
996
996
  //#region ../core/src/event-series-behaviour.ts
997
+ const EVENT_PRESET_VALUES = [
998
+ "event",
999
+ "class",
1000
+ "course",
1001
+ "term",
1002
+ "workshop",
1003
+ "retreat",
1004
+ "performance"
1005
+ ];
997
1006
  const WHOLE_SERIES_EVENT_PRESET_VALUES = ["course", "term"];
998
1007
  const SURFACE_EVENT_PRESET_VALUES = [
999
1008
  "class",
@@ -1428,7 +1437,61 @@ const RichTextDocSchema = z.object({
1428
1437
  * guard aligned with this detailed Zod validator.
1429
1438
  */
1430
1439
  function isRichTextDoc(value) {
1431
- return RichTextDocSchema.safeParse(value).success;
1440
+ return z.safeParse(RichTextDocSchema, value).success;
1441
+ }
1442
+ /**
1443
+ * Build a canonical {@link RichTextDoc} from plain-text paragraphs.
1444
+ *
1445
+ * Single source of truth for constructing a TipTap doc from strings.
1446
+ * Used by:
1447
+ * - `@riverbankcms/dummy-content` (fixture body generators)
1448
+ * - `@riverbankcms/content-model` (default template `cta-full` content)
1449
+ *
1450
+ * Empty strings produce a paragraph with no `content` array — matching
1451
+ * the TipTap convention for empty paragraphs. The shape is exactly what
1452
+ * {@link RichTextDocSchema} validates, so the type and runtime check
1453
+ * never drift from the constructor.
1454
+ */
1455
+ function createRichTextDoc(paragraphs) {
1456
+ return {
1457
+ type: "doc",
1458
+ content: paragraphs.map((text) => text ? {
1459
+ type: "paragraph",
1460
+ content: [{
1461
+ type: "text",
1462
+ text
1463
+ }]
1464
+ } : { type: "paragraph" })
1465
+ };
1466
+ }
1467
+ /**
1468
+ * Build Zod validation schema for rich text fields
1469
+ *
1470
+ * @param options - Optional configuration
1471
+ * @param options.required - If true, validates that content is not empty
1472
+ * @param options.label - Field label for error messages (defaults to 'This field')
1473
+ * @returns Zod schema for rich text validation
1474
+ *
1475
+ * @example
1476
+ * // Basic usage
1477
+ * const schema = buildRichTextSchema()
1478
+ *
1479
+ * @example
1480
+ * // Required field with custom label
1481
+ * const schema = buildRichTextSchema({ required: true, label: 'Description' })
1482
+ */
1483
+ function buildRichTextSchema(options) {
1484
+ if (options?.required === true) {
1485
+ const label = options.label ?? "This field";
1486
+ return RichTextDocSchema.refine((val) => {
1487
+ const content = val.content;
1488
+ if (!Array.isArray(content) || content.length === 0) return false;
1489
+ const first = content[0];
1490
+ if (content.length === 1 && isRecord(first) && first.type === "paragraph" && (!("content" in first) || first.content == null)) return false;
1491
+ return true;
1492
+ }, { message: `${label} is required` });
1493
+ }
1494
+ return RichTextDocSchema;
1432
1495
  }
1433
1496
  //#endregion
1434
1497
  //#region ../blocks/src/system/runtime/api/schemas/bookingQuestions.ts
@@ -1904,6 +1967,10 @@ const publicEventBaseSchema = z.object({
1904
1967
  occurrenceId: z.string(),
1905
1968
  seriesId: z.string(),
1906
1969
  title: z.string(),
1970
+ facts: z.array(z.object({
1971
+ label: z.string(),
1972
+ value: z.string()
1973
+ })).optional(),
1907
1974
  description: z.string().nullable(),
1908
1975
  content: z.object({ body: RichTextDocSchema.nullable().optional() }).optional(),
1909
1976
  presentation: z.object({
@@ -2287,4 +2354,4 @@ const logger = {
2287
2354
  withFields: (_) => logger
2288
2355
  };
2289
2356
  //#endregion
2290
- export { persistableMediaSchema as $, toBookingTimeZone as $t, eyebrowTreatmentValues as A, trimmedStringOrNull as At, blockBookingPaymentTermsSchema as B, resolveBookingDisplayContext as Bt, normalizeEventCalendarDisplayMode as C, decideLocationSourcePermission as Ct, accordionIconSetValues as D, projectPublicLocation as Dt, accordionIconMotionValues as E, parseLocationValue as Et, visibleHeadingDecorationFamilyValues as F, formatDateTimeRange as Ft, beforeBookingQuestionsPresentationSchema as G, compareLocalScheduleDates as Gt, bookingConsentCarrierSchema as H, toScheduledBookingDateTime as Ht, eventVenueDrawingSchema as I, formatTime as It, isRichTextDoc as J, getLocalScheduleDate as Jt, bookingQuestionsAnswerValueSchema as K, formatLocalScheduleDate as Kt, publicEventDestinationSchema as L, formatTimeRange as Lt, headingDecorationOverrideValues as M, formatDate as Mt, isArrangementMode as N, formatDateRange as Nt, arrangementModes as O, publicLocationSchema as Ot, tileTreatmentValues as P, formatDateTime as Pt, mediaSchema as Q, resolveBookingTimeZoneId as Qt, publicEventSchema as R, formatTimeZoneCityLabel as Rt, isEventCalendarListLayout as S, WHOLE_SERIES_EVENT_PRESET_VALUES as St, accordionIconColorTokenValues as T, normalizeLocationAddressText as Tt, isBookingRequirementConsentFieldId as U, buildBookingUtcDateWindow as Ut, blockBookingConsentSchema as V, formatBookingCompactEnglishTime as Vt, toBookingRequirementConsentField as W, addLocalScheduleDays as Wt, externalMediaSchema as X, parseLocalScheduleTime as Xt, assetMediaSchema as Y, parseBookingLocalDate as Yt, imageMediaSchema as Z, resolveBookingBusinessTimeZone as Zt, eventCalendarListLayoutOptions as _, eventScheduleScopeValues as _t, eventAutoApplyDiscountPreviewSchema as a, toNonNegativeCents as an, normalizeCurrencyCode as at, isEventCalendarDefaultView as b, publicEventLoaderQuerySchemaShape as bt, calendarMonthKey as c, eventCalendarListLayoutCompatibleDisplayModeValues as ct, calendarWindowBounds as d, publicPassProductSchema as dt, parseUtcIsoDateTimeString as en, runtimeMediaSchema as et, calendarWindowMonths as f, publicProductSchema as ft, eventCalendarListGroupingDecision as g, calendarWindowQuerySchema as gt, resolveCalendarReadProfile as h, calendarMonthDate as ht, EVENT_BOOKING_ARRIVAL_QUERY as i, parsePositiveMoneyInputToCents as in, mediaTypeDiscriminants as it, headingDecorationColorTokenValues as j, mapDrawingSchema as jt, eventListTreatmentValues as k, toLocationCoordinates as kt, calendarPageResponseError as l, eventCalendarListLayoutValues as lt, planCalendarMonthRanges as m, purchasablePublicPassProductSchema as mt, blockSiteTermsSchema as n, validateBookingPaymentOptionKinds as nn, PUBLIC_FILE_FIELD_KINDS as nt, publicMembershipProductCollectionSchema as o, formatCurrencyAmount as on, eventCalendarDefaultViewValues as ot, calendarWindowPageSchema as p, purchasablePublicMembershipProductSchema as pt, RichTextDocSchema as q, getBookingLocalDateKey as qt, verifiedSiteTermsAcceptanceSchema as r, parsePositiveCents as rn, isDisplayMediaKind as rt, publicPassProductCollectionSchema as s, formatGiftCardAmountLabel as sn, eventCalendarDisplayModeValues as st, logger as t, toUtcIsoDateTimeString as tn, videoMediaSchema as tt, calendarQueryKey as u, publicMembershipProductSchema as ut, eventCalendarVariantMeaning as v, eventSurfacePresetValues as vt, resolveEventCalendarReadPlan as w, locationValueSchema as wt, isEventCalendarDisplayMode as x, isRecord as xt, eventListArrangementValues as y, eventSurfaceScopeValues as yt, publicEventsArraySchema as z, inferSiteDateLocale as zt };
2357
+ export { imageMediaSchema as $, parseLocalScheduleTime as $t, eyebrowTreatmentValues as A, projectPublicLocation as At, blockBookingPaymentTermsSchema as B, formatTimeRange as Bt, normalizeEventCalendarDisplayMode as C, isRecord as Ct, accordionIconSetValues as D, locationValueSchema as Dt, accordionIconMotionValues as E, decideLocationSourcePermission as Et, visibleHeadingDecorationFamilyValues as F, formatDate as Ft, beforeBookingQuestionsPresentationSchema as G, toScheduledBookingDateTime as Gt, bookingConsentCarrierSchema as H, inferSiteDateLocale as Ht, eventVenueDrawingSchema as I, formatDateRange as It, buildRichTextSchema as J, compareLocalScheduleDates as Jt, bookingQuestionsAnswerValueSchema as K, buildBookingUtcDateWindow as Kt, publicEventDestinationSchema as L, formatDateTime as Lt, headingDecorationOverrideValues as M, toLocationCoordinates as Mt, isArrangementMode as N, trimmedStringOrNull as Nt, arrangementModes as O, normalizeLocationAddressText as Ot, tileTreatmentValues as P, mapDrawingSchema as Pt, externalMediaSchema as Q, parseBookingLocalDate as Qt, publicEventSchema as R, formatDateTimeRange as Rt, isEventCalendarListLayout as S, publicEventLoaderQuerySchemaShape as St, accordionIconColorTokenValues as T, WHOLE_SERIES_EVENT_PRESET_VALUES as Tt, isBookingRequirementConsentFieldId as U, resolveBookingDisplayContext as Ut, blockBookingConsentSchema as V, formatTimeZoneCityLabel as Vt, toBookingRequirementConsentField as W, formatBookingCompactEnglishTime as Wt, isRichTextDoc as X, getBookingLocalDateKey as Xt, createRichTextDoc as Y, formatLocalScheduleDate as Yt, assetMediaSchema as Z, getLocalScheduleDate as Zt, eventCalendarListLayoutOptions as _, calendarMonthDate as _t, eventAutoApplyDiscountPreviewSchema as a, validateBookingPaymentOptionKinds as an, isDisplayMediaKind as at, isEventCalendarDefaultView as b, eventSurfacePresetValues as bt, calendarMonthKey as c, toNonNegativeCents as cn, eventCalendarDefaultViewValues as ct, calendarWindowBounds as d, eventCalendarListLayoutValues as dt, resolveBookingBusinessTimeZone as en, mediaSchema as et, calendarWindowMonths as f, publicMembershipProductSchema as ft, eventCalendarListGroupingDecision as g, purchasablePublicPassProductSchema as gt, resolveCalendarReadProfile as h, purchasablePublicMembershipProductSchema as ht, EVENT_BOOKING_ARRIVAL_QUERY as i, toUtcIsoDateTimeString as in, PUBLIC_FILE_FIELD_KINDS as it, headingDecorationColorTokenValues as j, publicLocationSchema as jt, eventListTreatmentValues as k, parseLocationValue as kt, calendarPageResponseError as l, formatCurrencyAmount as ln, eventCalendarDisplayModeValues as lt, planCalendarMonthRanges as m, publicProductSchema as mt, blockSiteTermsSchema as n, toBookingTimeZone as nn, runtimeMediaSchema as nt, publicMembershipProductCollectionSchema as o, parsePositiveCents as on, mediaTypeDiscriminants as ot, calendarWindowPageSchema as p, publicPassProductSchema as pt, RichTextDocSchema as q, addLocalScheduleDays as qt, verifiedSiteTermsAcceptanceSchema as r, parseUtcIsoDateTimeString as rn, videoMediaSchema as rt, publicPassProductCollectionSchema as s, parsePositiveMoneyInputToCents as sn, normalizeCurrencyCode as st, logger as t, resolveBookingTimeZoneId as tn, persistableMediaSchema as tt, calendarQueryKey as u, formatGiftCardAmountLabel as un, eventCalendarListLayoutCompatibleDisplayModeValues as ut, eventCalendarVariantMeaning as v, calendarWindowQuerySchema as vt, resolveEventCalendarReadPlan as w, EVENT_PRESET_VALUES as wt, isEventCalendarDisplayMode as x, eventSurfaceScopeValues as xt, eventListArrangementValues as y, eventScheduleScopeValues as yt, publicEventsArraySchema as z, formatTime as zt };
@@ -1,18 +1,18 @@
1
1
  "use client";
2
2
  "use client";
3
- import { in as parsePositiveMoneyInputToCents, on as formatCurrencyAmount, t as logger } from "../noop-B_f7RqLD.mjs";
4
- import { n as useAvailableDates, s as unsafeAsAppointmentResourceId, t as useAvailableSlots } from "../useAvailableSlots-GP8tnAVW.mjs";
5
- import { M as assertNever$1, a as UNANSWERED_QUESTIONS_SUMMARY, h as assertNever, i as getPortalCreditProductCreditNoun, j as resolveFlexibleBalancePaymentEligibility, m as unansweredRequiredBookingQuestions, o as UNANSWERED_QUESTION_MESSAGE, r as getCreditProductTypeLabel, t as deriveCreditProductLabels, u as initialBookingQuestionValues, w as formatOrderInstalmentStatusLabel$1 } from "../creditProducts-CMOmhWm2.mjs";
3
+ import { ln as formatCurrencyAmount, sn as parsePositiveMoneyInputToCents, t as logger } from "../noop-poI1m2yW.mjs";
4
+ import { F as unsafeAsAppointmentResourceId, M as resolveFlexibleBalancePaymentEligibility, N as assertNever$1, S as formatCreditProductUnits, T as formatOrderInstalmentStatusLabel$1, c as initialBookingQuestionValues, f as unansweredRequiredBookingQuestions, i as UNANSWERED_QUESTION_MESSAGE, n as getCreditProductTypeLabel, p as assertNever, r as UNANSWERED_QUESTIONS_SUMMARY, t as deriveCreditProductLabels, x as formatCreditProductBalance } from "../creditProducts-BTRX4edc.mjs";
6
5
  import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
7
- import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-Xhf81Q-c.mjs";
8
- import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-BdnEwA38.mjs";
6
+ import { a as createBlockApi, i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-Dzjv2CpA.mjs";
7
+ import { S as clsx, i as ThemedButtonLink, l as SpinnerNode, o as ThemedFileChooser, r as ThemedButton, t as ThemedActionsButton } from "../ThemedButton-BMDHwnM6.mjs";
9
8
  import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
10
- import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-LLGCWjvU.mjs";
9
+ import { a as DemoPortalSignInLink, i as useBookingNowIso, r as parseBookingSubmissionFailure, t as BookingQuestionFields } from "../BookingQuestionFields-BlaCItmH.mjs";
11
10
  import { t as ModalShell } from "../ModalShell-B_fHWK71.mjs";
12
- import { t as TabBarFragment } from "../TabBarFragment-DkVKtK5a.mjs";
13
- import { t as formatDate } from "../formatDate-BGlhrmhF.mjs";
14
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-DQtwf_s2.mjs";
15
- import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-Bv6kjUW3.mjs";
11
+ import { t as TabBarFragment } from "../TabBarFragment-CsAufYwT.mjs";
12
+ import { t as formatDate } from "../formatDate-Cjouxh4Y.mjs";
13
+ import { n as useAvailableDates, t as useAvailableSlots } from "../useAvailableSlots-ByHedoBi.mjs";
14
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "../demoPortalMagicLink-D0dcPsRE.mjs";
15
+ import { a as formatPortalSessionDay, c as isPast, i as formatPortalSession, l as portalSessionDisplay, n as formatDateTime, o as formatPortalSessionTime, r as formatEntitlementEnd, s as formatPortalSessionWithWeekday, t as formatDate$1 } from "../dateFormatting-BfurxGwg.mjs";
16
16
  import * as React$1 from "react";
17
17
  import React, { createContext, forwardRef, useCallback, useContext, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
18
18
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -120,6 +120,7 @@ function createInitialPortalData() {
120
120
  waitlists: [],
121
121
  wholeSeriesRegistrations: [],
122
122
  appointments: [],
123
+ regularSessions: [],
123
124
  orders: [],
124
125
  credit: null,
125
126
  digitalProducts: createLoadedDigitalProductsState()
@@ -9271,6 +9272,231 @@ function OrderDetailHeader({ order }) {
9271
9272
  });
9272
9273
  }
9273
9274
  //#endregion
9275
+ //#region ../blocks/src/customer-portal/components/bookings/regularSessionsPresentation.ts
9276
+ const WEEKDAYS = [
9277
+ "Sunday",
9278
+ "Monday",
9279
+ "Tuesday",
9280
+ "Wednesday",
9281
+ "Thursday",
9282
+ "Friday",
9283
+ "Saturday"
9284
+ ];
9285
+ const NTH = {
9286
+ 1: "First",
9287
+ 2: "Second",
9288
+ 3: "Third",
9289
+ 4: "Fourth",
9290
+ last: "Last"
9291
+ };
9292
+ /** "07:00" → "7:00". */
9293
+ function shortTime(time) {
9294
+ const [hour = "0", minute = "00"] = time.split(":");
9295
+ return `${Number(hour)}:${minute}`;
9296
+ }
9297
+ /** "Tuesdays at 7:00", "Every other Friday at 12:30", "First Friday of the month at 18:00". */
9298
+ function cadenceLine(cadence, localStart) {
9299
+ const day = WEEKDAYS[cadence.weekday];
9300
+ const at = `at ${shortTime(localStart)}`;
9301
+ if (cadence.kind === "monthly") return `${NTH[cadence.nth]} ${day} of the month ${at}`;
9302
+ return cadence.everyWeeks === 1 ? `${day}s ${at}` : `Every other ${day} ${at}`;
9303
+ }
9304
+ function paymentLine(payment) {
9305
+ switch (payment.kind) {
9306
+ case "package": {
9307
+ const left = payment.sessionsLeft === 0 ? "none left" : `${payment.sessionsLeft} left`;
9308
+ return `from your ${payment.name ?? "package"}, ${left}`;
9309
+ }
9310
+ case "owed": return "you pay as you go";
9311
+ case "payment_link": return "you’re emailed a payment link before each session";
9312
+ }
9313
+ }
9314
+ function capitalise(text) {
9315
+ return text.charAt(0).toUpperCase() + text.slice(1);
9316
+ }
9317
+ /** "Sam keeps this time for you each week. To miss a week or change the time, message Sam." */
9318
+ function heldNote(session) {
9319
+ if (!session.holdsTime) return null;
9320
+ const cadence = session.schedule.cadence;
9321
+ const period = cadence.kind === "monthly" ? "each month" : cadence.everyWeeks === 1 ? "each week" : "every other week";
9322
+ const miss = cadence.kind === "weekly" && cadence.everyWeeks === 1 ? "a week" : "one";
9323
+ const trainer = session.trainerName;
9324
+ return `${trainer ?? "Your trainer"} keeps this time for you ${period}. To miss ${miss} or change the time, message ${trainer ?? "them"}.`;
9325
+ }
9326
+ function formatters(locale, timeZone) {
9327
+ const date = new Intl.DateTimeFormat(locale, {
9328
+ weekday: "short",
9329
+ day: "numeric",
9330
+ month: "short",
9331
+ timeZone: "UTC"
9332
+ });
9333
+ const weekday = new Intl.DateTimeFormat(locale, {
9334
+ weekday: "short",
9335
+ timeZone: "UTC"
9336
+ });
9337
+ const dayMonth = new Intl.DateTimeFormat(locale, {
9338
+ day: "numeric",
9339
+ month: "short",
9340
+ timeZone: "UTC"
9341
+ });
9342
+ const time = new Intl.DateTimeFormat("en-GB", {
9343
+ hour: "2-digit",
9344
+ minute: "2-digit",
9345
+ hourCycle: "h23",
9346
+ timeZone
9347
+ });
9348
+ const localDate = new Intl.DateTimeFormat("en-CA", {
9349
+ year: "numeric",
9350
+ month: "2-digit",
9351
+ day: "2-digit",
9352
+ timeZone
9353
+ });
9354
+ const atNoon = (occurrence) => /* @__PURE__ */ new Date(`${occurrence}T12:00:00Z`);
9355
+ return {
9356
+ date: (occurrence) => date.format(atNoon(occurrence)),
9357
+ weekday: (occurrence) => weekday.format(atNoon(occurrence)),
9358
+ dayMonth: (occurrence) => dayMonth.format(atNoon(occurrence)),
9359
+ time: (iso) => shortTime(time.format(new Date(iso))),
9360
+ localDate: (iso) => localDate.format(new Date(iso))
9361
+ };
9362
+ }
9363
+ const BADGES = {
9364
+ booked: {
9365
+ text: "Booked",
9366
+ variant: "success"
9367
+ },
9368
+ away: {
9369
+ text: "You’re away",
9370
+ variant: "warning"
9371
+ },
9372
+ held: {
9373
+ text: "Held for you",
9374
+ variant: "info"
9375
+ },
9376
+ open: {
9377
+ text: "Not booked yet",
9378
+ variant: "default"
9379
+ },
9380
+ trainer_away: {
9381
+ text: "No session",
9382
+ variant: "default"
9383
+ }
9384
+ };
9385
+ /** "Tue 10 and 17 Nov", or "Tue 24 Nov and 1 Dec" across a month. */
9386
+ function awayLabel(occurrences, format) {
9387
+ const [first, ...rest] = occurrences;
9388
+ if (!first) return "";
9389
+ if (rest.length === 0) return format.date(first);
9390
+ const parts = rest.every((occurrence) => occurrence.slice(0, 7) === first.slice(0, 7)) ? occurrences.map((occurrence, index) => index === occurrences.length - 1 ? format.dayMonth(occurrence) : String(Number(occurrence.slice(8, 10)))) : occurrences.map(format.dayMonth);
9391
+ const last = parts.at(-1) ?? "";
9392
+ return `${format.weekday(first)} ${parts.slice(0, -1).join(", ")} and ${last}`;
9393
+ }
9394
+ /** A date at its usual day and time shows just the day; a moved one shows when it really is. */
9395
+ function dateLabel(date, localStart, format) {
9396
+ const day = format.localDate(date.startAt);
9397
+ const time = format.time(date.startAt);
9398
+ return day === date.occurrence && time === shortTime(localStart) ? format.date(day) : `${format.date(day)}, ${time}`;
9399
+ }
9400
+ /** Back-to-back weeks away read as one row. */
9401
+ function runsOf(dates) {
9402
+ return dates.reduce((runs, date) => {
9403
+ const last = runs.at(-1);
9404
+ if (date.state === "away" && last?.away) return [...runs.slice(0, -1), {
9405
+ away: true,
9406
+ dates: [...last.dates, date]
9407
+ }];
9408
+ return [...runs, {
9409
+ away: date.state === "away",
9410
+ dates: [date]
9411
+ }];
9412
+ }, []);
9413
+ }
9414
+ function runRow(run, localStart, format) {
9415
+ const [first] = run.dates;
9416
+ if (!first) return null;
9417
+ if (first.state === "away") return {
9418
+ key: `away:${first.occurrence}`,
9419
+ label: awayLabel(run.dates.map((date) => date.occurrence), format),
9420
+ badge: BADGES.away,
9421
+ muted: true
9422
+ };
9423
+ return {
9424
+ key: first.occurrence,
9425
+ label: dateLabel(first, localStart, format),
9426
+ badge: BADGES[first.state],
9427
+ muted: first.state === "trainer_away"
9428
+ };
9429
+ }
9430
+ function dateRows(session, format) {
9431
+ return runsOf(session.dates).flatMap((run) => {
9432
+ const row = runRow(run, session.schedule.localStart, format);
9433
+ return row ? [row] : [];
9434
+ });
9435
+ }
9436
+ function presentRegularSession(session, locale) {
9437
+ const cadence = cadenceLine(session.schedule.cadence, session.schedule.localStart);
9438
+ const payment = paymentLine(session.payment);
9439
+ return {
9440
+ title: session.trainerName ? `${cadence} with ${session.trainerName}` : cadence,
9441
+ subtitle: session.serviceName ? `${session.serviceName} · ${payment}` : capitalise(payment),
9442
+ rows: dateRows(session, formatters(locale, session.timezone)),
9443
+ note: heldNote(session)
9444
+ };
9445
+ }
9446
+ /** Arrangements with no upcoming dates have nothing to show, so they're left out. */
9447
+ function visibleRegularSessions(sessions) {
9448
+ return sessions.filter((session) => session.dates.length > 0);
9449
+ }
9450
+ //#endregion
9451
+ //#region ../blocks/src/customer-portal/components/bookings/RegularSessionsSection.tsx
9452
+ /** "Your regular sessions": read-only, and absent when there's nothing coming up. */
9453
+ function RegularSessionsSection({ sessions }) {
9454
+ const { context } = usePortalDateDisplay();
9455
+ const visible = visibleRegularSessions(sessions);
9456
+ if (visible.length === 0) return null;
9457
+ return /* @__PURE__ */ jsxs("section", {
9458
+ className: "cp-regular-sessions",
9459
+ "aria-labelledby": "cp-regular-sessions-title",
9460
+ children: [/* @__PURE__ */ jsx("h3", {
9461
+ id: "cp-regular-sessions-title",
9462
+ className: "cp-section-title",
9463
+ children: "Your regular sessions"
9464
+ }), /* @__PURE__ */ jsx("div", {
9465
+ className: "cp-cards",
9466
+ children: visible.map((session, index) => /* @__PURE__ */ jsx(RegularSessionCardView, { card: presentRegularSession(session, context.locale) }, `${session.schedule.effectiveFrom}:${index}`))
9467
+ })]
9468
+ });
9469
+ }
9470
+ function RegularSessionCardView({ card }) {
9471
+ return /* @__PURE__ */ jsxs("div", {
9472
+ className: "cp-card",
9473
+ children: [
9474
+ /* @__PURE__ */ jsx("h4", {
9475
+ className: "cp-card-title",
9476
+ children: card.title
9477
+ }),
9478
+ /* @__PURE__ */ jsx("p", {
9479
+ className: "cp-card-subtitle",
9480
+ children: card.subtitle
9481
+ }),
9482
+ /* @__PURE__ */ jsx("ul", {
9483
+ className: "cp-regular-dates",
9484
+ children: card.rows.map((row) => /* @__PURE__ */ jsxs("li", {
9485
+ className: `cp-regular-dates__row${row.muted ? " cp-regular-dates__row--muted" : ""}`,
9486
+ children: [/* @__PURE__ */ jsx("span", { children: row.label }), /* @__PURE__ */ jsx(Badge, {
9487
+ variant: row.badge.variant,
9488
+ children: row.badge.text
9489
+ })]
9490
+ }, row.key))
9491
+ }),
9492
+ card.note ? /* @__PURE__ */ jsx("p", {
9493
+ className: "cp-card-subtitle cp-card-subtitle--spaced",
9494
+ children: card.note
9495
+ }) : null
9496
+ ]
9497
+ });
9498
+ }
9499
+ //#endregion
9274
9500
  //#region ../blocks/src/customer-portal/components/useMembershipCancelFlow.state.ts
9275
9501
  const initialMembershipCancelState = {
9276
9502
  dialog: { tag: "closed" },
@@ -9429,6 +9655,21 @@ function PortalActionFeedback({ feedback }) {
9429
9655
  children: feedback.message
9430
9656
  });
9431
9657
  }
9658
+ function hasAppointmentContent(data) {
9659
+ return data.appointments.length > 0 || visibleRegularSessions(data.regularSessions).length > 0;
9660
+ }
9661
+ /** Regular sessions sit beside appointments; if they can't load, the appointments still show. */
9662
+ async function loadPortalAppointmentData(api, enabled) {
9663
+ if (!enabled) return {
9664
+ appointments: [],
9665
+ regularSessions: []
9666
+ };
9667
+ const [appointments, regularSessions] = await Promise.all([api.getPortalAppointments(), loadOptionalPortalSectionWithFallback("regular-sessions", () => api.getPortalRegularSessions(), () => [])]);
9668
+ return {
9669
+ appointments,
9670
+ regularSessions
9671
+ };
9672
+ }
9432
9673
  function shouldShowPortalSection(input) {
9433
9674
  return input.enabled && (!input.hasLoadedData || input.hasContent);
9434
9675
  }
@@ -9519,12 +9760,12 @@ function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath:
9519
9760
  const shouldFetchEvents = showEvents && (enabledModules?.events ?? false);
9520
9761
  const shouldFetchAppointments = showAppointments && (enabledModules?.appointments ?? false);
9521
9762
  const shouldFetchWholeSeries = showWholeSeries && (enabledModules?.events ?? false);
9522
- const [passes, memberships, eventData, wholeSeriesRegistrations, appointments, orders, credit, digitalProducts] = await Promise.all([
9763
+ const [passes, memberships, eventData, wholeSeriesRegistrations, appointmentData, orders, credit, digitalProducts] = await Promise.all([
9523
9764
  showPasses ? api.getPortalPasses() : Promise.resolve([]),
9524
9765
  showMemberships ? api.getPortalMemberships() : Promise.resolve([]),
9525
9766
  loadPortalEvents(api, shouldFetchEvents, requestedTask),
9526
9767
  shouldFetchWholeSeries ? api.getPortalWholeSeriesRegistrations() : Promise.resolve([]),
9527
- shouldFetchAppointments ? api.getPortalAppointments() : Promise.resolve([]),
9768
+ loadPortalAppointmentData(api, shouldFetchAppointments),
9528
9769
  showOrders ? api.getPortalOrders() : Promise.resolve([]),
9529
9770
  showCredit ? loadOptionalPortalSectionWithFallback("credit", () => api.getPortalCredit(), () => null) : Promise.resolve(null),
9530
9771
  loadOptionalPortalSectionWithFallback("digital-products", async () => {
@@ -9540,7 +9781,7 @@ function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath:
9540
9781
  events: eventData.registrations,
9541
9782
  waitlists: eventData.waitlists,
9542
9783
  wholeSeriesRegistrations,
9543
- appointments,
9784
+ ...appointmentData,
9544
9785
  orders,
9545
9786
  credit,
9546
9787
  digitalProducts
@@ -9608,7 +9849,7 @@ function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath:
9608
9849
  const canShowAppointments = shouldShowPortalSection({
9609
9850
  enabled: showAppointments && (enabledModules?.appointments ?? false),
9610
9851
  hasLoadedData,
9611
- hasContent: data.appointments.length > 0
9852
+ hasContent: hasAppointmentContent(data)
9612
9853
  });
9613
9854
  const canShowOrders = shouldShowPortalSection({
9614
9855
  enabled: showOrders,
@@ -9849,6 +10090,7 @@ function CustomerPortalClient({ callbackPath: suppliedCallbackPath, logoutPath:
9849
10090
  bookPath,
9850
10091
  siteTitle,
9851
10092
  appointments: data.appointments,
10093
+ regularSessions: data.regularSessions,
9852
10094
  emptyMessage: emptyAppointmentsMessage,
9853
10095
  onRefresh: fetchPortalData
9854
10096
  }),
@@ -10008,15 +10250,10 @@ function PassCredits({ pass }) {
10008
10250
  })
10009
10251
  }), /* @__PURE__ */ jsxs("div", {
10010
10252
  className: "cp-card-meta",
10011
- children: [/* @__PURE__ */ jsxs("span", { children: [
10012
- pass.creditsRemaining,
10013
- " of ",
10014
- pass.creditsTotal,
10015
- " ",
10016
- getPortalCreditProductCreditNoun(pass.productUseCase, pass.creditsRemaining),
10017
- " ",
10018
- "remaining"
10019
- ] }), /* @__PURE__ */ jsx("span", { children: getCreditProductTypeLabel(pass.productUseCase) })]
10253
+ children: [/* @__PURE__ */ jsx("span", { children: formatCreditProductBalance(pass.productUseCase, {
10254
+ remaining: pass.creditsRemaining,
10255
+ total: pass.creditsTotal
10256
+ }) }), /* @__PURE__ */ jsx("span", { children: getCreditProductTypeLabel(pass.productUseCase) })]
10020
10257
  })]
10021
10258
  });
10022
10259
  }
@@ -10031,8 +10268,7 @@ function PassDates({ pass }) {
10031
10268
  }) : null] });
10032
10269
  }
10033
10270
  function formatCustomerPassCreditHistoryEntry(entry, productUseCase, context) {
10034
- const creditNoun = getPortalCreditProductCreditNoun(productUseCase, entry.credits);
10035
- return `${entry.kind === "restoration" ? "Restored" : "Used"} ${entry.credits} ${creditNoun} on ${formatDate$1(entry.occurredAt, context, "long")}`;
10271
+ return `${entry.kind === "restoration" ? "Restored" : "Used"} ${formatCreditProductUnits(productUseCase, entry.credits)} on ${formatDate$1(entry.occurredAt, context, "long")}`;
10036
10272
  }
10037
10273
  function MembershipsCards({ memberships, onRefresh }) {
10038
10274
  const cancelFlow = useMembershipCancelFlow({
@@ -10291,36 +10527,46 @@ function DigitalProductsSection({ digitalProducts, onRefresh }) {
10291
10527
  })
10292
10528
  });
10293
10529
  }
10294
- function AppointmentsSection({ bookPath, siteTitle, appointments, emptyMessage, onRefresh }) {
10530
+ function AppointmentsSection({ bookPath, siteTitle, appointments, regularSessions, emptyMessage, onRefresh }) {
10295
10531
  const { isPast } = usePortalDateFormatting();
10296
- if (appointments.length === 0) return /* @__PURE__ */ jsx("div", {
10532
+ if (appointments.length === 0) return /* @__PURE__ */ jsx(NoAppointments, {
10533
+ regularSessions,
10534
+ emptyMessage
10535
+ });
10536
+ const upcomingAppointments = appointments.filter((a) => !isPast(a.startAt));
10537
+ const pastAppointments = appointments.filter((a) => isPast(a.startAt));
10538
+ return /* @__PURE__ */ jsxs("div", {
10297
10539
  className: "cp-section cp-section--appointments",
10298
- children: /* @__PURE__ */ jsx("div", {
10540
+ children: [
10541
+ /* @__PURE__ */ jsx(RegularSessionsSection, { sessions: regularSessions }),
10542
+ /* @__PURE__ */ jsx(AppointmentGroup, {
10543
+ appointments: upcomingAppointments,
10544
+ bookPath,
10545
+ siteTitle,
10546
+ onRefresh,
10547
+ title: "Upcoming Appointments"
10548
+ }),
10549
+ /* @__PURE__ */ jsx(AppointmentGroup, {
10550
+ appointments: pastAppointments,
10551
+ bookPath,
10552
+ siteTitle,
10553
+ onRefresh,
10554
+ title: "Past Appointments",
10555
+ isPast: true,
10556
+ spaced: upcomingAppointments.length > 0
10557
+ })
10558
+ ]
10559
+ });
10560
+ }
10561
+ function NoAppointments({ regularSessions, emptyMessage }) {
10562
+ return /* @__PURE__ */ jsxs("div", {
10563
+ className: "cp-section cp-section--appointments",
10564
+ children: [/* @__PURE__ */ jsx(RegularSessionsSection, { sessions: regularSessions }), visibleRegularSessions(regularSessions).length > 0 ? null : /* @__PURE__ */ jsx("div", {
10299
10565
  className: "cp-empty",
10300
10566
  children: /* @__PURE__ */ jsx("p", {
10301
10567
  className: "cp-empty__text",
10302
10568
  children: emptyMessage
10303
10569
  })
10304
- })
10305
- });
10306
- const upcomingAppointments = appointments.filter((a) => !isPast(a.startAt));
10307
- const pastAppointments = appointments.filter((a) => isPast(a.startAt));
10308
- return /* @__PURE__ */ jsxs("div", {
10309
- className: "cp-section cp-section--appointments",
10310
- children: [/* @__PURE__ */ jsx(AppointmentGroup, {
10311
- appointments: upcomingAppointments,
10312
- bookPath,
10313
- siteTitle,
10314
- onRefresh,
10315
- title: "Upcoming Appointments"
10316
- }), /* @__PURE__ */ jsx(AppointmentGroup, {
10317
- appointments: pastAppointments,
10318
- bookPath,
10319
- siteTitle,
10320
- onRefresh,
10321
- title: "Past Appointments",
10322
- isPast: true,
10323
- spaced: upcomingAppointments.length > 0
10324
10570
  })]
10325
10571
  });
10326
10572
  }
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as ProductDetailController } from "./shop-commerce-B3PyRHaN.mjs";
2
+ import { r as ProductDetailController } from "./shop-commerce-B8aZTdRJ.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-detail.client.tsx
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as ProductListController } from "./shop-commerce-B3PyRHaN.mjs";
2
+ import { i as ProductListController } from "./shop-commerce-B8aZTdRJ.mjs";
3
3
  import "react";
4
4
  import { jsx } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/product-list.client.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
3
- import { t as ProductDetailClient } from "./product-detail.client-5hNA8aKU.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
3
+ import { t as ProductDetailClient } from "./product-detail.client-DOQ7El1d.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-CztcSe9i.mjs";
5
5
  //#region src/rendering/islands/enhancers/productDetail.tsx
6
6
  const decode = defineIslandPropsDecoder("product-detail");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductDetailClient, "product-detail");
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-Dc8j5i79.mjs";
3
- import { t as ProductListClient } from "./product-list.client-c-777ohj.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
3
+ import { t as ProductListClient } from "./product-list.client-CmxOZbzL.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-CztcSe9i.mjs";
5
5
  //#region src/rendering/islands/enhancers/productList.tsx
6
6
  const decode = defineIslandPropsDecoder("product-list");
7
7
  const enhance = (root, props) => mountShopBlockIsland(root, props, ProductListClient, "product-list");
@@ -1,10 +1,14 @@
1
1
  "use client";
2
- import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, ct as eventCombinedInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, nn as headerChromeRuntimeContractSchema, pt as eventCalendarInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, yt as eventListingInteractiveIslandPropsCodec } from "./shop.interactive-BH0xDlMF.mjs";
3
- import { Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, Ki as lookListPresentationSchemaShape, ur as bookingFormInteractiveIslandPropsCodec, zi as createZodCodec } from "./display-DDNmyb0z.mjs";
4
- import { I as eventVenueDrawingSchema, R as publicEventSchema, a as eventAutoApplyDiscountPreviewSchema, o as publicMembershipProductCollectionSchema, s as publicPassProductCollectionSchema } from "./noop-B_f7RqLD.mjs";
2
+ import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, ht as eventCalendarInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, on as headerChromeRuntimeContractSchema, s as cartInteractiveIslandPropsCodec, ut as eventCombinedInteractiveIslandPropsCodec, xt as eventListingInteractiveIslandPropsCodec } from "./shop.interactive-DAKyWK1B.mjs";
3
+ import { Ji as lookListPresentationSchemaShape, Ri as eventRegistrationPageSurfaceSubjectSchema, Vi as createZodCodec, Wi as isDecodeSuccess, ur as bookingFormInteractiveIslandPropsCodec } from "./display-Cl6mgSJa.mjs";
4
+ import { I as eventVenueDrawingSchema, R as publicEventSchema, a as eventAutoApplyDiscountPreviewSchema, o as publicMembershipProductCollectionSchema, s as publicPassProductCollectionSchema } from "./noop-poI1m2yW.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
7
7
  const eventDetailsLookSchemaShape = {
8
+ quickFacts: z.array(z.object({
9
+ label: z.string(),
10
+ value: z.string()
11
+ })).nullish(),
8
12
  entryTitle: z.string().nullish(),
9
13
  arrangement: z.enum(["event-header", "details-panel"]).optional(),
10
14
  lookSlots: lookListPresentationSchemaShape.lookSlots,
@@ -107,7 +111,7 @@ const eventDetailsIslandSchema = z.object({
107
111
  siteMemberships: publicMembershipProductCollectionSchema.nullable().optional(),
108
112
  autoApplyDiscount: eventAutoApplyDiscountPreviewSchema.nullable().optional(),
109
113
  className: z.string().nullable().optional(),
110
- nowIso: z.string().datetime({ offset: true })
114
+ now: z.string().datetime({ offset: true })
111
115
  });
112
116
  const accordionIslandPropsCodec = createZodCodec(accordionIslandSchema);
113
117
  const headerSectionIslandPropsCodec = createZodCodec(headerSectionIslandSchema);