@riverbankcms/sdk 0.166.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 (195) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
  4. package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bs3WxFgr.d.ts} +8 -8
  5. package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +2 -2
  6. package/dist/_dts/{client-D4BXQEZc.d.ts → client-CwsI23pj.d.ts} +9 -1
  7. package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-CAeP_-cV.d.ts} +2 -2
  8. package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
  9. package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
  11. package/dist/_dts/{index-ahxQCUc7.d.ts → index-5_jf52sZ.d.ts} +2 -2
  12. package/dist/_dts/{index-Bmboeb49.d.ts → index-C20yUyob.d.ts} +1 -1
  13. package/dist/_dts/{index-DdcwPqQN.d.ts → index-CS6b1B-c.d.ts} +4 -4
  14. package/dist/_dts/{index-wbBZ0awa.d.ts → index-ChpjHK0U.d.ts} +498 -74
  15. package/dist/_dts/{index-kQ5xkM6X.d.ts → index-D7EbliE3.d.ts} +1 -1
  16. package/dist/_dts/{index--qflsCiy.d.ts → index-DeHDwMfu.d.ts} +3 -3
  17. package/dist/_dts/{index-mMMvLLAJ.d.ts → index-RugyUnqR.d.ts} +207 -11
  18. package/dist/_dts/{index-BgJ2aU5c.d.ts → index-bDln38Hm.d.ts} +2 -2
  19. package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-CTqcL7CS.d.ts} +7 -7
  20. package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-C3s9WMPs.d.ts} +5 -5
  21. package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-JPwgRxwh.d.ts} +2 -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 +7 -7
  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 +2 -2
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  30. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  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 +7 -7
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  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 +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 +8 -5
  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 +5 -5
  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 +1 -1
  55. package/dist/_dts/{types-DuiHLiPo.d.ts → types-BlaCuPLr.d.ts} +2 -2
  56. package/dist/_dts/{types-BX3Y-EW3.d.ts → types-CwtTcaQP.d.ts} +3 -3
  57. package/dist/_dts/{types-DF54stxv.d.ts → types-D-WElMCy.d.ts} +7 -7
  58. package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +17 -17
  60. package/dist/client/{BookingMailingListNote-DOWOZYlK.mjs → BookingMailingListNote-CCVXX1LN.mjs} +1 -1
  61. package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +165 -16
  62. package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +3 -3
  63. package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-DAeQPV76.mjs} +10 -29
  64. package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-Bus9R0bj.mjs} +136 -60
  65. package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-DPBLjGwj.mjs} +53 -6
  66. package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
  67. package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
  68. package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-CEumpN7i.mjs} +13 -40
  69. package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +13 -8
  70. package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-BVO-qx4q.mjs} +1 -1
  71. package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
  72. package/dist/client/{Page-DNDZLRlB.mjs → Page-D4_H_u9V.mjs} +22658 -21604
  73. package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-Dptantmg.mjs} +1 -1
  74. package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-BxEGsKUx.mjs} +18 -18
  75. package/dist/client/{accordion-uVqNowRX.mjs → accordion--EUHmEGa.mjs} +1 -1
  76. package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-BCXwOnhc.mjs} +9 -9
  77. package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-sHHcdism.mjs} +4 -4
  78. package/dist/client/bookings.mjs +5 -5
  79. package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-Cp9xPBFZ.mjs} +1 -1
  80. package/dist/client/{cart-DCxjE3Is.mjs → cart-CCZZC-Lq.mjs} +3 -3
  81. package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-B7JfA19I.mjs} +1 -1
  82. package/dist/client/{checkout-B0EKbeVv.mjs → checkout-CipmYL4A.mjs} +3 -3
  83. package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DraalWdH.mjs} +1 -1
  84. package/dist/client/client.mjs +89 -6
  85. package/dist/client/{context-n6IZigd3.mjs → context-Cv3QHjAF.mjs} +4 -1
  86. package/dist/client/{cta-CDeAwYoN.mjs → cta-P2vJVTEn.mjs} +1 -1
  87. package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
  88. package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
  89. package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +3 -3
  90. package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-dLmyuPap.mjs} +1 -1
  91. package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-BEhC2_-Y.mjs} +11 -14
  92. package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
  93. package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
  94. package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
  95. package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-Bih-BgQM.mjs} +4 -4
  96. package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
  97. package/dist/client/{form-BeNQiZ2V.mjs → form-Bw1uuiUs.mjs} +3 -3
  98. package/dist/client/{form.client-BFdCKlp7.mjs → form.client-pZ-9gN33.mjs} +3 -3
  99. package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-PXlu6XQO.mjs} +1 -1
  100. package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DI3DP48e.mjs} +1 -1
  101. package/dist/client/gifting/client.mjs +2 -2
  102. package/dist/client/{headerSection-CalNAShx.mjs → headerSection-BpJYUMd6.mjs} +2 -2
  103. package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-CSoP0cGR.mjs} +4 -4
  104. package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +1 -1
  105. package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
  106. package/dist/client/{noop-D-RG9eR3.mjs → noop-ByVtIWf4.mjs} +28 -4
  107. package/dist/client/portal/client.mjs +8 -8
  108. package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
  109. package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DEad-Pma.mjs} +1 -1
  110. package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-G1SMXG13.mjs} +3 -3
  111. package/dist/client/{productList-DjGrjOwD.mjs → productList-B21TGdpT.mjs} +3 -3
  112. package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-B3vIBkex.mjs} +3 -4
  113. package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-B8aQhJpO.mjs} +205 -178
  114. package/dist/client/rendering/client.mjs +25 -25
  115. package/dist/client/rendering/islands.mjs +1 -1
  116. package/dist/client/rendering.mjs +5 -5
  117. package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
  118. package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
  119. package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-B2UmrQg_.mjs} +9 -9
  120. package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
  121. package/dist/client/{shop-DLufMauE.mjs → shop-mqyoOvOK.mjs} +3 -3
  122. package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-BH-BBnA9.mjs} +10 -10
  123. package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-mdM3UMWG.mjs} +30 -6
  124. package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-CXF5wxdg.mjs} +2 -2
  125. package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
  126. package/dist/client/{site-styles-DELkUk9s.mjs → site-styles-D56hT2u1.mjs} +1637 -406
  127. package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-CrC80EOG.mjs} +11 -156
  128. package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-C4LOaI_Z.mjs} +2 -2
  129. package/dist/client/{useBookingNowIso-Da-f9iHw.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
  130. package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-6Q0nToVA.mjs} +1 -1
  131. package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
  132. package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-Bcs89BR5.mjs} +5 -5
  133. package/dist/client/{view-DAVEoe8A.mjs → view-BN-fxyfq.mjs} +16 -11
  134. package/dist/client/{view-8w4GA8rf.mjs → view-Dh2tGoS0.mjs} +3 -3
  135. package/dist/client/{wizardSteps-DNpajrAH.mjs → wizardSteps-DtkhwKXK.mjs} +17 -10
  136. package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-D4VjPs-r.mjs} +3 -3
  137. package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-Ckr2zk_L.mjs} +309 -111
  138. package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-KOZgw_gS.mjs} +5 -5
  139. package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-CyO2V4kB.mjs} +58 -8
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-DW3uKvNF.mjs} +7 -7
  141. package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-CU9VD-7O.mjs} +17439 -16381
  142. package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-DBi-WybM.mjs} +2014 -381
  143. package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-BhkUJst9.mjs} +1 -1
  144. package/dist/preview-next/client/runtime.mjs +3 -3
  145. package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-BjCb6lOn.mjs} +2 -2
  146. package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-CKxTaC3j.mjs} +1 -1
  147. package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-B7MLTjBX.mjs} +1 -92
  148. package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-BTUc0g9X.mjs} +1 -1
  149. package/dist/preview-next/keepAlive.mjs +1 -1
  150. package/dist/preview-next/middleware.mjs +1 -1
  151. package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-Bv3nkdpV.mjs} +83 -0
  152. package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-4fMqzltx.mjs} +4 -4
  153. package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-C72VC_lR.mjs} +756 -64
  154. package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-B_Y_dA20.mjs} +300 -97
  155. package/dist/server/{bindings-DjdUq9FR.mjs → bindings-ConMYJ2U.mjs} +1 -1
  156. package/dist/server/{client-07UeMDzA.mjs → client-Cot-H5fQ.mjs} +88 -5
  157. package/dist/server/config-validation.mjs +1 -1
  158. package/dist/server/config.mjs +1 -1
  159. package/dist/server/data/resolveBlockData.mjs +1 -1
  160. package/dist/server/index.mjs +2 -2
  161. package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-BkaWYEwt.mjs} +4 -4
  162. package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-kviUdH8c.mjs} +2 -2
  163. package/dist/server/metadata.mjs +5 -1
  164. package/dist/server/next/revalidate.mjs +9 -4
  165. package/dist/server/next.mjs +6 -6
  166. package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BTnS09GS.mjs} +2 -2
  167. package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-itXZCXs7.mjs} +1 -1
  168. package/dist/server/page-converter.mjs +1 -1
  169. package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-CDyn7iLy.mjs} +132 -25
  170. package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +2 -2
  171. package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Q_Vij87H.mjs} +11752 -11549
  172. package/dist/server/{parseThemeForPersistence-CJMrEkze.mjs → parseThemeForPersistence-CDrF51tJ.mjs} +2 -2
  173. package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-DOG4MkOy.mjs} +1 -1
  174. package/dist/server/prebuild.mjs +1 -1
  175. package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-DlprLLsc.mjs} +3 -33
  176. package/dist/server/{registry-TFPJdGQi.mjs → registry-BPFcpn6k.mjs} +1326 -181
  177. package/dist/server/rendering/components/pageShared.mjs +1 -1
  178. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  179. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  180. package/dist/server/rendering/server.mjs +3 -3
  181. package/dist/server/rendering.mjs +7 -7
  182. package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-BHvfGD4y.mjs} +1 -1
  183. package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-OXFRGn5M.mjs} +15 -5
  184. package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
  185. package/dist/server/{schema-C2PqHrMo.mjs → schema-DEizlyi4.mjs} +4 -3
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/theme-bridge.mjs +2 -2
  188. package/dist/server/theme.mjs +2 -2
  189. package/dist/server/{validation-DIBFZeMB.mjs → validation-bl6WcAi_.mjs} +6 -6
  190. package/dist/server/{version-DZWZM1H6.mjs → version-BLXZ31S-.mjs} +1 -1
  191. package/dist/styles/index.css +696 -25
  192. package/package.json +1 -1
  193. package/dist/client/events-BmqPeeQm.mjs +0 -20
  194. package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
  195. package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
