@riverbankcms/sdk 0.182.0 → 0.184.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (231) hide show
  1. package/CHANGELOG.md +79 -0
  2. package/README.md +83 -4
  3. package/dist/_dts/{BlocksIslandsHydrator-Bvw2bUif.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
  4. package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
  5. package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
  6. package/dist/_dts/{client-D6T430bk.d.ts → client-DgTRRtl_.d.ts} +14 -1
  7. package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-DZQJp_ak.d.ts} +9 -16
  8. package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
  9. package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
  10. package/dist/_dts/{index-CciRW_w1.d.ts → index-BECaUNYs.d.ts} +2 -2
  11. package/dist/_dts/{index-CEyYMhLJ.d.ts → index-Cc85KVLW.d.ts} +3 -3
  12. package/dist/_dts/{index-CQrb3Ccc.d.ts → index-Cni4jykw.d.ts} +4 -4
  13. package/dist/_dts/{index-DIU-wL1M.d.ts → index-DxxTQ_0V.d.ts} +2 -2
  14. package/dist/_dts/{index-Cqxis-nv.d.ts → index-W9-7djG3.d.ts} +1 -1
  15. package/dist/_dts/{index-DqPKdeTk.d.ts → index-ukS-Ffem.d.ts} +1 -1
  16. package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
  17. package/dist/_dts/{request-DEwxUSw8.d.ts → request-CZz2BoXJ.d.ts} +89478 -88093
  18. package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-DTwklC_v.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  50. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  52. package/dist/_dts/sdk/src/server.d.ts +5 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +126 -2
  55. package/dist/_dts/{serviceBookingOutline-DtQuFlID.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +16 -8
  56. package/dist/_dts/{types-B3RjeBLV.d.ts → types-Bi7R07RX.d.ts} +45 -4
  57. package/dist/_dts/{types-BvUSGQrw.d.ts → types-CCcQlRBi.d.ts} +22 -12
  58. package/dist/_dts/{types-CkRFtBqd.d.ts → types-Du4aMnWC.d.ts} +13 -15
  59. package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-CjCWVmwe.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +22 -18
  61. package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-C4LcfwyA.mjs} +8 -8
  62. package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +2 -2
  63. package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
  64. package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +25 -8
  65. package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
  66. package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
  67. package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-Ct1B3xI4.mjs} +10 -10
  68. package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DgfNtcgW.mjs} +9 -9
  69. package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
  70. package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-KGKkK19N.mjs} +29 -14
  71. package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
  72. package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
  73. package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
  74. package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-Dth9L00x.mjs} +118 -76
  75. package/dist/client/{Page-sV6BJkXX.mjs → Page-DB5KODiu.mjs} +4491 -1398
  76. package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
  77. package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +3 -3
  78. package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
  79. package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DRyZ8igu.mjs} +7 -7
  80. package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-C4rCsPCt.mjs} +52 -10
  81. package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-CqroimVQ.mjs} +1024 -619
  82. package/dist/client/{accordion-6cuswD_s.mjs → accordion-BQYRP5xV.mjs} +1 -1
  83. package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-B7ckDuOC.mjs} +191 -71
  84. package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-BeD4650p.mjs} +7 -6
  85. package/dist/client/bookings.mjs +5 -5
  86. package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
  87. package/dist/client/buttonParts-C39GC0kz.mjs +1518 -0
  88. package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
  89. package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
  90. package/dist/client/{cart-BYOe7MCh.mjs → cart-DdCenbTy.mjs} +3 -3
  91. package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-BQm06qNw.mjs} +1 -1
  92. package/dist/client/{checkout-Dwd7Di77.mjs → checkout-45wPQULN.mjs} +3 -3
  93. package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
  94. package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
  95. package/dist/client/client.mjs +460 -119
  96. package/dist/client/{constants-DdxFG3Ic.mjs → constants-DXV4KR7l.mjs} +1 -1
  97. package/dist/client/{context-Hi1RuYEM.mjs → context-lCPfX-xe.mjs} +15 -5
  98. package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
  101. package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DlPfn4YG.mjs} +52 -29
  102. package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-CioAdryV.mjs} +4 -4
  103. package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
  104. package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-B3H9ifOC.mjs} +4 -4
  105. package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
  106. package/dist/client/{form-DWnlEVSK.mjs → form-CsqzgC6v.mjs} +3 -3
  107. package/dist/client/{form.client-D7zmeqNI.mjs → form.client-DVDB7hY6.mjs} +5 -5
  108. package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-1q2rzSYt.mjs} +3 -3
  109. package/dist/client/gifting/client.mjs +16 -9
  110. package/dist/client/{gifting-Cn0jidP5.mjs → gifting-BrXQGX-k.mjs} +4 -4
  111. package/dist/client/{gifting.client-DVo1YFLs.mjs → gifting.client--zAjnY5N.mjs} +155 -85
  112. package/dist/client/gifting.interactive-CrwHpUJG.mjs +207 -0
  113. package/dist/client/gifting.parts-CcKdDaQq.mjs +124 -0
  114. package/dist/client/{headerSection-DjQuj_6v.mjs → headerSection-DlcDH4bi.mjs} +2 -2
  115. package/dist/client/{noop-jesvJXEE.mjs → islands-dMh0Oxli.mjs} +16103 -7965
  116. package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-BxA1PsdS.mjs} +6 -6
  117. package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +229 -197
  118. package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
  119. package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
  120. package/dist/client/portal/client.mjs +51 -35
  121. package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
  122. package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DiGibcZI.mjs} +31 -9
  123. package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
  124. package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
  125. package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
  126. package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-D9-fCY6c.mjs} +3 -3
  127. package/dist/client/{productList-BuLemmod.mjs → productList-PJyxXSac.mjs} +3 -3
  128. package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-B8lrKGPw.mjs} +4 -2
  129. package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-CI63JVHW.mjs} +2444 -1078
  130. package/dist/client/rendering/client.mjs +32 -28
  131. package/dist/client/rendering/islands.mjs +1 -1
  132. package/dist/client/rendering.mjs +5 -5
  133. package/dist/client/{richText-coerce-Bnng7JFA.mjs → richText-coerce-Jt9hDHdh.mjs} +2 -2
  134. package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
  135. package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
  136. package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
  137. package/dist/client/{shop-GuMqnDL-.mjs → shop-CbdJlWOw.mjs} +3 -3
  138. package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-BqLbzUUn.mjs} +47 -28
  139. package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
  140. package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +2 -2
  141. package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-0cNErhJT.mjs} +54 -24
  142. package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
  143. package/dist/client/spam-protection.mjs +1 -1
  144. package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
  145. package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-DqI6U1BS.mjs} +11 -8
  146. package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
  147. package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-B0mjVhZr.mjs} +2 -2
  148. package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
  149. package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Ct4A6iR1.mjs} +14 -16
  150. package/dist/client/{view-DOyZc-DF.mjs → view-Cj151w4m.mjs} +24 -9
  151. package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-B3gsXNnb.mjs} +283 -222
  152. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
  153. package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
  154. package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
  155. package/dist/preview-next/client/{PageSectionToolbar-BI3UCdpu.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +952 -138
  156. package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +4774 -2040
  157. package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-BnJ1ughv.mjs} +71 -47
  158. package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-C7qWzAe4.mjs} +72 -40
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +135 -30
  160. package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-CRgbU75r.mjs} +799 -17
  161. package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-B4c6U3ZU.mjs} +11 -1
  162. package/dist/preview-next/client/{previewAssistantSlot-BgiYk3PB.mjs → previewAssistantSlot-DrUoRNu9.mjs} +24203 -9291
  163. package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-CEYp90mM.mjs} +3 -90
  164. package/dist/preview-next/client/runtime.mjs +3 -3
  165. package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
  166. package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-B3PwHw2z.mjs} +46 -11
  167. package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-DrdQ4ier.mjs} +49 -3
  168. package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +2008 -448
  169. package/dist/preview-next/container-responsive.css +469 -2
  170. package/dist/preview-next/editor-chrome.css +23 -2
  171. package/dist/preview-next/keepAlive.mjs +1 -1
  172. package/dist/preview-next/middleware.mjs +1 -1
  173. package/dist/preview-next/{route-contract-BHTBA48n.mjs → route-contract-CwrXkLT3.mjs} +177 -43
  174. package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
  175. package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DvbqYXdK.mjs} +46 -10
  176. package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-CAcf1lHT.mjs} +732 -176
  177. package/dist/server/{accordions-By_0Ykks.mjs → accordions-DjcsqjCK.mjs} +1 -1
  178. package/dist/server/{bindings-DMJH4bvo.mjs → bindings-CFw4M-gZ.mjs} +69 -248
  179. package/dist/server/{client-DrwlRNAH.mjs → client-D0XCgITW.mjs} +488 -119
  180. package/dist/server/config-validation.mjs +1 -1
  181. package/dist/server/config.mjs +2 -2
  182. package/dist/server/{constants-CeMywaiD.mjs → constants-BZduY8jG.mjs} +31 -8
  183. package/dist/server/data/resolveBlockData.mjs +1 -1
  184. package/dist/server/index.mjs +4 -4
  185. package/dist/server/{loadContent-D0prFflT.mjs → loadContent-C-qyB8Tq.mjs} +11 -10
  186. package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-BpKKmi8E.mjs} +3 -3
  187. package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
  188. package/dist/server/manifest.mjs +2 -2
  189. package/dist/server/{navigation-wrcuWmgp.mjs → navigation-DYkuiNXa.mjs} +1 -1
  190. package/dist/server/navigation.mjs +1 -1
  191. package/dist/server/next.mjs +9 -9
  192. package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
  193. package/dist/server/page-converter.mjs +18 -5
  194. package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-DRB7cUZ0.mjs} +674 -298
  195. package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +13 -6
  196. package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-BdQF875z.mjs} +911 -516
  197. package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
  198. package/dist/server/{portal-pG_uhsI2.mjs → portal-BQ8qiQnk.mjs} +22 -2
  199. package/dist/server/portal.mjs +3 -3
  200. package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-B51QZVNe.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-CppDAfJW.mjs} +4 -4
  203. package/dist/server/{registry-Cc88-23f.mjs → registry-Bf4W8Qa7.mjs} +7585 -24378
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +4 -4
  208. package/dist/server/rendering.mjs +10 -10
  209. package/dist/server/{resolveBlockData-OG3KOkig.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
  210. package/dist/server/{expandPalette-ehuW8r2g.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1670 -1346
  211. package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
  212. package/dist/server/{schema-CwfxQjc4.mjs → schema-DGaihVwp.mjs} +300 -29
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/{servicePageContent-BcFuhhD7.mjs → servicePageContent-CRvmreX7.mjs} +40 -16
  215. package/dist/server/theme-bridge.mjs +5 -4
  216. package/dist/server/theme.mjs +2 -2
  217. package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-mcy2E1Yd.mjs} +2 -2
  218. package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-B2qFOUwZ.mjs} +4 -5
  219. package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
  220. package/dist/server/{types-BKaBZFjD.mjs → types-C_S0pWbR.mjs} +487 -9
  221. package/dist/server/{validation-BovmbS8N.mjs → validation-CUtNT_EZ.mjs} +14 -10
  222. package/dist/server/{version-hws4hgyX.mjs → version-DebJQ4zn.mjs} +1 -1
  223. package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
  224. package/dist/styles/index.css +2987 -168
  225. package/package.json +1 -1
  226. package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
  227. package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
  228. package/dist/client/types-BEaKfam_.mjs +0 -778
  229. package/dist/server/customCss-C9kgPHvr.mjs +0 -247
  230. package/dist/server/lookMediaFrame-H0fi4bJk.mjs +0 -2701
  231. package/dist/server/media-gvfIw3z8.mjs +0 -216
