@riverbankcms/sdk 0.165.0 → 0.167.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 (246) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
  4. package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-Bs3WxFgr.d.ts} +20 -258
  5. package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +26 -3
  6. package/dist/_dts/{client-BkkExozE.d.ts → client-CwsI23pj.d.ts} +13 -1
  7. package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-CAeP_-cV.d.ts} +3 -3
  8. package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
  9. package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
  11. package/dist/_dts/{index-DKNEgSOS.d.ts → index-5_jf52sZ.d.ts} +2 -2
  12. package/dist/_dts/{index-CQfJhOEA.d.ts → index-C20yUyob.d.ts} +1 -1
  13. package/dist/_dts/{index-CRRiddNp.d.ts → index-CS6b1B-c.d.ts} +4 -4
  14. package/dist/_dts/{index-B4ozSzFP.d.ts → index-ChpjHK0U.d.ts} +9737 -8316
  15. package/dist/_dts/{index-BdkHhyf8.d.ts → index-D7EbliE3.d.ts} +1 -1
  16. package/dist/_dts/{index-RXkE3a7M.d.ts → index-DeHDwMfu.d.ts} +4 -3
  17. package/dist/_dts/{index-DAPTSmBM.d.ts → index-RugyUnqR.d.ts} +2499 -2218
  18. package/dist/_dts/{index-C_3kdrUb.d.ts → index-bDln38Hm.d.ts} +2 -2
  19. package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-CTqcL7CS.d.ts} +9 -6
  20. package/dist/_dts/resolveBlockData-C3s9WMPs.d.ts +136 -0
  21. package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-JPwgRxwh.d.ts} +3 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +9 -6
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +20 -0
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
  30. package/dist/_dts/sdk/src/data/types.d.ts +54 -0
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +9 -8
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +260 -0
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  50. package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +7 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  55. package/dist/_dts/{types-BDF73NzM.d.ts → types-BlaCuPLr.d.ts} +2 -2
  56. package/dist/_dts/{types-Cl0nP6al.d.ts → types-CwtTcaQP.d.ts} +3 -3
  57. package/dist/_dts/{types-mstFvhK4.d.ts → types-D-WElMCy.d.ts} +8 -7
  58. package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +31 -24
  60. package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-CCVXX1LN.mjs} +2 -2
  61. package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +167 -18
  62. package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +6 -6
  64. package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
  65. package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-DAeQPV76.mjs} +11 -30
  66. package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-Bus9R0bj.mjs} +137 -61
  67. package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
  68. package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-DPBLjGwj.mjs} +75 -13
  69. package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
  71. package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-CEumpN7i.mjs} +35 -51
  72. package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +113 -11
  73. package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-BVO-qx4q.mjs} +2 -2
  74. package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
  75. package/dist/client/{Page-DUr2YhFR.mjs → Page-D4_H_u9V.mjs} +23892 -32266
  76. package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
  77. package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Dptantmg.mjs} +3 -3
  78. package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-BxEGsKUx.mjs} +19 -19
  79. package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
  80. package/dist/client/{accordion-3CYNWzTS.mjs → accordion--EUHmEGa.mjs} +1 -1
  81. package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-BCXwOnhc.mjs} +19 -14
  82. package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-sHHcdism.mjs} +4 -4
  83. package/dist/client/bookings.mjs +6 -6
  84. package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-Cp9xPBFZ.mjs} +2 -2
  85. package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
  86. package/dist/client/{cart-CDc6x9cR.mjs → cart-CCZZC-Lq.mjs} +3 -3
  87. package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-B7JfA19I.mjs} +1 -1
  88. package/dist/client/{checkout-CkxPqSwD.mjs → checkout-CipmYL4A.mjs} +3 -3
  89. package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DraalWdH.mjs} +1 -1
  90. package/dist/client/client.mjs +9550 -17
  91. package/dist/client/{context-CBV21-9L.mjs → context-Cv3QHjAF.mjs} +11 -6
  92. package/dist/client/{cta-Bw-al3cs.mjs → cta-P2vJVTEn.mjs} +45 -28
  93. package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
  94. package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
  95. package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +4 -4
  96. package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-dLmyuPap.mjs} +2 -2
  97. package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BEhC2_-Y.mjs} +34 -20
  98. package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
  99. package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
  100. package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
  101. package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-Bih-BgQM.mjs} +4 -4
  102. package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
  103. package/dist/client/{form-L-xZOBUS.mjs → form-Bw1uuiUs.mjs} +3 -3
  104. package/dist/client/{form.client-BtpK3TZW.mjs → form.client-pZ-9gN33.mjs} +5 -5
  105. package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-PXlu6XQO.mjs} +3 -3
  106. package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-DI3DP48e.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +3 -4
  108. package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-BpJYUMd6.mjs} +2 -2
  109. package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
  110. package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
  111. package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-CSoP0cGR.mjs} +6 -6
  112. package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +2 -2
  113. package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
  114. package/dist/client/{noop-CQU7tiMg.mjs → noop-ByVtIWf4.mjs} +420 -170
  115. package/dist/client/portal/client.mjs +13 -14
  116. package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
  117. package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-DEad-Pma.mjs} +1 -1
  118. package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-G1SMXG13.mjs} +3 -3
  119. package/dist/client/{productList-CSk8sXCl.mjs → productList-B21TGdpT.mjs} +3 -3
  120. package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-B3vIBkex.mjs} +4 -5
  121. package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-B8aQhJpO.mjs} +399 -473
  122. package/dist/client/rendering/client.mjs +29 -28
  123. package/dist/client/rendering/islands.mjs +1 -1
  124. package/dist/client/rendering.mjs +70 -8
  125. package/dist/client/{richText-coerce-spWtx86G.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
  126. package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
  127. package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-B2UmrQg_.mjs} +12 -12
  128. package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
  129. package/dist/client/{shop-DscvMz86.mjs → shop-mqyoOvOK.mjs} +3 -3
  130. package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-BH-BBnA9.mjs} +13 -13
  131. package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-mdM3UMWG.mjs} +74 -36
  132. package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-CXF5wxdg.mjs} +2 -2
  133. package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
  134. package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-D56hT2u1.mjs} +26000 -16565
  135. package/dist/client/spam-protection.mjs +1 -1
  136. package/dist/client/src-DjnxOjXG.mjs +217 -0
  137. package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
  138. package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-CrC80EOG.mjs} +13 -140
  139. package/dist/client/types-sF-IrGQr.mjs +633 -0
  140. package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C4LOaI_Z.mjs} +8 -5
  141. package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
  142. package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-6Q0nToVA.mjs} +3 -3
  143. package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
  144. package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Bcs89BR5.mjs} +9 -9
  145. package/dist/client/{view-DlkCDfuN.mjs → view-BN-fxyfq.mjs} +287 -232
  146. package/dist/client/{view-DXOuduIr.mjs → view-Dh2tGoS0.mjs} +4 -4
  147. package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DtkhwKXK.mjs} +468 -149
  148. package/dist/preview-next/before-render.mjs +3 -140
  149. package/dist/preview-next/client/ArrangementLookControls-D4VjPs-r.mjs +31197 -0
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
  151. package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
  153. package/dist/preview-next/client/PreviewEditorSidebar-Ckr2zk_L.mjs +37247 -0
  154. package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-KOZgw_gS.mjs} +45 -17
  155. package/dist/preview-next/client/PreviewShell-CyO2V4kB.mjs +4757 -0
  156. package/dist/preview-next/client/SdkPreviewModeRuntime-DW3uKvNF.mjs +4258 -0
  157. package/dist/preview-next/client/SiteChromeCustomizeButton-CU9VD-7O.mjs +72202 -0
  158. package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
  159. package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
  160. package/dist/preview-next/client/previewAssistantSlot-DBi-WybM.mjs +112193 -0
  161. package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-BhkUJst9.mjs} +90 -28
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/sdk-runtime-BjCb6lOn.mjs +5 -0
  164. package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus-CKxTaC3j.mjs} +40 -3
  165. package/dist/preview-next/client/useBlockCustomizeControls-B7MLTjBX.mjs +2633 -0
  166. package/dist/preview-next/client/useOpenBlockForSetup-BTUc0g9X.mjs +28 -0
  167. package/dist/preview-next/keepAlive.mjs +25 -2
  168. package/dist/preview-next/middleware.mjs +1 -1
  169. package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bv3nkdpV.mjs} +215 -118
  170. package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-4fMqzltx.mjs} +7 -4
  171. package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-C72VC_lR.mjs} +894 -2556
  172. package/dist/server/accessibleSurfaces-B_Y_dA20.mjs +2305 -0
  173. package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-ConMYJ2U.mjs} +2 -3
  174. package/dist/server/{publicProducts-Bz8loTRn.mjs → client-Cot-H5fQ.mjs} +2558 -343
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +33 -2
  177. package/dist/server/data/dataLoaderContext.mjs +2 -0
  178. package/dist/server/data/resolveBlockData.mjs +2 -0
  179. package/dist/server/data/types.mjs +1 -0
  180. package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
  181. package/dist/server/identity-Bn9OQiT1.mjs +6 -0
  182. package/dist/server/index.mjs +3 -3
  183. package/dist/server/{loadContent-dEEhQxL7.mjs → loadContent-BkaWYEwt.mjs} +6 -5
  184. package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-kviUdH8c.mjs} +4 -2
  185. package/dist/server/manifest.mjs +1 -1
  186. package/dist/server/media-DnlczCMA.mjs +231 -0
  187. package/dist/server/metadata.mjs +5 -1
  188. package/dist/server/mode-Cv_TG9gP.mjs +63 -0
  189. package/dist/server/next/revalidate.mjs +9 -4
  190. package/dist/server/next.mjs +11 -11
  191. package/dist/server/opaqueSurface-BTnS09GS.mjs +54 -0
  192. package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-itXZCXs7.mjs} +2 -1
  193. package/dist/server/overrides-CD4d-1w7.mjs +177 -0
  194. package/dist/server/page-converter.mjs +243 -91
  195. package/dist/server/pageRenderPlan-CDyn7iLy.mjs +4162 -0
  196. package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +13 -28
  197. package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-Q_Vij87H.mjs} +3808 -1928
  198. package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +52 -0
  199. package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-DOG4MkOy.mjs} +1 -1
  200. package/dist/server/prebuild.mjs +1 -1
  201. package/dist/server/prefetchBlockData-DlprLLsc.mjs +756 -0
  202. package/dist/server/{registry-Cdvz1OtL.mjs → registry-BPFcpn6k.mjs} +21838 -709
  203. package/dist/server/rendering/components/pageShared.mjs +2 -0
  204. package/dist/server/rendering/helpers/loadPage.mjs +2 -0
  205. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
  206. package/dist/server/rendering/server.mjs +5 -4
  207. package/dist/server/rendering/themeAdmission.mjs +2 -0
  208. package/dist/server/rendering.mjs +11 -10
  209. package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
  210. package/dist/server/{resolveBlockData-CLpAJWWf.mjs → resolveBlockData-BHvfGD4y.mjs} +6 -48
  211. package/dist/server/resolveButtonColourStates-OXFRGn5M.mjs +2682 -0
  212. package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
  213. package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
  214. package/dist/server/routing.mjs +1 -1
  215. package/dist/server/schema-DEizlyi4.mjs +2524 -0
  216. package/dist/server/server.mjs +3 -3
  217. package/dist/server/theme-bridge.mjs +1031 -1
  218. package/dist/server/theme.mjs +2 -1
  219. package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
  220. package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
  221. package/dist/server/validation-CDd6m8Ry.mjs +140 -0
  222. package/dist/server/{validation-DYxhLzqQ.mjs → validation-bl6WcAi_.mjs} +419 -3
  223. package/dist/server/{version-Beu4q-Gv.mjs → version-BLXZ31S-.mjs} +1 -1
  224. package/dist/styles/index.css +710 -29
  225. package/package.json +39 -1
  226. package/dist/client/events-BmqPeeQm.mjs +0 -20
  227. package/dist/client/purchase-BV5xfaZH.mjs +0 -894
  228. package/dist/client/schema-BdSglH2X.mjs +0 -16084
  229. package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
  230. package/dist/client/src-VIsPY-kw.mjs +0 -62
  231. package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
  232. package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
  233. package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
  234. package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
  235. package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
  236. package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
  237. package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
  238. package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
  239. package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
  240. package/dist/server/client-DfMDbZ41.mjs +0 -2330
  241. package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
  242. package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
  243. package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
  244. package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
  245. package/dist/server/site-styles-CntHn2KI.mjs +0 -793
  246. package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { Bt as toError, Ft as eventPaginationLoadReducer, Gt as normalizeOptionalId, Ht as getEventRuntimeFiltersKey, It as getEventIdentity, Lt as getEventPaginationView, Nt as createInitialEventPaginationLoadState, Pt as eventPageOperationQuery, Rt as planEventPageOperation, Ut as normalizeCsvIds, Wt as normalizeCsvString, zt as toEventPaginationLoadError } from "./shop.interactive-BGmkdIAZ.mjs";