@@ -1,23 +1,15 @@
1
1
  "use client";
2
- import { an as formatEventPrice } from "./shop.interactive-BM0NRsFQ.mjs";
3
- import { Cn as formatEventRemainingPlaces, _n as formatTime, kn as isEventFull, sn as eventDateOptions, vn as groupEventsByDate, yn as resolveEventTimeZone } from "./wizardSteps-DNpajrAH.mjs";
4
- import { dt as formatDate } from "./noop-D-RG9eR3.mjs";
2
+ import { on as formatEventPrice } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { Cn as formatEventRemainingPlaces, Nr as listLookSlot, _n as formatTime, jr as listItemPresentation, kn as isEventFull, sn as eventDateOptions, vn as groupEventsByDate, yn as resolveEventTimeZone } from "./wizardSteps-DtkhwKXK.mjs";
4
+ import { At as parseBookingLocalDate, pt as formatDate } from "./noop-ByVtIWf4.mjs";
5
5
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
6
  import { d as formatDateKey, v as isToday } from "./src-1PJxc8KO.mjs";
7
7
  import { i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
8
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CDeAwYoN.mjs";
9
- import { c as formatEventTeacherLine } from "./EventItem-CMKrtkT7.mjs";
8
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-P2vJVTEn.mjs";
9
+ import { o as formatEventLocation } from "./MapDrawingSvg-CcGaFawl.mjs";
10
+ import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-DPBLjGwj.mjs";
10
11
  import "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- //#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
13
- function formatEventLocation(event) {
14
- switch (event.deliveryMode) {
15
- case "online": return "Online";
16
- case "hybrid": return event.venue ? `${event.venue.name} + online` : "Hybrid";
17
- case "in_person": return event.venue?.name ?? "In person";
18
- }
19
- }
20
- //#endregion
12
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
21
13
  //#region ../blocks/src/system/runtime/nodes/events/domain/monthDay.ts
22
14
  /** Day facts are shared by the legacy grid and arrangement month Looks. */
23
15
  function buildMonthDay(input) {
@@ -53,6 +45,163 @@ function CalendarDayHeaders({ dayNames }) {
53
45
  });
54
46
  }
