@riverbankcms/sdk 0.163.0 → 0.165.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 (204) hide show
  1. package/README.md +12 -1
  2. package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
  3. package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-D6gp2Ipb.d.ts} +15 -12
  4. package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -72
  5. package/dist/_dts/{client-Chh3bnXC.d.ts → client-BkkExozE.d.ts} +13 -41
  6. package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
  7. package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-XRXhbLWP.d.ts} +5 -4
  8. package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
  10. package/dist/_dts/{index-CyQhZuhM.d.ts → index-B4ozSzFP.d.ts} +48377 -47862
  11. package/dist/_dts/{index-DRxgeK8L.d.ts → index-BdkHhyf8.d.ts} +2 -2
  12. package/dist/_dts/{index-CdSNXLOx.d.ts → index-CQfJhOEA.d.ts} +2 -2
  13. package/dist/_dts/{index-C3mJvn27.d.ts → index-CRRiddNp.d.ts} +4 -4
  14. package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
  15. package/dist/_dts/{index-rhMSu0oY.d.ts → index-C_3kdrUb.d.ts} +2 -2
  16. package/dist/_dts/{index-CaL0nKkl.d.ts → index-DAPTSmBM.d.ts} +31097 -31047
  17. package/dist/_dts/{index-FstkyqQB.d.ts → index-DKNEgSOS.d.ts} +2 -2
  18. package/dist/_dts/{index-G2p-HOrK.d.ts → index-RXkE3a7M.d.ts} +3 -3
  19. package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-B9vJMq3s.d.ts} +15 -30
  20. package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  40. package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
  41. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  43. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  44. package/dist/_dts/sdk/src/server.d.ts +5 -5
  45. package/dist/_dts/sdk/src/spam-protection/index.d.ts +32 -52
  46. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  47. package/dist/_dts/{types-BmtrA45p.d.ts → types-BDF73NzM.d.ts} +3 -2
  48. package/dist/_dts/{types-DFOqkClJ.d.ts → types-Cl0nP6al.d.ts} +3 -3
  49. package/dist/_dts/{types-CalL7aKP.d.ts → types-mstFvhK4.d.ts} +7 -7
  50. package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-DVWqSvjK.d.ts} +4 -4
  51. package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
  52. package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
  53. package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
  54. package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
  55. package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
  56. package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
  57. package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
  58. package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
  59. package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -1
  60. package/dist/client/{EventItem-CND3mfra.mjs → EventItem-dILw2PN_.mjs} +27 -17
  61. package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
  62. package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
  63. package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
  64. package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +18 -22
  65. package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
  66. package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
  67. package/dist/client/{Page-BEF9HrAy.mjs → Page-DUr2YhFR.mjs} +1949 -418
  68. package/dist/client/ProtectedSubmitButton-2fJqT_NR.mjs +14 -0
  69. package/dist/client/SpamProtectionWidget-CCF6YLUX.mjs +141 -0
  70. package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
  72. package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-Cfbo1bfh.mjs} +2 -898
  73. package/dist/client/{accordion-lzM2nSZB.mjs → accordion-3CYNWzTS.mjs} +1 -1
  74. package/dist/client/altchaProtection-DjIV9A5n.mjs +12 -0
  75. package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-BSbWgLyx.mjs} +23 -56
  76. package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
  77. package/dist/client/bookings.mjs +23 -32
  78. package/dist/client/{carousel-CxerQwIx.mjs → carousel-Cu5mcpO-.mjs} +2 -2
  79. package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
  80. package/dist/client/{cart-X-m0isoI.mjs → cart-CDc6x9cR.mjs} +3 -3
  81. package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
  82. package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-CkxPqSwD.mjs} +3 -3
  83. package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-DJfomKQc.mjs} +1 -1
  84. package/dist/client/client.mjs +216 -109
  85. package/dist/client/{context-Bg0SFWcM.mjs → context-CBV21-9L.mjs} +17 -3
  86. package/dist/client/{cta-HffyM4MA.mjs → cta-Bw-al3cs.mjs} +26 -2
  87. package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
  88. package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
  89. package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
  90. package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
  91. package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-QMqtIywj.mjs} +47 -56
  92. package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
  93. package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BC7a709c.mjs} +4 -4
  94. package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-DL08GpUc.mjs} +2 -2
  95. package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-BfzuEQp_.mjs} +4 -4
  96. package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
  97. package/dist/client/{form-DAIUrVXb.mjs → form-L-xZOBUS.mjs} +3 -3
  98. package/dist/client/{form.client-BoAkhoh_.mjs → form.client-BtpK3TZW.mjs} +33 -24
  99. package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-Djos5Un4.mjs} +6 -5
  100. package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-DGmrm7YB.mjs} +1 -1
  101. package/dist/client/gifting/client.mjs +5 -4
  102. package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-f16OGkz-.mjs} +2 -2
  103. package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
  104. package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
  105. package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-DpHNZc7k.mjs} +100 -85
  106. package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-CLGH20PL.mjs} +11 -7
  107. package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
  108. package/dist/client/{noop-4XFGzJpT.mjs → noop-CQU7tiMg.mjs} +8 -4
  109. package/dist/client/portal/client.mjs +13 -12
  110. package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
  111. package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
  112. package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BD42UOmG.mjs} +3 -3
  113. package/dist/client/{productList-EK9Um-oh.mjs → productList-CSk8sXCl.mjs} +3 -3
  114. package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
  115. package/dist/client/protection-C0PoH1lT.mjs +104 -0
  116. package/dist/client/purchase-BV5xfaZH.mjs +894 -0
  117. package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-CIKtTsCl.mjs} +197 -167
  118. package/dist/client/rendering/client.mjs +27 -26
  119. package/dist/client/rendering/islands.mjs +1 -1
  120. package/dist/client/rendering.mjs +11 -7
  121. package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-spWtx86G.mjs} +1 -1
  122. package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
  123. package/dist/client/{schema-BFwQDvJL.mjs → schema-BdSglH2X.mjs} +2690 -2500
  124. package/dist/client/{shop-CTUaT57E.mjs → shop-DscvMz86.mjs} +3 -3
  125. package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
  126. package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
  127. package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-M3kNsVPi.mjs} +12 -12
  128. package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BGmkdIAZ.mjs} +268 -31
  129. package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-BdWp6LHa.mjs} +2 -2
  130. package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-CWHmlVT5.mjs} +2630 -461
  131. package/dist/client/spam-protection.mjs +4 -69
  132. package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
  133. package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
  134. package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
  135. package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
  136. package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
  137. package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
  138. package/dist/client/{view-yUIfWX3S.mjs → view-DXOuduIr.mjs} +4 -4
  139. package/dist/client/{view-OvsxzgxP.mjs → view-DlkCDfuN.mjs} +45 -32
  140. package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-DManVJpc.mjs} +57 -47
  141. package/dist/preview-next/before-render.mjs +2 -2
  142. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
  143. package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
  144. package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
  145. package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3478 -3109
  146. package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
  147. package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
  148. package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3761 -4769
  149. package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +3862 -8657
  150. package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-Dc6aJ34Z.mjs} +274 -68
  151. package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
  152. package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
  153. package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
  154. package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +186449 -173608
  155. package/dist/preview-next/client/runtime.mjs +3 -3
  156. package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
  157. package/dist/preview-next/keepAlive.mjs +3 -3
  158. package/dist/preview-next/middleware.mjs +2 -2
  159. package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-BBAJjFIz.mjs} +42 -50
  160. package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
  161. package/dist/preview-next/session.mjs +1 -1
  162. package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-ClFI3qpX.mjs} +5 -4
  163. package/dist/server/{bindings-S-gCHhj5.mjs → bindings-Bi8EoRZD.mjs} +2 -2
  164. package/dist/server/{client-C2Q56xqV.mjs → client-DfMDbZ41.mjs} +215 -109
  165. package/dist/server/config-validation.mjs +1 -1
  166. package/dist/server/config.mjs +2 -2
  167. package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2362 -217
  168. package/dist/server/index.mjs +3 -3
  169. package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-dEEhQxL7.mjs} +6 -4
  170. package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
  171. package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-DBFBad8A.mjs} +3 -2
  172. package/dist/server/next/middleware.mjs +1 -1
  173. package/dist/server/next/revalidate.mjs +1 -1
  174. package/dist/server/next.mjs +11 -11
  175. package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
  176. package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DhF87Vsd.mjs} +352 -141
  177. package/dist/server/page-converter.mjs +1 -1
  178. package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DaemmWQL.mjs} +1 -1
  179. package/dist/server/prebuild.mjs +1 -1
  180. package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-FwcsT5H2.mjs} +334 -110
  181. package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-Bz8loTRn.mjs} +87 -78
  182. package/dist/server/{registry-4ZF3bUuJ.mjs → registry-Cdvz1OtL.mjs} +539 -401
  183. package/dist/server/rendering/server.mjs +4 -4
  184. package/dist/server/rendering.mjs +8 -8
  185. package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
  186. package/dist/server/routing.mjs +1 -1
  187. package/dist/server/{schema-DgrigZq9.mjs → schema-uSA_x1Zh.mjs} +247 -57
  188. package/dist/server/server.mjs +3 -3
  189. package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-CntHn2KI.mjs} +61 -37
  190. package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +32 -36
  191. package/dist/server/{src-C44_fMy5.mjs → src-DsYPhTbs.mjs} +1289 -90
  192. package/dist/server/theme-bridge.mjs +1 -1
  193. package/dist/server/theme.mjs +1 -1
  194. package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-CSknYpxk.mjs} +3 -2
  195. package/dist/server/{validation-BrbY0nxR.mjs → validation-DYxhLzqQ.mjs} +2 -2
  196. package/dist/server/{version-BBSk8uM6.mjs → version-Beu4q-Gv.mjs} +1 -1
  197. package/dist/styles/index.css +1173 -72
  198. package/package.json +2 -3
  199. package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
  200. package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
  201. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
  202. package/dist/client/src-BNZzXgWu.mjs +0 -102
  203. package/dist/preview-next/client/spinner-CjxE3uws.mjs +0 -67
  204. package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