3
- import { t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-DManVJpc.mjs";
5
- import { r as EventItem } from "./EventItem-dILw2PN_.mjs";
6
- import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-Cfbo1bfh.mjs";
7
- import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-DtVbKVkt.mjs";
8
- import { n as useBlockApi } from "./context-CBV21-9L.mjs";
2
+ import { Bt as toEventPaginationLoadError, Ft as eventPageOperationQuery, Gt as normalizeCsvString, It as eventPaginationLoadReducer, Kt as normalizeOptionalId, Lt as getEventIdentity, Pt as createInitialEventPaginationLoadState, Rt as getEventPaginationView, Ut as getEventRuntimeFiltersKey, Vt as toError, Wt as normalizeCsvIds, zt as planEventPageOperation } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { Gt as getBlockApiReadStage, Nr as listLookSlot, jr as listItemPresentation } from "./wizardSteps-DtkhwKXK.mjs";
4
+ import { t as assertNever } from "./src-DjnxOjXG.mjs";
5
+ import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
6
+ import { r as EventItem } from "./EventItem-DPBLjGwj.mjs";
7
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CEumpN7i.mjs";
8
+ import { n as useBlockApi } from "./context-Cv3QHjAF.mjs";
9
9
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
@@ -444,7 +444,7 @@ function renderClientEventListItem(event, source) {
444
444
  return display.listLayout === "compact" ? /* @__PURE__ */ jsx(EventCompactRow, {
445
445
  event,
446
446
  lookSlots: display.lookSlots,
447
- itemSurfaces: display.itemSurfaces,
447
+ surfacePresentation: display.surfacePresentation,
448
448
  buttonVariant: display.buttonVariant,
449
449
  buttonText: display.buttonText,
450
450
  showCapacity: display.showCapacity,
@@ -452,7 +452,7 @@ function renderClientEventListItem(event, source) {
452
452
  }, event.occurrenceId || event.id) : /* @__PURE__ */ jsx(EventCardClient, {
453
453
  event,
454
454
  lookSlots: display.lookSlots,
455
- itemSurfaces: display.itemSurfaces,
455
+ surfacePresentation: display.surfacePresentation,
456
456
  cardRole: display.cardRole,
457
457
  buttonVariant: display.buttonVariant,
458
458
  buttonText: display.buttonText,
@@ -1,13 +1,12 @@
1
1
  "use client";
2
- import { Jt as CardListContentPart, Qt as MediaNodeServer, _t as formatBookingSchedulePresentation, an as formatEventPrice, on as formatEventPriceAmount, sn as formatEventPriceDisplay } from "./shop.interactive-BGmkdIAZ.mjs";
3
- import { b as formatCurrencyAmount } from "./purchase-BV5xfaZH.mjs";
2
+ import { $t as MediaNodeServer, Yt as CardListContentPart, _t as formatBookingSchedulePresentation, cn as formatEventPriceDisplay, on as formatEventPrice, sn as formatEventPriceAmount } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Er as resolveEventRegistrationScopedEvents, Hr as orderedLiveRunSessions, Nr as listLookSlot, Tn as formatTotalCapacity, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, fn as formatEventCompactDateRail, ni as publicEventPricingCurrency, pn as formatEventDateParts, qt as ImagePresets, ri as publicEventPricingDisplay, sn as eventDateOptions, ti as isPublicEventPricingOptionDisplayable } from "./wizardSteps-DtkhwKXK.mjs";
4
+ import { Bt as formatCurrencyAmount, Ct as toScheduledBookingDateTime, Et as compareLocalScheduleDates, It as toUtcIsoDateTimeString, Mt as resolveBookingBusinessTimeZone, Ot as getBookingLocalDateKey, Pt as toBookingTimeZone, gt as formatDateTimeRange, kt as getLocalScheduleDate, mt as formatDateRange, pt as formatDate } from "./noop-ByVtIWf4.mjs";
5
+ import { v as assertNever } from "./src-DjnxOjXG.mjs";
4
6
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
5
- import { c as assertNever } from "./src-VIsPY-kw.mjs";
6
- import { Br as CANCELLED_SESSION_STATUS, Dr as resolveEventRegistrationScopedEvents, En as formatTotalCapacity, Hr as orderedLiveRunSessions, On as getEventAvailabilityStatus, Pr as listLookSlot, Ur as resolveWholeSeriesBookingPhase, cn as eventDateOptions, ei as formatBookingPriceDisplay, ii as publicEventPricingDisplay, mn as formatEventDateParts, ni as isPublicEventPricingOptionDisplayable, oi as publicEventPricingType, pn as formatEventCompactDateRail, qt as ImagePresets, ri as publicEventPricingCurrency, wn as formatEventRemainingPlaces } from "./wizardSteps-DManVJpc.mjs";
7
- import { Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Tt as getLocalScheduleDate, dt as formatDateRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, pt as formatDateTimeRange, ut as formatDate, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-CQU7tiMg.mjs";
8
- import { t as LocationMapActions } from "./LocationMapActions-zWQsJhE5.mjs";
9
- import { r as resolveEventLinkProps, t as resolveDatedSeriesCta } from "./cta-Bw-al3cs.mjs";
10
- import { n as MapDrawingSvg } from "./MapDrawingSvg-D1AO_o4h.mjs";
7
+ import { t as LocationMapActions } from "./LocationMapActions-BVO-qx4q.mjs";
8
+ import { r as resolveEventLinkProps, t as resolveEventCardBooking } from "./cta-P2vJVTEn.mjs";
9
+ import { a as eventVenuePlace, n as MapDrawingSvg } from "./MapDrawingSvg-CcGaFawl.mjs";
11
10
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
12
11
  import "react";
13
12
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -74,198 +73,6 @@ function DateTimeTile(props) {
74
73
  });
75
74
  }
76
75
  //#endregion
77
- //#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
78
- function isCategoryEligible(eligibleCategoryIds, eventCategoryId) {
79
- const categories = eligibleCategoryIds ?? [];
80
- if (categories.length === 0) return true;
81
- if (!eventCategoryId) return false;
82
- return categories.includes(eventCategoryId);
83
- }
84
- function passCoversEvent(args, event) {
85
- if (!event.acceptsPasses) return false;
86
- return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
87
- }
88
- function membershipCoversEvent(args, event) {
89
- if (!event.acceptsMemberships) return false;
90
- return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
91
- }
92
- /**
93
- * Filter site passes to only those that cover the selected event.
94
- *
95
- * Public purchasable products are a pre-auth proxy for whether the pass path is
96
- * worth advertising; owned pass eligibility is checked later after portal auth.
97
- */
98
- function filterPassesForEvent(sitePasses, event) {
99
- if (!sitePasses || !event) return [];
100
- if (event.requiresRegistration === false) return [];
101
- const eventCategoryId = event.eventCategory?.id ?? null;
102
- return sitePasses.filter((pass) => pass.productUseCase === "event_pass" && passCoversEvent({ eligibleCategoryIds: pass.eligibleCategoryIds }, {
103
- acceptsPasses: event.acceptsPasses,
104
- eventCategoryId
105
- }));
106
- }
107
- /**
108
- * Filter site memberships to only those that cover the selected event.
109
- *
110
- * Public purchasable products are a pre-auth proxy for whether the membership
111
- * path is worth advertising; owned membership eligibility is checked later
112
- * after portal auth.
113
- */
114
- function filterMembershipsForEvent(siteMemberships, event) {
115
- if (!siteMemberships || !event) return [];
116
- if (event.requiresRegistration === false) return [];
117
- const eventCategoryId = event.eventCategory?.id ?? null;
118
- return siteMemberships.filter((membership) => membershipCoversEvent({ eligibleCategoryIds: membership.eligibleCategoryIds }, {
119
- acceptsMemberships: event.acceptsMemberships,
120
- eventCategoryId
121
- }));
122
- }
123
- //#endregion
124
- //#region ../blocks/src/system/runtime/nodes/event-details/logic.ts
125
- function emptySelection(timeZone) {
126
- return {
127
- kind: "empty",
128
- mode: "next",
129
- selected: null,
130
- otherDates: [],
131
- timeZone
132
- };
133
- }
134
- function parseLimit(value, fallback) {
135
- if (value === "all") return Number.MAX_SAFE_INTEGER;
136
- const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
137
- return Number.isFinite(n) && n > 0 ? n : fallback;
138
- }
139
- function uniqByOccurrenceId(events) {
140
- const seen = /* @__PURE__ */ new Set();
141
- const out = [];
142
- for (const e of events) {
143
- const key = e.occurrenceId || e.id;
144
- if (!key || seen.has(key)) continue;
145
- seen.add(key);
146
- out.push(e);
147
- }
148
- return out;
149
- }
150
- function isWholeSeriesEvent(event) {
151
- return event.bookingScope === "whole_series";
152
- }
153
- function isOrdinaryEvent(event) {
154
- return event.bookingScope === "single_occurrence";
155
- }
156
- /**
157
- * Where the run has got to, as the page should say it.
158
- *
159
- * `run.lifecycle` is the canonical answer and it is projected server-side. The
160
- * one thing a cached page can outlive is the start of the first session, and
161
- * the shared booking phase is what notices that, so an otherwise-upcoming run
162
- * that has begun is reported as under way. Nothing else is re-derived: reading
163
- * the state off the occurrence dates instead is how this block came to
164
- * contradict the run it was describing.
165
- */
166
- function renderedRunLifecycle(run, bookingPhase) {
167
- return run.lifecycle === "upcoming" && bookingPhase.kind === "closed" && bookingPhase.reason === "in-progress" ? "in_progress" : run.lifecycle;
168
- }
169
- function selectRelatedDates(input) {
170
- if (!input.seriesId) return [];
171
- const isWholeSeries = input.selected?.bookingScope === "whole_series";
172
- const selectedOccurrenceId = input.selected ? input.selected.occurrenceId || input.selected.id : null;
173
- const dates = input.events.filter((event) => event.seriesId === input.seriesId).filter((event) => isWholeSeries || isFutureOrNow(event.startsAt, input.nowIso)).filter((event) => !selectedOccurrenceId || (event.occurrenceId || event.id) !== selectedOccurrenceId).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
174
- return isWholeSeries ? dates : dates.slice(0, input.limit);
175
- }
176
- function selectEventDetails(args) {
177
- const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
178
- occurrenceContext: args.occurrenceContext,
179
- subject: args.subject
180
- }));
181
- const occurrenceContext = args.occurrenceContext ?? null;
182
- const otherLimit = parseLimit(args.otherDatesLimit, 5);
183
- const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
184
- const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
185
- if (!candidate) return emptySelection(timeZone);
186
- const { event: selected, mode } = candidate;
187
- const otherDates = selectRelatedDates({
188
- events: all,
189
- seriesId: occurrenceContext?.seriesId ?? selected?.seriesId ?? all[0]?.seriesId ?? null,
190
- selected,
191
- nowIso: args.nowIso,
192
- limit: otherLimit
193
- });
194
- if (isWholeSeriesEvent(selected)) {
195
- const run = selected.run;
196
- const bookingPhase = resolveWholeSeriesBookingPhase(run, new Date(args.nowIso));
197
- return {
198
- kind: "wholeSeries",
199
- lifecycle: renderedRunLifecycle(run, bookingPhase),
200
- bookingPhase,
201
- mode,
202
- selected,
203
- run,
204
- sessions: run.sessions,
205
- timeZone
206
- };
207
- }
208
- if (!isOrdinaryEvent(selected)) return emptySelection(timeZone);
209
- return {
210
- kind: "ordinary",
211
- mode: mode === "selected" ? "selected" : "next",
212
- selected,
213
- otherDates: otherDates.filter(isOrdinaryEvent),
214
- timeZone
215
- };
216
- }
217
- //#endregion
218
- //#region ../blocks/src/system/runtime/nodes/event-details/presentation.ts
219
- function resolveSelection(input) {
220
- return selectEventDetails({
221
- events: input.events ?? null,
222
- occurrenceContext: input.occurrenceContext ?? null,
223
- subject: input.subject,
224
- nowIso: input.nowIso,
225
- otherDatesLimit: input.otherDatesLimit
226
- });
227
- }
228
- function resolveDisplaySettings(input) {
229
- return {
230
- showVenue: input.showVenue ?? true,
231
- showMap: input.showMap ?? true,
232
- showOtherDates: input.showOtherDates ?? true,
233
- showCost: input.showCost ?? true,
234
- showTitle: input.showTitle ?? false,
235
- showDescription: input.showDescription ?? false,
236
- showCapacity: input.showCapacity ?? false,
237
- showAcceptedPasses: input.showAcceptedPasses ?? true,
238
- showAcceptedMemberships: input.showAcceptedMemberships ?? true
239
- };
240
- }
241
- function resolveEligibility(input, selected) {
242
- return {
243
- applicablePasses: filterPassesForEvent(input.sitePasses?.passes ?? null, selected),
244
- applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
245
- };
246
- }
247
- /** The response's one drawing belongs to the selected event only when it is for that event's venue. */
248
- function resolveSelectedVenueDrawing(venueDrawing, selected) {
249
- return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
250
- }
251
- function resolveEventDetailsPresentation(input) {
252
- const selection = resolveSelection(input);
253
- const selected = selection.kind === "empty" ? null : selection.selected;
254
- return {
255
- selection,
256
- arrangement: input.arrangement,
257
- entryTitle: input.entryTitle,
258
- actionSize: input.actionSize,
259
- lookSlots: input.lookSlots,
260
- itemSurfaces: input.itemSurfaces,
261
- panelHeading: input.panelHeading,
262
- ...resolveDisplaySettings(input),
263
- ...resolveEligibility(input, selected),
264
- autoApplyDiscount: input.autoApplyDiscount ?? null,
265
- selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
266
- };
267
- }
268
- //#endregion
269
76
  //#region ../blocks/src/system/blocks/offerings-preview/scheduleSummary.ts