55
47
  //#endregion
48
+ //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
49
+ function MonthEvent({ event, timeZone, locale, presentation }) {
50
+ return /* @__PURE__ */ jsxs("a", {
51
+ ...resolveEventLinkProps(event),
52
+ ...listLookSlot(presentation, "item"),
53
+ children: [
54
+ /* @__PURE__ */ jsx("span", {
55
+ ...listLookSlot(presentation, "time"),
56
+ children: formatTime(event.startsAt, {
57
+ ...eventDateOptions({
58
+ ...event,
59
+ timeZone
60
+ }),
61
+ locale
62
+ })
63
+ }),
64
+ " ",
65
+ /* @__PURE__ */ jsx("span", {
66
+ ...listLookSlot(presentation, "what"),
67
+ children: event.title
68
+ })
69
+ ]
70
+ });
71
+ }
72
+ function dateLabel(key, timeZone, date = "short") {
73
+ return formatDate({
74
+ kind: "civil",
75
+ value: parseBookingLocalDate(key)
76
+ }, eventDateOptions({
77
+ siteTimeZone: timeZone,
78
+ timeZone
79
+ }), {
80
+ date,
81
+ weekday: "long"
82
+ });
83
+ }
84
+ function MonthDay(props) {
85
+ const { day, selection } = props;
86
+ const { controls } = selection;
87
+ const selected = day.dateKey === selection.selectedDay;
88
+ return /* @__PURE__ */ jsxs("div", {
89
+ ...listLookSlot(selection, "date"),
90
+ "data-current": String(selected),
91
+ "data-today": String(day.isToday),
92
+ "data-other-month": String(!day.isCurrentMonth),
93
+ children: [selection.arrangement === "month-day" ? /* @__PURE__ */ jsx("button", {
94
+ type: "button",
95
+ ...listLookSlot(selection, "control"),
96
+ "aria-label": `Show events on ${dateLabel(day.dateKey, selection.timeZone, "long")}`,
97
+ "aria-pressed": selected,
98
+ onClick: controls ? () => controls.selectDay(day.dateKey) : void 0,
99
+ children: day.date.day
100
+ }) : /* @__PURE__ */ jsx("span", {
101
+ ...listLookSlot(selection, "date-label"),
102
+ children: day.date.day
103
+ }), selection.arrangement === "month-grid" ? /* @__PURE__ */ jsxs(Fragment, { children: [day.visibleEntries.map(({ event, timeZone }, index, entries) => /* @__PURE__ */ jsx(MonthEvent, {
104
+ presentation: listItemPresentation(selection, index, entries.length),
105
+ event,
106
+ timeZone,
107
+ locale: eventDateOptions({ siteTimeZone: selection.timeZone }).locale
108
+ }, event.occurrenceId ?? event.id)), day.moreCount > 0 ? /* @__PURE__ */ jsxs("button", {
109
+ type: "button",
110
+ className: "event-calendar-more",
111
+ ...listLookSlot(selection, "more"),
112
+ onClick: controls ? () => controls.openDay(day.date, day.entries.map(({ event }) => event)) : void 0,
113
+ children: [
114
+ "+",
115
+ day.moreCount,
116
+ " more"
117
+ ]
118
+ }) : null] }) : /* @__PURE__ */ jsx(MonthDayMarks, {
119
+ count: day.entries.length,
120
+ presentation: selection
121
+ })]
122
+ });
123
+ }
124
+ /** Both Looks and the legacy month grid consume the same per-day model. */
125
+ function MonthLookView(props) {
126
+ const days = props.days.map((date) => buildMonthDay({
127
+ date,
128
+ events: props.eventsByDate.get(formatDateKey(date)) ?? [],
129
+ viewDate: props.viewDate,
130
+ today: props.today,
131
+ calendarTimeZone: props.timeZone
132
+ }));
133
+ const selected = days.find((day) => day.dateKey === props.selectedDay);
134
+ return /* @__PURE__ */ jsxs("div", {
135
+ ...listLookSlot(props, "frame"),
136
+ "data-arrangement": props.arrangement,
137
+ children: [/* @__PURE__ */ jsxs("div", {
138
+ ...listLookSlot(props, "grid"),
139
+ children: [props.dayNames.map((name) => /* @__PURE__ */ jsx("span", {
140
+ ...listLookSlot(props, "group-label"),
141
+ children: name
142
+ }, name)), days.map((day) => /* @__PURE__ */ jsx(MonthDay, {
143
+ day,
144
+ selection: props
145
+ }, day.dateKey))]
146
+ }), props.arrangement === "month-day" ? /* @__PURE__ */ jsxs("section", {
147
+ ...listLookSlot(props, "panel"),
148
+ "aria-live": "polite",
149
+ children: [/* @__PURE__ */ jsx("h3", {
150
+ ...listLookSlot(props, "panel-heading"),
151
+ children: dateLabel(props.selectedDay, props.timeZone)
152
+ }), /* @__PURE__ */ jsx("div", {
153
+ ...listLookSlot(props, "list"),
154
+ children: selected?.entries.length ? selected.entries.map(({ event }, index, entries) => /* @__PURE__ */ jsx(EventItem, {
155
+ ...listItemPresentation(props, index, entries.length),
156
+ event,
157
+ arrangement: "month-day"
158
+ }, event.occurrenceId ?? event.id)) : /* @__PURE__ */ jsx("p", {
159
+ ...listLookSlot(props, "intro"),
160
+ children: props.emptyMessage
161
+ })
162
+ })]
163
+ }) : null]
164
+ });
165
+ }
166
+ function MonthDayMarks({ count, presentation }) {
167
+ if (count === 0) return null;
168
+ return /* @__PURE__ */ jsx("span", {
169
+ ...listLookSlot(presentation, "item-meta"),
170
+ role: "img",
171
+ "aria-label": `${count} ${count === 1 ? "event" : "events"}`,
172
+ children: Array.from({ length: Math.min(count, 3) }, (_, index) => /* @__PURE__ */ jsx("span", {
173
+ ...listLookSlot(presentation, "mark"),
174
+ "aria-hidden": "true"
175
+ }, index))
176
+ });
177
+ }
178
+ function monthSlotParents(arrangement) {
179
+ return {
180
+ frame: null,
181
+ grid: "frame",
182
+ date: "grid",
183
+ panel: "frame",
184
+ list: "panel",
185
+ item: arrangement === "month-grid" ? "date" : "list",
186
+ row: "list",
187
+ "group-label": "grid",
188
+ "item-meta": "date",
189
+ mark: "item-meta"
190
+ };
191
+ }
192
+ //#endregion
193
+ //#region ../blocks/src/system/runtime/nodes/events/shared/CombinedLookFrame.tsx
194
+ /** Recipe markup keeps its existing tree; arrangements carry the selected tab's hooks. */
195
+ function CombinedLookFrame({ look, children }) {
196
+ return look ? /* @__PURE__ */ jsx("div", {
197
+ ...look.hooks,
198
+ children
199
+ }) : /* @__PURE__ */ jsx(Fragment, { children });
200
+ }
201
+ function combinedClassName(look, className) {
202
+ return look ? ["event-combined", className].filter(Boolean).join(" ") : `event-combined ${className || ""}`;
203
+ }
204
+ //#endregion
56
205
  //#region ../blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.tsx