@@ -1,11 +1,11 @@
1
1
  "use client";
2
- import { Sn as formatEventPrice } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
- import { bn as parseBookingLocalDate, nn as formatDate } from "./src-CmXh3JWs.mjs";
4
- import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Qo as formatTime, _o as resolveEventCta, do as eventPlaceName, es as resolveEventTimeZone, po as formatEventLocation, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B952ify5.mjs";
5
- import { i as listLookSlot, n as listItemPresentation } from "./noop-jesvJXEE.mjs";
6
- import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { Cn as formatEventPrice } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { bn as parseBookingLocalDate, nn as formatDate } from "./src-Do_s2lqH.mjs";
4
+ import { $o as groupEventsByDate, Ao as isEventFull, Bo as eventDateOptions, Oo as getEventAvailabilityStatus, Qo as formatTime, _o as resolveEventCta, do as eventPlaceName, es as resolveEventTimeZone, po as formatEventLocation, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B3gsXNnb.mjs";
5
+ import { d as listLookSlot, l as listItemPresentation } from "./islands-dMh0Oxli.mjs";
6
+ import { n as ThemedButton, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
7
7
  import { d as formatDateKey, v as isToday } from "./src-uwCpbHXG.mjs";
8
- import { l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
8
+ import { l as eventDisplayTitle, m as formatEventTeacherLine, r as EventItem, u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
9
9
  import "react";
10
10
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
11
11
  //#region ../core/src/duration.ts
@@ -79,10 +79,12 @@ function CalendarDayHeaders({ dayNames }) {
79
79
  }
80
80
  //#endregion
81
81
  //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
82
- function MonthEvent({ event, timeZone, locale, presentation }) {
82
+ function MonthEvent({ event, timeZone, locale, presentation, showCapacity }) {
83
+ const places = showCapacity ? formatEventRemainingPlaces(event, { full: "Sold out" }) : null;
83
84
  return /* @__PURE__ */ jsxs("a", {
84
85
  ...resolveEventPageLink(event),
85
86
  ...listLookSlot(presentation, "item"),
87
+ "data-availability": monthEventAvailability(event),
86
88
  children: [
87
89
  /* @__PURE__ */ jsx("span", {
88
90
  ...listLookSlot(presentation, "time"),
@@ -98,10 +100,23 @@ function MonthEvent({ event, timeZone, locale, presentation }) {
98
100
  /* @__PURE__ */ jsx("span", {
99
101
  ...listLookSlot(presentation, "what"),
100
102
  children: eventDisplayTitleText(event)
101
- })
103
+ }),
104
+ places ? /* @__PURE__ */ jsxs(Fragment, { children: [" ", /* @__PURE__ */ jsx("span", {
105
+ ...listLookSlot(presentation, "places"),
106
+ children: places
107
+ })] }) : null
102
108
  ]
103
109
  });
104
110
  }
111
+ /** The same three states a list row carries, so a skin marks a full session the same way in both. */
112
+ function monthEventAvailability(event) {
113
+ const availability = getEventAvailabilityStatus(event);
114
+ return availability.isFull ? "full" : availability.status === "filling" ? "low" : "available";
115
+ }
116
+ /** A day before today, by the calendar's own today, so the server and the client agree. */
117
+ function isPastDay(day, today) {
118
+ return formatDateKey(day) < formatDateKey(today);
119
+ }
105
120
  function dateLabel(key, timeZone, date = "short") {
106
121
  return formatDate({
107
122
  kind: "civil",
@@ -122,6 +137,7 @@ function MonthDay(props) {
122
137
  ...listLookSlot(selection, "date"),
123
138
  "data-current": String(selected),
124
139
  "data-today": String(day.isToday),
140
+ "data-past": String(isPastDay(day.date, selection.today)),
125
141
  "data-other-month": String(!day.isCurrentMonth),
126
142
  children: [selection.arrangement === "month-day" ? /* @__PURE__ */ jsx("button", {
127
143
  type: "button",
@@ -134,6 +150,7 @@ function MonthDay(props) {
134
150
  ...listLookSlot(selection, "date-label"),
135
151
  children: day.date.day
136
152
  }), selection.arrangement === "month-grid" ? /* @__PURE__ */ jsxs(Fragment, { children: [day.visibleEntries.map(({ event, timeZone }, index, entries) => /* @__PURE__ */ jsx(MonthEvent, {
153
+ showCapacity: selection.showCapacity,
137
154
  presentation: listItemPresentation(selection, index, entries.length),
138
155
  event,
139
156
  timeZone,
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { x as clsx } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { O as clsx } from "./ThemedButton-C4rCsPCt.mjs";
3
3
  import React from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/CheckboxChoice.tsx
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
3
- import { ao as leavePage, mr as isEmailAddress } from "./wizardSteps-B952ify5.mjs";
4
- import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-ByyVZfVq.mjs";
5
- import { i as BlockApiError, n as useBlockApi } from "./context-Hi1RuYEM.mjs";
6
- import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
7
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-BAL5UIDG.mjs";
3
+ import { ao as leavePage, mr as isEmailAddress } from "./wizardSteps-B3gsXNnb.mjs";
4
+ import { t as CUSTOMER_PORTAL_PATH } from "./portalRoutes-DiGibcZI.mjs";
5
+ import { i as BlockApiError, n as useBlockApi } from "./context-lCPfX-xe.mjs";
6
+ import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
7
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink } from "./demoPortalMagicLink-Ce3Gyin_.mjs";
8
8
  import React, { useCallback, useEffect, useId, useRef, useState } from "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region ../blocks/src/system/runtime/api/types/discounts.ts
@@ -264,6 +264,7 @@ function planDirectShopCheckoutRequest(input) {
264
264
  customerEmail: contact.value.email,
265
265
  customerName: contact.value.name,
266
266
  ...discountCode ? { discountCode } : {},
267
+ ...!discountCode && input.form.quotedAutomaticDiscountCode ? { quotedAutomaticDiscountCode: input.form.quotedAutomaticDiscountCode } : {},
267
268
  successUrl: input.successUrl,
268
269
  cancelUrl: input.cancelUrl,
269
270
  ...input.confirmDuplicate ? { confirmDuplicate: true } : {}
@@ -299,6 +300,7 @@ function planUnifiedCheckoutRequest(input) {
299
300
  items: buildUnifiedCheckoutItems(input.checkout),
300
301
  customer: contact.value,
301
302
  ...discountCode ? { discountCode } : {},
303
+ ...!discountCode && input.form.quotedAutomaticDiscountCode ? { quotedAutomaticDiscountCode: input.form.quotedAutomaticDiscountCode } : {},
302
304
  successUrl: input.successUrl,
303
305
  cancelUrl: input.cancelUrl
304
306
  });
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { Ot as buildEventRuntimeFilters, an as buildEventListWeek, d as buildEventCalendarListingRender, on as eventListWeekDays } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
- import { g as resolveCalendarReadProfile } from "./src-CmXh3JWs.mjs";
4
- import { $o as groupEventsByDate, qo as formatEventHourLabel } from "./wizardSteps-B952ify5.mjs";
5
- import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-DPUD6wjy.mjs";
6
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-GA-hn1qM.mjs";
7
- import { n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { d as buildEventCalendarListingRender, kt as buildEventRuntimeFilters, on as buildEventListWeek, sn as eventListWeekDays } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { g as resolveCalendarReadProfile } from "./src-Do_s2lqH.mjs";
4
+ import { $o as groupEventsByDate, qo as formatEventHourLabel } from "./wizardSteps-B3gsXNnb.mjs";
5
+ import { f as resolveMonthSelectedDay, i as WeekAgendaView, r as CalendarLoadFailure, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-ZfrUiiiI.mjs";
6
+ import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-DqI6U1BS.mjs";
7
+ import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
8
8
  import { d as formatDateKey, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
9
- import { u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
10
- import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-C1jEZBN9.mjs";
11
- import { i as useEventCollectionFilters } from "./useEventPagination-xX8n_Tuu.mjs";
12
- import { n as EventListingController } from "./EventListing.client-BuH5kKA3.mjs";
9
+ import { u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
10
+ import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-DgfNtcgW.mjs";
11
+ import { i as useEventCollectionFilters } from "./useEventPagination-Ct4A6iR1.mjs";
12
+ import { n as EventListingController } from "./EventListing.client-xFKRDLwC.mjs";
13
13
  import { useEffect, useMemo, useState } from "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import { Kt as toError, Ot as buildEventRuntimeFilters, kt as getEventRuntimeFiltersKey, s as eventListingBlockRuntime } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
- import { Ft as calendarMonthDate, d as calendarQueryKey, f as calendarWindowBounds, h as planCalendarMonthRanges, l as calendarMonthKey, nn as formatDate, p as calendarWindowMonths$1, u as calendarPageResponseError, yn as getLocalScheduleDate } from "./src-CmXh3JWs.mjs";
4
- import { $o as groupEventsByDate, Bo as eventDateOptions, Lo as buildCalendarViewport, Qo as formatTime, Ro as eventCalendarWeekStart, no as getBlockApiReadStage } from "./wizardSteps-B952ify5.mjs";
5
- import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-DPUD6wjy.mjs";
6
- import { n as useBlockApi } from "./context-Hi1RuYEM.mjs";
7
- import { i as listLookSlot } from "./noop-jesvJXEE.mjs";
8
- import { n as ThemedButton, x as clsx } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { At as getEventRuntimeFiltersKey, kt as buildEventRuntimeFilters, qt as toError, s as eventListingBlockRuntime } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { Ft as calendarMonthDate, d as calendarQueryKey, f as calendarWindowBounds, h as planCalendarMonthRanges, l as calendarMonthKey, nn as formatDate, p as calendarWindowMonths$1, u as calendarPageResponseError, yn as getLocalScheduleDate } from "./src-Do_s2lqH.mjs";
4
+ import { $o as groupEventsByDate, Bo as eventDateOptions, Lo as buildCalendarViewport, Qo as formatTime, Ro as eventCalendarWeekStart, no as getBlockApiReadStage } from "./wizardSteps-B3gsXNnb.mjs";
5
+ import { a as AgendaEventCard, c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, r as CalendarLoadFailure, s as combinedClassName, t as CalendarNavigationChevron, u as CalendarDayHeaders } from "./CalendarNavigationChevron-ZfrUiiiI.mjs";
6
+ import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
7
+ import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
8
+ import { O as clsx, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
9
9
  import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-uwCpbHXG.mjs";
10
- import { u as eventDisplayTitleText } from "./EventItem-Bb0ppG2N.mjs";
10
+ import { u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
11
11
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
12
12
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
13
- import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-xX8n_Tuu.mjs";
13
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Ct4A6iR1.mjs";
14
14
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
15
15
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
16
16
  //#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { b as SpinnerNode, n as ThemedButton } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { D as SpinnerNode, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
3
3
  import { useEffect, useRef, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region \0rolldown/runtime.js
@@ -1,9 +1,9 @@
1
1
  "use client";
2
- import { $t as resolveCardListSchedule, Sn as formatEventPrice, Xt as CardListContentPart, Zt as CardListLeadDate, en as selectCardListPresentation, tn as EventQuickFacts } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
- import { Bo as eventDateOptions, Go as formatEventCompactDateRail, Oo as getEventAvailabilityStatus, Qs as orderedLiveRunSessions, Xo as formatEventTimeRange, Zo as formatEventWeekdayTime, _o as resolveEventCta, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B952ify5.mjs";
4
- import { i as listLookSlot, n as listItemPresentation } from "./noop-jesvJXEE.mjs";
5
- import { F as resolveOnColorForThemeToken, L as resolveTokenOrCssColorValue, P as isCssColorLiteral, it as pickBlackOrWhiteTextColor } from "./accessibleSurfaces-BogaGutk.mjs";
6
- import { f as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
2
+ import { Cn as formatEventPrice, Qt as CardListLeadDate, Zt as CardListContentPart, en as resolveCardListSchedule, nn as EventQuickFacts, tn as selectCardListPresentation } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { Bo as eventDateOptions, Go as formatEventCompactDateRail, Oo as getEventAvailabilityStatus, Xo as formatEventTimeRange, Zo as formatEventWeekdayTime, _o as resolveEventCta, ec as orderedLiveRunSessions, vo as resolveEventPageLink, wo as formatEventRemainingPlaces } from "./wizardSteps-B3gsXNnb.mjs";
4
+ import { d as listLookSlot, l as listItemPresentation } from "./islands-dMh0Oxli.mjs";
5
+ import { F as resolveOnColorForThemeToken, L as resolveTokenOrCssColorValue, P as isCssColorLiteral, et as pickBlackOrWhiteTextColor } from "./accessibleSurfaces-CqroimVQ.mjs";
6
+ import { p as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
7
7
  import React from "react";
8
8
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
9
9
  //#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
@@ -257,7 +257,7 @@ function eventItemFacts(props) {
257
257
  time,
258
258
  price,
259
259
  link: resolveEventPageLink(props.event),
260
- meta: eventItemMeta(props, {
260
+ metaParts: eventItemMetaParts(props, {
261
261
  time,
262
262
  price
263
263
  }),
@@ -272,7 +272,7 @@ function eventItemFacts(props) {
272
272
  };
273
273
  }
274
274
  /** Rows with a rail keep pricing in the details and time in the action rail. */
275
- function eventItemMeta(props, formatted) {
275
+ function eventItemMetaParts(props, formatted) {
276
276
  const parts = props.parts ?? eventItemParts[props.arrangement];
277
277
  const venue = props.showVenue !== false ? props.event.venue?.name : null;
278
278
  const teacher = formatEventTeacherLine(props.event);
@@ -287,8 +287,9 @@ function eventItemMeta(props, formatted) {
287
287
  time,
288
288
  teacher,
289
289
  venue
290
- ]).filter(Boolean).join(" · ");
290
+ ]).filter((part) => Boolean(part));
291
291
  }
292
+ const META_SEPARATOR = " · ";
292
293
  /**
293
294
  * Keep one RSC component boundary per item. Re-forwarding shared presentation
294
295
  * props through layout/part components multiplies React's development debug
@@ -422,20 +423,34 @@ function renderEventItemContentPart({ part, props, facts }) {
422
423
  case "action": return renderEventItemAction(props, facts);
423
424
  }
424
425
  }
426
+ /**
427
+ * Without the part slots the line is one run of text, as it always was. With them, each part and each
428
+ * separator is an element, so a skin can put a part on its own line or drop a separator that would dangle.
429
+ */
425
430
  function renderEventItemMeta({ props, facts }) {
426
431
  const places = (props.parts ?? eventItemParts[props.arrangement]).includes("places") ? null : facts.places;
427
- return facts.meta || places ? /* @__PURE__ */ jsxs("p", {
432
+ const { metaParts } = facts;
433
+ if (metaParts.length === 0 && !places) return null;
434
+ const slotted = props.lookSlots?.separator !== void 0;
435
+ const separator = (key) => slotted ? /* @__PURE__ */ jsx("span", {
436
+ ...listLookSlot(props, "separator"),
437
+ children: META_SEPARATOR
438
+ }, key) : META_SEPARATOR;
439
+ const line = slotted ? metaParts.map((part, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [index > 0 ? separator(`separator-${index}`) : null, /* @__PURE__ */ jsx("span", {
440
+ ...listLookSlot(props, "meta-part"),
441
+ children: part
442
+ })] }, `part-${index}`)) : metaParts.join(META_SEPARATOR);
443
+ return /* @__PURE__ */ jsxs("p", {
428
444
  ...listLookSlot(props, "item-meta"),
429
445
  children: [
430
446
  facts.venueIcon ? /* @__PURE__ */ jsx(MapPinIcon, {}) : null,
431
- facts.meta,
432
- facts.meta && places ? " · " : null,
433
- places ? /* @__PURE__ */ jsx("span", {
447
+ line,
448
+ places ? /* @__PURE__ */ jsxs(Fragment, { children: [metaParts.length > 0 ? separator("separator-places") : null, /* @__PURE__ */ jsx("span", {
434
449
  "data-event-places": true,
435
450
  children: places
436
- }) : null
451
+ })] }) : null
437
452
  ]
438
- }) : null;
453
+ });
439
454
  }
440
455
  function renderEventItemImage(props, link) {
441
456
  return /* @__PURE__ */ jsx(CardListContentPart, {
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { i as listLookSlot } from "./noop-jesvJXEE.mjs";
2
+ import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
3
3
  import "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventListWeekNavigation.tsx
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Ot as buildEventRuntimeFilters } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-DMryCaNV.mjs";
4
- import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-xX8n_Tuu.mjs";
2
+ import { kt as buildEventRuntimeFilters } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-Ba9ezxuC.mjs";
4
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, t as useEventPagination } from "./useEventPagination-Ct4A6iR1.mjs";
5
5
  import { useMemo } from "react";
6
6
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
7
7
  //#region ../blocks/src/system/runtime/nodes/events/EventListing.client.tsx
@@ -1,10 +1,10 @@
1
1
  "use client";
2
- import { Sn as formatEventPrice, cn as groupEventsByWeek, ln as weekColumnDays, rn as MediaNodeServer, tn as EventQuickFacts } from "./newsletter-form.interactive-DVt3enLr.mjs";
3
- import { $o as groupEventsByDate, Bo as eventDateOptions, Go as formatEventCompactDateRail, Jo as formatEventNextDateFact, Uo as formatDate, Vo as eventLocalDateKey, Xo as formatEventTimeRange, _o as resolveEventCta, fo as eventVenuePlace, go as resolveEventCardBooking, ts as ImagePresets, uc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, vo as resolveEventPageLink } from "./wizardSteps-B952ify5.mjs";
4
- import { i as listLookSlot, n as listItemPresentation } from "./noop-jesvJXEE.mjs";
5
- import { r as boxStyleClassNames } from "./boxStyleClassNames-BFuqZCfz.mjs";
6
- import { f as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-PFOhXktM.mjs";
7
- import { c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-Bb0ppG2N.mjs";
2
+ import { Cn as formatEventPrice, in as MediaNodeServer, ln as groupEventsByWeek, nn as EventQuickFacts, un as weekColumnDays } from "./newsletter-form.interactive-D0iRg7p2.mjs";
3
+ import { $o as groupEventsByDate, Bo as eventDateOptions, Go as formatEventCompactDateRail, Jo as formatEventNextDateFact, Uo as formatDate, Vo as eventLocalDateKey, Xo as formatEventTimeRange, _o as resolveEventCta, fc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, fo as eventVenuePlace, go as resolveEventCardBooking, ts as ImagePresets, vo as resolveEventPageLink } from "./wizardSteps-B3gsXNnb.mjs";
4
+ import { d as listLookSlot, l as listItemPresentation } from "./islands-dMh0Oxli.mjs";
5
+ import { r as boxStyleClassNames } from "./boxStyleClassNames-CA7FirMH.mjs";
6
+ import { p as ClockIcon, r as ThemedButtonLink } from "./ThemedButton-C4rCsPCt.mjs";
7
+ import { c as MapPinIcon, d as formatCourseDatesAfter, f as formatCourseSessions, l as eventDisplayTitle, m as formatEventTeacherLine, o as eventCategoryBadge, r as EventItem, s as CalendarIcon } from "./EventItem-KGKkK19N.mjs";
8
8
  import "react";
9
9
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
10
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCard.tsx
@@ -474,6 +474,83 @@ const EmptyState = ({ message = "No upcoming events scheduled.", className, hasA
474
474
  });
475
475
  };
476
476
  //#endregion
477
+ //#region ../blocks/src/system/blocks/events/eventFilterChoices.ts
478
+ /**
479
+ * When the calendar's filters have something to do, decided once. Two
480
+ * questions, with different answers:
481
+ *
482
+ * - A visitor's menu needs a choice: more than one host, venue or category
483
+ * with upcoming events. The page's menus (`useEventFilters`) and the
484
+ * settings that switch them on both read `filterOffersChoice`.
485
+ * - A filter the owner fixes ("Only show one venue") needs to narrow what's
486
+ * shown: several to choose from, or one that some upcoming events don't
487
+ * have, such as a studio beside online classes. A solo teacher who hosts
488
+ * everything is never asked to pick themselves.
489
+ *
490
+ * The page counts what's in this block; the form reads the whole site,
491
+ * which never has less. So where the site can't fill a menu, no block can.
492
+ */
493
+ function filterOffersChoice(count) {
494
+ return count > 1;
495
+ }
496
+ /** The category menu: "auto" waits for more than one category with events; "always" settles for one. */
497
+ function categoryMenuShows(setting, count) {
498
+ if (setting === "never") return false;
499
+ return setting === "always" ? count > 0 : filterOffersChoice(count);
500
+ }
501
+ /** What the page's menus can offer: a filter option counts once it has upcoming events. */
502
+ function hasUpcomingEvents(option) {
503
+ return option.upcomingCount > 0;
504
+ }
505
+ /** Whether fixing the calendar to one value would leave some upcoming events out. */
506
+ function fixedFilterNarrows(spread) {
507
+ return spread === "several" || spread === "one-for-some";
508
+ }
509
+ const spreads = [
510
+ "none",
511
+ "one-for-all",
512
+ "one-for-some",
513
+ "several"
514
+ ];
515
+ /** How many options a menu would hold for each spread. */
516
+ const menuOptions = {
517
+ "none": 0,
518
+ "one-for-all": 1,
519
+ "one-for-some": 1,
520
+ "several": 2
521
+ };
522
+ /** A fact condition written out from a rule: it holds for each spread the rule accepts. An unread fact leaves it unknown, so the field stays. */
523
+ function factCondition(fact, accepts) {
524
+ return { anyOf: spreads.filter(accepts).map((is) => ({
525
+ fact,
526
+ is
527
+ })) };
528
+ }
529
+ /** A fixed filter also stays while it holds a choice, so one still narrowing the page can always be seen and cleared. */
530
+ function fixedFilter(fact, field) {
531
+ return { anyOf: [factCondition(fact, fixedFilterNarrows), {
532
+ field,
533
+ hasValue: true
534
+ }] };
535
+ }
536
+ const hostMenu = factCondition("eventFilters.hosts", (spread) => filterOffersChoice(menuOptions[spread]));
537
+ const venueMenu = factCondition("eventFilters.venues", (spread) => filterOffersChoice(menuOptions[spread]));
538
+ const categoryMenu = factCondition("eventFilters.categories", (spread) => categoryMenuShows("always", menuOptions[spread]));
539
+ const eventFilterConditions = {
540
+ showStaffFilter: hostMenu,
541
+ showVenueFilter: venueMenu,
542
+ showCategoryFilter: categoryMenu,
543
+ /** "Show filters" with no menu that could appear has nothing to switch on. */
544
+ showFilters: { anyOf: [
545
+ hostMenu,
546
+ venueMenu,
547
+ categoryMenu
548
+ ] },
549
+ filterStaffMemberId: fixedFilter("eventFilters.hosts", "filterStaffMemberId"),
550
+ filterVenueId: fixedFilter("eventFilters.venues", "filterVenueId"),
551
+ filterCategoryIds: fixedFilter("eventFilters.categories", "filterCategoryIds")
552
+ };
553
+ //#endregion
477
554
  //#region ../blocks/src/system/runtime/nodes/events/EventListing.view.tsx
478
555
  function EventListingFrameView(props) {
479
556
  const { display, filters, emptyState, renderEventCard } = props;
@@ -735,4 +812,4 @@ function DaySchedule({ display }) {
735
812
  });
736
813
  }
737
814
  //#endregion
738
- export { EventCard as a, EventCompactRow as i, eventListSlotParents as n, EmptyState as r, EventListingFrameView as t };
815
+ export { filterOffersChoice as a, EventCompactRow as c, eventFilterConditions as i, EventCard as l, eventListSlotParents as n, hasUpcomingEvents as o, categoryMenuShows as r, EmptyState as s, EventListingFrameView as t };