@riverbankcms/sdk 0.180.0 → 0.182.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 (232) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-DC_AvZwy.d.ts → BlocksIslandsHydrator-Bvw2bUif.d.ts} +1 -1
  2. package/dist/_dts/{Page-DQOxVtp3.d.ts → Page-B2EAT-bE.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-DrLgY9_f.d.ts → SdkPreviewMode-D0vww6rh.d.ts} +2 -2
  4. package/dist/_dts/{client-BP7VBRvs.d.ts → client-D6T430bk.d.ts} +56 -70
  5. package/dist/_dts/{content-types-1-K2qi__.d.ts → content-types-wZVWccC6.d.ts} +2 -2
  6. package/dist/_dts/{contracts-Dfqz0Tcu.d.ts → contracts-B-vtOcr8.d.ts} +3 -3
  7. package/dist/_dts/{generatePageMetadata-CSfAqmry.d.ts → generatePageMetadata-CxfwHE6z.d.ts} +2 -2
  8. package/dist/_dts/{index-BeM5Ylwf.d.ts → index-CEyYMhLJ.d.ts} +1 -2
  9. package/dist/_dts/{index-DQr358-m.d.ts → index-CQrb3Ccc.d.ts} +8 -8
  10. package/dist/_dts/{index-DCcxLa8p.d.ts → index-CciRW_w1.d.ts} +2 -2
  11. package/dist/_dts/{index-Blrw2oVk.d.ts → index-Cqxis-nv.d.ts} +1 -1
  12. package/dist/_dts/{index-CB5Csefo.d.ts → index-DIU-wL1M.d.ts} +2 -2
  13. package/dist/_dts/{index-DQBGwBPx.d.ts → index-DqPKdeTk.d.ts} +1 -1
  14. package/dist/_dts/{loadContent-BG2tLGXj.d.ts → loadContent-D0wrxiSp.d.ts} +7 -7
  15. package/dist/_dts/{request-P08l6mkr.d.ts → request-DEwxUSw8.d.ts} +2375 -883
  16. package/dist/_dts/{resolveBlockData-BDHc8lFs.d.ts → resolveBlockData-VaG_MYbN.d.ts} +5 -5
  17. package/dist/_dts/{resolvePageContent-Y3IZBbtL.d.ts → resolvePageContent-DTwklC_v.d.ts} +1 -1
  18. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  19. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  20. package/dist/_dts/sdk/src/client.d.ts +7 -7
  21. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  22. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  23. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  24. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  25. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  27. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -2
  28. package/dist/_dts/sdk/src/index.d.ts +104 -8
  29. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  30. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  31. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/next/index.d.ts +83 -52
  33. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  34. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  35. package/dist/_dts/sdk/src/portal/client.d.ts +43 -56
  36. package/dist/_dts/sdk/src/portal/index.d.ts +3 -18
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  50. package/dist/_dts/sdk/src/server.d.ts +5 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{serviceBookingOutline-BvtNagjw.d.ts → serviceBookingOutline-DtQuFlID.d.ts} +6 -6
  54. package/dist/_dts/{types-DpEAnP4F.d.ts → types-B3RjeBLV.d.ts} +2 -2
  55. package/dist/_dts/{types-HAy1-Jjo.d.ts → types-BvUSGQrw.d.ts} +3 -3
  56. package/dist/_dts/{types-BrK6SS5c.d.ts → types-CkRFtBqd.d.ts} +7 -7
  57. package/dist/_dts/{validation-D6q3tOBA.d.ts → validation-BZA3DhcV.d.ts} +4 -4
  58. package/dist/client/{BlocksIslandsHydrator-DJSmdNUJ.mjs → BlocksIslandsHydrator-CQMf0HdN.mjs} +19 -19
  59. package/dist/client/{BookingMailingListNote-CGxg37zx.mjs → BookingMailingListNote-7kdvuPow.mjs} +93 -18
  60. package/dist/client/{BookingQuestionFields-DXegGSnS.mjs → BookingQuestionFields-BJI7mZuV.mjs} +7 -87
  61. package/dist/client/CalendarAction-D_Glwvz2.mjs +105 -0
  62. package/dist/client/{CalendarNavigationChevron-VfP50sYm.mjs → CalendarNavigationChevron-DPUD6wjy.mjs} +8 -8
  63. package/dist/client/{CheckboxChoice-BZPLCgTU.mjs → CheckboxChoice-C8i4NraK.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-0Ua44F1j.mjs → DemoBookingPortalAccess-8kwNF9HN.mjs} +9 -6
  65. package/dist/client/{EventCalendar.client-CrpiyDSP.mjs → EventCalendar.client-Dhb14bcC.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-D0me9wnz.mjs → EventCombined.client-C1jEZBN9.mjs} +60 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-BDnicDM6.mjs → EventEmbeddedCheckoutStep-BGkbUhuw.mjs} +1 -1
  68. package/dist/client/{EventItem-CJITrGkF.mjs → EventItem-Bb0ppG2N.mjs} +9 -177
  69. package/dist/client/{EventListWeekNavigation-BlEm_xjq.mjs → EventListWeekNavigation-DMryCaNV.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNM_HuS0.mjs → EventListing.client-BuH5kKA3.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CXfb7RRy.mjs → EventListing.view-DsqvuulZ.mjs} +8 -8
  72. package/dist/client/{EventRegistrationPayment-DiD9uYs6.mjs → EventRegistrationPayment-D4FvQSFF.mjs} +555 -502
  73. package/dist/client/{Page-bX7iy_MK.mjs → Page-sV6BJkXX.mjs} +550 -339
  74. package/dist/client/{ProtectedSubmitButton-De6AzhE6.mjs → ProtectedSubmitButton-BNnKuir8.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-BAdW5DvE.mjs → SiteTermsAgreementField-VfSd6JU-.mjs} +7 -11
  76. package/dist/client/{StepIndicator-DCfdcb7s.mjs → StepIndicator-B6o5B7g3.mjs} +1 -1
  77. package/dist/client/{StepIndicator-DCqorVne.mjs → StepIndicator-BTqO7cJl.mjs} +235 -26
  78. package/dist/client/{ThemedButton-CnSa7o-I.mjs → ThemedButton-PFOhXktM.mjs} +1 -33
  79. package/dist/client/{accessibleSurfaces-Wl8-_OVJ.mjs → accessibleSurfaces-BogaGutk.mjs} +983 -634
  80. package/dist/client/{accordion-wofJY8xY.mjs → accordion-6cuswD_s.mjs} +1 -1
  81. package/dist/client/{booking-form.client-CYl9NrqS.mjs → booking-form.client-BOMe_SKi.mjs} +52 -29
  82. package/dist/client/bookingCalendar--aWnqFDn.mjs +180 -0
  83. package/dist/client/{bookingForm-kgVWtuMe.mjs → bookingForm-DSCH-VHo.mjs} +4 -4
  84. package/dist/client/bookings.mjs +17 -11
  85. package/dist/client/{boxStyleClassNames-CQHWz5gJ.mjs → boxStyleClassNames-BFuqZCfz.mjs} +2 -2
  86. package/dist/client/{carousel-BE1dEFsD.mjs → carousel-CGyQVV1M.mjs} +2 -2
  87. package/dist/client/{carousel.client-DMtGYTTM.mjs → carousel.client-BtLwHefX.mjs} +1 -1
  88. package/dist/client/{cart-BsjsdGZE.mjs → cart-BYOe7MCh.mjs} +3 -3
  89. package/dist/client/{cart.client-DylGUWXY.mjs → cart.client-BKFkaXdV.mjs} +1 -1
  90. package/dist/client/{checkout-B5KxEUDr.mjs → checkout-Dwd7Di77.mjs} +3 -3
  91. package/dist/client/{checkout.client-C98fhch3.mjs → checkout.client-C25hpi-z.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-BMLYTf38.mjs → checkoutUrls-tG788sw0.mjs} +1 -1
  93. package/dist/client/client.mjs +106 -43
  94. package/dist/client/{constants-PfYJsEZF.mjs → constants-DdxFG3Ic.mjs} +1 -2
  95. package/dist/client/{context-DtKdUdkO.mjs → context-Hi1RuYEM.mjs} +753 -373
  96. package/dist/client/{dateFormatting-BaGPvQS3.mjs → dateFormatting-C8vBCHuo.mjs} +15 -25
  97. package/dist/client/{demoPortalMagicLink-B8eDjhuG.mjs → demoPortalMagicLink-BAL5UIDG.mjs} +2 -3
  98. package/dist/client/{enhanceHeaderSection-DvhD-8eE.mjs → enhanceHeaderSection-Dv1Lr9kJ.mjs} +4 -5
  99. package/dist/client/{event-registration.client-Du9a_xAN.mjs → event-registration.client-dB_Z7bb-.mjs} +191 -210
  100. package/dist/client/{eventCalendar-Di9wDfzl.mjs → eventCalendar-CQnRA4Ww.mjs} +4 -4
  101. package/dist/client/{eventCombined-CNW6nBsB.mjs → eventCombined-BDOG1hVp.mjs} +4 -4
  102. package/dist/client/{eventListing-CQMxQ8By.mjs → eventListing-DSVmhy9n.mjs} +4 -4
  103. package/dist/client/{eventRegistration-CprS9k1D.mjs → eventRegistration-CD5mRtEH.mjs} +4 -4
  104. package/dist/client/{form-Zl1_8RJ6.mjs → form-DWnlEVSK.mjs} +3 -3
  105. package/dist/client/{form.client-TaMUys6I.mjs → form.client-D7zmeqNI.mjs} +5 -5
  106. package/dist/client/{form.parts-CpNPbPPM.mjs → form.parts-C-G6N_MK.mjs} +3 -3
  107. package/dist/client/gifting/client.mjs +32 -29
  108. package/dist/client/{gifting-DNVa7-Wj.mjs → gifting-Cn0jidP5.mjs} +4 -4
  109. package/dist/client/{gifting.client-CFUq3GVx.mjs → gifting.client-DVo1YFLs.mjs} +5 -5
  110. package/dist/client/{gifting.parts-CDQvxA4A.mjs → gifting.parts-Bak93gD2.mjs} +2 -2
  111. package/dist/client/{headerSection-Cg6083rn.mjs → headerSection-DjQuj_6v.mjs} +2 -2
  112. package/dist/client/{mediaAssets-B99AP7ai.mjs → mediaAssets-COfQolI3.mjs} +1 -1
  113. package/dist/client/{mediaContext-Fusweriw.mjs → mediaContext-DzvnjYXm.mjs} +1 -1
  114. package/dist/client/{newsletter-form.client-VuL9I96G.mjs → newsletter-form.client-rIYPziZC.mjs} +7 -7
  115. package/dist/client/{newsletter-form.interactive-7Of3eYn0.mjs → newsletter-form.interactive-DVt3enLr.mjs} +181 -155
  116. package/dist/client/{newsletter-form.parts-OBqsfT24.mjs → newsletter-form.parts-CH6dGfdn.mjs} +2 -2
  117. package/dist/client/{newsletterForm-BkJe_RTv.mjs → newsletterForm-Cg8cBDHd.mjs} +3 -3
  118. package/dist/client/{lookSurfaces-gJ3OqPf9.mjs → noop-jesvJXEE.mjs} +403 -275
  119. package/dist/client/portal/client.mjs +12202 -7166
  120. package/dist/client/portalOrders-oEoTvzkW.mjs +596 -0
  121. package/dist/client/portalRoutes-ByyVZfVq.mjs +873 -0
  122. package/dist/client/{product-detail.client-B2hdxqJN.mjs → product-detail.client-5aHq-vuu.mjs} +1 -1
  123. package/dist/client/{product-list.client-CCEgu9rx.mjs → product-list.client-CyAk5rnC.mjs} +1 -1
  124. package/dist/client/{productDetail-CRX_ZRfS.mjs → productDetail-B8aZ2mqY.mjs} +3 -3
  125. package/dist/client/{productList-BAdJ6z5S.mjs → productList-BuLemmod.mjs} +3 -3
  126. package/dist/client/{propsDecoder-BLKAmX0S.mjs → propsDecoder-0Unsqn3R.mjs} +2 -2
  127. package/dist/client/{registry.server-Bj9cmHHF.mjs → registry.server-DzvtVVD0.mjs} +664 -434
  128. package/dist/client/{renderableMediaAssetAdmission-BlfqYLJW.mjs → renderableMediaAssetAdmission-BsOWd9lf.mjs} +1 -1
  129. package/dist/client/rendering/client.mjs +26 -26
  130. package/dist/client/rendering/islands.mjs +1 -1
  131. package/dist/client/rendering.mjs +16 -8
  132. package/dist/client/{richText-coerce-Z45OLLEX.mjs → richText-coerce-Bnng7JFA.mjs} +2 -1
  133. package/dist/client/{routeIslandApiConfig-DHpTTK77.mjs → routeIslandApiConfig-BGfcc9sk.mjs} +1 -1
  134. package/dist/client/{runtimeResponse-DtWSfWSZ.mjs → runtimeResponse-DAPVRToN.mjs} +1 -1
  135. package/dist/client/{runtimeResponse-D2j2-mOk.mjs → runtimeResponse-nXT8VAMl.mjs} +1 -1
  136. package/dist/client/{shop-BKsgxm_-.mjs → shop-GuMqnDL-.mjs} +3 -3
  137. package/dist/client/{shop-commerce-Cbtk_kUW.mjs → shop-commerce-D5bDY1o1.mjs} +53 -16
  138. package/dist/client/{shop-commerce-store-B-rv2p5h.mjs → shop-commerce-store-B7sHnLwI.mjs} +22 -5
  139. package/dist/client/{shop-discount-apply.state-CiCDLNh7.mjs → shop-discount-apply.state-Dos2zdC2.mjs} +2 -2
  140. package/dist/client/{shop.client-Rnqa74Tk.mjs → shop.client-uvj5GDZb.mjs} +17 -39
  141. package/dist/client/{shopShared-BaBfhjCq.mjs → shopShared-3giNWE3H.mjs} +2 -2
  142. package/dist/client/spam-protection.mjs +1 -1
  143. package/dist/client/src-Al4ooTl_.mjs +164 -0
  144. package/dist/client/{src-o7WEvbK1.mjs → src-CmXh3JWs.mjs} +233 -91
  145. package/dist/client/{timetableModel-BOff1Kk5.mjs → timetableModel-GA-hn1qM.mjs} +11 -87
  146. package/dist/client/{shop-add-feedback-DvC2kP1K.mjs → urlParams-C2QHo1Pa.mjs} +1 -42
  147. package/dist/client/{useAvailableSlots-DQJNh10g.mjs → useAvailableSlots-CBneCxbG.mjs} +2 -3
  148. package/dist/client/{useDiscountCodeUi-BcFQRI_7.mjs → useDiscountCodeUi-D0kGF0C7.mjs} +1 -1
  149. package/dist/client/{useEventPagination-BvdcexDC.mjs → useEventPagination-xX8n_Tuu.mjs} +8 -8
  150. package/dist/client/{view-CTBwSpKv.mjs → view-DOyZc-DF.mjs} +4 -4
  151. package/dist/client/{wizardSteps-CWIQyRIw.mjs → wizardSteps-B952ify5.mjs} +1241 -295
  152. package/dist/preview-next/client/{PageSectionToolbar-CG6KwITA.mjs → PageSectionToolbar-BI3UCdpu.mjs} +3 -3
  153. package/dist/preview-next/client/{PreviewEditorSidebar-BGBqrC9m.mjs → PreviewEditorSidebar-jkfLVOgY.mjs} +12 -9
  154. package/dist/preview-next/client/{PreviewEditorUI-Bwkyx28x.mjs → PreviewEditorUI-DwJQs4hM.mjs} +4 -4
  155. package/dist/preview-next/client/{PreviewShell-DB1l6JNU.mjs → PreviewShell-BAxAkuz8.mjs} +5 -5
  156. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bs6Cwzr3.mjs → SdkPreviewModeRuntime-0UVB-39f.mjs} +68 -17
  157. package/dist/preview-next/client/{previewAssistantSlot-T-oDD_Dd.mjs → previewAssistantSlot-BgiYk3PB.mjs} +7347 -3516
  158. package/dist/preview-next/client/{previewChromeRoot-BeukcDRy.mjs → previewChromeRoot-tieNdF3E.mjs} +1 -1
  159. package/dist/preview-next/client/runtime.mjs +3 -3
  160. package/dist/preview-next/client/{sdk-runtime-ceDW_9q2.mjs → sdk-runtime-DXb_Evl0.mjs} +2 -2
  161. package/dist/preview-next/client/{siteStyleAccess-CCB9bScO.mjs → siteStyleAccess-BlN0jt2c.mjs} +3 -3
  162. package/dist/preview-next/client/{useAutosaveStatus-D4o0CKq7.mjs → useAutosaveStatus-BUEPA4oL.mjs} +1 -1
  163. package/dist/preview-next/client/{useOpenBlockForSetup-Seccrvwu.mjs → useOpenBlockForSetup-BVfr5P--.mjs} +1 -1
  164. package/dist/preview-next/container-responsive.css +203 -174
  165. package/dist/preview-next/keepAlive.mjs +1 -1
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-FwFj8zGL.mjs → route-contract-BHTBA48n.mjs} +90 -37
  168. package/dist/server/{Block.shared-D6WrRCxX.mjs → Block.shared-hGoyEdjJ.mjs} +5 -5
  169. package/dist/server/{ThemeScopeCore-BQzjDQ2q.mjs → ThemeScopeCore-BfUCTOwj.mjs} +160 -142
  170. package/dist/server/{accessibleSurfaces-CM3QANtw.mjs → accessibleSurfaces-Dskni4Xj.mjs} +94 -330
  171. package/dist/server/accordions-By_0Ykks.mjs +111 -0
  172. package/dist/server/{bindings-CS6ih1Yc.mjs → bindings-DMJH4bvo.mjs} +7 -7
  173. package/dist/server/{client-m0ylCj_f.mjs → client-DrwlRNAH.mjs} +105 -42
  174. package/dist/server/config-validation.mjs +1 -1
  175. package/dist/server/config.mjs +2 -2
  176. package/dist/server/constants-CeMywaiD.mjs +1485 -0
  177. package/dist/server/{customCss-BZ8YSrQg.mjs → customCss-C9kgPHvr.mjs} +41 -5
  178. package/dist/server/data/resolveBlockData.mjs +1 -1
  179. package/dist/server/{resolveButtonColourStates--6yJp9Tq.mjs → expandPalette-ehuW8r2g.mjs} +745 -1229
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/{loadContent-vgWMz1uD.mjs → loadContent-D0prFflT.mjs} +5 -4
  182. package/dist/server/{loadPage-CIOL3-9t.mjs → loadPage-CBLke9pJ.mjs} +3 -3
  183. package/dist/server/{lookMediaFrame-m-91jGGn.mjs → lookMediaFrame-H0fi4bJk.mjs} +38 -18
  184. package/dist/server/manifest.mjs +36 -25
  185. package/dist/server/{mapLocation-BM5WX7FY.mjs → mapLocation-MDDSubTp.mjs} +1 -1
  186. package/dist/server/media-BRmYrnzb.mjs +31 -0
  187. package/dist/server/{media-luf7RF22.mjs → media-gvfIw3z8.mjs} +2 -31
  188. package/dist/server/{navigation-BcNfYYuu.mjs → navigation-wrcuWmgp.mjs} +2 -2
  189. package/dist/server/navigation.mjs +1 -1
  190. package/dist/server/next.mjs +134 -81
  191. package/dist/server/{overrideResolution-BiHmsvTZ.mjs → overrideResolution-DUgCEH8z.mjs} +1 -1
  192. package/dist/server/page-converter.mjs +3 -3
  193. package/dist/server/{pageRenderPlan-DJo_obpi.mjs → pageRenderPlan-BHrmogsW.mjs} +165 -247
  194. package/dist/server/{pageRuntimeSupport-BnSuoHON.mjs → pageRuntimeSupport-D2-YMRei.mjs} +5 -5
  195. package/dist/server/{pageShared-BJuOzxzn.mjs → pageShared-CG8O31Eo.mjs} +3402 -3249
  196. package/dist/server/{parseThemeForPersistence-DOsfofCy.mjs → parseThemeForPersistence-CrPlbJEN.mjs} +3 -2
  197. package/dist/server/{portal-B4JVkdjc.mjs → portal-pG_uhsI2.mjs} +62 -46
  198. package/dist/server/portal.mjs +3 -3
  199. package/dist/server/portalQuestions-oUyohgL9.mjs +225 -0
  200. package/dist/server/{prebuild-Cr8p8T7V.mjs → prebuild-C8Amvzce.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BZh57-ua.mjs → prefetchBlockData-BxUETRIZ.mjs} +4 -3
  203. package/dist/server/{registry-CvhFwbXJ.mjs → registry-Cc88-23f.mjs} +1514 -1190
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +10 -9
  209. package/dist/server/{resolveBlockData-Cv_W1LVB.mjs → resolveBlockData-OG3KOkig.mjs} +2 -2
  210. package/dist/server/{responseMedia-KRKguBC5.mjs → responseMedia-IfH65QAH.mjs} +1 -1
  211. package/dist/server/{schema-BpsqaSSU.mjs → schema-CwfxQjc4.mjs} +10 -113
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/{servicePageContent-CRKbTm_7.mjs → servicePageContent-BcFuhhD7.mjs} +22 -21
  214. package/dist/server/theme-bridge.mjs +34 -8
  215. package/dist/server/theme.mjs +2 -2
  216. package/dist/server/{three-pass-converter-39SXCCnh.mjs → three-pass-converter-DPaUPTfl.mjs} +34 -16
  217. package/dist/server/titleSourceSchema-NhK6azFS.mjs +2018 -0
  218. package/dist/server/typeGuards-CTW_9AXq.mjs +413 -0
  219. package/dist/server/types-BKaBZFjD.mjs +1085 -0
  220. package/dist/server/{validation-DCl-FCk_.mjs → validation-BovmbS8N.mjs} +70 -17
  221. package/dist/server/{version-DT_R5JAR.mjs → version-hws4hgyX.mjs} +1 -1
  222. package/dist/server/video-Cdr3wh-q.mjs +272 -0
  223. package/dist/styles/index.css +1098 -1885
  224. package/package.json +2 -1
  225. package/dist/_dts/index-B0_2-65A.d.ts +0 -101
  226. package/dist/client/TabBarFragment-DlKQRhP4.mjs +0 -56
  227. package/dist/client/checkoutRoute-DKlZRNZD.mjs +0 -22
  228. package/dist/client/creditProducts-BQ1t1erI.mjs +0 -266
  229. package/dist/client/formatDate-hhI1-tzt.mjs +0 -26
  230. package/dist/server/constants-Cj7hfbrA.mjs +0 -41
  231. package/dist/server/richTextSchema-QLaQrbII.mjs +0 -212
  232. package/dist/server/titleSourceSchema-Cu-3PRvv.mjs +0 -122