57
206
  /**
58
207
  * AgendaEventCard Component
@@ -300,4 +449,4 @@ function CalendarNavigationChevron({ direction }) {
300
449
  });
301
450
  }
302
451
  //#endregion
303
- export { buildMonthDay as a, CalendarDayHeaders as i, WeekAgendaView as n, resolveMonthSelectedDay as o, AgendaEventCard as r, formatEventLocation as s, CalendarNavigationChevron as t };
452
+ export { combinedClassName as a, CalendarDayHeaders as c, CombinedLookFrame as i, buildMonthDay as l, WeekAgendaView as n, MonthLookView as o, AgendaEventCard as r, monthSlotParents as s, CalendarNavigationChevron as t, resolveMonthSelectedDay as u };
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-D-RG9eR3.mjs";
2
+ import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-ByVtIWf4.mjs";
3
3
  import { t as assertNever } from "./src-DjnxOjXG.mjs";
4
4
  import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
5
5
  import { t as CheckboxChoice } from "./CheckboxChoice-CZ-anOqV.mjs";
6
6
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
7
7
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
8
- import { n as useBlockApi, r as BlockApiError } from "./context-n6IZigd3.mjs";
9
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-BdXu0fj-.mjs";
8
+ import { n as useBlockApi, r as BlockApiError } from "./context-Cv3QHjAF.mjs";
9
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-CXWZoV-d.mjs";
10
10
  import React, { useCallback, useEffect, useId, useMemo, useReducer } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region ../core/src/site-terms.ts
@@ -1,36 +1,16 @@
1
1
  "use client";
2
- import { Tt as buildEventCalendarListingRender, Vt as buildEventRuntimeFilters, nn as buildEventListWeek, rn as eventListWeekDays } from "./shop.interactive-BM0NRsFQ.mjs";
3
- import { mn as formatEventHourLabel, vn as groupEventsByDate } from "./wizardSteps-DNpajrAH.mjs";
4
- import { _ as resolveCalendarReadProfile } from "./noop-D-RG9eR3.mjs";
5
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, p as MonthLookView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-DzRWikCU.mjs";
2
+ import { Ht as buildEventRuntimeFilters, Tt as buildEventCalendarListingRender, in as eventListWeekDays, rn as buildEventListWeek } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { mn as formatEventHourLabel, vn as groupEventsByDate } from "./wizardSteps-DtkhwKXK.mjs";
4
+ import { y as resolveCalendarReadProfile } from "./noop-ByVtIWf4.mjs";
5
+ import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-CrC80EOG.mjs";
6
6
  import { d as formatDateKey, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
7
7
  import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
8
- import { i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-5a0x0vcC.mjs";
9
- import { i as useEventCollectionFilters } from "./useEventPagination-Ccr4TZlm.mjs";
10
- import { n as EventListingController } from "./EventListing.client-DZeDM0Qt.mjs";
11
- import { a as CalendarDayCell, c as EventModalProvider, i as useHydrationReady, l as useEventModal, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useCalendarToday } from "./EventCombined.client-jik34zTb.mjs";
12
- import React, { useEffect, useMemo, useState } from "react";
8
+ import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-DQwJ7BPx.mjs";
9
+ import { i as useEventCollectionFilters } from "./useEventPagination-Bcs89BR5.mjs";
10
+ import { n as EventListingController } from "./EventListing.client-Bogi_SnJ.mjs";
11
+ 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-Bus9R0bj.mjs";
12
+ import { useEffect, useMemo, useState } from "react";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
- //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookClient.tsx
15
- /** Connect the shared month view to calendar selection and the existing day modal. */
16
- function MonthLookClient(props) {
17
- const { openDayModal } = useEventModal();
18
- const [selection, setSelection] = React.useState(null);
19
- const anchor = `${props.viewDate.year}-${props.viewDate.month}`;
20
- const selectedDay = selection?.anchor === anchor ? selection.day : props.selectedDay;
21
- return /* @__PURE__ */ jsx(MonthLookView, {
22
- ...props,
23
- selectedDay,
24
- controls: {
25
- selectDay: (day) => setSelection({
26
- anchor,
27
- day
28
- }),
29
- openDay: (date, events) => openDayModal(date, [...events])
30
- }
31
- });
32
- }
33
- //#endregion
34
14
  //#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