@@ -1,71 +1,6 @@
1
1
  "use client";
2
2
  "use client";
3
- import { i as AltchaWidget, n as hasSpamProtection, t as getChallengeUrl } from "./src-BNZzXgWu.mjs";
4
- import { useCallback, useMemo, useState } from "react";
5
- import { jsx } from "react/jsx-runtime";
6
- //#region src/spam-protection/index.tsx
7
- /**
8
- * React hook for spam protection integration.
9
- *
10
- * Provides a pre-configured ALTCHA widget and solution state management.
11
- *
12
- * @example
13
- * ```tsx
14
- * import { useSpamProtection, getChallengeUrl } from '@riverbankcms/sdk/spam-protection'
15
- *
16
- * function ContactForm() {
17
- * const { solution, isReady, Widget } = useSpamProtection(getChallengeUrl())
18
- *
19
- * const handleSubmit = async (e) => {
20
- * e.preventDefault()
21
- * if (!isReady) return
22
- *
23
- * const formData = new FormData(e.target)
24
- * formData.set('altcha-solution', solution)
25
- * // Submit form...
26
- * }
27
- *
28
- * return (
29
- * <form onSubmit={handleSubmit}>
30
- * {/* form fields *\/}
31
- * <Widget />
32
- * <button type="submit" disabled={!isReady}>Submit</button>
33
- * </form>
34
- * )
35
- * }
36
- * ```
37
- */
38
- function useSpamProtection(challengeUrl, options = {}) {
39
- const { auto = true, hidelogo = false, className } = options;
40
- const [solution, setSolution] = useState(null);
41
- const handleSolutionChange = useCallback((newSolution) => {
42
- setSolution(newSolution);
43
- }, []);
44
- const reset = useCallback(() => {
45
- setSolution(null);
46
- }, []);
47
- return {
48
- solution,
49
- isReady: solution !== null,
50
- reset,
51
- Widget: useMemo(() => {
52
- return function SpamProtectionWidget() {
53
- return /* @__PURE__ */ jsx(AltchaWidget, {
54
- challengeUrl,
55
- onSolutionChange: handleSolutionChange,
56
- auto,
57
- hidelogo,
58
- className
59
- });
60
- };
61
- }, [
62
- challengeUrl,
63
- handleSolutionChange,
64
- auto,
65
- hidelogo,
66
- className
67
- ])
68
- };
69
- }
70
- //#endregion
71
- export { AltchaWidget, getChallengeUrl, hasSpamProtection, useSpamProtection };
3
+ import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-2fJqT_NR.mjs";
4
+ import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
5
+ import { i as hasSpamProtection, n as useSpamProtection, r as getChallengeUrl, t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
6
+ export { ProtectedSubmitButton, SpamProtectionWidget, getChallengeUrl, hasSpamProtection, submissionProof, useSpamProtection };
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-1PJxc8KO.mjs";
3
- import { gn as textColorStyle, j as parseThemeButtonVariantId } from "./schema-BFwQDvJL.mjs";
4
- import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
3
+ import { j as parseThemeButtonVariantId, pn as textColorStyle } from "./schema-BdSglH2X.mjs";
5
4
  import { c as assertNever } from "./src-VIsPY-kw.mjs";
6
- import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-kbONzKUv.mjs";
7
- import { Dt as parseLocalScheduleTime, Et as parseBookingLocalDate, Mt as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, ut as formatDate } from "./noop-4XFGzJpT.mjs";
8
- import { t as LocationMapActions } from "./LocationMapActions-wlyxASdT.mjs";
9
- import { n as resolveEventLinkProps } from "./cta-HffyM4MA.mjs";
10
- import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-CVLAHdZG.mjs";
11
- import { o as formatEventTeacherLine, r as EventItem } from "./EventItem-CND3mfra.mjs";
12
- import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-B9oKSitp.mjs";
13
- import { t as coerceRichTextDoc } from "./richText-coerce-CW8CFk8v.mjs";
5
+ import { An as isEventFull, Kt as RichText, Mr as listItemPresentation, On as getEventAvailabilityStatus, Pr as listLookSlot, _n as formatEventTimeRange, bn as resolveEventTimeZone, cn as eventDateOptions, fn as formatEventClockLabel, vn as formatTime, wn as formatEventRemainingPlaces, xr as resolveDateRuntimeContext, yn as groupEventsByDate } from "./wizardSteps-DManVJpc.mjs";
6
+ import { Dt as parseLocalScheduleTime, Et as parseBookingLocalDate, Mt as toScheduledBookingDateTime, St as formatBookingCompactEnglishTime, ut as formatDate } from "./noop-CQU7tiMg.mjs";
7
+ import { t as LocationMapActions } from "./LocationMapActions-zWQsJhE5.mjs";
8
+ import { r as resolveEventLinkProps } from "./cta-Bw-al3cs.mjs";
9
+ import { a as buildMonthDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-YGzw2IPB.mjs";
10
+ import { o as formatEventTeacherLine, r as EventItem } from "./EventItem-dILw2PN_.mjs";
11
+ import { C as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-Cfbo1bfh.mjs";
12
+ import { r as readableMapDrawing, t as AdmittedMapDrawingSvg } from "./MapDrawingSvg-D1AO_o4h.mjs";
13
+ import { t as coerceRichTextDoc } from "./richText-coerce-spWtx86G.mjs";
14
14
  import "react";
15
15
  import { z } from "zod";
16
16
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { Cr as unsafeAsAppointmentResourceId } from "./schema-BFwQDvJL.mjs";
2
+ import { wr as unsafeAsAppointmentResourceId } from "./schema-BdSglH2X.mjs";
3
3
  import { t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { At as resolveBookingTimeZoneId, Ct as formatLocalScheduleDate, Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, Tt as getLocalScheduleDate, mt as formatTime$1, ut as formatDate$1, yt as addLocalScheduleDays } from "./noop-4XFGzJpT.mjs";
5
- import { n as useBlockApi } from "./context-Bg0SFWcM.mjs";
4
+ import { At as resolveBookingTimeZoneId, Ct as formatLocalScheduleDate, Et as parseBookingLocalDate, Ot as parseUtcIsoDateTimeString, Tt as getLocalScheduleDate, mt as formatTime$1, ut as formatDate$1, yt as addLocalScheduleDays } from "./noop-CQU7tiMg.mjs";
5
+ import { n as useBlockApi } from "./context-CBV21-9L.mjs";
6
6
  import { useCallback, useEffect, useReducer, useRef } from "react";
7
7
  //#region ../blocks/src/utils/date-formatting.ts
8
8
  /**
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Nt as toUtcIsoDateTimeString } from "./noop-4XFGzJpT.mjs";
2
+ import { Nt as toUtcIsoDateTimeString } from "./noop-CQU7tiMg.mjs";
3
3
  import { useCallback, useEffect, useState } from "react";
4
4
  //#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
5
5
  const ANCHOR_CLOCK = { kind: "anchor" };
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Mr as err, Nr as ok } from "./schema-BFwQDvJL.mjs";
2
+ import { Nr as err, Pr as ok } from "./schema-BdSglH2X.mjs";
3
3
  import { t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-B3caCnTT.mjs";
4
+ import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-D2LyS_Bi.mjs";
5
5
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
6
6
  import * as React$1 from "react";
7
7
  import { useCallback } from "react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-B3caCnTT.mjs";
2
+ import { c as discountAvailabilityAllowsManualEntry, l as discountAvailabilityHasDiscounts, u as getAutoAppliedDiscountPreview } from "./DemoBookingPortalAccess-D2LyS_Bi.mjs";
3
3
  import { useEffect, useReducer, useRef } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
@@ -1,18 +1,13 @@
1
1
  "use client";
2
- import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
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
3
  import { t as assertNever } from "./src-VIsPY-kw.mjs";
4
- import { Gt as getBlockApiReadStage, Mr as listItemPresentation, Pr as listLookSlot } from "./wizardSteps-kbONzKUv.mjs";
5
- import { Ft as normalizeCsvIds, It as normalizeCsvString, Lt as normalizeOptionalId, Pt as getEventRuntimeFiltersKey } from "./shop.interactive-Cf_kASpd.mjs";
6
- import { r as EventItem } from "./EventItem-CND3mfra.mjs";
7
- import { i as EventCard, n as EmptyState, r as EventCompactRow, t as EventListingFrameView } from "./EventListing.view-BfnOmxYD.mjs";
8
- import { n as useBlockApi } from "./context-Bg0SFWcM.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";
9
9
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
- //#region ../blocks/src/system/runtime/hooks/loadStateError.ts
12
- function toError(error, fallbackMessage) {
13
- return error instanceof Error ? error : new Error(fallbackMessage);
14
- }
15
- //#endregion
16
11
  //#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
17
12
  const EMPTY_EVENT_FILTERS = Object.freeze({
18
13
  categories: [],
@@ -412,7 +407,8 @@ const EventPaginatedListView = ({ filters, emptyState, display, events, loading,
412
407
  const resolvedDisplay = {
413
408
  ...display,
414
409
  state: loading && events.length === 0 ? "loading" : events.length === 0 ? "empty" : "ready",
415
- events
410
+ events,
411
+ allLoaded: !hasMore
416
412
  };
417
413
  return /* @__PURE__ */ jsx(EventListingFrameView, {
418
414
  display: resolvedDisplay,
@@ -516,149 +512,6 @@ function EventListPaginationFooter({ display, loading, error, hasMore, loadMore,
516
512
  })] });
517
513
  }
518
514
  //#endregion
519
- //#region ../blocks/src/system/runtime/hooks/useEventPagination.state.ts
520
- function createInitialEventPaginationLoadState(events, scope) {
521
- return {
522
- kind: "ready",
523
- requestId: 0,
524
- page: {
525
- scope,
526
- events,
527
- hasMore: hasMoreEventPages(events, scope.pageSize)
528
- }
529
- };
530
- }
531
- function eventPaginationLoadReducer(state, action) {
532
- switch (action.type) {
533
- case "started": return {
534
- kind: "loading",
535
- requestId: state.requestId + 1,
536
- operation: action.operation
537
- };
538
- case "succeeded": return state.kind === "loading" && state.requestId === action.requestId ? {
539
- kind: "ready",
540
- requestId: state.requestId,
541
- page: acceptEventPage(state.operation, action.events)
542
- } : state;
543
- case "failed": return state.kind === "loading" && state.requestId === action.requestId ? {
544
- ...state,
545
- kind: "error",
546
- error: action.error
547
- } : state;
548
- case "synced": return {
549
- ...createInitialEventPaginationLoadState(action.events, action.scope),
550
- requestId: state.requestId + 1
551
- };
552
- default: return assertNever(action);
553
- }
554
- }
555
- function eventPageOperationScope(operation) {
556
- switch (operation.kind) {
557
- case "replace": return operation.scope;
558
- case "append": return operation.page.scope;
559
- default: return assertNever(operation);
560
- }
561
- }
562
- function eventPageOperationQuery(operation) {
563
- switch (operation.kind) {
564
- case "replace": return operation.scope.query;
565
- case "append": return operation.query;
566
- default: return assertNever(operation);
567
- }
568
- }
569
- function acceptEventPage(operation, events) {
570
- const scope = eventPageOperationScope(operation);
571
- const hasMore = hasMoreEventPages(events, scope.pageSize);
572
- switch (operation.kind) {
573
- case "replace": return {
574
- scope,
575
- events,
576
- hasMore
577
- };
578
- case "append": return {
579
- scope,
580
- events: mergeEventPaginationEvents(operation.page.events, events),
581
- hasMore
582
- };
583
- default: return assertNever(operation);
584
- }
585
- }
586
- /** Retry consumes the recorded operation. Load more is possible only from an accepted page. */
587
- function planEventPageOperation(state, scope, intent) {
588
- if (scope.query.seriesIds === "") return null;
589
- switch (intent) {
590
- case "replace": return {
591
- kind: "replace",
592
- scope
593
- };
594
- case "retry": return state.kind === "error" && eventPageOperationScope(state.operation).key === scope.key ? state.operation : null;
595
- case "append": {
596
- if (state.kind !== "ready" || state.page.scope.key !== scope.key || !state.page.hasMore) return null;
597
- const cursor = state.page.events.at(-1);
598
- return {
599
- kind: "append",
600
- page: state.page,
601
- query: {
602
- ...scope.query,
603
- afterStartsAt: cursor?.startsAt,
604
- afterId: cursor?.occurrenceId
605
- }
606
- };
607
- }
608
- default: return assertNever(intent);
609
- }
610
- }
611
- /** A changed scope is pending even before the effect starts its replacement request. */
612
- function getEventPaginationView(state, scope) {
613
- if ((state.kind === "ready" ? state.page.scope : eventPageOperationScope(state.operation)).key !== scope.key) return {
614
- events: [],
615
- loading: true,
616
- error: null,
617
- hasMore: false
618
- };
619
- switch (state.kind) {
620
- case "ready": return {
621
- ...state.page,
622
- loading: false,
623
- error: null
624
- };
625
- case "loading": return {
626
- ...getOperationPage(state.operation),
627
- loading: true,
628
- error: null
629
- };
630
- case "error": return {
631
- ...getOperationPage(state.operation),
632
- loading: false,
633
- error: state.error
634
- };
635
- default: return assertNever(state);
636
- }
637
- }
638
- function getOperationPage(operation) {
639
- switch (operation.kind) {
640
- case "replace": return {
641
- events: [],
642
- hasMore: false
643
- };
644
- case "append": return operation.page;
645
- default: return assertNever(operation);
646
- }
647
- }
648
- function getEventIdentity(event) {
649
- return event.occurrenceId || event.id;
650
- }
651
- function mergeEventPaginationEvents(existingEvents, newEvents) {
652
- const existingIds = new Set(existingEvents.map(getEventIdentity));
653
- return [...existingEvents, ...newEvents.filter((event) => !existingIds.has(getEventIdentity(event)))];
654
- }
655
- function toEventPaginationLoadError(error) {
656
- return toError(error, "Unknown error");
657
- }
658
- function hasMoreEventPages(events, pageSize) {
659
- return events.length >= pageSize;
660
- }
661
- //#endregion
662
515
  //#region ../blocks/src/system/runtime/hooks/useEventPagination.ts
663
516
  /**
664
517
  * Hook for paginated event loading with "load more" functionality
@@ -810,4 +663,4 @@ function useEventPagination({ initialEvents = [], fetchInitialOnMount = false, i
810
663
  };
811
664
  }
812
665
  //#endregion
813
- export { toError as a, useEventCollectionFilters as i, EventPaginatedListView as n, EventCardClient as r, useEventPagination as t };
666
+ export { useEventCollectionFilters as i, EventPaginatedListView as n, EventCardClient as r, useEventPagination as t };
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { r as ThemedButton } from "./ThemedButton-DclwabI7.mjs";
3
- import { Pr as listLookSlot } from "./wizardSteps-kbONzKUv.mjs";
4
- import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-Cf_kASpd.mjs";
5
- import { r as EventItem, t as CardListCollection } from "./EventItem-CND3mfra.mjs";
2
+ import { C as membershipCardListContent, T as passCardListContent, w as membershipClassesLabel } from "./shop.interactive-BGmkdIAZ.mjs";
3
+ import { Pr as listLookSlot } from "./wizardSteps-DManVJpc.mjs";
4
+ import { r as EventItem, t as CardListCollection } from "./EventItem-dILw2PN_.mjs";
5
+ import { r as ThemedButton } from "./ThemedButton-Cfbo1bfh.mjs";
6
6
  import React from "react";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import { U as formatCurrencyAmount } from "./ThemedButton-DclwabI7.mjs";
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";
3
4
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
4
5
  import { c as assertNever } from "./src-VIsPY-kw.mjs";
5
- import { $r as formatBookingPriceDisplay, Br as CANCELLED_SESSION_STATUS, Dr as resolveEventRegistrationScopedEvents, En as formatTotalCapacity, Hr as orderedLiveRunSessions, On as getEventAvailabilityStatus, Pr as listLookSlot, Ur as resolveWholeSeriesBookingPhase, ai as publicEventPricingType, cn as eventDateOptions, mn as formatEventDateParts, ni as publicEventPricingCurrency, pn as formatEventCompactDateRail, ri as publicEventPricingDisplay, ti as isPublicEventPricingOptionDisplayable, wn as formatEventRemainingPlaces } from "./wizardSteps-kbONzKUv.mjs";
6
- 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-4XFGzJpT.mjs";
7
- import { t as LocationMapActions } from "./LocationMapActions-wlyxASdT.mjs";
8
- import { Bt as CardListContentPart, Xt as formatEventPriceAmount, Yt as formatEventPrice, Zt as formatEventPriceDisplay, _t as formatBookingSchedulePresentation } from "./shop.interactive-Cf_kASpd.mjs";
9
- import { n as resolveEventLinkProps, t as resolveEventCta } from "./cta-HffyM4MA.mjs";
10
- import { n as MapDrawingSvg } from "./MapDrawingSvg-B9oKSitp.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";
11
11
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
12
12
  import "react";
13
13
  import { jsx, jsxs } from "react/jsx-runtime";
@@ -311,7 +311,7 @@ function isValidOccurrence(value) {
311
311
  //#region ../blocks/src/system/runtime/nodes/events/shared/eventCardListContent.ts
312
312
  /** Live offering data only; editorial cards never acquire booking fields. */
313
313
  function eventCardListContent(event, context, buttonText) {
314
- const { content, external } = cardProjectionBase(event, buttonText, context.kind === "offering");
314
+ const { content, external } = cardProjectionBase(event, buttonText, context.kind === "offering", context.kind === "offering" ? context.upcomingDates ?? [] : []);
315
315
  switch (context.kind) {
316
316
  case "event-details": return {
317
317
  ...content,
@@ -330,8 +330,8 @@ function eventCardListContent(event, context, buttonText) {
330
330
  default: return assertNever(context);
331
331
  }
332
332
  }
333
- function cardProjectionBase(event, buttonText, offering) {
334
- const cta = offeringCardCta(event, buttonText, offering);
333
+ function cardProjectionBase(event, buttonText, offering, upcomingDates) {
334
+ const cta = offeringCardCta(event, buttonText, offering, upcomingDates);
335
335
  const places = offeringAvailability(event);
336
336
  return {
337
337
  external: cta.external,
@@ -441,8 +441,8 @@ function offeringFacts(event, places, offering) {
441
441
  }]
442
442
  ];
443
443
  }
444
- function offeringCardCta(event, buttonText, offering) {
445
- return resolveEventCta(event, offering && event.destination.kind === "external" ? void 0 : buttonText);
444
+ function offeringCardCta(event, buttonText, offering, upcomingDates) {
445
+ return resolveDatedSeriesCta(event, upcomingDates, offering && event.destination.kind === "external" ? void 0 : buttonText);
446
446
  }
447
447
  function offeringTypeChips(event, typeLabel) {
448
448
  return event.eventCategory ? [event.eventCategory.name] : typeLabel ? [typeLabel] : [];
@@ -508,26 +508,39 @@ function EventHeader({ selection, presentation, showCost }) {
508
508
  });
509
509
  return /* @__PURE__ */ jsxs("header", {
510
510
  ...listLookSlot(presentation, "frame"),
511
- children: [/* @__PURE__ */ jsxs("div", {
512
- ...listLookSlot(presentation, "copy"),
513
- children: [
514
- part("chips"),
515
- /* @__PURE__ */ jsx("h1", {
516
- ...listLookSlot(presentation, "headline"),
517
- children: item.title
518
- }),
519
- item.text ? /* @__PURE__ */ jsx("p", {
520
- ...listLookSlot(presentation, "lede"),
521
- children: item.text
522
- }) : null,
523
- /* @__PURE__ */ jsx("div", {
524
- "aria-label": "At a glance",
525
- children: part("facts")
526
- }),
527
- part("availability"),
528
- part("action")
529
- ]
530
- }), part("numeral")]
511
+ children: [
512
+ item.media ? /* @__PURE__ */ jsx("figure", {
513
+ ...listLookSlot(presentation, "item-media"),
514
+ children: /* @__PURE__ */ jsx(MediaNodeServer, {
515
+ value: item.media,
516
+ size: ImagePresets.full,
517
+ loading: "eager",
518
+ fetchPriority: "high",
519
+ ...listLookSlot(presentation, "photo")
520
+ })
521
+ }) : null,
522
+ /* @__PURE__ */ jsxs("div", {
523
+ ...listLookSlot(presentation, "copy"),
524
+ children: [
525
+ part("chips"),
526
+ /* @__PURE__ */ jsx("h1", {
527
+ ...listLookSlot(presentation, "headline"),
528
+ children: item.title
529
+ }),
530
+ item.text ? /* @__PURE__ */ jsx("p", {
531
+ ...listLookSlot(presentation, "lede"),
532
+ children: item.text
533
+ }) : null,
534
+ /* @__PURE__ */ jsx("div", {
535
+ "aria-label": "At a glance",
536
+ children: part("facts")
537
+ }),
538
+ part("availability"),
539
+ part("action")
540
+ ]
541
+ }),
542
+ part("numeral")
543
+ ]
531
544
  });
532
545
  }
533
546
  //#endregion