270
77
  function deriveEventScheduleSummary(event) {
271
78
  const occurrence = occurrenceFromEvent(event);
@@ -311,7 +118,7 @@ function isValidOccurrence(value) {
311
118
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
312
119
  /** Live offering data only; editorial cards never acquire booking fields. */
313
120
  function eventCardListContent(event, context, buttonText) {
314
- const { content, external } = cardProjectionBase(event, buttonText, context.kind === "offering", context.kind === "offering" ? context.upcomingDates ?? [] : []);
121
+ const { content, external } = cardProjectionBase(event, buttonText, context.kind);
315
122
  switch (context.kind) {
316
123
  case "event-details": return {
317
124
  ...content,
@@ -320,6 +127,7 @@ function eventCardListContent(event, context, buttonText) {
320
127
  newTabHint: false,
321
128
  ...offeringSchedule(event)
322
129
  };
130
+ case "catalogue":
323
131
  case "offering": return {
324
132
  ...content,
325
133
  chips: offeringTypeChips(event, context.typeLabel),
@@ -330,9 +138,9 @@ function eventCardListContent(event, context, buttonText) {
330
138
  default: return assertNever(context);
331
139
  }
332
140
  }
333
- function cardProjectionBase(event, buttonText, offering, upcomingDates) {
334
- const cta = offeringCardCta(event, buttonText, offering, upcomingDates);
335
- const places = offeringAvailability(event);
141
+ function cardProjectionBase(event, buttonText, context) {
142
+ const offering = context !== "event-details";
143
+ const { cta, availability: places } = resolveEventCardBooking(event, context === "catalogue" ? "series" : "occurrence", offering && event.destination.kind === "external" ? void 0 : buttonText);
336
144
  return {
337
145
  external: cta.external,
338
146
  content: {
@@ -416,14 +224,6 @@ function scheduleLine(summary, event, now) {
416
224
  case "scheduled-run": return `${dates(summary.first.startsAt, summary.last.startsAt, "session")} · ${summary.authoredSummary?.text ?? `${summary.sessionCount} dates`}`;
417
225
  }
418
226
  }
419
- function offeringAvailability(event) {
420
- const label = formatEventRemainingPlaces(event, { full: "Sold out" });
421
- const availability = getEventAvailabilityStatus(event);
422
- return label ? {
423
- label,
424
- status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
425
- } : null;
426
- }
427
227
  function offeringFacts(event, places, offering) {
428
228
  return [
429
229
  ...Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4) > 0 && (!offering || event.bookingScope === "whole_series") ? [{
@@ -441,9 +241,6 @@ function offeringFacts(event, places, offering) {
441
241
  }]
442
242
  ];
443
243
  }
444
- function offeringCardCta(event, buttonText, offering, upcomingDates) {
445
- return resolveDatedSeriesCta(event, upcomingDates, offering && event.destination.kind === "external" ? void 0 : buttonText);
446
- }
447
244
  function offeringTypeChips(event, typeLabel) {
448
245
  return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
449
246
  }
@@ -457,10 +254,10 @@ function cardAction(cta) {
457
254
  //#endregion
458
255
  //#region ../blocks/src/system/runtime/nodes/event-details/headerContent.ts
459
256
  /** Project selected live data; booking decisions stay with the existing event owners. */
460
- function eventHeaderContent(selection, showCost) {
257
+ function eventHeaderContent(selection, show) {
461
258
  const event = selection.selected;
462
259
  const item = eventCardListContent(event, { kind: "event-details" });
463
- const groupSize = formatTotalCapacity(event.capacity);
260
+ const groupSize = show.capacity ? formatTotalCapacity(event.capacity) : null;
464
261
  const { date, timeRange } = formatEventDateParts({
465
262
  startsAt: event.startsAt,
466
263
  endsAt: event.endsAt,
@@ -478,7 +275,7 @@ function eventHeaderContent(selection, showCost) {
478
275
  label: "Time",
479
276
  value: timeRange
480
277
  },
481
- ...showCost ? (item.facts ?? []).filter(({ label }) => label === "Price") : [],
278
+ ...show.cost ? (item.facts ?? []).filter(({ label }) => label === "Price") : [],
482
279
  ...groupSize === null ? [] : [{
483
280
  label: "Group size",
484
281
  value: groupSize
@@ -499,8 +296,11 @@ function headerAction(selection, action) {
499
296
  }
500
297
  //#endregion
501
298
  //#region ../blocks/src/system/runtime/nodes/event-details/EventHeader.tsx
502
- function EventHeader({ selection, presentation, showCost }) {
503
- const item = eventHeaderContent(selection, showCost);
299
+ function EventHeader({ selection, presentation, showCost, showCapacity }) {
300
+ const item = eventHeaderContent(selection, {
301
+ cost: showCost,
302
+ capacity: showCapacity
303
+ });
504
304
  const part = (name) => /* @__PURE__ */ jsx(CardListContentPart, {
505
305
  part: name,
506
306
  item,
@@ -543,6 +343,246 @@ function EventHeader({ selection, presentation, showCost }) {
543
343
  ]
544
344
  });
545
345
  }
346
+ const eventHeaderSlotParents = {
347
+ frame: null,
348
+ copy: "frame",
349
+ availability: "copy",
350
+ "item-media": "frame"
351
+ };
352
+ //#endregion
353
+ //#region ../blocks/src/system/runtime/nodes/events/shared/eventProductEligibility.ts
354
+ function isCategoryEligible(eligibleCategoryIds, eventCategoryId) {
355
+ const categories = eligibleCategoryIds ?? [];
356
+ if (categories.length === 0) return true;
357
+ if (!eventCategoryId) return false;
358
+ return categories.includes(eventCategoryId);
359
+ }
360
+ function passCoversEvent(args, event) {
361
+ if (!event.acceptsPasses) return false;
362
+ return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
363
+ }
364
+ function membershipCoversEvent(args, event) {
365
+ if (!event.acceptsMemberships) return false;
366
+ return isCategoryEligible(args.eligibleCategoryIds, event.eventCategoryId);
367
+ }
368
+ /**
369
+ * Filter site passes to only those that cover the selected event.
370
+ *
371
+ * Public purchasable products are a pre-auth proxy for whether the pass path is
372
+ * worth advertising; owned pass eligibility is checked later after portal auth.
373
+ */
374
+ function filterPassesForEvent(sitePasses, event) {
375
+ if (!sitePasses || !event) return [];
376
+ if (event.requiresRegistration === false) return [];
377
+ const eventCategoryId = event.eventCategory?.id ?? null;
378
+ return sitePasses.filter((pass) => pass.productUseCase === "event_pass" && passCoversEvent({ eligibleCategoryIds: pass.eligibleCategoryIds }, {
379
+ acceptsPasses: event.acceptsPasses,
380
+ eventCategoryId
381
+ }));
382
+ }
383
+ /**
384
+ * Filter site memberships to only those that cover the selected event.
385
+ *
386
+ * Public purchasable products are a pre-auth proxy for whether the membership
387
+ * path is worth advertising; owned membership eligibility is checked later
388
+ * after portal auth.
389
+ */
390
+ function filterMembershipsForEvent(siteMemberships, event) {
391
+ if (!siteMemberships || !event) return [];
392
+ if (event.requiresRegistration === false) return [];
393
+ const eventCategoryId = event.eventCategory?.id ?? null;
394
+ return siteMemberships.filter((membership) => membershipCoversEvent({ eligibleCategoryIds: membership.eligibleCategoryIds }, {
395
+ acceptsMemberships: event.acceptsMemberships,
396
+ eventCategoryId
397
+ }));
398
+ }
399
+ //#endregion
400
+ //#region ../blocks/src/system/runtime/nodes/event-details/logic.ts
401
+ function emptySelection(timeZone) {
402
+ return {
403
+ kind: "empty",
404
+ mode: "next",
405
+ selected: null,
406
+ otherDates: [],
407
+ timeZone
408
+ };
409
+ }
410
+ function parseLimit(value, fallback) {
411
+ if (value === "all") return Number.MAX_SAFE_INTEGER;
412
+ const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
413
+ return Number.isFinite(n) && n > 0 ? n : fallback;
414
+ }
415
+ function uniqByOccurrenceId(events) {
416
+ const seen = /* @__PURE__ */ new Set();
417
+ const out = [];
418
+ for (const e of events) {
419
+ const key = e.occurrenceId || e.id;
420
+ if (!key || seen.has(key)) continue;
421
+ seen.add(key);
422
+ out.push(e);
423
+ }
424
+ return out;
425
+ }
426
+ function isWholeSeriesEvent(event) {
427
+ return event.bookingScope === "whole_series";
428
+ }
429
+ function isOrdinaryEvent(event) {
430
+ return event.bookingScope === "single_occurrence";
431
+ }
432
+ /**
433
+ * Where the run has got to, as the page should say it.
434
+ *
435
+ * `run.lifecycle` is the canonical answer and it is projected server-side. The
436
+ * one thing a cached page can outlive is the start of the first session, and
437
+ * the shared booking phase is what notices that, so an otherwise-upcoming run
438
+ * that has begun is reported as under way. Nothing else is re-derived: reading
439
+ * the state off the occurrence dates instead is how this block came to
440
+ * contradict the run it was describing.
441
+ */
442
+ function renderedRunLifecycle(run, bookingPhase) {
443
+ return run.lifecycle === "upcoming" && bookingPhase.kind === "closed" && bookingPhase.reason === "in-progress" ? "in_progress" : run.lifecycle;
444
+ }
445
+ function selectRelatedDates(input) {
446
+ if (!input.seriesId) return [];
447
+ const isWholeSeries = input.selected?.bookingScope === "whole_series";
448
+ const selectedOccurrenceId = input.selected ? input.selected.occurrenceId || input.selected.id : null;
449
+ const dates = input.events.filter((event) => event.seriesId === input.seriesId).filter((event) => isWholeSeries || isFutureOrNow(event.startsAt, input.nowIso)).filter((event) => !selectedOccurrenceId || (event.occurrenceId || event.id) !== selectedOccurrenceId).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
450
+ return isWholeSeries ? dates : dates.slice(0, input.limit);
451
+ }
452
+ function selectEventDetails(args) {
453
+ const all = uniqByOccurrenceId(resolveEventRegistrationScopedEvents((args.events ?? []).filter(Boolean), {
454
+ occurrenceContext: args.occurrenceContext,
455
+ subject: args.subject
456
+ }));
457
+ const occurrenceContext = args.occurrenceContext ?? null;
458
+ const otherLimit = parseLimit(args.otherDatesLimit, 5);
459
+ const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
460
+ const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
461
+ if (!candidate) return emptySelection(timeZone);
462
+ const { event: selected, mode } = candidate;
463
+ const otherDates = selectRelatedDates({
464
+ events: all,
465
+ seriesId: occurrenceContext?.seriesId ?? selected?.seriesId ?? all[0]?.seriesId ?? null,
466
+ selected,
467
+ nowIso: args.nowIso,
468
+ limit: otherLimit
469
+ });
470
+ if (isWholeSeriesEvent(selected)) {
471
+ const run = selected.run;
472
+ const bookingPhase = resolveWholeSeriesBookingPhase(run, new Date(args.nowIso));
473
+ return {
474
+ kind: "wholeSeries",
475
+ lifecycle: renderedRunLifecycle(run, bookingPhase),
476
+ bookingPhase,
477
+ mode,
478
+ selected,
479
+ run,
480
+ sessions: run.sessions,
481
+ timeZone
482
+ };
483
+ }
484
+ if (!isOrdinaryEvent(selected)) return emptySelection(timeZone);
485
+ return {
486
+ kind: "ordinary",
487
+ mode: mode === "selected" ? "selected" : "next",
488
+ selected,
489
+ otherDates: otherDates.filter(isOrdinaryEvent),
490
+ timeZone
491
+ };
492
+ }
493
+ //#endregion
494
+ //#region ../blocks/src/system/runtime/nodes/event-details/presentation.ts
495
+ function resolveSelection(input) {
496
+ return selectEventDetails({
497
+ events: input.events ?? null,
498
+ occurrenceContext: input.occurrenceContext ?? null,
499
+ subject: input.subject,
500
+ nowIso: input.nowIso,
501
+ otherDatesLimit: input.otherDatesLimit
502
+ });
503
+ }
504
+ function resolveDisplaySettings(input) {
505
+ return {
506
+ showVenue: input.showVenue ?? true,
507
+ showMap: input.showMap ?? true,
508
+ showOtherDates: input.showOtherDates ?? true,
509
+ showCost: input.showCost ?? true,
510
+ showTitle: input.showTitle ?? false,
511
+ showDescription: input.showDescription ?? false,
512
+ showCapacity: input.showCapacity ?? false,
513
+ showAcceptedPasses: input.showAcceptedPasses ?? true,
514
+ showAcceptedMemberships: input.showAcceptedMemberships ?? true
515
+ };
516
+ }
517
+ function resolveEligibility(input, selected) {
518
+ return {
519
+ applicablePasses: filterPassesForEvent(input.sitePasses?.passes ?? null, selected),
520
+ applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
521
+ };
522
+ }
523
+ /** The response's one drawing belongs to the selected event only when it is for that event's venue. */
524
+ function resolveSelectedVenueDrawing(venueDrawing, selected) {
525
+ return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
526
+ }
527
+ function resolveEventDetailsPresentation(input) {
528
+ const selection = resolveSelection(input);
529
+ const selected = selection.kind === "empty" ? null : selection.selected;
530
+ return {
531
+ selection,
532
+ arrangement: input.arrangement,
533
+ entryTitle: input.entryTitle,
534
+ actionSize: input.actionSize,
535
+ lookSlots: input.lookSlots,
536
+ surfacePresentation: input.surfacePresentation,
537
+ panelHeading: input.panelHeading,
538
+ ...resolveDisplaySettings(input),
539
+ ...resolveEligibility(input, selected),
540
+ autoApplyDiscount: input.autoApplyDiscount ?? null,
541
+ selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
542
+ };
543
+ }
544
+ //#endregion
545
+ //#region ../blocks/src/system/customize/lookParts.ts
546
+ const lookParts = {
547
+ "block.cta-full": [{
548
+ part: "figure",
549
+ fields: ["figure", "figureNote"],
550
+ shownIn: ["figure"]
551
+ }],
552
+ "block.location-map": [{
553
+ part: "entrance photo",
554
+ fields: ["entrancePhoto"],
555
+ shownIn: ["photo-and-details"]
556
+ }],
557
+ "block.feature-cards": [{
558
+ part: "eyebrow",
559
+ fields: ["eyebrow"],
560
+ shownIn: [
561
+ "lead-support",
562
+ "index",
563
+ "sequence",
564
+ "slides",
565
+ "track"
566
+ ]
567
+ }],
568
+ "block.event-details": [{
569
+ part: "title",
570
+ fields: ["showTitle"],
571
+ shownIn: ["details-panel"]
572
+ }, {
573
+ part: "description",
574
+ fields: ["showDescription"],
575
+ shownIn: ["details-panel"]
576
+ }]
577
+ };
578
+ /** Fields the arrangement leaves out. Nothing on an older style, where no arrangement Look shows the block. */
579
+ function fieldsNotShownIn(blockKind, arrangement) {
580
+ if (arrangement === null) return [];
581
+ return (lookParts[blockKind] ?? []).flatMap((part) => part.shownIn.includes(arrangement) ? [] : part.fields);
582
+ }
583
+ function lookPartShown(blockKind, field, arrangement) {
584
+ return !fieldsNotShownIn(blockKind, arrangement).includes(field);
585
+ }
546
586
  //#endregion
547
587
  //#region ../blocks/src/system/runtime/nodes/event-details/WholeSeriesPricingDisplay.tsx
548
588
  function WholeSeriesPricingDisplay({ pricing, acceptedItems }) {
@@ -688,7 +728,9 @@ function EventFacts({ selection, selected, venue, teamMembers, pricing, showCapa
688
728
  });
689
729
  }
690
730
  function EventVenueFact({ venue }) {
691
- return venue ? /* @__PURE__ */ jsxs("div", {
731
+ if (!venue) return null;
732
+ const { place, addressWithBooking } = eventVenuePlace(venue);
733
+ return /* @__PURE__ */ jsxs("div", {
692
734
  className: "rb-mt-6",
693
735
  children: [
694
736
  /* @__PURE__ */ jsx("div", {
@@ -696,16 +738,19 @@ function EventVenueFact({ venue }) {
696
738
  children: "Venue"
697
739
  }),
698
740
  /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: venue.name }) }),
699
- venue.address ? /* @__PURE__ */ jsx("p", {
741
+ place ? /* @__PURE__ */ jsx("p", {
700
742
  className: "rb-caption",
701
- children: venue.address
743
+ children: place
702
744
  }) : null,
703
- /* @__PURE__ */ jsx(LocationMapActions, {
745
+ addressWithBooking ? /* @__PURE__ */ jsx("p", {
746
+ className: "rb-caption rb-mt-1",
747
+ children: "The full address and directions come with your booking confirmation."
748
+ }) : /* @__PURE__ */ jsx(LocationMapActions, {
704
749
  location: venue.location,
705
750
  addressText: venue.address
706
751
  })
707
752
  ]
708
- }) : null;
753
+ });
709
754
  }
710
755
  function EventTeacherFacts({ teamMembers }) {
711
756
  return teamMembers.length ? /* @__PURE__ */ jsxs("div", {
@@ -927,8 +972,9 @@ function LegacyEventDetailsView(props) {
927
972
  });
928
973
  }
929
974
  /** The absence of an arrangement preserves the original markup exactly. */
930
- function EventDetailsView(props) {
931
- if (!props.arrangement) return /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...props });
975
+ function EventDetailsView(input) {
976
+ if (!input.arrangement) return /* @__PURE__ */ jsx(LegacyEventDetailsView, { ...input });
977
+ const props = withLookParts(input, input.arrangement);
932
978
  if (props.arrangement === "details-panel") return /* @__PURE__ */ jsxs("div", {
933
979
  ...listLookSlot(props, "panel"),
934
980
  children: [props.panelHeading ? /* @__PURE__ */ jsx("h2", {
@@ -948,17 +994,26 @@ function EventDetailsView(props) {
948
994
  children: [/* @__PURE__ */ jsx(EventHeader, {
949
995
  selection: props.selection,
950
996
  presentation: props,
951
- showCost: props.showCost ?? true
997
+ showCost: props.showCost ?? true,
998
+ showCapacity: props.showCapacity ?? false
952
999
  }), /* @__PURE__ */ jsx("div", {
953
1000
  ...listLookSlot(props, "panel"),
954
1001
  children: /* @__PURE__ */ jsx(LegacyEventDetailsView, {
955
1002
  ...props,
956
- showTitle: false,
957
- showDescription: false,
958
- showCost: props.showCost
1003
+ showCost: props.showCost,
1004
+ showCapacity: false
959
1005
  })
960
1006
  })]
961
1007
  });
962
1008
  }
1009
+ /** Turns off the toggles the arrangement leaves out, as `lookParts` declares them. */
1010
+ function withLookParts(props, arrangement) {
1011
+ const shown = (field) => lookPartShown("block.event-details", field, arrangement);
1012
+ return {
1013
+ ...props,
1014
+ showTitle: props.showTitle === true && shown("showTitle"),
1015
+ showDescription: props.showDescription === true && shown("showDescription")
1016
+ };
1017
+ }
963
1018
  //#endregion
964
- export { resolveEventDetailsPresentation as a, derivePreviewRunSchedule as i, eventCardListContent as n, deriveEventScheduleSummary as r, EventDetailsView as t };
1019
+ export { deriveEventScheduleSummary as a, eventCardListContent as i, resolveEventDetailsPresentation as n, derivePreviewRunSchedule as o, eventHeaderSlotParents as r, EventDetailsView as t };