@riverbankcms/sdk 0.170.0 → 0.171.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/CHANGELOG.md +37 -0
  2. package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-D-6cWDDC.d.ts} +1 -1
  3. package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4jkUDm4D.d.ts} +13 -11
  4. package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +4 -3
  5. package/dist/_dts/{client-x82SZgwK.d.ts → client-CXPH5esD.d.ts} +32 -1
  6. package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-DsCr4-ny.d.ts} +3 -3
  7. package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-BlmXM7xP.d.ts} +5 -3
  8. package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
  10. package/dist/_dts/{index-B7Mq5M6P.d.ts → index-B3gfKNI-.d.ts} +4 -4
  11. package/dist/_dts/{index-C3rMEJ5a.d.ts → index-BQPJbOkU.d.ts} +2 -2
  12. package/dist/_dts/{index-CstY6ZMa.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
  13. package/dist/_dts/{index-B82pqQAC.d.ts → index-C9_OTCFQ.d.ts} +2 -2
  14. package/dist/_dts/{index-BisbMZTW.d.ts → index-DScYSl03.d.ts} +72 -36
  15. package/dist/_dts/{index-CCugONHM.d.ts → index-DlABXDte.d.ts} +1 -1
  16. package/dist/_dts/{index-DXc_ewhR.d.ts → index-Sua-7CF1.d.ts} +1 -1
  17. package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
  18. package/dist/_dts/{request-CJ_ClHLv.d.ts → request-DUTkELQn.d.ts} +66062 -63545
  19. package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
  20. package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-zf6-E-C3.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-990t4t99.d.ts → types-BCzfYDW2.d.ts} +7 -7
  56. package/dist/_dts/{types-CbjK5ZLy.d.ts → types-CPHk5Voq.d.ts} +2 -2
  57. package/dist/_dts/{types-CpuxuS40.d.ts → types-JD-36x3P.d.ts} +3 -3
  58. package/dist/_dts/{validation-BN95LiS0.d.ts → validation-0MyQlzWJ.d.ts} +17 -17
  59. package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-Blge9FJo.mjs} +7 -7
  61. package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-wm6eeuin.mjs} +16 -4
  62. package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
  63. package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +7 -7
  64. package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-FGg6yCLH.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-218_Gqgp.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
  69. package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-DKdZSW_R.mjs} +10 -7
  70. package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
  72. package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BVoHnVZA.mjs} +42 -396
  73. package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-BVxHCnxs.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-PW4Ojv9r.mjs → Page-CT4HaEMr.mjs} +2706 -2441
  77. package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
  78. package/dist/client/StepIndicator-DRJy4eU3.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-BnyVRqdU.mjs} +73 -26
  82. package/dist/client/{accordion-DMItWylU.mjs → accordion-BOApxi9U.mjs} +1 -1
  83. package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DDf8Lmo5.mjs} +79 -42
  84. package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-DWrgG-Xx.mjs} +4 -4
  85. package/dist/client/bookings.mjs +6 -6
  86. package/dist/client/boxStyleClassNames-7MVCNWgc.mjs +369 -0
  87. package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DeI76SEP.mjs} +2 -2
  88. package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
  89. package/dist/client/{cart-wlRXnOjO.mjs → cart-D_uxULCO.mjs} +3 -3
  90. package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-BxSMse88.mjs} +1 -1
  91. package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-DIbh4g5e.mjs} +3 -3
  92. package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
  94. package/dist/client/client.mjs +656 -220
  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-CP9l112u.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-ChgDe9Da.mjs} +3186 -81
  101. package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +4 -4
  102. package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-COmbQ3mc.mjs} +3 -2
  103. package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BvQG3qEY.mjs} +48 -34
  104. package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-DiitbUpV.mjs} +4 -4
  105. package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-Da9Z8KDq.mjs} +4 -4
  106. package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
  107. package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-xwXgVp7a.mjs} +4 -4
  108. package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-hlFYlgTA.mjs} +4 -4
  109. package/dist/client/{form-Cfl8d6qc.mjs → form-ERv_X_oZ.mjs} +3 -3
  110. package/dist/client/{form.client-D3_RF29v.mjs → form.client-Cz24FYNj.mjs} +5 -5
  111. package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DeaH4kIe.mjs} +3 -3
  112. package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
  113. package/dist/client/gifting/client.mjs +3 -3
  114. package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJvt0ZP4.mjs} +2 -2
  115. package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-WuGDEzdD.mjs} +6 -6
  116. package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DhnW6tdB.mjs} +2 -2
  117. package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-DxG7NV8U.mjs} +3 -3
  118. package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
  119. package/dist/client/portal/client.mjs +294 -48
  120. package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DsSfbmdV.mjs} +1 -1
  121. package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-Byzow88i.mjs} +1 -1
  122. package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-iXkmQpxG.mjs} +3 -3
  123. package/dist/client/{productList-BNZAsfaP.mjs → productList-HoFGQXFl.mjs} +3 -3
  124. package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-CH2-LJME.mjs} +8 -4
  125. package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-ed20Q7bV.mjs} +1021 -931
  126. package/dist/client/rendering/client.mjs +57 -32
  127. package/dist/client/rendering/islands.mjs +1 -1
  128. package/dist/client/rendering.mjs +1956 -191
  129. package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
  130. package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-CBUO-xuz.mjs} +1 -1
  131. package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
  132. package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
  133. package/dist/client/{shop-PgmiVKSV.mjs → shop-DXyeSNgi.mjs} +3 -3
  134. package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce--klkHNzu.mjs} +13 -13
  135. package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
  136. package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-Sv7QVDmj.mjs} +13 -13
  137. package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-C0IjiWOs.mjs} +89 -19
  138. package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-Jt4TzcAG.mjs} +2 -2
  139. package/dist/client/spam-protection.mjs +1 -1
  140. package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-BxbnEJCi.mjs} +11 -11
  141. package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
  142. package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
  143. package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-dToQs9oY.mjs} +2 -2
  144. package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
  145. package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination--MFZBoJt.mjs} +7 -7
  146. package/dist/client/{view-CgComegl.mjs → view-C_brMDU2.mjs} +3 -3
  147. package/dist/client/{view-oToSpu1N.mjs → view-DhEwiTJG.mjs} +121 -28
  148. package/dist/preview-next/before-render.mjs +33 -13
  149. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
  150. package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-OwAxA2C0.mjs} +1 -1
  151. package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
  152. package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +660 -359
  153. package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +3597 -3217
  154. package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -138
  155. package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-9eAon7Z8.mjs} +21 -11
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +95 -404
  157. package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +2507 -364
  158. package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
  159. package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-X0DjcFij.mjs} +1 -1
  160. package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-3FZrzbK8.mjs} +6961 -6657
  161. package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
  164. package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
  165. package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +134 -6
  166. package/dist/preview-next/container-responsive.css +43 -0
  167. package/dist/preview-next/editor-base.css +14 -4
  168. package/dist/preview-next/keepAlive.mjs +1 -1
  169. package/dist/preview-next/middleware.mjs +1 -1
  170. package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-BLY4ycq6.mjs} +563 -190
  171. package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
  172. package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
  173. package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BxsHs-jf.mjs} +52 -2
  174. package/dist/server/bindings-xQ9v3zrn.mjs +1802 -0
  175. package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
  176. package/dist/server/{client-Djjv-NuA.mjs → client-DCwLR0kQ.mjs} +654 -218
  177. package/dist/server/config-template-validation.mjs +30 -4
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +3 -34
  180. package/dist/server/data/resolveBlockData.mjs +1 -1
  181. package/dist/server/index.mjs +3 -3
  182. package/dist/server/loadContent-C4I3ltU_.mjs +2310 -0
  183. package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-COvxWN0r.mjs} +2 -2
  184. package/dist/server/manifest.mjs +1 -1
  185. package/dist/server/next.mjs +8 -6
  186. package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-QiUjZmEV.mjs} +2 -2
  187. package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-BqQg6Iws.mjs} +3 -2
  188. package/dist/server/page-converter.mjs +3 -3
  189. package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
  190. package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-CVCGTj5S.mjs} +306 -287
  191. package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-C7Be9suN.mjs} +48 -35
  192. package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-H_bSBPLd.mjs} +848 -315
  193. package/dist/server/parseThemeForPersistence-Bk0o95m6.mjs +52 -0
  194. package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-HQNOeCs9.mjs} +1 -1
  195. package/dist/server/prebuild.mjs +1 -1
  196. package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-CbRsnhta.mjs} +4 -3
  197. package/dist/server/{registry-Djrj9gWy.mjs → registry-CaeRTf4E.mjs} +4014 -2007
  198. package/dist/server/rendering/components/pageShared.mjs +1 -1
  199. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  200. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  201. package/dist/server/rendering/server.mjs +3 -3
  202. package/dist/server/rendering.mjs +7 -7
  203. package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CUMjWbXQ.mjs} +4 -3
  204. package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-euZnRMIu.mjs} +23 -24
  205. package/dist/server/rich-text-CRcONdyM.mjs +33 -0
  206. package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
  207. package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-CxBsE9Dv.mjs} +463 -53
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/theme-bridge.mjs +2 -2
  210. package/dist/server/theme.mjs +2 -1
  211. package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
  212. package/dist/server/{validation-Dh8htd6l.mjs → validation-CvmhnkDr.mjs} +9 -9
  213. package/dist/server/{version-LMwnoksN.mjs → version-Clp2evCf.mjs} +1 -1
  214. package/dist/styles/index.css +408 -10
  215. package/package.json +1 -1
  216. package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
  217. package/dist/client/runtimeResponse-D2LT--Gj.mjs +0 -3
  218. package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
  219. package/dist/server/bindings-C1-MNwwS.mjs +0 -257
  220. package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
  221. package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
@@ -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-DkgvZAQS.mjs";
2
+ import { r as ProductDetailController } from "./shop-commerce--klkHNzu.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-DkgvZAQS.mjs";
2
+ import { i as ProductListController } from "./shop-commerce--klkHNzu.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-BXeLqkCE.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-CH2-LJME.mjs";
3
+ import { t as ProductDetailClient } from "./product-detail.client-DsSfbmdV.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-Jt4TzcAG.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-C627X8DQ.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BEfD0e4m.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-CH2-LJME.mjs";
3
+ import { t as ProductListClient } from "./product-list.client-Byzow88i.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-Jt4TzcAG.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-C0IjiWOs.mjs";
3
+ import { Ji as lookListPresentationSchemaShape, Ri as eventRegistrationPageSurfaceSubjectSchema, Vi as createZodCodec, Wi as isDecodeSuccess, ur as bookingFormInteractiveIslandPropsCodec } from "./display-ChgDe9Da.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);