@riverbankcms/sdk 0.183.0 → 0.184.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 (222) hide show
  1. package/README.md +34 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
  3. package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
  5. package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
  6. package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
  7. package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
  9. package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
  10. package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
  11. package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
  12. package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
  13. package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
  14. package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
  15. package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
  16. package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
  17. package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
  18. package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
  19. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client.d.ts +7 -7
  22. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  23. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  26. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  27. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  28. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  29. package/dist/_dts/sdk/src/index.d.ts +7 -7
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
  54. package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +15 -7
  55. package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
  56. package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
  57. package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
  58. package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
  61. package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
  62. package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
  63. package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
  64. package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
  66. package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
  67. package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
  68. package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
  69. package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
  70. package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
  71. package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
  72. package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
  73. package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
  74. package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
  75. package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  76. package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
  77. package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
  78. package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
  79. package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
  80. package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
  81. package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
  82. package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
  83. package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
  84. package/dist/client/bookings.mjs +4 -4
  85. package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
  86. package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
  87. package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
  88. package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  89. package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
  90. package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
  91. package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
  92. package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
  93. package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
  94. package/dist/client/client.mjs +23 -35
  95. package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
  96. package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
  97. package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
  98. package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
  99. package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
  100. package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
  101. package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
  102. package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
  103. package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
  104. package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
  105. package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
  106. package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +7 -7
  108. package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
  109. package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
  110. package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
  111. package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
  112. package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
  113. package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
  114. package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
  115. package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
  116. package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
  117. package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
  118. package/dist/client/portal/client.mjs +27 -15
  119. package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
  120. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  121. package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
  122. package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
  123. package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
  124. package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
  125. package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
  126. package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
  127. package/dist/client/rendering/client.mjs +28 -27
  128. package/dist/client/rendering/islands.mjs +1 -1
  129. package/dist/client/rendering.mjs +4 -4
  130. package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
  131. package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
  132. package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
  133. package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
  134. package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
  135. package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
  136. package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
  137. package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
  138. package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
  139. package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
  140. package/dist/client/spam-protection.mjs +1 -1
  141. package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
  142. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
  143. package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
  144. package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
  145. package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
  146. package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
  147. package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  149. package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  151. package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
  152. package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
  153. package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
  154. package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
  155. package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
  156. package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
  157. package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
  158. package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
  159. package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
  160. package/dist/preview-next/client/runtime.mjs +3 -3
  161. package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
  162. package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
  163. package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
  164. package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
  165. package/dist/preview-next/container-responsive.css +150 -3
  166. package/dist/preview-next/keepAlive.mjs +1 -1
  167. package/dist/preview-next/middleware.mjs +1 -1
  168. package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
  169. package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
  170. package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
  171. package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
  172. package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
  173. package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
  174. package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +2 -2
  177. package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/index.mjs +3 -3
  180. package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
  181. package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
  182. package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
  183. package/dist/server/manifest.mjs +2 -2
  184. package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
  185. package/dist/server/navigation.mjs +1 -1
  186. package/dist/server/next.mjs +9 -9
  187. package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
  188. package/dist/server/page-converter.mjs +17 -4
  189. package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
  190. package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
  191. package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
  192. package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
  193. package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
  194. package/dist/server/portal.mjs +3 -3
  195. package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
  196. package/dist/server/prebuild.mjs +1 -1
  197. package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
  198. package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
  199. package/dist/server/rendering/components/pageShared.mjs +1 -1
  200. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  201. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  202. package/dist/server/rendering/server.mjs +4 -4
  203. package/dist/server/rendering.mjs +9 -9
  204. package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
  205. package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
  206. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
  207. package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
  208. package/dist/server/server.mjs +3 -3
  209. package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
  210. package/dist/server/theme-bridge.mjs +5 -4
  211. package/dist/server/theme.mjs +2 -2
  212. package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
  213. package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
  214. package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
  215. package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
  216. package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
  217. package/dist/styles/index.css +495 -50
  218. package/package.json +1 -1
  219. package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
  220. package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
  221. package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
  222. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { An as parseMailingListVisitorSelection, r as newsletterBlockSubmissionMessage, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./newsletter-form.interactive-hzpkW9NQ.mjs";
2
+ import { An as parseMailingListVisitorSelection, r as newsletterBlockSubmissionMessage, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
3
  import { t as assertNever } from "./src-Do_s2lqH.mjs";
4
4
  import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
5
- import { i as BlockApiError, n as useBlockApi } from "./context-D1L0pe__.mjs";
6
- import { d as listLookSlot } from "./islands-DJDLGQEm.mjs";
7
- import { x as clsx } from "./ThemedButton-Bc9DBbVp.mjs";
5
+ import { i as BlockApiError, n as useBlockApi } from "./context-lCPfX-xe.mjs";
6
+ import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
7
+ import { O as clsx } from "./ThemedButton-C4rCsPCt.mjs";
8
8
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
9
- import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CgzpSv9p.mjs";
9
+ import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-Dmuklz0r.mjs";
10
10
  import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
11
11
  import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
12
12
  import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { f as parseUuidBrand, m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
3
3
  import { A as eventCalendarListGroupingDecision, At as publicMembershipProductSchema, Bn as parseEventSeriesId, Bt as publicEventLoaderQuerySchemaShape, Cn as toUtcIsoDateTimeString, L as isEventCalendarListLayout, Lt as eventScheduleScopeValues, M as eventCalendarLookViews, Mt as publicProductSchema, N as eventCalendarVariantMeaning, Nt as purchasablePublicMembershipProductSchema, P as eventListArrangementValues, Pt as purchasablePublicPassProductSchema, Rt as eventSurfacePresetValues, S as publicEventSchema, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, Ut as WHOLE_SERIES_EVENT_PRESET_VALUES, b as publicEventDestinationSchema, bn as parseBookingLocalDate, c as blockSiteTermsSchema, cn as formatTime, dn as inferSiteDateLocale, en as buildBookingUtcDateWindow, jt as publicPassProductSchema, m as calendarWindowPageSchema, nn as formatDate, rn as formatDateRange, t as assertNever, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as resolveEventCalendarReadPlan, zt as eventSurfaceScopeValues } from "./src-Do_s2lqH.mjs";
4
- import { $a as weekStartSchema, $t as toWholeSeriesRegistrationEvents, At as resolveEventRequiresPayment, Bo as eventDateOptions, Br as placesLeftLabel, Ga as columnOptionSchema, Go as formatEventCompactDateRail, Gr as buildCartDisplay, Hr as resolveRegistrationDisplay, Io as RichText, Ja as eventCalendarDisplayModeSchema, Ka as eventButtonVariantSchema, Kr as buildCheckoutDisplay, Ms as resolveDateRuntimeContext, Ni as groupPublicEventsByRun, Ot as findPreSelectedEvent, Po as blockButtonRoleSchema, Qa as registrationButtonVariantSchema, Qs as nextLiveRunSessionStartMs, Qt as toWholeSeriesRegistrationEvent, Ro as eventCalendarWeekStart, To as formatRemainingPlaces, Ua as bookingNowSchema, Ur as shownVenue, Vo as eventLocalDateKey, Vr as registrationDisplaySchema, Wa as calendarTabViewsSchema, Xa as filterAutoShowSchema, Xr as buildProductListDisplay, Ya as eventLayoutSchema, Yr as buildProductDetailDisplay, Za as previewStageSchema, Zt as toRegistrationEvents, _i as eventRegistrationPageSurfaceSubjectSchema, ac as DEFAULT_MAILING_LIST_PRIVACY_NOTE, as as renderAudio, bi as resolveEventRegistrationScopedEvents, bt as entryPageEvent, c as registrationStepLabelContext, cc as parseMailchimpAudienceId, co as bookingPageKindSchema, ec as resolveWholeSeriesBookingPhase, eo as browserReadAuthoritySchema, f as isRegistrationLocked, gc as formatEventPricing, hc as formatBookingPriceDisplay, ir as formatRegistrationSchedule, is as mediaImageHostProps, jo as selectEventCapacitySource, ko as getRemainingPlaces, lc as parseMailchimpInterestId, lo as bookingPresentation, mc as EVENT_PRESET_VOCABULARY, n as getEventSelectionMode, nc as resolveWholeSeriesRunLifecycle, ns as MediaPlaceholder, o as registrationRoute, oc as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, oi as deriveCommerceCheckoutState, oo as pageNavigationSchema, os as renderVideo, pi as closedRunCopy, pr as withOccurrenceTitle, qa as eventCalendarDefaultViewSchema, qr as buildPassesMembershipsDisplay, rc as parseMailingListRuntimeContext, rs as computeMediaTransformStyle, s as registrationStepLabel, sc as parseBrevoListId, t as REGISTRATION_STEP_LABELS, tr as formatBookingWhen, ts as ImagePresets, uc as parseNewsletterListId, ui as resolveSelectedProduct, us as resolveMediaNodeResponsiveImage, vt as decideRegistrationEntry, yc as publicEventPricingDisplay, yi as resolveEventRegistrationChoices, yo as resolveRuntimeEventDestination, yt as entryChoosesEvent, zo as eventDateLocale } from "./wizardSteps-DDvL3iza.mjs";
4
+ import { $a as weekStartSchema, $s as nextLiveRunSessionStartMs, $t as toWholeSeriesRegistrationEvents, At as resolveEventRequiresPayment, Bo as eventDateOptions, Br as placesLeftLabel, Ga as columnOptionSchema, Go as formatEventCompactDateRail, Gr as buildCartDisplay, Hr as resolveRegistrationDisplay, Io as RichText, Ja as eventCalendarDisplayModeSchema, Ka as eventButtonVariantSchema, Kr as buildCheckoutDisplay, Ms as resolveDateRuntimeContext, Ni as groupPublicEventsByRun, Ot as findPreSelectedEvent, Po as blockButtonRoleSchema, Qa as registrationButtonVariantSchema, Qt as toWholeSeriesRegistrationEvent, Ro as eventCalendarWeekStart, To as formatRemainingPlaces, Ua as bookingNowSchema, Ur as shownVenue, Vo as eventLocalDateKey, Vr as registrationDisplaySchema, Wa as calendarTabViewsSchema, Xa as filterAutoShowSchema, Xr as buildProductListDisplay, Ya as eventLayoutSchema, Yr as buildProductDetailDisplay, Za as previewStageSchema, Zt as toRegistrationEvents, _c as formatEventPricing, _i as eventRegistrationPageSurfaceSubjectSchema, as as renderAudio, bc as publicEventPricingDisplay, bi as resolveEventRegistrationScopedEvents, bt as entryPageEvent, c as registrationStepLabelContext, cc as parseBrevoListId, co as bookingPageKindSchema, dc as parseNewsletterListId, eo as browserReadAuthoritySchema, f as isRegistrationLocked, gc as formatBookingPriceDisplay, hc as EVENT_PRESET_VOCABULARY, ic as parseMailingListRuntimeContext, ir as formatRegistrationSchedule, is as mediaImageHostProps, jo as selectEventCapacitySource, ko as getRemainingPlaces, lc as parseMailchimpAudienceId, lo as bookingPresentation, n as getEventSelectionMode, ns as MediaPlaceholder, o as registrationRoute, oc as DEFAULT_MAILING_LIST_PRIVACY_NOTE, oi as deriveCommerceCheckoutState, oo as pageNavigationSchema, os as renderVideo, pi as closedRunCopy, pr as withOccurrenceTitle, qa as eventCalendarDefaultViewSchema, qr as buildPassesMembershipsDisplay, rc as resolveWholeSeriesRunLifecycle, rs as computeMediaTransformStyle, s as registrationStepLabel, sc as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, t as REGISTRATION_STEP_LABELS, tc as resolveWholeSeriesBookingPhase, tr as formatBookingWhen, ts as ImagePresets, uc as parseMailchimpInterestId, ui as resolveSelectedProduct, us as resolveMediaNodeResponsiveImage, vt as decideRegistrationEntry, yi as resolveEventRegistrationChoices, yo as resolveRuntimeEventDestination, yt as entryChoosesEvent, zo as eventDateLocale } from "./wizardSteps-B3gsXNnb.mjs";
5
5
  import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
6
- import { A as resolveModeArrangement, Ht as assertNever$2, a as defineClientOwnedBlockRuntime, bn as cardRoleSchema, d as listLookSlot, en as toNonEmptyReadonlyArray, f as lookListPresentationSchemaShape, i as createZodCodec, l as listItemPresentation, n as createInteractiveIslandCodec, o as defineProgressiveBlockRuntime, r as defineInteractiveIslandMetaKeys, s as isDecodeSuccess, t as buildInteractiveIslandProps, u as listLookControl } from "./islands-DJDLGQEm.mjs";
7
- import { p as ExternalLinkIcon, r as ThemedButtonLink, t as ThemedAuthoredButton, x as clsx } from "./ThemedButton-Bc9DBbVp.mjs";
6
+ import { Qt as assertNever$2, a as defineClientOwnedBlockRuntime, d as listLookSlot, dn as toNonEmptyReadonlyArray, f as lookListPresentationSchemaShape, i as createZodCodec, jn as cardRoleSchema, k as resolveModeArrangement, l as listItemPresentation, n as createInteractiveIslandCodec, o as defineProgressiveBlockRuntime, r as defineInteractiveIslandMetaKeys, s as isDecodeSuccess, t as buildInteractiveIslandProps, u as listLookControl } from "./islands-dMh0Oxli.mjs";
7
+ import { O as clsx, m as ExternalLinkIcon, r as ThemedButtonLink, t as ThemedAuthoredButton } from "./ThemedButton-C4rCsPCt.mjs";
8
8
  import { n as getCurrentResolveImageUrlContext } from "./mediaContext-DzvnjYXm.mjs";
9
9
  import { d as formatDateKey, h as getWeekCalendarDayTuple, l as buildCalendarViewport, r as groupItemsByDate, s as addDays } from "./src-uwCpbHXG.mjs";
10
10
  import "react";
@@ -1075,7 +1075,7 @@ function Grid({ as: Comp = "div", cols, userColumns, gap = "md", className, styl
1075
1075
  }
1076
1076
  //#endregion
1077
1077
  //#region ../blocks/src/system/runtime/nodes/media.server.tsx
1078
- const MediaNodeServer = ({ value, "data-slot": dataSlot, "data-surface": dataSurface, className, style, videoPlayback = "inline", loading = "lazy", fetchPriority, size = ImagePresets.full, fieldPath, blockKind, blockContent, imageResolveContext: explicitImageResolveContext }) => {
1078
+ const MediaNodeServer = ({ value, "data-slot": dataSlot, "data-surface": dataSurface, "data-photo-shape": photoShape, className, style, videoPlayback = "inline", loading = "lazy", fetchPriority, size = ImagePresets.full, fieldPath, blockKind, blockContent, imageResolveContext: explicitImageResolveContext }) => {
1079
1079
  const imageResolveContext = explicitImageResolveContext ?? getCurrentResolveImageUrlContext();
1080
1080
  if (!value) return null;
1081
1081
  if (value.type === "video") return renderVideo(value, className, style, imageResolveContext, { playback: videoPlayback });
@@ -1100,7 +1100,8 @@ const MediaNodeServer = ({ value, "data-slot": dataSlot, "data-surface": dataSur
1100
1100
  loading,
1101
1101
  fetchPriority,
1102
1102
  "data-slot": dataSlot,
1103
- "data-surface": dataSurface
1103
+ "data-surface": dataSurface,
1104
+ "data-photo-shape": photoShape
1104
1105
  }, computedStyle),
1105
1106
  src: imageUrl,
1106
1107
  srcSet: responsive?.srcSet,
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { d as listLookSlot } from "./islands-DJDLGQEm.mjs";
2
+ import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
3
3
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
4
- import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-BG7my0Qf.mjs";
4
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-CY6u5sQa.mjs";
5
5
  import "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/newsletter-form.parts.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
3
- import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
4
- import { t as NewsletterFormClient } from "./newsletter-form.client-wg_JHTxm.mjs";
2
+ import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
3
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
4
+ import { t as NewsletterFormClient } from "./newsletter-form.client-BxA1PsdS.mjs";
5
5
  import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
6
6
  import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
7
7
  import "react";
@@ -2,19 +2,19 @@
2
2
  "use client";
3
3
  import { m as ok, p as err } from "../renderableMediaAssetAdmission-BsOWd9lf.mjs";
4
4
  import { An as formatCurrencyAmount, Fn as unsafeAsAppointmentResourceId, On as parsePositiveMoneyInputToCents, Sn as parseUtcIsoDateTimeString, _t as unknownKind, an as formatDateTimeRange, bn as parseBookingLocalDate, cn as formatTime, gt as exactSchema, ht as evolvingSchema, in as formatDateTime, ln as formatTimeRange, nn as formatDate, rn as formatDateRange, t as assertNever, vt as unknownTag } from "../src-Do_s2lqH.mjs";
5
- import { a as withPortalArrival, c as portalBookingViewSchema, d as portalWaitlistOfferPriceSchema, h as parseOrderPaymentReceiptId, i as portalPath, l as portalBookingsResponseSchema, m as parseOrderId, n as isServerPortalTarget, o as portalBookingPath, r as parsePortalLocation, s as portalBookingResponseSchema, u as portalRegularSessionsResponseSchema } from "../portalRoutes-DTHlWg_F.mjs";
5
+ import { a as withPortalArrival, c as portalBookingViewSchema, d as portalWaitlistOfferPriceSchema, h as parseOrderPaymentReceiptId, i as portalPath, l as portalBookingsResponseSchema, m as parseOrderId, n as isServerPortalTarget, o as portalBookingPath, r as parsePortalLocation, s as portalBookingResponseSchema, u as portalRegularSessionsResponseSchema } from "../portalRoutes-DiGibcZI.mjs";
6
6
  import { a as calendarEntryEnd, h as assertNever$1, i as bookingCalendarFromEntries, l as getInitialFieldValue, m as unansweredRequiredBookingQuestions, n as ONLINE_CALENDAR_LOCATION, o as UNANSWERED_QUESTION_MESSAGE, t as ONLINE_CALENDAR_DESCRIPTION, u as initialBookingQuestionValues } from "../bookingCalendar--aWnqFDn.mjs";
7
7
  import { t as generateUuidV4 } from "../uuid-BETKW8rS.mjs";
8
- import { a as questionControlProps, i as isChoiceGroup, o as clientPersonPhrases, t as BookingQuestionFieldInput } from "../BookingQuestionFields-DCh9MUIF.mjs";
8
+ import { a as questionControlProps, i as isChoiceGroup, o as clientPersonPhrases, t as BookingQuestionFieldInput } from "../BookingQuestionFields-DdcmoHqQ.mjs";
9
9
  import { C as customerProfileSchema, _ as portalPaymentToDoSchema, f as portalDeadlineSchema, g as portalPaymentDueSchema, h as portalOrderNameSchema, i as bookingContextRefSchema, l as eventAttendeeRefSchema, m as portalOrderBreakdownSchema, n as customerOrderSchema, p as portalMoneySchema, x as customerPassUseCaseSchema } from "../portalOrders-tCxS04g0.mjs";
10
- import { C as portalMeUpdateResponseSchema, E as portalTransferEventRegistrationResultSchema, S as portalMeResponseSchema, T as portalRescheduleAppointmentResponseSchema, _ as portalDigitalProductsResponseSchema, a as createPortalTransport, b as portalEventRescheduleResultSchema, c as PORTAL, d as portalBookingQuestionsTaskResponseSchema, f as portalBookingQuestionsUploadUrlResponseSchema, g as portalDigitalProductDownloadUrlResponseSchema, h as portalDigitalProductAccessResponseSchema, l as magicLinkResponseSchema, m as portalCancelOutcomeSchema, n as useBlockApi, o as field, p as portalCancelMembershipAtPeriodEndResultSchema, s as isUncertainPortalFailure, t as BlockApiProvider, u as portalBookingQuestionsFinalizeUploadResponseSchema, v as portalEventGuestsResponseSchema, w as portalOrderCheckoutResponseSchema, x as portalEventTicketResponseSchema, y as portalEventRescheduleDatesSchema } from "../context-D1L0pe__.mjs";
11
- import { a as ThemedFileChooser, n as ThemedButton, r as ThemedButtonLink, x as clsx } from "../ThemedButton-Bc9DBbVp.mjs";
10
+ import { C as portalMeUpdateResponseSchema, E as portalTransferEventRegistrationResultSchema, S as portalMeResponseSchema, T as portalRescheduleAppointmentResponseSchema, _ as portalDigitalProductsResponseSchema, a as createPortalTransport, b as portalEventRescheduleResultSchema, c as PORTAL, d as portalBookingQuestionsTaskResponseSchema, f as portalBookingQuestionsUploadUrlResponseSchema, g as portalDigitalProductDownloadUrlResponseSchema, h as portalDigitalProductAccessResponseSchema, l as magicLinkResponseSchema, m as portalCancelOutcomeSchema, n as useBlockApi, o as field, p as portalCancelMembershipAtPeriodEndResultSchema, s as isUncertainPortalFailure, t as BlockApiProvider, u as portalBookingQuestionsFinalizeUploadResponseSchema, v as portalEventGuestsResponseSchema, w as portalOrderCheckoutResponseSchema, x as portalEventTicketResponseSchema, y as portalEventRescheduleDatesSchema } from "../context-lCPfX-xe.mjs";
11
+ import { O as clsx, a as ThemedFileChooser, n as ThemedButton, r as ThemedButtonLink } from "../ThemedButton-C4rCsPCt.mjs";
12
12
  import { n as assertSafeAppPath } from "../src-Al4ooTl_.mjs";
13
13
  import { t as resolveDedicatedBookingHref } from "../bookingRoute-D6DlxYx6.mjs";
14
14
  import { t as FieldValidationMessage } from "../FieldValidationMessage-CsqxShw4.mjs";
15
- import { n as useAvailableDates, t as useAvailableSlots } from "../useAvailableSlots-DcjtDpUu.mjs";
16
- import { i as getDemoBookingPass, n as buildPortalCallbackUrl, t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-BunFTnIq.mjs";
17
- import { n as downloadCalendar } from "../CalendarAction-RcdaStG7.mjs";
15
+ import { n as useAvailableDates, t as useAvailableSlots } from "../useAvailableSlots-B0mjVhZr.mjs";
16
+ import { i as getDemoBookingPass, n as buildPortalCallbackUrl, t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-Ce3Gyin_.mjs";
17
+ import { n as downloadCalendar } from "../CalendarAction-DYGewmvh.mjs";
18
18
  import { a as formatPortalSessionTime, c as portalSessionDisplay, i as formatPortalSessionDay, o as formatPortalSessionWithWeekday, r as formatPortalSession, s as lastCoveredInstant, t as formatDateTime$1 } from "../dateFormatting-HvfmS_cH.mjs";
19
19
  import * as React$1 from "react";
20
20
  import { forwardRef, useCallback, useEffect, useId, useMemo, useReducer, useRef, useState, useSyncExternalStore } from "react";
@@ -4800,15 +4800,27 @@ function dateChip(date, trainer) {
4800
4800
  };
4801
4801
  }
4802
4802
  }
4803
+ function packageList(packages) {
4804
+ const named = packages.map((pack) => `your ${pack.name ?? "package"} (${pack.sessionsLeft === 0 ? "none" : pack.sessionsLeft} left)`);
4805
+ return named.length <= 1 ? named[0] ?? "" : `${named.slice(0, -1).join(", ")} and ${named.at(-1) ?? ""}`;
4806
+ }
4803
4807
  function paymentLine(session) {
4804
- switch (session.payment.kind) {
4805
- case "package": {
4806
- const left = session.payment.sessionsLeft;
4807
- return `Paid from your ${session.payment.name ?? "package"}, which has ${left === 1 ? "1 session" : `${left} sessions`} left.`;
4808
- }
4809
- case "owed": return "You pay for each session as it comes up.";
4810
- case "payment_link": return "We'll send you a link to pay for each session.";
4808
+ const { coverage, owedFollowUp } = session.payment;
4809
+ const forNew = coverage.packages.filter((pack) => pack.forNewSessions);
4810
+ const bookedOnly = coverage.packages.filter((pack) => !pack.forNewSessions);
4811
+ if (forNew.length > 0) {
4812
+ const otherwise = owedFollowUp === "payment_link" ? "When no package covers a session, we’ll send you a link to pay for it." : "When no package covers a session, you pay for it as it comes up.";
4813
+ return `Your next sessions come out of ${packageList(coverage.packages)}. ${otherwise}`;
4811
4814
  }
4815
+ if (bookedOnly.length > 0) {
4816
+ const after = owedFollowUp === "payment_link" ? "we’ll send you a link to pay for each session." : "you pay for each session as it comes up.";
4817
+ return `Your booked sessions come out of ${bookedList(bookedOnly)}. After those, ${after}`;
4818
+ }
4819
+ return owedFollowUp === "payment_link" ? "We’ll send you a link to pay for each session." : "You pay for each session as it comes up.";
4820
+ }
4821
+ function bookedList(packages) {
4822
+ const named = packages.map((pack) => `your ${pack.name ?? "package"}`);
4823
+ return named.length <= 1 ? named[0] ?? "" : `${named.slice(0, -1).join(", ")} and ${named.at(-1) ?? ""}`;
4812
4824
  }
4813
4825
  function bookedRef(date) {
4814
4826
  return date.state === "booked" ? {
@@ -4843,7 +4855,7 @@ function regularSessionModel(session, context) {
4843
4855
  payment: paymentLine(session),
4844
4856
  note: holdsTimeNote(session, trainer),
4845
4857
  dates,
4846
- heldNote: !session.dates.some((date) => date.state === "held") ? null : session.payment.kind === "package" ? "Held dates aren't booked yet, so nothing's taken from your package until they are." : "Held dates aren't booked yet."
4858
+ heldNote: !session.dates.some((date) => date.state === "held") ? null : session.payment.coverage.packages.length > 0 ? "Held dates aren't booked yet, so nothing's taken from your package until they are." : "Held dates aren't booked yet."
4847
4859
  };
4848
4860
  }
4849
4861
  //#endregion
@@ -182,11 +182,18 @@ const portalRegularSessionSchema = exactSchema()(z.object({
182
182
  trainerName: z.string().nullable(),
183
183
  serviceName: z.string().nullable(),
184
184
  holdsTime: z.boolean(),
185
- payment: z.union([z.object({
185
+ payment: z.intersection(z.union([z.object({
186
186
  kind: z.literal("package"),
187
187
  name: z.string().nullable(),
188
188
  sessionsLeft: z.number()
189
- }), z.object({ kind: z.enum(["owed", "payment_link"]) })]),
189
+ }), z.object({ kind: z.enum(["owed", "payment_link"]) })]), z.object({
190
+ coverage: z.object({ packages: z.array(z.object({
191
+ name: z.string().nullable(),
192
+ sessionsLeft: z.number(),
193
+ forNewSessions: z.boolean()
194
+ })).readonly() }),
195
+ owedFollowUp: z.enum(["direct", "payment_link"])
196
+ })),
190
197
  dates: z.array(dateSchema).readonly()
191
198
  }));
192
199
  const portalRegularSessionsResponseSchema = exactSchema()(z.object({ arrangements: z.array(portalRegularSessionSchema).readonly() }));
@@ -0,0 +1,41 @@
1
+ "use client";
2
+ import { z } from "zod";
3
+ //#region src/rendering/islands/enhancers/portalSession.ts
4
+ const sessionResponse = z.object({ portalToken: z.string().min(1).nullable() });
5
+ /**
6
+ * How long a form waits for the session before mounting signed out. The route only reads a
7
+ * cookie, so a healthy answer is quick; a slow one shouldn't hold up booking for long.
8
+ */
9
+ const PORTAL_SESSION_LOOKUP_BUDGET_MS = 1500;
10
+ /** The page's one in-flight lookup; cleared when it settles. */
11
+ const pageLookup = { current: null };
12
+ async function lookUpPortalSession() {
13
+ try {
14
+ const response = await fetch("/api/portal/session", {
15
+ method: "POST",
16
+ credentials: "same-origin",
17
+ mode: "same-origin",
18
+ cache: "no-store",
19
+ signal: AbortSignal.timeout(PORTAL_SESSION_LOOKUP_BUDGET_MS)
20
+ });
21
+ if (!response.ok) return null;
22
+ const parsed = sessionResponse.safeParse(await response.json());
23
+ return parsed.success ? parsed.data.portalToken : null;
24
+ } catch {
25
+ return null;
26
+ }
27
+ }
28
+ /**
29
+ * Resolve before mounting a form, so a waiting-list visitor never sees a second sign-in sheet.
30
+ * Forms mounting together share one lookup (and so agree on who's signed in); a later mount
31
+ * asks again, so a sign-in or sign-out since then is picked up.
32
+ */
33
+ function resolveFormPortalToken(initialToken) {
34
+ if (initialToken) return Promise.resolve(initialToken);
35
+ pageLookup.current ?? (pageLookup.current = lookUpPortalSession().finally(() => {
36
+ pageLookup.current = null;
37
+ }));
38
+ return pageLookup.current;
39
+ }
40
+ //#endregion
41
+ export { resolveFormPortalToken as t };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { r as ProductDetailController } from "./shop-commerce-DVsIcPaI.mjs";
2
+ import { r as ProductDetailController } from "./shop-commerce-BqLbzUUn.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-DVsIcPaI.mjs";
2
+ import { i as ProductListController } from "./shop-commerce-BqLbzUUn.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-DFYqKnLy.mjs";
3
- import { t as ProductDetailClient } from "./product-detail.client-22Q7zgjN.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-DS8t6749.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
3
+ import { t as ProductDetailClient } from "./product-detail.client-D9MP8hvH.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-COuQ2MhQ.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-DFYqKnLy.mjs";
3
- import { t as ProductListClient } from "./product-list.client-DFWYvK8z.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-DS8t6749.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
3
+ import { t as ProductListClient } from "./product-list.client-wCz1qcUY.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-COuQ2MhQ.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,8 +1,8 @@
1
1
  "use client";
2
- import { H as cartInteractiveIslandPropsCodec, Ot as eventCombinedInteractiveIslandPropsCodec, S as eventRegistrationInteractiveIslandPropsCodec, W as checkoutInteractiveIslandPropsCodec, Y as productListInteractiveIslandPropsCodec, Z as shopInteractiveIslandPropsCodec, _ as formInteractiveIslandPropsCodec, a as newsletterFormInteractiveIslandPropsCodec, c as eventListingInteractiveIslandPropsCodec, mn as headerChromeRuntimeContractSchema, p as eventCalendarInteractiveIslandPropsCodec, q as productDetailInteractiveIslandPropsCodec } from "./newsletter-form.interactive-hzpkW9NQ.mjs";
3
- import { Pi as bookingFormInteractiveIslandPropsCodec } from "./wizardSteps-DDvL3iza.mjs";
4
- import { i as createZodCodec, s as isDecodeSuccess } from "./islands-DJDLGQEm.mjs";
5
- import { i as giftingInteractiveIslandPropsCodec } from "./gifting.interactive-D9MK4HkV.mjs";
2
+ import { H as cartInteractiveIslandPropsCodec, Ot as eventCombinedInteractiveIslandPropsCodec, S as eventRegistrationInteractiveIslandPropsCodec, W as checkoutInteractiveIslandPropsCodec, Y as productListInteractiveIslandPropsCodec, Z as shopInteractiveIslandPropsCodec, _ as formInteractiveIslandPropsCodec, a as newsletterFormInteractiveIslandPropsCodec, c as eventListingInteractiveIslandPropsCodec, mn as headerChromeRuntimeContractSchema, p as eventCalendarInteractiveIslandPropsCodec, q as productDetailInteractiveIslandPropsCodec } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { Pi as bookingFormInteractiveIslandPropsCodec } from "./wizardSteps-B3gsXNnb.mjs";
4
+ import { i as createZodCodec, s as isDecodeSuccess } from "./islands-dMh0Oxli.mjs";
5
+ import { i as giftingInteractiveIslandPropsCodec } from "./gifting.interactive-CrwHpUJG.mjs";
6
6
  import { z } from "zod";
7
7
  //#region ../blocks/src/contracts/non-block-islands.ts
8
8
  const accordionIslandSchema = z.object({