@@ -1,11 +1,12 @@
1
- import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
2
- import { $ as resolveCardListSchedule, At as groupOfferingRunsByCourse, Ba as styleSectionBackgroundForColour, Bn as isBookableEvent, Bo as resolveSectionBackground, Br as formatEventDepositNote, Bt as ThemedButtonLink, Ci as lookCarouselRegionTransform, Cn as groupEventsByDate, Co as sectionShapeForGround, Di as asPartialObject, Ei as lookSkinSlotTransform, Er as listLookSlot, Fs as resolveWholeSeriesBookingPhase, Ga as resolvePublishedLook, Gn as getEventAvailabilityStatus, Gr as BACKGROUND_POSITION_PRESET_VALUES, Gs as formatDateRange, Ha as readStoredMode, Hn as formatEventRemainingPlaces, Ir as classPricesCopySchema, Jt as weekColumnDays, Kn as isEventFull, Kr as getAnchorClasses, Ks as formatDateTimeRange, Lo as applyLookPhotoTreatment, Lr as classPricesDataSchema, Ma as arrangementAppearancePresets, Mr as heroMorePhotoCount, Ns as nextLiveRunSessionStartMs, Oa as heroPhotoPaintsGround, Oi as createTransformRegistry, Oo as boundaryRuntimeMetricsForDecorativeTransition, Ps as orderedLiveRunSessions, Ro as deriveSectionGround, Rr as resolveClassPriceItems, Sa as resolveLookSurfacePresentation, Sn as formatTime, Ti as lookQuoteLimitTransform, To as sectionShapeHook, Ua as resolveEffectiveArrangement, Un as formatTotalCapacity, Uo as stripStaleTransitionStyleGroup, Ur as formatEventPriceDisplay, Va as arrangementManifestFromVariants, Vn as canJoinEventWaitlistOnAnyMode, Vo as sectionSurfaceBase, Vr as formatEventPrice, Wa as resolveModeArrangement, Wn as getEventAvailability, Wo as themeV2CompilerOwnedFieldNames, Wr as formatEventStartingPrice, Ws as formatDate, Wt as buildEventListWeek, X as CardListContentPart, Xt as formatBookingSchedulePresentation, Ya as deriveSiteStyleBlockPolicy, Yt as resolveRuntimeEventDestination, Z as CardListLeadDate, Zs as compareLocalScheduleDates, _i as resolveSurfaceForegroundStyles, aa as eventReadinessLoaderKey, at as computeMediaTransformStyle, bi as isSemanticSpacing, bn as formatEventTimeRange, co as getGradientPreset, cr as mediaTransforms, cs as formatDateKey, da as eventScopeQuery, dn as eventLocalDateKey, dr as layoutTransforms, dt as systemCustomizeFacetDefinitionsForBlock, ea as augmentManifest, ec as getLocalScheduleDate, et as selectCardListPresentation, fa as eventScopeQueryKeys, fc as resolveExactOrFreePriceDisplay, ga as resolveEventCalendarReadPlan, gi as resolveSectionSurfaceForeground, gn as formatEventDateParts, ha as eventCalendarListGroupingDecision, hi as parseRuntimeBackgroundContent, hn as formatEventCompactDateRail, ht as EventQuickFacts, ia as blockChecksForEvents, ic as resolveBookingBusinessTimeZone, la as eventDiscoveryFilterKeys, li as boxStylesTransforms, ln as eventCalendarWeekStart, lr as headerRuntimeTransforms, ma as resolveCalendarReadProfile, mi as parseBackgroundOverlay, mr as formattingTransforms, ms as isToday, nn as formatEventLocation, nr as contentTransforms, oa as eventReadinessQuery, on as closedRunCopy, or as readRuntimeNow, pa as resolveEventScope, pc as resolvePricingOptionsPriceDisplay, pi as parseBackgroundContent, pr as uiTransforms, qt as groupEventsByWeek, rc as toUtcIsoDateTimeString, rt as ImagePresets, sa as eventReadinessQueryKeys, sc as formatBookingPriceDisplay, so as gradientToCss, t as getBlockDefinition, ta as isObjectRecord, tc as parseBookingLocalDate, tt as MediaNodeServer, ua as eventScopeLoaderParam, un as eventDateOptions, ur as chromeLogoTransforms, ut as resolveArrangementKnobs, vc as parseGradientPresetId, vi as resolveBackgroundColorValue, wi as lookLeadSlotTransform, wn as resolveEventTimeZone, wo as sectionShapeFromContent, wr as listItemPresentation, xa as lookPresentationOnPalette, xn as formatEventWeekdayTime, yc as arrangementSlotNames, yn as formatEventRunDates, z as combinedLookSchema, zi as ClockIcon, zn as hasEventBookingClosedEarly, zo as parseCanonicalRuntimeBackground, zr as formatCoursePrice } from "./registry-CvhFwbXJ.mjs";
3
- import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
4
- import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BZ8YSrQg.mjs";
5
- import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
1
+ import { Y as parseThemeColorToken } from "./types-BKaBZFjD.mjs";
2
+ import { G as oklabToSrgb, J as rgbToHex, K as oklchToHexGamut, L as contrastRatio, U as hexToRgb, W as oklabToOklch, Y as srgbToOklab, b as pickBlackOrWhiteTextColor, j as resolveConcreteColorHex } from "./expandPalette-ehuW8r2g.mjs";
3
+ import { $o as deriveSectionGround, Aa as eventCalendarListGroupingDecision, Ar as chromeLogoTransforms, At as groupOfferingRunsByCourse, B as combinedLookSchema, Bo as sectionShapeHook, Bs as orderedLiveRunSessions, Ca as blockChecksForEvents, Cc as arrangementSlotNames, Cn as formatEventRunDates, Dn as groupEventsByDate, Ea as eventReadinessQueryKeys, En as formatTime, Er as readRuntimeNow, Fi as parseRuntimeBackgroundContent, Gi as lookLeadSlotTransform, Ht as ThemedButtonLink, Ia as lookPresentationOnPalette, Ii as resolveSectionSurfaceForeground, Io as groundPaint, Ji as asPartialObject, Ki as lookQuoteLimitTransform, Kr as listLookSlot, Kt as buildEventListWeek, La as resolveLookSurfacePresentation, Li as resolveSurfaceForegroundStyles, Lo as pageGround, Mn as formatDateKey, Ni as parseBackgroundContent, Nr as uiTransforms, Oa as resolveEventCalendarRead, On as resolveEventTimeZone, Or as mediaTransforms, Pi as parseBackgroundOverlay, Pr as formattingTransforms, Q as CardListLeadDate, Qo as applyLookPhotoTreatment, Qr as heroMorePhotoCount, Qs as formatDateTimeRange, Ri as resolveBackgroundColorValue, Rn as isToday, Ro as sectionShapeForGround, Sr as contentTransforms, Ta as eventReadinessQuery, Tn as formatEventWeekdayTime, Ua as heroPhotoPaintsGround, Uo as boundaryRuntimeMetricsForDecorativeTransition, Vi as isSemanticSpacing, Wi as lookCarouselRegionTransform, Wn as isDropInPublicEvent, Wr as listItemPresentation, Xs as formatDate, Xt as weekColumnDays, Yi as createTransformRegistry, Yt as groupEventsByWeek, Z as CardListContentPart, Zs as formatDateRange, Zt as formatBookingSchedulePresentation, ai as formatCoursePrice, ao as resolveModeArrangement, as as themeV2CompilerOwnedFieldNames, bn as formatEventDateParts, bs as eventScopeQueryKeys, cn as closedRunCopy, cr as formatEventRemainingPlaces, di as BACKGROUND_POSITION_PRESET_VALUES, dr as getEventAvailabilityStatus, dt as resolveArrangementKnobs, es as parseCanonicalRuntimeBackground, et as resolveCardListSchedule, fi as getAnchorClasses, ft as systemCustomizeFacetDefinitionsForBlock, gt as EventQuickFacts, hn as eventLocalDateKey, ii as resolveClassPriceItems, io as resolveEffectiveArrangement, ir as resolveEventPageLink, is as stripStaleTransitionStyleGroup, it as ImagePresets, ja as resolveEventCalendarReadPlan, jr as layoutTransforms, ka as resolveEventScopeRead, ki as boxStylesTransforms, kr as headerRuntimeTransforms, lc as toUtcIsoDateTimeString, li as formatEventPriceDisplay, lr as formatTotalCapacity, mn as eventDateOptions, ni as classPricesCopySchema, no as arrangementManifestFromVariants, nr as resolveEventCardBooking, ns as sectionSurfaceBase, nt as MediaNodeServer, oa as ClockIcon, oc as getLocalScheduleDate, oi as formatEventDepositNote, oo as resolvePublishedLook, or as isBookableEvent, ot as computeMediaTransformStyle, pc as formatBookingPriceDisplay, pn as eventCalendarWeekStart, qa as arrangementAppearancePresets, qi as lookSkinSlotTransform, rc as compareLocalScheduleDates, ri as classPricesDataSchema, rn as formatEventLocation, ro as readStoredMode, rr as resolveEventCta, sc as parseBookingLocalDate, si as formatEventPrice, t as getBlockDefinition, to as styleSectionBackgroundForColour, ts as resolveSectionBackground, tt as selectCardListPresentation, uc as resolveBookingBusinessTimeZone, ui as formatEventStartingPrice, uo as deriveSiteStyleBlockPolicy, ur as getEventAvailability, vc as resolveExactOrFreePriceDisplay, vs as eventDiscoveryFilterKeys, wa as eventReadinessLoaderKey, wn as formatEventTimeRange, xa as augmentManifest, xs as resolveEventScope, yc as resolvePricingOptionsPriceDisplay, yn as formatEventCompactDateRail, ys as eventScopeLoaderParam, yt as resolveCalendarReadProfile, zo as sectionShapeFromContent, zs as nextLiveRunSessionStartMs } from "./registry-Cc88-23f.mjs";
4
+ import { E as resolveOnColorForThemeToken, O as resolveTokenOrCssColorValue, T as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-Dskni4Xj.mjs";
5
+ import { A as makeBoundaryId, D as asLayoutVariantKey, k as asSiteStyleId, w as asDesignBlockId } from "./customCss-C9kgPHvr.mjs";
6
6
  import { t as assertNever } from "./assert-never-ku-PUn9U.mjs";
7
- import { o as isRecord$2 } from "./richTextSchema-QLaQrbII.mjs";
8
- import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-m-91jGGn.mjs";
7
+ import { h as isRecord$2, t as isObjectRecord } from "./typeGuards-CTW_9AXq.mjs";
8
+ import { o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
9
+ import { f as assertNever$1, n as resolveLookMediaFrame } from "./lookMediaFrame-H0fi4bJk.mjs";
9
10
  import { i as outlineRegions, n as mapOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
10
11
  import { i as resolveRouteTargetForStage$1 } from "./dist-Xevqwf1U.mjs";
11
12
  import React from "react";
@@ -495,28 +496,20 @@ function mapDrawingStyle(input) {
495
496
  }
496
497
  //#endregion
497
498
  //#region ../theme-core/src/site-styles/sectionBoundaryComposition.ts
498
- const backgroundToken = requireThemeColorToken("background");
499
499
  /**
500
500
  * Classifies a section from its final render content. `_sectionStyles`
501
501
  * already holds the effective background (Look default, page-design override
502
502
  * and block-authored media merged by `resolveSectionBackground`), so this only
503
- * reads it and never re-decides precedence. A missing or unparseable
504
- * background is the page background, as it is for the renderer.
503
+ * reads it and never re-decides precedence. What it paints comes from
504
+ * `groundPaint`, the same decision the background layer paints from, given
505
+ * the ground the section declares for when its content sets no colour.
505
506
  */
506
- function boundaryEndpointForSectionContent(content) {
507
+ function boundaryEndpointForSectionContent(content, ground) {
507
508
  const background = parseCanonicalRuntimeBackground(content);
508
- if (background.kind === "none") return {
509
- kind: "paint",
510
- token: backgroundToken
511
- };
512
- const effective = background.background;
513
- switch (effective.type) {
514
- case "color": {
515
- if (effective.color === null || effective.color === void 0) return {
516
- kind: "paint",
517
- token: backgroundToken
518
- };
519
- const token = parseThemeColorToken(effective.color);
509
+ const paint = groundPaint(background.kind === "none" ? null : background.background, ground.fallback);
510
+ switch (paint.kind) {
511
+ case "fill": {
512
+ const token = parseThemeColorToken(paint.colour);
520
513
  return token ? {
521
514
  kind: "paint",
522
515
  token
@@ -529,26 +522,30 @@ function boundaryEndpointForSectionContent(content) {
529
522
  kind: "unpainted",
530
523
  reason: "gradient"
531
524
  };
532
- case "image":
533
- case "video": return {
525
+ case "media": return {
534
526
  kind: "unpainted",
535
527
  reason: "media"
536
528
  };
537
- default: return assertNever$1(effective, "Unhandled section background type");
529
+ case "bare": return {
530
+ kind: "paint",
531
+ token: pageGround.fallback
532
+ };
533
+ default: return assertNever$1(paint, "Unhandled ground paint");
538
534
  }
539
535
  }
540
536
  /**
541
537
  * Reads every fact from final render content in one place. `_frameStyles` is
542
538
  * the compiled frame; content without one (no page design, an SDK block)
543
- * draws a plain frame.
539
+ * draws a plain frame. `ground` is what the section declares it paints when
540
+ * its content sets no colour (`pageGround` for a section that declares none).
544
541
  */
545
- function sectionFactsForContent(content) {
542
+ function sectionFactsForContent(content, ground) {
546
543
  const photoGround = isLookPhotoGround(content);
547
544
  return {
548
545
  endpoint: photoGround ? {
549
546
  kind: "unpainted",
550
547
  reason: "media"
551
- } : boundaryEndpointForSectionContent(content),
548
+ } : boundaryEndpointForSectionContent(content, ground),
552
549
  ...photoGround || isPhotoBackground(content) ? { photo: true } : {},
553
550
  frame: frameKindForContent(content),
554
551
  shape: sectionShapeFromContent(content)
@@ -626,6 +623,26 @@ function composeBoundary(previous, next, treatment) {
626
623
  reason: "both-unpainted"
627
624
  };
628
625
  }
626
+ /**
627
+ * Decides the seam between two adjacent sections from the same facts that
628
+ * decide the boundary. Shared ground needs two platform sections painting the
629
+ * identical theme token, with no field, flush panel or photo on either side;
630
+ * gradients and literal colours are unpainted, so they never merge. A shared
631
+ * ground is always a `same-paint` join, so a seam never sits beside a drawn
632
+ * boundary or its reserves.
633
+ */
634
+ function sectionSeam(previous, next) {
635
+ if (previous.facts.shape === "field" && next.facts.shape === "field") return "fields";
636
+ return mergesGround(previous) && mergesGround(next) && samePaint(previous.facts.endpoint, next.facts.endpoint) ? "shared-ground" : "none";
637
+ }
638
+ /** A side can share its ground only when the platform paints it edge to edge, with no flush panel or photo. */
639
+ function mergesGround(side) {
640
+ const { facts } = side;
641
+ return side.section === "platform" && facts.shape !== "field" && facts.frame !== "flush-panel" && !facts.photo;
642
+ }
643
+ function samePaint(previous, next) {
644
+ return previous.kind === "paint" && next.kind === "paint" && previous.token === next.token;
645
+ }
629
646
  /** Treatment-specific placement and indistinguishable paint are composition decisions. */
630
647
  function paintNotShownReason(previous, next, treatment) {
631
648
  if (treatment === "wave-edge-echo" && (!previous.photo || next.endpoint.kind !== "paint")) return "photo-required";
@@ -674,11 +691,6 @@ function boundaryLayout(intent, composition) {
674
691
  default: return assertNever$1(composition, "Unhandled boundary composition");
675
692
  }
676
693
  }
677
- function requireThemeColorToken(value) {
678
- const token = parseThemeColorToken(value);
679
- if (!token) throw new Error(`Expected a theme color token. Received: ${value}`);
680
- return token;
681
- }
682
694
  //#endregion
683
695
  //#region ../theme-core/src/site-styles/sectionPhoto.ts
684
696
  /** The photo a section keeps, wherever its background `type` points. */
@@ -808,172 +820,6 @@ function parseStoredVariant(manifest, content) {
808
820
  } : { kind: "absent" };
809
821
  }
810
822
  //#endregion
811
- //#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
812
- /**
813
- * Booking call-to-action resolution for events: where an event links to and
814
- * what the button says. Sold-out and waitlist decisions come from capacity.ts
815
- * so cards, rows and the wizard never disagree.
816
- */
817
- function closedEventBookingLabel(reason) {
818
- switch (reason) {
819
- case "occurrence_cancelled":
820
- case "series_cancelled": return "Cancelled";
821
- case "occurrence_completed":
822
- case "series_completed": return "Completed";
823
- case "series_draft":
824
- case "series_archived":
825
- case "parent_archived":
826
- case "parent_inconsistent":
827
- case "already_started":
828
- case "enrollment_closed": return "Registration closed";
829
- default: return assertNever(reason);
830
- }
831
- }
832
- function resolveEventHref(event) {
833
- const destination = resolveRuntimeEventDestination(event);
834
- return destination.kind === "external" ? destination.url : destination.path;
835
- }
836
- function resolveEventLinkProps(event) {
837
- const href = resolveEventHref(event);
838
- return resolveRuntimeEventDestination(event).kind === "external" ? {
839
- href,
840
- target: "_blank",
841
- rel: "noopener noreferrer"
842
- } : { href };
843
- }
844
- /**
845
- * Resolve the CTA state for an event.
846
- * Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
847
- * and course-specific defaults consistent.
848
- */
849
- function resolveEventCta(event, buttonText) {
850
- const isSoldOut = isEventFull(event);
851
- const isExternal = resolveRuntimeEventDestination(event).kind === "external";
852
- const href = resolveEventHref(event);
853
- if (event.bookingAvailability.kind === "closed") {
854
- const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
855
- return {
856
- label: closedEventBookingLabel(event.bookingAvailability.reason),
857
- href,
858
- external: isExternal,
859
- hidden: !linksToClosedWholeSeriesDetails
860
- };
861
- }
862
- if (!isExternal && isSoldOut) {
863
- if (canJoinEventWaitlistOnAnyMode(event)) return {
864
- label: "Join waitlist",
865
- href,
866
- external: false,
867
- hidden: false
868
- };
869
- return {
870
- label: "Sold out",
871
- href,
872
- external: false,
873
- hidden: true
874
- };
875
- }
876
- return destinationCta(event, buttonText);
877
- }
878
- function destinationCta(event, buttonText) {
879
- const destination = resolveRuntimeEventDestination(event);
880
- return {
881
- label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
882
- href: resolveEventHref(event),
883
- external: destination.kind === "external",
884
- hidden: false
885
- };
886
- }
887
- /**
888
- * A bounded date strip cannot prove a series sold out. Its destination owns date selection,
889
- * so the card offers that destination and leaves capacity with the individual date rows.
890
- * Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
891
- */
892
- function resolveEventCardBooking(event, scope, buttonText, options) {
893
- const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
894
- if (scope === "series" && event.bookingScope === "single_occurrence") {
895
- const closed = seriesBookingClosed(event);
896
- return {
897
- cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
898
- availability: null,
899
- closed
900
- };
901
- }
902
- return closedCta ? {
903
- cta: closedCta,
904
- availability: null,
905
- closed: true
906
- } : {
907
- cta: withoutPage(resolveEventCta(event, buttonText)),
908
- availability: occurrenceCardAvailability(event, options.count),
909
- closed: false
910
- };
911
- }
912
- /** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
913
- function withoutPage(cta) {
914
- return !cta.external && !cta.hidden && cta.href === "" ? {
915
- ...cta,
916
- label: "Details coming soon",
917
- hidden: true
918
- } : cta;
919
- }
920
- /** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
921
- function seriesBookingClosed(event) {
922
- if (event.bookingAvailability.kind !== "closed") return false;
923
- switch (event.bookingAvailability.reason) {
924
- case "occurrence_cancelled":
925
- case "occurrence_completed":
926
- case "already_started": return false;
927
- case "series_cancelled":
928
- case "series_completed":
929
- case "series_draft":
930
- case "series_archived":
931
- case "parent_archived":
932
- case "parent_inconsistent":
933
- case "enrollment_closed": return true;
934
- default: return assertNever(event.bookingAvailability.reason);
935
- }
936
- }
937
- function occurrenceCardAvailability(event, count) {
938
- const label = formatEventRemainingPlaces(event, {
939
- full: "Sold out",
940
- count
941
- });
942
- const availability = getEventAvailabilityStatus(event);
943
- return label ? {
944
- label,
945
- status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
946
- } : null;
947
- }
948
- /** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
949
- function renderClockClosedCta(event, now) {
950
- if (!now || event.destination.kind !== "native") return null;
951
- if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
952
- label: "Registration closed",
953
- href: resolveEventHref(event),
954
- external: false,
955
- hidden: true
956
- } : null;
957
- const phase = resolveWholeSeriesBookingPhase(event.run, now);
958
- if (phase.kind === "open") return null;
959
- return {
960
- label: (() => {
961
- switch (phase.reason) {
962
- case "cancelled": return "Cancelled";
963
- case "completed": return "Completed";
964
- case "in-progress":
965
- case "bookings-closed":
966
- case "enrolment-closed":
967
- case "no-sessions": return "Registration closed";
968
- default: return assertNever(phase.reason);
969
- }
970
- })(),
971
- href: resolveEventHref(event),
972
- external: false,
973
- hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
974
- };
975
- }
976
- //#endregion
977
823
  //#region ../blocks/src/system/runtime/nodes/events/domain/duration.ts
978
824
  function formatEventDuration(event, style = "legacy") {
979
825
  const durationMinutes = Math.max(0, Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4));
@@ -1213,7 +1059,7 @@ function categoryBadgeStyle(background) {
1213
1059
  }
1214
1060
  function readableTextColor(background) {
1215
1061
  try {
1216
- return getTextColorForBackground(background);
1062
+ return pickBlackOrWhiteTextColor(background);
1217
1063
  } catch {
1218
1064
  return "rgb(var(--tb-onAccent, 255 255 255))";
1219
1065
  }
@@ -1299,7 +1145,7 @@ function eventItemFacts(props) {
1299
1145
  date: formatEventCompactDateRail(props.event.startsAt, options, "as-written"),
1300
1146
  time,
1301
1147
  price,
1302
- link: resolveEventLinkProps(props.event),
1148
+ link: resolveEventPageLink(props.event),
1303
1149
  meta: eventItemMeta(props, {
1304
1150
  time,
1305
1151
  price
@@ -1487,8 +1333,7 @@ function renderEventItemImage(props, link) {
1487
1333
  id: props.event.id,
1488
1334
  title: eventDisplayTitle(props.event).title,
1489
1335
  media: props.event.presentation?.image,
1490
- titleLink: link,
1491
- newTabHint: link.target === "_blank"
1336
+ titleLink: link
1492
1337
  },
1493
1338
  presentation: props
1494
1339
  });
@@ -1889,13 +1734,12 @@ function occurrencePlaces(event) {
1889
1734
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
1890
1735
  /** Live offering data only; editorial cards never acquire booking fields. */
1891
1736
  function eventCardListContent(event, context, buttonText) {
1892
- const { content, external } = cardProjectionBase(event, buttonText, context);
1737
+ const content = cardProjectionBase(event, buttonText, context);
1893
1738
  switch (context.kind) {
1894
1739
  case "event-details": return {
1895
1740
  ...content,
1896
1741
  chips: offeringTypeChips(event),
1897
1742
  leadDate: null,
1898
- newTabHint: false,
1899
1743
  ...offeringSchedule(event)
1900
1744
  };
1901
1745
  case "catalogue":
@@ -1903,7 +1747,6 @@ function eventCardListContent(event, context, buttonText) {
1903
1747
  ...content,
1904
1748
  chips: offeringTypeChips(event, context.typeLabel),
1905
1749
  leadDate: offeringLeadDate(event, context.nextStartMs),
1906
- newTabHint: external,
1907
1750
  ...offeringSchedule(event, context.now),
1908
1751
  ...event.bookingScope === "whole_series" ? offeringRunDates(event, context.now) : {}
1909
1752
  };
@@ -1913,23 +1756,20 @@ function eventCardListContent(event, context, buttonText) {
1913
1756
  function cardProjectionBase(event, buttonText, context) {
1914
1757
  const offering = context.kind !== "event-details";
1915
1758
  const { cta, availability: places, closed } = cardBooking(event, buttonText, context);
1916
- const titleLink = resolveEventLinkProps(event);
1759
+ const titleLink = resolveEventPageLink(event);
1917
1760
  const { title, runName } = eventDisplayTitle(event);
1918
1761
  return {
1919
- external: cta.external,
1920
- content: {
1921
- id: event.occurrenceId || event.id,
1922
- title,
1923
- subtitle: runName,
1924
- ...titleLink.href ? { titleLink } : {},
1925
- quickFacts: event.facts,
1926
- text: event.presentation?.summary ?? event.description,
1927
- media: event.presentation?.image,
1928
- facts: offeringFacts(event, places?.label, offering),
1929
- availability: places,
1930
- action: cardAction(cta),
1931
- bookingClosed: closed ? cta.label : null
1932
- }
1762
+ id: event.occurrenceId || event.id,
1763
+ title,
1764
+ subtitle: runName,
1765
+ ...titleLink.href ? { titleLink } : {},
1766
+ quickFacts: event.facts,
1767
+ text: event.presentation?.summary ?? event.description,
1768
+ media: event.presentation?.image,
1769
+ facts: offeringFacts(event, places?.label, offering),
1770
+ availability: places,
1771
+ action: cardAction(cta),
1772
+ bookingClosed: closed ? cta.label : null
1933
1773
  };
1934
1774
  }
1935
1775
  /** Offering cards carry the render clock; an event's own details show its projected booking state. */
@@ -2037,7 +1877,7 @@ function offeringFacts(event, places, offering) {
2037
1877
  value: places,
2038
1878
  kind: "availability"
2039
1879
  }] : [],
2040
- ...offering && event.pricing.kind === "external" ? [] : [{
1880
+ ...event.pricing.kind === "external" ? [] : [{
2041
1881
  label: "Price",
2042
1882
  value: course ? formatCoursePrice(event.pricing) : formatEventPriceDisplay(event.pricing)
2043
1883
  }]
@@ -2490,7 +2330,7 @@ function DaySchedule({ display }) {
2490
2330
  //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
2491
2331
  function MonthEvent({ event, timeZone, locale, presentation }) {
2492
2332
  return /* @__PURE__ */ jsxs("a", {
2493
- ...resolveEventLinkProps(event),
2333
+ ...resolveEventPageLink(event),
2494
2334
  ...listLookSlot(presentation, "item"),
2495
2335
  children: [
2496
2336
  /* @__PURE__ */ jsx("span", {
@@ -2639,7 +2479,11 @@ const EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
2639
2479
  /** Project selected live data; booking decisions stay with the existing event owners. */
2640
2480
  function eventHeaderContent(selection, show) {
2641
2481
  const event = selection.selected;
2642
- const item = eventCardListContent(event, { kind: "event-details" });
2482
+ const card = eventCardListContent(event, { kind: "event-details" });
2483
+ const item = selection.kind === "ordinary" && selection.bookedElsewhere ? {
2484
+ ...card,
2485
+ ...bookedElsewhereAction(selection.bookedElsewhere)
2486
+ } : card;
2643
2487
  const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
2644
2488
  const { timeRange } = formatEventDateParts({
2645
2489
  startsAt: event.startsAt,
@@ -2655,6 +2499,7 @@ function eventHeaderContent(selection, show) {
2655
2499
  label: "Time",
2656
2500
  value: timeRange
2657
2501
  },
2502
+ ...laterBookingFact(event, selection),
2658
2503
  ...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price").map((fact) => withDepositNote(fact, selection)) : [],
2659
2504
  ...groupSize === null ? [] : [{
2660
2505
  label: "Group size",
@@ -2697,11 +2542,72 @@ function headerDateFact(selection) {
2697
2542
  value: date
2698
2543
  };
2699
2544
  }
2545
+ /**
2546
+ * Dates booked elsewhere take the page's shared booking decision, the one the
2547
+ * registration panel shows. A later booking date is named by
2548
+ * `laterBookingFact`, not in the button.
2549
+ */
2550
+ function bookedElsewhereAction(booking) {
2551
+ switch (booking.kind) {
2552
+ case "open": {
2553
+ const { destination } = booking;
2554
+ return {
2555
+ action: {
2556
+ label: destination.label,
2557
+ href: destination.url,
2558
+ external: true
2559
+ },
2560
+ bookingClosed: null
2561
+ };
2562
+ }
2563
+ case "closed": {
2564
+ const label = bookedElsewhereClosedLabel(booking.closure);
2565
+ return {
2566
+ action: { label },
2567
+ bookingClosed: label
2568
+ };
2569
+ }
2570
+ default: return assertNever(booking);
2571
+ }
2572
+ }
2573
+ /**
2574
+ * When the shared decision books a later date than the one described (today's
2575
+ * is past its cut-off), say which, so the button isn't read as booking today.
2576
+ * The button keeps the owner's own label ("Find out more", "Book via studio").
2577
+ */
2578
+ function laterBookingFact(described, selection) {
2579
+ const booking = selection.kind === "ordinary" ? selection.bookedElsewhere : null;
2580
+ if (booking?.kind !== "open" || booking.target.occurrenceId === described.occurrenceId) return [];
2581
+ return [{
2582
+ label: "Next date to book",
2583
+ value: shortDate(booking.target)
2584
+ }];
2585
+ }
2586
+ function shortDate(event) {
2587
+ return formatDate({
2588
+ kind: "instant",
2589
+ value: toUtcIsoDateTimeString(event.startsAt)
2590
+ }, eventDateOptions(event), {
2591
+ date: "short",
2592
+ weekday: "short",
2593
+ year: "omit"
2594
+ });
2595
+ }
2596
+ function bookedElsewhereClosedLabel(closure) {
2597
+ switch (closure.kind) {
2598
+ case "bookingClosed": return closure.detail.kind === "opensSoon" ? "Bookings open soon" : "Registration closed";
2599
+ case "date": return closure.closure.kind === "finished" ? "Completed" : "Registration closed";
2600
+ case "run": return closedRunCopy(closure.reason).titleText;
2601
+ case "datesCutOff":
2602
+ case "unavailable": return "Registration closed";
2603
+ default: return assertNever(closure);
2604
+ }
2605
+ }
2700
2606
  /** A closed run says why here, at the top of the page, so the panel below doesn't repeat it. */
2701
2607
  function headerAction(selection, action) {
2702
- if (action.external) return action;
2703
- if (!selection.selected.requiresRegistration) return { label: "No registration required — just show up" };
2704
2608
  if (selection.kind === "wholeSeries" && selection.bookingPhase.kind === "closed") return { label: closedRunCopy(selection.bookingPhase.reason).titleText };
2609
+ if (action.external) return action;
2610
+ if (isDropInPublicEvent(selection.selected)) return { label: "No registration required — just show up" };
2705
2611
  if (!action.href) return action;
2706
2612
  return {
2707
2613
  ...action,
@@ -3057,12 +2963,6 @@ function appendBackgroundMediaClasses(baseClassName, input) {
3057
2963
  backgroundVideoMobileClassNames(input)
3058
2964
  ].filter(Boolean).join(" ");
3059
2965
  }
3060
- function gradientPresetCss(value) {
3061
- const presetId = parseGradientPresetId(value);
3062
- if (!presetId) return null;
3063
- const preset = getGradientPreset(presetId);
3064
- return gradientToCss(preset, Object.fromEntries(preset.stops.map((stop) => [stop.color, `rgb(var(--tb-${stop.color}))`])));
3065
- }
3066
2966
  const backgroundTransforms = [
3067
2967
  {
3068
2968
  id: "background.resolveMedia",
@@ -3195,12 +3095,11 @@ function parseMediaBackground(value) {
3195
3095
  }
3196
3096
  function resolveBackgroundLayerStyle(value, fallbackToken, context) {
3197
3097
  const background = parseRuntimeBackgroundContent(value);
3098
+ const paint = groundPaint(background, fallbackToken ?? null);
3198
3099
  const style = {};
3199
- const gradient = background?.type === "gradient" ? isString(background.gradient) ? background.gradient.trim() : gradientPresetCss(background.gradientPresetId) : null;
3200
- const color = background?.type === "color" && isString(background.color) ? background.color.trim() : null;
3201
- const resolvedColor = color ? resolveBackgroundColorValue(color, context) : !gradient && isString(fallbackToken) ? resolveBackgroundColorValue(fallbackToken.trim(), context) : null;
3202
- if (resolvedColor) style.backgroundColor = resolvedColor;
3203
- if (gradient) style.backgroundImage = gradient;
3100
+ const fill = paint.kind === "fill" ? paint.colour : paint.kind === "media" ? paint.fill : null;
3101
+ if (fill) style.backgroundColor = resolveBackgroundColorValue(fill, context);
3102
+ if (paint.kind === "gradient") style.backgroundImage = paint.gradient;
3204
3103
  const opacity = backgroundMediaOpacity(background);
3205
3104
  if (opacity !== null) style.opacity = String(opacity);
3206
3105
  return style;
@@ -3552,14 +3451,25 @@ const eventCalendarSelectionParam = {
3552
3451
  return key === "seriesIds" ? void 0 : scope.filters[key];
3553
3452
  }
3554
3453
  };
3454
+ const scopeParamSchema = z.object({ key: z.enum(eventScopeQueryKeys) });
3555
3455
  /** Public event query params for the section's scope, shared by render loaders and readiness. */
3556
3456
  const eventScopeParam = {
3557
3457
  id: "events.scopeParam",
3558
3458
  kind: "formatter",
3559
3459
  summary: "Public event query params for the section scope",
3560
- schema: z.object({ key: z.enum(eventScopeQueryKeys) }),
3460
+ schema: scopeParamSchema,
3561
3461
  run(value, { key }) {
3562
- return eventScopeLoaderParam(eventScopeQuery(resolveEventScope(asPartialObject(value) ?? {})), key);
3462
+ return eventScopeLoaderParam(resolveEventScopeRead(asPartialObject(value) ?? {}).query, key);
3463
+ }
3464
+ };
3465
+ /** Public event query params for whatever the calendar's display mode reads (see resolveEventCalendarRead). */
3466
+ const eventCalendarReadParam = {
3467
+ id: "events.calendarReadParam",
3468
+ kind: "formatter",
3469
+ summary: "Public event query params for the calendar display mode",
3470
+ schema: scopeParamSchema,
3471
+ run(value, { key }) {
3472
+ return eventScopeLoaderParam(resolveEventCalendarRead(asPartialObject(value) ?? {}).query, key);
3563
3473
  }
3564
3474
  };
3565
3475
  const readJobSchema = z.object({ job: z.enum([
@@ -3646,6 +3556,7 @@ const builtinTransformDefinitions = [
3646
3556
  eventCalendarListWindow,
3647
3557
  eventCalendarSelectionParam,
3648
3558
  eventScopeParam,
3559
+ eventCalendarReadParam,
3649
3560
  eventCalendarReadEnabled,
3650
3561
  eventCalendarReadProfile,
3651
3562
  eventCalendarBanded,
@@ -4125,20 +4036,27 @@ function joinAcrossRun(byPair, previousBlockId, nextBlockId, run) {
4125
4036
  }
4126
4037
  /**
4127
4038
  * The single composition site. For every adjacent pair of survivors with ids,
4128
- * finds its join and composes it from both survivors' final content: what
4129
- * each paints with and the frame each draws.
4039
+ * finds its join and composes it, and decides their seam, from the same facts
4040
+ * read once from each survivor's final content: what each paints with and the
4041
+ * frame each draws.
4130
4042
  */
4131
4043
  function composePageJoins(input) {
4132
4044
  const byPair = joinsByPair(input.joins);
4045
+ const sides = input.survivors.map((survivor) => ({
4046
+ facts: sectionFactsForContent(survivor.content, survivor.ground),
4047
+ section: survivor.section
4048
+ }));
4133
4049
  return input.survivors.flatMap((previous, index) => {
4134
4050
  const next = input.survivors[index + 1];
4135
- if (!next || !previous.id || !next.id) return [];
4051
+ const before = sides[index];
4052
+ const after = sides[index + 1];
4053
+ if (!next || !before || !after || !previous.id || !next.id) return [];
4136
4054
  const join = byPair.get(pairKey(previous.id, next.id));
4137
4055
  return [{
4138
4056
  previousBlockId: previous.id,
4139
4057
  nextBlockId: next.id,
4140
- join: join ? composeJoin(join, previous, next) : null,
4141
- fieldsMeet: sectionShapeFromContent(previous.content) === "field" && sectionShapeFromContent(next.content) === "field"
4058
+ join: join ? composeJoin(join, before.facts, after.facts) : null,
4059
+ seam: sectionSeam(before, after)
4142
4060
  }];
4143
4061
  });
4144
4062
  }
@@ -4148,7 +4066,7 @@ function composeJoin(join, previous, next) {
4148
4066
  previousBlockId: join.previousBlockId,
4149
4067
  nextBlockId: join.nextBlockId,
4150
4068
  treatment: join.treatment,
4151
- outcome: composeBoundary(sectionFactsForContent(previous.content), sectionFactsForContent(next.content), join.treatment)
4069
+ outcome: composeBoundary(previous, next, join.treatment)
4152
4070
  };
4153
4071
  }
4154
4072
  /** Placement, reserves and paint for a join that draws; null otherwise. */
@@ -4749,4 +4667,4 @@ function plannedSlotParents(entry, look) {
4749
4667
  return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
4750
4668
  }
4751
4669
  //#endregion
4752
- export { formatEventDuration as $, OfferingCourseCards as A, EventItem as B, resolvePageRouteTarget as C, EVENT_REGISTRATION_ANCHOR_ID as D, EventHeader as E, createEditorPresentationPageReader as F, eventDisplayTitleText as G, CalendarIcon as H, createPresentationPageReader as I, buildMonthDay as J, formatCourseDatesAfter as K, EmptyState as L, offeringDatesBySeries as M, deriveEventScheduleSummary as N, MonthLookView as O, derivePreviewRunSchedule as P, formatEventTeacherLine as Q, CardListCollection as R, resolveEntryRouteTarget as S, lookPartShown as T, MapPinIcon as U, eventCategoryBadge as V, eventDisplayTitle as W, formatEventQuickDate as X, resolveMonthSelectedDay as Y, selectQuickDateEvents as Z, publicAppointmentLocationSchema as _, joinSlotKey as a, arrangementContentFacts as at, describePublicRefundPolicy as b, createCustomBlockRegistry as c, buildThemeTokens as ct, resolveLinkedEntryInlineFieldEligibility as d, resolveEventCardBooking as et, builtinTransformDefinitions as f, formatAppointmentPrice as g, formatAppointmentLocation as h, composePageJoins as i, selectBlockContent as it, eventCardListContent as j, EventListingFrameView as k, buildLinkedContentEditTarget as l, defaultThemeTokens as lt, formatAppointmentDuration as m, createPageRenderPlanReader as n, resolveEventLinkProps as nt, renderedJoinLayout as o, lookFillPartsFromContent as ot, defaultTransforms as p, formatCourseSessions as q, planArrangementContent as r, parseStoredVariant as rt, retargetJoinsAcrossOmissions as s, resolveRuntimeSection as st, buildPageRenderPlan as t, resolveEventCta as tt, coerceLinkedContentEntriesPayload as u, publicAppointmentPricingSchema as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, PUBLIC_FREE_CANCELLATION as y, CardListItems as z };
4670
+ export { formatEventDuration as $, OfferingCourseCards as A, EventItem as B, resolvePageRouteTarget as C, EVENT_REGISTRATION_ANCHOR_ID as D, EventHeader as E, createEditorPresentationPageReader as F, eventDisplayTitleText as G, CalendarIcon as H, createPresentationPageReader as I, buildMonthDay as J, formatCourseDatesAfter as K, EmptyState as L, offeringDatesBySeries as M, deriveEventScheduleSummary as N, MonthLookView as O, derivePreviewRunSchedule as P, formatEventTeacherLine as Q, CardListCollection as R, resolveEntryRouteTarget as S, lookPartShown as T, MapPinIcon as U, eventCategoryBadge as V, eventDisplayTitle as W, formatEventQuickDate as X, resolveMonthSelectedDay as Y, selectQuickDateEvents as Z, publicAppointmentLocationSchema as _, joinSlotKey as a, buildThemeTokens as at, describePublicRefundPolicy as b, createCustomBlockRegistry as c, resolveLinkedEntryInlineFieldEligibility as d, parseStoredVariant as et, builtinTransformDefinitions as f, formatAppointmentPrice as g, formatAppointmentLocation as h, composePageJoins as i, resolveRuntimeSection as it, eventCardListContent as j, EventListingFrameView as k, buildLinkedContentEditTarget as l, formatAppointmentDuration as m, createPageRenderPlanReader as n, arrangementContentFacts as nt, renderedJoinLayout as o, defaultThemeTokens as ot, defaultTransforms as p, formatCourseSessions as q, planArrangementContent as r, lookFillPartsFromContent as rt, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, selectBlockContent as tt, coerceLinkedContentEntriesPayload as u, publicAppointmentPricingSchema as v, resolveRouteTarget as w, resolveAuthoredLinkHref as x, PUBLIC_FREE_CANCELLATION as y, CardListItems as z };
@@ -1,8 +1,8 @@
1
- import { As as isRecord$1, Cs as linkSchema, Ji as parseInlineTextFromUnknown, Jo as DEFAULT_MEDIA_FIELD_KINDS, Ki as inlineTextToPlainText, Ni as parseBlockIconValue, Qi as parseFieldDefinitions, Xi as normalizeSelectSource, Yi as plainTextToInlineText, es as isAcceptedRepeaterGridSpan, f as sanitizeNewsletterSignupPublicContent, hc as parseContentVersionId, ic as resolveBookingBusinessTimeZone, is as resolveRepeaterGridSpanFieldId, ns as resolveRepeaterGridColumnFieldId, rc as toUtcIsoDateTimeString, rs as resolveRepeaterGridRowFieldId, t as getBlockDefinition, ts as parseRepeaterGridInteger } from "./registry-CvhFwbXJ.mjs";
2
- import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
3
- import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
4
- import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";
5
- import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
1
+ import { Is as isRecord$1, _a as normalizeSelectSource, _s as resolveRepeaterGridSpanFieldId, ea as parseBlockIconValue, ga as plainTextToInlineText, gs as resolveRepeaterGridRowFieldId, ha as parseInlineTextFromUnknown, hs as resolveRepeaterGridColumnFieldId, ks as linkSchema, lc as toUtcIsoDateTimeString, ms as parseRepeaterGridInteger, p as sanitizeNewsletterSignupPublicContent, pa as inlineTextToPlainText, ps as isAcceptedRepeaterGridSpan, ss as DEFAULT_MEDIA_FIELD_KINDS, t as getBlockDefinition, uc as resolveBookingBusinessTimeZone, xc as parseContentVersionId, ya as parseFieldDefinitions } from "./registry-Cc88-23f.mjs";
2
+ import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-CwfxQjc4.mjs";
3
+ import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-MDDSubTp.mjs";
4
+ import { f as isRichTextDoc } from "./typeGuards-CTW_9AXq.mjs";
5
+ import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-gvfIw3z8.mjs";
6
6
  import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
7
7
  import { n as mapOutlineBlocks, r as mapOutlineRegions } from "./pageRegions-BaeEF2MU.mjs";
8
8
  import { z } from "zod";