35
15
  const WeekTimetableView = ({ viewDate, events, startOfWeek, today, showCapacity, calendarTimeZone, emptyMessage = "No classes scheduled" }) => {
36
16
  const { openEventModal } = useEventModal();
@@ -185,6 +165,7 @@ const EventCalendarClient = ({ render }) => {
185
165
  function EventCalendarCombinedClient({ render }) {
186
166
  const { display, hydration } = render;
187
167
  return /* @__PURE__ */ jsx(EventCombinedClient, {
168
+ combinedLook: display.combinedLook,
188
169
  events: hydration.prefetchedEvents ? [...display.events] : void 0,
189
170
  siteId: hydration.siteId,
190
171
  listLayout: display.listLayout,
@@ -1,15 +1,15 @@
1
1
  "use client";
2
- import { Bt as toError, Ht as getEventRuntimeFiltersKey, Vt as buildEventRuntimeFilters, jt as eventListingBlockRuntime } from "./shop.interactive-BM0NRsFQ.mjs";
3
- import { Gt as getBlockApiReadStage, _n as formatTime, an as eventCalendarWeekStart, in as buildCalendarViewport, sn as eventDateOptions, vn as groupEventsByDate } from "./wizardSteps-DNpajrAH.mjs";
4
- import { Dt as getLocalScheduleDate, c as calendarMonthDate, d as calendarQueryKey, dt as formatDate, f as calendarWindowBounds, g as planCalendarMonthRanges, l as calendarMonthKey, p as calendarWindowMonths$1, u as calendarPageResponseError } from "./noop-D-RG9eR3.mjs";
2
+ import { Ht as buildEventRuntimeFilters, Mt as eventListingBlockRuntime, Ut as getEventRuntimeFiltersKey, Vt as toError } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { Gt as getBlockApiReadStage, Nr as listLookSlot, _n as formatTime, an as eventCalendarWeekStart, in as buildCalendarViewport, sn as eventDateOptions, vn as groupEventsByDate } from "./wizardSteps-DtkhwKXK.mjs";
4
+ import { d as calendarMonthKey, f as calendarPageResponseError, h as calendarWindowMonths$1, kt as getLocalScheduleDate, m as calendarWindowBounds, p as calendarQueryKey, pt as formatDate, u as calendarMonthDate, v as planCalendarMonthRanges } from "./noop-ByVtIWf4.mjs";
5
5
  import { _ as isSameCalendarDay, c as addMonths, d as formatDateKey, m as getOrderedDayNames, y as shiftCalendarAnchorDate } from "./src-1PJxc8KO.mjs";
6
6
  import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
7
- import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, r as AgendaEventCard, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-5a0x0vcC.mjs";
7
+ import { a as combinedClassName, c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, r as AgendaEventCard, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-DQwJ7BPx.mjs";
8
8
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
9
9
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
10
- import { t as TabBarFragment } from "./TabBarFragment-_IAthZVM.mjs";
11
- import { n as useBlockApi } from "./context-n6IZigd3.mjs";
12
- import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Ccr4TZlm.mjs";
10
+ import { t as TabBarFragment } from "./TabBarFragment-BxEGsKUx.mjs";
11
+ import { n as useBlockApi } from "./context-Cv3QHjAF.mjs";
12
+ import { i as useEventCollectionFilters, n as EventPaginatedListView, r as EventCardClient, t as useEventPagination } from "./useEventPagination-Bcs89BR5.mjs";
13
13
  import React, { createContext, useCallback, useContext, useEffect, useMemo, useRef, useState } from "react";
14
14
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
15
15
  //#region ../blocks/src/system/runtime/hooks/useCalendarToday.ts
@@ -134,6 +134,26 @@ function useEventModal() {
134
134
  return context;
135
135
  }
136
136
  //#endregion
137
+ //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookClient.tsx
138
+ /** Connect the shared month view to calendar selection and the existing day modal. */
139
+ function MonthLookClient(props) {
140
+ const { openDayModal } = useEventModal();
141
+ const [selection, setSelection] = React.useState(null);
142
+ const anchor = `${props.viewDate.year}-${props.viewDate.month}`;
143
+ const selectedDay = selection?.anchor === anchor ? selection.day : props.selectedDay;
144
+ return /* @__PURE__ */ jsx(MonthLookView, {
145
+ ...props,
146
+ selectedDay,
147
+ controls: {
148
+ selectDay: (day) => setSelection({
149
+ anchor,
150
+ day
151
+ }),
152
+ openDay: (date, events) => openDayModal(date, [...events])
153
+ }
154
+ });
155
+ }
156
+ //#endregion
137
157
  //#region ../blocks/src/system/runtime/nodes/events/shared/TabBar.tsx
138
158
  /**
139
159
  * TabBar Component
@@ -141,12 +161,17 @@ function useEventModal() {
141
161
  * Simple horizontal tab bar for switching between views.
142
162
  * Uses semantic CSS classes for styling.
143
163
  */
144
- const TabBar = ({ tabs, activeTab, onTabChange, className }) => {
164
+ const TabBar = ({ tabs, activeTab, onTabChange, className, presentation }) => {
145
165
  return /* @__PURE__ */ jsx(TabBarFragment, {
166
+ listAttributes: presentation?.lookSlots ? listLookSlot(presentation, "controls") : void 0,
167
+ tabAttributes: presentation?.lookSlots ? (active) => ({
168
+ ...listLookSlot(presentation, "control"),
169
+ "data-current": active ? "true" : void 0
170
+ }) : void 0,
146
171
  tabs,
147
172
  activeTab,
148
173
  onTabChange,
149
- className: `nav-tabs ${className || ""}`,
174
+ className: presentation ? ["nav-tabs", className].filter(Boolean).join(" ") : `nav-tabs ${className || ""}`,
150
175
  tabClassName: "nav-tab",
151
176
  activeTabClassName: "nav-tab--active"
152
177
  });
@@ -831,8 +856,9 @@ const EventCombinedCalendarHeader = ({ calendarView, title, loadState, onPreviou
831
856
  label: "Today"
832
857
  })]
833
858
  });
834
- const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarViewOptions, onCalendarViewChange, calendarEvents, eventsByDate, viewDate, viewport, calendarLoadState, dayNames, calendarContext, today, goToPrevious, goToNext, goToToday, emptyMessage, showCapacity, showVenue, cardRole, buttonVariant, buttonText, showEmptyState }) => /* @__PURE__ */ jsxs(EventModalProvider, { children: [/* @__PURE__ */ jsxs("div", {
859
+ const EventCombinedCalendarTab = ({ monthLook, calendarTabViews, calendarView, calendarViewOptions, onCalendarViewChange, calendarEvents, eventsByDate, viewDate, viewport, calendarLoadState, dayNames, calendarContext, today, goToPrevious, goToNext, goToToday, emptyMessage, showCapacity, showVenue, cardRole, buttonVariant, buttonText, showEmptyState }) => /* @__PURE__ */ jsxs(EventModalProvider, { children: [/* @__PURE__ */ jsxs("div", {
835
860
  className: "event-combined-content event-calendar",
861
+ ...monthLook?.hooks,
836
862
  children: [
837
863
  calendarTabViews === "both" && /* @__PURE__ */ jsx("div", {
838
864
  className: "event-calendar-view-toggle",
@@ -852,7 +878,25 @@ const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarView
852
878
  onToday: goToToday,
853
879
  buttonVariant
854
880
  }),
855
- viewport.kind === "week" ? /* @__PURE__ */ jsx(WeekAgendaView, {
881
+ monthLook && viewport.kind === "month" ? /* @__PURE__ */ jsx(MonthLookClient, {
882
+ ...monthLook,
883
+ days: viewport.days,
884
+ dayNames,
885
+ eventsByDate,
886
+ viewDate,
887
+ today,
888
+ timeZone: calendarContext.timeZone,
889
+ selectedDay: resolveMonthSelectedDay({
890
+ days: viewport.days,
891
+ eventsByDate,
892
+ today,
893
+ viewDate
894
+ }),
895
+ emptyMessage,
896
+ showCapacity,
897
+ buttonVariant,
898
+ buttonText
899
+ }) : viewport.kind === "week" ? /* @__PURE__ */ jsx(WeekAgendaView, {
856
900
  days: viewport.days,
857
901
  events: calendarEvents,
858
902
  emptyMessage,
@@ -863,21 +907,13 @@ const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarView
863
907
  buttonText,
864
908
  calendarTimeZone: calendarContext.timeZone,
865
909
  today
866
- }) : /* @__PURE__ */ jsxs("div", {
867
- className: "event-calendar-container",
868
- children: [/* @__PURE__ */ jsx(CalendarDayHeaders, { dayNames }), /* @__PURE__ */ jsx("div", {
869
- className: "event-calendar-grid",
870
- children: viewport.days.map((date) => {
871
- const dateKey = formatDateKey(date);
872
- return /* @__PURE__ */ jsx(CalendarDayCell, {
873
- date,
874
- events: eventsByDate.get(dateKey) ?? [],
875
- viewDate,
876
- calendarTimeZone: calendarContext.timeZone,
877
- today
878
- }, dateKey);
879
- })
880
- })]
910
+ }) : /* @__PURE__ */ jsx(CombinedLegacyMonthGrid, {
911
+ days: viewport.days,
912
+ dayNames,
913
+ eventsByDate,
914
+ viewDate,
915
+ calendarContext,
916
+ today
881
917
  }),
882
918
  viewport.kind !== "week" && calendarEvents.length === 0 && showEmptyState && /* @__PURE__ */ jsx("p", {
883
919
  className: "event-calendar-empty",
@@ -892,8 +928,13 @@ const EventCombinedCalendarTab = ({ calendarTabViews, calendarView, calendarView
892
928
  calendarTimeZone: calendarContext.timeZone
893
929
  })] });
894
930
  /** The combined view reuses the list's filter and pager owners while keeping them mounted across tabs. */
895
- function useCombinedEventList(source, paginationAction) {
896
- const { display, hydration } = eventListingBlockRuntime.buildRender(source);
931
+ function useCombinedEventList(source, paginationAction, presentation) {
932
+ const built = eventListingBlockRuntime.buildRender(source);
933
+ const { hydration } = built;
934
+ const display = {
935
+ ...built.display,
936
+ ...presentation
937
+ };
897
938
  const filterState = useEventCollectionFilters(hydration);
898
939
  const pagination = useEventPagination({
899
940
  initialEvents: [...display.events],
@@ -920,7 +961,7 @@ function useCombinedEventList(source, paginationAction) {
920
961
  * Tabbed view with List and Calendar tabs.
921
962
  * List tab includes filtering; Calendar tab shows month/week view.
922
963
  */
923
- const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stack", listColumns = "3", eventsPerPage = 12, paginationAction = {
964
+ const EventCombinedClient = ({ combinedLook, events: initialEvents, siteId, listLayout = "stack", listColumns = "3", eventsPerPage = 12, paginationAction = {
924
965
  kind: "loadMore",
925
966
  label: "Load more events"
926
967
  }, startOfWeek = "monday", calendarTabViews = "both", defaultCalendarView, showFilters, showCategoryFilter = "auto", showVenueFilter, showStaffFilter, eventSurface, filterEventPresets, scheduleScope, seriesIds, filterCategoryIds, filterStaffMemberId, filterVenueId, showVenue, showMap, showCapacity, cardRole, buttonVariant = "primary", buttonText = "Book", emptyMessage = "No upcoming events scheduled.", className, calendarContext, calendarWindow }) => {
@@ -962,7 +1003,7 @@ const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stac
962
1003
  buttonVariant,
963
1004
  buttonText,
964
1005
  emptyMessage
965
- }, paginationAction);
1006
+ }, paginationAction, combinedLook?.list);
966
1007
  const { events: calendarEventsRaw, viewDate, today, viewport, loadState: calendarLoadState, goToPrevious, goToNext, goToToday } = useCalendarEvents({
967
1008
  siteId,
968
1009
  view: calendarView,
@@ -974,8 +1015,60 @@ const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stac
974
1015
  });
975
1016
  const eventsByDate = useMemo(() => groupEventsByDate(calendarEventsRaw, calendarContext.timeZone), [calendarContext.timeZone, calendarEventsRaw]);
976
1017
  const dayNames = useMemo(() => getOrderedDayNames(startOfWeek), [startOfWeek]);
1018
+ return /* @__PURE__ */ jsx(CombinedTabsView, {
1019
+ activeTab,
1020
+ onTabChange: setActiveTab,
1021
+ list: list.node,
1022
+ combinedLook,
1023
+ className,
1024
+ calendar: {
1025
+ calendarTabViews,
1026
+ calendarView,
1027
+ calendarViewOptions,
1028
+ onCalendarViewChange: setCalendarView,
1029
+ calendarEvents: calendarEventsRaw,
1030
+ eventsByDate,
1031
+ viewDate,
1032
+ viewport,
1033
+ calendarLoadState,
1034
+ dayNames,
1035
+ calendarContext,
1036
+ today,
1037
+ goToPrevious,
1038
+ goToNext,
1039
+ goToToday,
1040
+ emptyMessage,
1041
+ showCapacity: resolvedShowCapacity,
1042
+ showVenue: resolvedShowVenue,
1043
+ cardRole,
1044
+ buttonVariant,
1045
+ buttonText,
1046
+ showEmptyState: hydrationReady && calendarLoadState.kind === "idle"
1047
+ }
1048
+ });
1049
+ };
1050
+ const EventCombinedIslandClient = (props) => /* @__PURE__ */ jsx(EventCombinedClient, { ...toEventCombinedControllerProps(props) });
1051
+ function CombinedLegacyMonthGrid({ days, dayNames, eventsByDate, viewDate, calendarContext, today }) {
1052
+ return /* @__PURE__ */ jsxs("div", {
1053
+ className: "event-calendar-container",
1054
+ children: [/* @__PURE__ */ jsx(CalendarDayHeaders, { dayNames }), /* @__PURE__ */ jsx("div", {
1055
+ className: "event-calendar-grid",
1056
+ children: days.map((date) => {
1057
+ const dateKey = formatDateKey(date);
1058
+ return /* @__PURE__ */ jsx(CalendarDayCell, {
1059
+ date,
1060
+ events: eventsByDate.get(dateKey) ?? [],
1061
+ viewDate,
1062
+ calendarTimeZone: calendarContext.timeZone,
1063
+ today
1064
+ }, dateKey);
1065
+ })
1066
+ })]
1067
+ });
1068
+ }
1069
+ function CombinedTabsView({ activeTab, onTabChange, list, combinedLook, className, calendar }) {
977
1070
  return /* @__PURE__ */ jsxs("div", {
978
- className: `event-combined ${className || ""}`,
1071
+ className: combinedClassName(combinedLook, className),
979
1072
  "data-block": "event-combined",
980
1073
  children: [
981
1074
  /* @__PURE__ */ jsx(TabBar, {
@@ -986,37 +1079,20 @@ const EventCombinedClient = ({ events: initialEvents, siteId, listLayout = "stac
986
1079
  id: "calendar",
987
1080
  label: "Calendar"
988
1081
  }],
1082
+ presentation: combinedLook?.list,
989
1083
  activeTab,
990
- onTabChange: (tabId) => setActiveTab(tabId)
1084
+ onTabChange: (tab) => onTabChange(tab === "calendar" ? "calendar" : "list")
991
1085
  }),
992
- activeTab === "list" ? list.node : null,
993
- activeTab === "calendar" && /* @__PURE__ */ jsx(EventCombinedCalendarTab, {
994
- calendarTabViews,
995
- calendarView,
996
- calendarViewOptions,
997
- onCalendarViewChange: setCalendarView,
998
- calendarEvents: calendarEventsRaw,
999
- eventsByDate,
1000
- viewDate,
1001
- viewport,
1002
- calendarLoadState,
1003
- dayNames,
1004
- calendarContext,
1005
- today,
1006
- goToPrevious,
1007
- goToNext,
1008
- goToToday,
1009
- emptyMessage,
1010
- showCapacity: resolvedShowCapacity,
1011
- showVenue: resolvedShowVenue,
1012
- cardRole,
1013
- buttonVariant,
1014
- buttonText,
1015
- showEmptyState: hydrationReady && calendarLoadState.kind === "idle"
1016
- })
1086
+ activeTab === "list" ? /* @__PURE__ */ jsx(CombinedLookFrame, {
1087
+ look: combinedLook?.list,
1088
+ children: list
1089
+ }) : null,
1090
+ activeTab === "calendar" ? /* @__PURE__ */ jsx(EventCombinedCalendarTab, {
1091
+ ...calendar,
1092
+ monthLook: combinedLook?.month
1093
+ }) : null
1017
1094
  ]
1018
1095
  });
1019
- };
1020
- const EventCombinedIslandClient = (props) => /* @__PURE__ */ jsx(EventCombinedClient, { ...toEventCombinedControllerProps(props) });
1096
+ }
1021
1097
  //#endregion
1022
- export { CalendarDayCell as a, EventModalProvider as c, useHydrationReady as i, useEventModal as l, EventCombinedIslandClient as n, useCalendarEvents as o, EventModals as r, useCalendarViewport as s, EventCombinedClient as t, useCalendarToday as u };
1098
+ export { CalendarDayCell as a, MonthLookClient as c, useCalendarToday as d, useHydrationReady as i, EventModalProvider as l, EventCombinedIslandClient as n, useCalendarEvents as o, EventModals as r, useCalendarViewport as s, EventCombinedClient as t, useEventModal as u };