@riverbankcms/sdk 0.165.0 → 0.167.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (246) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-Dgb-ptph.d.ts} +1 -1
  4. package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-Bs3WxFgr.d.ts} +20 -258
  5. package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-DtUCsaHY.d.ts} +26 -3
  6. package/dist/_dts/{client-BkkExozE.d.ts → client-CwsI23pj.d.ts} +13 -1
  7. package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-CAeP_-cV.d.ts} +3 -3
  8. package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-BXHCiF-b.d.ts} +8 -5
  9. package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-Bb2gbppW.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-DaBBDx7M.d.ts} +2 -2
  11. package/dist/_dts/{index-DKNEgSOS.d.ts → index-5_jf52sZ.d.ts} +2 -2
  12. package/dist/_dts/{index-CQfJhOEA.d.ts → index-C20yUyob.d.ts} +1 -1
  13. package/dist/_dts/{index-CRRiddNp.d.ts → index-CS6b1B-c.d.ts} +4 -4
  14. package/dist/_dts/{index-B4ozSzFP.d.ts → index-ChpjHK0U.d.ts} +9737 -8316
  15. package/dist/_dts/{index-BdkHhyf8.d.ts → index-D7EbliE3.d.ts} +1 -1
  16. package/dist/_dts/{index-RXkE3a7M.d.ts → index-DeHDwMfu.d.ts} +4 -3
  17. package/dist/_dts/{index-DAPTSmBM.d.ts → index-RugyUnqR.d.ts} +2499 -2218
  18. package/dist/_dts/{index-C_3kdrUb.d.ts → index-bDln38Hm.d.ts} +2 -2
  19. package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-CTqcL7CS.d.ts} +9 -6
  20. package/dist/_dts/resolveBlockData-C3s9WMPs.d.ts +136 -0
  21. package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-JPwgRxwh.d.ts} +3 -2
  22. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client.d.ts +9 -6
  25. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  26. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +20 -0
  29. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
  30. package/dist/_dts/sdk/src/data/types.d.ts +54 -0
  31. package/dist/_dts/sdk/src/index.d.ts +8 -8
  32. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  33. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  34. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  35. package/dist/_dts/sdk/src/next/index.d.ts +9 -8
  36. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  37. package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
  38. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  39. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  43. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  44. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
  45. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
  46. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +260 -0
  47. package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
  48. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  49. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  50. package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
  51. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  52. package/dist/_dts/sdk/src/server.d.ts +7 -5
  53. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  54. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  55. package/dist/_dts/{types-BDF73NzM.d.ts → types-BlaCuPLr.d.ts} +2 -2
  56. package/dist/_dts/{types-Cl0nP6al.d.ts → types-CwtTcaQP.d.ts} +3 -3
  57. package/dist/_dts/{types-mstFvhK4.d.ts → types-D-WElMCy.d.ts} +8 -7
  58. package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Y5wD9fGK.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DFqkx158.mjs} +31 -24
  60. package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-CCVXX1LN.mjs} +2 -2
  61. package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-DQwJ7BPx.mjs} +167 -18
  62. package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
  63. package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-DdkY86qI.mjs} +6 -6
  64. package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
  65. package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-DAeQPV76.mjs} +11 -30
  66. package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-Bus9R0bj.mjs} +137 -61
  67. package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
  68. package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-DPBLjGwj.mjs} +75 -13
  69. package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-D6cwU82_.mjs} +1 -1
  70. package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-Bogi_SnJ.mjs} +3 -3
  71. package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-CEumpN7i.mjs} +35 -51
  72. package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CIQw6vNy.mjs} +113 -11
  73. package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-BVO-qx4q.mjs} +2 -2
  74. package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-CcGaFawl.mjs} +22 -2
  75. package/dist/client/{Page-DUr2YhFR.mjs → Page-D4_H_u9V.mjs} +23892 -32266
  76. package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
  77. package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Dptantmg.mjs} +3 -3
  78. package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-BxEGsKUx.mjs} +19 -19
  79. package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
  80. package/dist/client/{accordion-3CYNWzTS.mjs → accordion--EUHmEGa.mjs} +1 -1
  81. package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-BCXwOnhc.mjs} +19 -14
  82. package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-sHHcdism.mjs} +4 -4
  83. package/dist/client/bookings.mjs +6 -6
  84. package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-Cp9xPBFZ.mjs} +2 -2
  85. package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
  86. package/dist/client/{cart-CDc6x9cR.mjs → cart-CCZZC-Lq.mjs} +3 -3
  87. package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-B7JfA19I.mjs} +1 -1
  88. package/dist/client/{checkout-CkxPqSwD.mjs → checkout-CipmYL4A.mjs} +3 -3
  89. package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DraalWdH.mjs} +1 -1
  90. package/dist/client/client.mjs +9550 -17
  91. package/dist/client/{context-CBV21-9L.mjs → context-Cv3QHjAF.mjs} +11 -6
  92. package/dist/client/{cta-Bw-al3cs.mjs → cta-P2vJVTEn.mjs} +45 -28
  93. package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-D8D47VT4.mjs} +1 -1
  94. package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-CXWZoV-d.mjs} +1 -1
  95. package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-BkAro1DJ.mjs} +4 -4
  96. package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-dLmyuPap.mjs} +2 -2
  97. package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BEhC2_-Y.mjs} +34 -20
  98. package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-FBMS2Cpb.mjs} +4 -4
  99. package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-BrBhUvGe.mjs} +4 -4
  100. package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-C7WUrbZ2.mjs} +2 -2
  101. package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-Bih-BgQM.mjs} +4 -4
  102. package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-DfTlqGbl.mjs} +4 -4
  103. package/dist/client/{form-L-xZOBUS.mjs → form-Bw1uuiUs.mjs} +3 -3
  104. package/dist/client/{form.client-BtpK3TZW.mjs → form.client-pZ-9gN33.mjs} +5 -5
  105. package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-PXlu6XQO.mjs} +3 -3
  106. package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-DI3DP48e.mjs} +1 -1
  107. package/dist/client/gifting/client.mjs +3 -4
  108. package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-BpJYUMd6.mjs} +2 -2
  109. package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
  110. package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
  111. package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-CSoP0cGR.mjs} +6 -6
  112. package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-DDbX_Sj0.mjs} +2 -2
  113. package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-vCxYRar_.mjs} +3 -3
  114. package/dist/client/{noop-CQU7tiMg.mjs → noop-ByVtIWf4.mjs} +420 -170
  115. package/dist/client/portal/client.mjs +13 -14
  116. package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-7Pi6avM-.mjs} +1 -1
  117. package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-DEad-Pma.mjs} +1 -1
  118. package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-G1SMXG13.mjs} +3 -3
  119. package/dist/client/{productList-CSk8sXCl.mjs → productList-B21TGdpT.mjs} +3 -3
  120. package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-B3vIBkex.mjs} +4 -5
  121. package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-B8aQhJpO.mjs} +399 -473
  122. package/dist/client/rendering/client.mjs +29 -28
  123. package/dist/client/rendering/islands.mjs +1 -1
  124. package/dist/client/rendering.mjs +70 -8
  125. package/dist/client/{richText-coerce-spWtx86G.mjs → richText-coerce-DHkBtO0G.mjs} +1 -1
  126. package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-DbHX4JOS.mjs} +1 -1
  127. package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-B2UmrQg_.mjs} +12 -12
  128. package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-B7n-Z7nY.mjs} +1 -1
  129. package/dist/client/{shop-DscvMz86.mjs → shop-mqyoOvOK.mjs} +3 -3
  130. package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-BH-BBnA9.mjs} +13 -13
  131. package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-mdM3UMWG.mjs} +74 -36
  132. package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-CXF5wxdg.mjs} +2 -2
  133. package/dist/client/site-styles-CMCUxsIM.mjs +3 -0
  134. package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-D56hT2u1.mjs} +26000 -16565
  135. package/dist/client/spam-protection.mjs +1 -1
  136. package/dist/client/src-DjnxOjXG.mjs +217 -0
  137. package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
  138. package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-CrC80EOG.mjs} +13 -140
  139. package/dist/client/types-sF-IrGQr.mjs +633 -0
  140. package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C4LOaI_Z.mjs} +8 -5
  141. package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-BDmWkYUW.mjs} +1 -1
  142. package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-6Q0nToVA.mjs} +3 -3
  143. package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-CM-DTX5X.mjs} +1 -1
  144. package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Bcs89BR5.mjs} +9 -9
  145. package/dist/client/{view-DlkCDfuN.mjs → view-BN-fxyfq.mjs} +287 -232
  146. package/dist/client/{view-DXOuduIr.mjs → view-Dh2tGoS0.mjs} +4 -4
  147. package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DtkhwKXK.mjs} +468 -149
  148. package/dist/preview-next/before-render.mjs +3 -140
  149. package/dist/preview-next/client/ArrangementLookControls-D4VjPs-r.mjs +31197 -0
  150. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
  151. package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
  152. package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
  153. package/dist/preview-next/client/PreviewEditorSidebar-Ckr2zk_L.mjs +37247 -0
  154. package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-KOZgw_gS.mjs} +45 -17
  155. package/dist/preview-next/client/PreviewShell-CyO2V4kB.mjs +4757 -0
  156. package/dist/preview-next/client/SdkPreviewModeRuntime-DW3uKvNF.mjs +4258 -0
  157. package/dist/preview-next/client/SiteChromeCustomizeButton-CU9VD-7O.mjs +72202 -0
  158. package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
  159. package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
  160. package/dist/preview-next/client/previewAssistantSlot-DBi-WybM.mjs +112193 -0
  161. package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-BhkUJst9.mjs} +90 -28
  162. package/dist/preview-next/client/runtime.mjs +3 -3
  163. package/dist/preview-next/client/sdk-runtime-BjCb6lOn.mjs +5 -0
  164. package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus-CKxTaC3j.mjs} +40 -3
  165. package/dist/preview-next/client/useBlockCustomizeControls-B7MLTjBX.mjs +2633 -0
  166. package/dist/preview-next/client/useOpenBlockForSetup-BTUc0g9X.mjs +28 -0
  167. package/dist/preview-next/keepAlive.mjs +25 -2
  168. package/dist/preview-next/middleware.mjs +1 -1
  169. package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bv3nkdpV.mjs} +215 -118
  170. package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-4fMqzltx.mjs} +7 -4
  171. package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-C72VC_lR.mjs} +894 -2556
  172. package/dist/server/accessibleSurfaces-B_Y_dA20.mjs +2305 -0
  173. package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-ConMYJ2U.mjs} +2 -3
  174. package/dist/server/{publicProducts-Bz8loTRn.mjs → client-Cot-H5fQ.mjs} +2558 -343
  175. package/dist/server/config-validation.mjs +1 -1
  176. package/dist/server/config.mjs +33 -2
  177. package/dist/server/data/dataLoaderContext.mjs +2 -0
  178. package/dist/server/data/resolveBlockData.mjs +2 -0
  179. package/dist/server/data/types.mjs +1 -0
  180. package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
  181. package/dist/server/identity-Bn9OQiT1.mjs +6 -0
  182. package/dist/server/index.mjs +3 -3
  183. package/dist/server/{loadContent-dEEhQxL7.mjs → loadContent-BkaWYEwt.mjs} +6 -5
  184. package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-kviUdH8c.mjs} +4 -2
  185. package/dist/server/manifest.mjs +1 -1
  186. package/dist/server/media-DnlczCMA.mjs +231 -0
  187. package/dist/server/metadata.mjs +5 -1
  188. package/dist/server/mode-Cv_TG9gP.mjs +63 -0
  189. package/dist/server/next/revalidate.mjs +9 -4
  190. package/dist/server/next.mjs +11 -11
  191. package/dist/server/opaqueSurface-BTnS09GS.mjs +54 -0
  192. package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-itXZCXs7.mjs} +2 -1
  193. package/dist/server/overrides-CD4d-1w7.mjs +177 -0
  194. package/dist/server/page-converter.mjs +243 -91
  195. package/dist/server/pageRenderPlan-CDyn7iLy.mjs +4162 -0
  196. package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-DZ6cLxrM.mjs} +13 -28
  197. package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-Q_Vij87H.mjs} +3808 -1928
  198. package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +52 -0
  199. package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-DOG4MkOy.mjs} +1 -1
  200. package/dist/server/prebuild.mjs +1 -1
  201. package/dist/server/prefetchBlockData-DlprLLsc.mjs +756 -0
  202. package/dist/server/{registry-Cdvz1OtL.mjs → registry-BPFcpn6k.mjs} +21838 -709
  203. package/dist/server/rendering/components/pageShared.mjs +2 -0
  204. package/dist/server/rendering/helpers/loadPage.mjs +2 -0
  205. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
  206. package/dist/server/rendering/server.mjs +5 -4
  207. package/dist/server/rendering/themeAdmission.mjs +2 -0
  208. package/dist/server/rendering.mjs +11 -10
  209. package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
  210. package/dist/server/{resolveBlockData-CLpAJWWf.mjs → resolveBlockData-BHvfGD4y.mjs} +6 -48
  211. package/dist/server/resolveButtonColourStates-OXFRGn5M.mjs +2682 -0
  212. package/dist/server/responseMedia-D8J3VAFs.mjs +115 -0
  213. package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
  214. package/dist/server/routing.mjs +1 -1
  215. package/dist/server/schema-DEizlyi4.mjs +2524 -0
  216. package/dist/server/server.mjs +3 -3
  217. package/dist/server/theme-bridge.mjs +1031 -1
  218. package/dist/server/theme.mjs +2 -1
  219. package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
  220. package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
  221. package/dist/server/validation-CDd6m8Ry.mjs +140 -0
  222. package/dist/server/{validation-DYxhLzqQ.mjs → validation-bl6WcAi_.mjs} +419 -3
  223. package/dist/server/{version-Beu4q-Gv.mjs → version-BLXZ31S-.mjs} +1 -1
  224. package/dist/styles/index.css +710 -29
  225. package/package.json +39 -1
  226. package/dist/client/events-BmqPeeQm.mjs +0 -20
  227. package/dist/client/purchase-BV5xfaZH.mjs +0 -894
  228. package/dist/client/schema-BdSglH2X.mjs +0 -16084
  229. package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
  230. package/dist/client/src-VIsPY-kw.mjs +0 -62
  231. package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
  232. package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
  233. package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
  234. package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
  235. package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
  236. package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
  237. package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
  238. package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
  239. package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
  240. package/dist/server/client-DfMDbZ41.mjs +0 -2330
  241. package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
  242. package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
  243. package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
  244. package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
  245. package/dist/server/site-styles-CntHn2KI.mjs +0 -793
  246. package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
@@ -1,31 +1,31 @@
1
1
  "use client";
2
- import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
3
- import { $t as getCardOrientation, At as buildEventListingInteractiveIslandProps, B as giftingBlockRuntime, Ct as buildEventCalendarInteractiveIslandProps, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, H as publicGiftingOffersResponseSchema, I as newsletterBlockSubmissionMessage, Kt as catalogueEventCardProps, L as newsletterFormBlockRuntime, N as publicProductsResponseSchema, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Qt as MediaNodeServer, Sn as DEFAULT_MAILING_LIST_TARGETING, U as buildFormInteractiveIslandProps, W as formBlockRuntime, Y as eventRegistrationBlockRuntime, _ as shopProductPresentation, _n as publicPassProductCollectionSchema, a as buildShopInteractiveIslandProps, an as formatEventPrice, bn as parseMailingListPlacementTargeting, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, en as getContainerClass, fn as staticHeaderChromeRuntime, gn as publicMembershipProductCollectionSchema, h as shopBlockRuntime, hn as splitSiteChromePlacementClasses, i as buildProductListInteractiveIslandProps, jt as eventListingBlockRuntime, kt as recurringScheduleProjectionSchema, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nn as buildEventListWeek, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, q as buildEventRegistrationInteractiveIslandProps, qt as listingEventCardProps, r as buildProductDetailInteractiveIslandProps, rn as eventListWeekDays, rt as buildOfferingsPreviewListing, sn as formatEventPriceDisplay, st as offeringsListingFor, t as buildCartInteractiveIslandProps, tn as Grid, ut as resolveOfferingsRenderInput, vt as occurrenceContextSchema, wt as buildEventCalendarListingDisplay, xt as eventCombinedBlockRuntime, yn as assessMailingListTargeting, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps } from "./shop.interactive-BGmkdIAZ.mjs";
4
- import { E as ICON_CONFIG, Nr as err, Pr as ok, U as cardVariantRoleValues, cn as backgroundColorStyle, cr as runtimeMediaSchema, dn as mergeStyles, en as serializeSurfaceTree, fn as rgbColorValue, on as resolveThemeColorReferenceValue, pn as textColorStyle, vt as arrangementModes } from "./schema-BdSglH2X.mjs";
2
+ import { $t as MediaNodeServer, B as giftingBlockRuntime, Cn as DEFAULT_MAILING_LIST_TARGETING, Ct as buildEventCalendarInteractiveIslandProps, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, H as publicGiftingOffersResponseSchema, I as newsletterBlockSubmissionMessage, Jt as listingEventCardProps, L as newsletterFormBlockRuntime, Mt as eventListingBlockRuntime, N as publicProductsResponseSchema, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, U as buildFormInteractiveIslandProps, W as formBlockRuntime, Y as eventRegistrationBlockRuntime, _ as shopProductPresentation, _n as publicMembershipProductCollectionSchema, a as buildShopInteractiveIslandProps, bn as assessMailingListTargeting, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, cn as formatEventPriceDisplay, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, en as getCardOrientation, gn as splitSiteChromePlacementClasses, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, in as eventListWeekDays, jt as buildEventListingInteractiveIslandProps, kt as recurringScheduleProjectionSchema, lt as resolveOfferingsPreviewGroups, n as buildCheckoutInteractiveIslandProps, nn as Grid, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, on as formatEventPrice, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, pn as staticHeaderChromeRuntime, q as buildEventRegistrationInteractiveIslandProps, qt as catalogueEventCardProps, r as buildProductDetailInteractiveIslandProps, rn as buildEventListWeek, rt as buildOfferingsPreviewListing, st as offeringsListingFor, t as buildCartInteractiveIslandProps, tn as getContainerClass, ut as resolveOfferingsRenderInput, vn as publicPassProductCollectionSchema, vt as occurrenceContextSchema, wt as buildEventCalendarListingDisplay, xn as parseMailingListPlacementTargeting, xt as eventCombinedBlockRuntime, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps } from "./shop.interactive-mdM3UMWG.mjs";
3
+ import { h as ok, m as err } from "./surfaceTransportMarker-BXepAVF6.mjs";
4
+ import { $r as formatBookingPriceDisplay, Dn as getEventAvailabilityStatus, En as getEventAvailability, Er as resolveEventRegistrationScopedEvents, Hr as orderedLiveRunSessions, Kt as RichText, Lr as sanitizeHref, Mn as groupPublicEventsByRun, Nr as listLookSlot, Pn as buildBookingFormInteractiveIslandProps, Pr as lookListPresentationSchemaShape, Rr as parseAspectRatioValue, Sn as canJoinEventWaitlistOnAnyMode, Tr as normalizeEventRegistrationPageSurfaceSubject, Ur as resolveWholeSeriesBookingPhase, Vr as nextLiveRunSessionStartMs, _n as formatTime, bn as resolveRuntimeEventDestination, fn as formatEventCompactDateRail, gn as formatEventTimeRange, gr as BLOCK_BUTTON_ROLE_OPTIONS, in as buildCalendarViewport, jr as listItemPresentation, kn as isEventFull, ln as formatCalendarTitle, mn as formatEventHourLabel, oi as resolveExactOrFreePriceDisplay, qt as ImagePresets, rn as resolvePublicMediaUrl, si as resolvePricingOptionsPriceDisplay, sn as eventDateOptions, vn as groupEventsByDate, vr as isBlockButtonRole } from "./wizardSteps-DtkhwKXK.mjs";
5
+ import { A as isEventCalendarListLayout, E as eventCalendarVariantMeaning, F as normalizeEventCategoryIds, H as normalizeEventVenueId, It as toUtcIsoDateTimeString, J as publicEventsArraySchema, L as normalizeEventScheduleScope, Mt as resolveBookingBusinessTimeZone, O as isEventCalendarDefaultView, R as normalizeEventStaffMemberId, V as normalizeEventSurfaceScope, ct as parseLocationValue, dt as toLocationCoordinates, et as RichTextDocSchema, g as calendarWindowPageSchema, j as normalizeEventCalendarDisplayMode$1, k as isEventCalendarDisplayMode, lt as projectPublicLocation, pt as formatDate, st as normalizeLocationAddressText, ut as publicLocationSchema$1, w as eventCalendarListLayoutOptions, z as normalizeEventSurfacePresets } from "./noop-ByVtIWf4.mjs";
6
+ import { v as assertNever$1 } from "./src-DjnxOjXG.mjs";
5
7
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
- import { c as assertNever$1 } from "./src-VIsPY-kw.mjs";
7
- import { An as isEventFull, Cn as canJoinEventWaitlistOnAnyMode, Dn as getEventAvailability, Dr as resolveEventRegistrationScopedEvents, Er as normalizeEventRegistrationPageSurfaceSubject, Fn as buildBookingFormInteractiveIslandProps, Fr as lookListPresentationSchemaShape, Hr as orderedLiveRunSessions, Kt as RichText, Mr as listItemPresentation, Nn as groupPublicEventsByRun, On as getEventAvailabilityStatus, Pr as listLookSlot, Rr as parseAspectRatioValue, Ur as resolveWholeSeriesBookingPhase, Vr as nextLiveRunSessionStartMs, _n as formatEventTimeRange, _r as BLOCK_BUTTON_ROLE_OPTIONS, an as buildCalendarViewport, ci as resolvePricingOptionsPriceDisplay, cn as eventDateOptions, ei as formatBookingPriceDisplay, hn as formatEventHourLabel, in as sanitizeHref, pn as formatEventCompactDateRail, qt as ImagePresets, rn as resolvePublicMediaUrl, si as resolveExactOrFreePriceDisplay, un as formatCalendarTitle, vn as formatTime, xn as resolveRuntimeEventDestination, yn as groupEventsByDate, yr as isBlockButtonRole } from "./wizardSteps-DManVJpc.mjs";
8
- import { C as eventCalendarVariantMeaning, D as isEventCalendarListLayout, E as isEventCalendarDisplayMode, F as normalizeEventStaffMemberId, G as publicEventsArraySchema, I as normalizeEventSurfacePresets, M as normalizeEventCategoryIds, Nt as toUtcIsoDateTimeString, O as normalizeEventCalendarDisplayMode$1, P as normalizeEventScheduleScope, R as normalizeEventSurfaceScope, T as isEventCalendarDefaultView, Z as RichTextDocSchema, at as parseLocationValue, ct as toLocationCoordinates, it as normalizeLocationAddressText, kt as resolveBookingBusinessTimeZone, ot as projectPublicLocation, p as calendarWindowPageSchema, st as publicLocationSchema$1, ut as formatDate, x as eventCalendarListLayoutOptions, z as normalizeEventVenueId } from "./noop-CQU7tiMg.mjs";
9
8
  import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
10
- import { a as MonthLookView, c as ButtonNode, d as TextNode, f as LocationMapView, i as buildWeekBoardViewProps, l as LinkNode, n as WeekBoardView, o as CalendarRecurringWeek, r as buildWeekBoardNavigationState, s as RecurringSchedule, t as buildTimetableModel, u as RichTextNode } from "./timetableModel-Dynh5-j4.mjs";
11
- import { C as compiledRuntimeStyleFieldNames, p as arrangementSlotNames } from "./site-styles-CWHmlVT5.mjs";
12
- import { a as resolveEventDetailsPresentation, i as derivePreviewRunSchedule, n as eventCardListContent, r as deriveEventScheduleSummary, t as EventDetailsView } from "./view-DlkCDfuN.mjs";
13
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-Bw-al3cs.mjs";
14
- import { a as buildMonthDay, i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, s as formatEventLocation } from "./CalendarNavigationChevron-YGzw2IPB.mjs";
15
- import { n as CardListItems, r as EventItem } from "./EventItem-dILw2PN_.mjs";
16
- import { C as clsx, S as PlusIcon, _ as FileArchiveIcon, a as ThemedDownloadLink, b as FileTextIcon, c as ICON_PICKER_PRESETS, d as ArrowDownIcon, f as ChevronDownIcon, i as ThemedButtonLink, l as isSemanticIconId, m as CirclePlusIcon, p as CircleMinusIcon, r as ThemedButton, s as getIconComponent, u as SpinnerNode, v as FileAudioIcon, x as MinusIcon, y as FileSpreadsheetIcon } from "./ThemedButton-Cfbo1bfh.mjs";
17
- import { i as SvgNode } from "./MapDrawingSvg-D1AO_o4h.mjs";
18
- import { S as asPartialObject, d as resolveCardRoleForBoxStyles, g as DEFAULT_SECTION_SPACING, i as EventCard, n as EmptyState, r as EventCompactRow, s as boxStyleClassNames, t as EventListingFrameView, u as normalizeBoxStylesBorder } from "./EventListing.view-DtVbKVkt.mjs";
9
+ import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-CrC80EOG.mjs";
10
+ import { Ai as mergeStyles, Ar as arrangementModes, Di as backgroundColorStyle, Ia as runtimeMediaSchema, N as compiledRuntimeStyleFieldNames, Ni as textColorStyle, Ti as resolveThemeColorReferenceValue, Ut as cardVariantRoleValues, ct as ICON_CONFIG, ji as rgbColorValue, m as arrangementSlotNames, mi as serializeSurfaceTree } from "./site-styles-D56hT2u1.mjs";
11
+ import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
12
+ import { C as clsx, S as PlusIcon, _ as FileArchiveIcon, a as ThemedDownloadLink, b as FileTextIcon, c as ICON_PICKER_PRESETS, d as ArrowDownIcon, f as ChevronDownIcon, i as ThemedButtonLink, l as isSemanticIconId, m as CirclePlusIcon, p as CircleMinusIcon, r as ThemedButton, s as getIconComponent, u as SpinnerNode, v as FileAudioIcon, x as MinusIcon, y as FileSpreadsheetIcon } from "./ThemedButton-8jUc02mZ.mjs";
13
+ import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-BN-fxyfq.mjs";
14
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-P2vJVTEn.mjs";
15
+ import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-CcGaFawl.mjs";
16
+ import { n as CardListItems, r as EventItem } from "./EventItem-DPBLjGwj.mjs";
17
+ import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-DQwJ7BPx.mjs";
18
+ import { C as asPartialObject, _ as DEFAULT_SECTION_SPACING, a as EventCard, c as boxStyleClassNames, d as normalizeBoxStylesBorder, f as resolveCardRoleForBoxStyles, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CEumpN7i.mjs";
19
19
  import { t as resolveDedicatedBookingHref } from "./bookingRoute-Bqlyu5Vb.mjs";
20
20
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
21
- import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
22
- import { t as coerceRichTextDoc } from "./richText-coerce-spWtx86G.mjs";
23
21
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
24
- import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-DXOuduIr.mjs";
25
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-ClgLtjNY.mjs";
26
- import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-udNHcpOT.mjs";
27
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-Djos5Un4.mjs";
28
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CLGH20PL.mjs";
22
+ import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-DBnWEJzo.mjs";
23
+ import { t as coerceRichTextDoc } from "./richText-coerce-DHkBtO0G.mjs";
24
+ import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-Dh2tGoS0.mjs";
25
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-D6cwU82_.mjs";
26
+ import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-Dptantmg.mjs";
27
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-PXlu6XQO.mjs";
28
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DDbX_Sj0.mjs";
29
29
  import React, { forwardRef } from "react";
30
30
  import { z } from "zod";
31
31
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -181,6 +181,68 @@ function parseWeeklyOpeningHours(value) {
181
181
  });
182
182
  }
183
183
  //#endregion
184
+ //#region ../blocks/src/system/types/link.ts
185
+ const nullableString = z.union([z.string().min(1), z.null()]);
186
+ const RESOLVED_INTERNAL_LINK_ENTITY_TYPES = [
187
+ "page",
188
+ "content",
189
+ "pageSurface"
190
+ ];
191
+ const resolvedInternalLinkKeys = [
192
+ "entityId",
193
+ "entityType",
194
+ "href",
195
+ "title",
196
+ "typeLabel"
197
+ ];
198
+ const internalRouteOnlyLinkSchema = z.object({
199
+ kind: z.literal("internal"),
200
+ routeId: z.string().min(1)
201
+ }).passthrough().superRefine((value, ctx) => {
202
+ if (!resolvedInternalLinkKeys.some((key) => value[key] != null)) return;
203
+ ctx.addIssue({
204
+ code: "custom",
205
+ message: "Internal links with resolved metadata must include entityId, entityType, href, title, and typeLabel"
206
+ });
207
+ });
208
+ const internalResolvedLinkSchema = z.object({
209
+ kind: z.literal("internal"),
210
+ routeId: z.string().min(1),
211
+ entityId: z.string().min(1),
212
+ entityType: z.enum(RESOLVED_INTERNAL_LINK_ENTITY_TYPES),
213
+ href: z.string().min(1),
214
+ title: z.string().min(1),
215
+ typeLabel: z.string().min(1),
216
+ contentTypeKey: nullableString.optional(),
217
+ contentTypeName: nullableString.optional(),
218
+ updatedAt: nullableString.optional()
219
+ }).passthrough();
220
+ const internalLinkSchema = z.union([internalResolvedLinkSchema, internalRouteOnlyLinkSchema]);
221
+ const externalLinkSchema = z.object({
222
+ kind: z.literal("external"),
223
+ href: z.string().min(1)
224
+ }).passthrough();
225
+ const customLinkSchema = z.object({
226
+ kind: z.literal("url"),
227
+ href: z.string().min(1)
228
+ }).passthrough();
229
+ const pageLinkSchema = z.object({
230
+ kind: z.literal("page"),
231
+ identifier: z.string().min(1)
232
+ }).passthrough();
233
+ const entryLinkSchema = z.object({
234
+ kind: z.literal("entry"),
235
+ contentType: z.string().min(1),
236
+ identifier: z.string().min(1)
237
+ }).passthrough();
238
+ const linkSchema = z.union([
239
+ internalLinkSchema,
240
+ externalLinkSchema,
241
+ customLinkSchema,
242
+ pageLinkSchema,
243
+ entryLinkSchema
244
+ ]);
245
+ //#endregion
184
246
  //#region ../blocks/src/system/fields/button.ts
185
247
  const DEFAULT_THEME_BUTTON_VARIANTS = BLOCK_BUTTON_ROLE_OPTIONS;
186
248
  function createButtonVariantField(options = {}) {
@@ -1328,67 +1390,160 @@ function OfferingTitle({ className, path, title }) {
1328
1390
  });
1329
1391
  }
1330
1392
  //#endregion
1331
- //#region ../blocks/src/system/types/link.ts
1332
- const nullableString = z.union([z.string().min(1), z.null()]);
1333
- const RESOLVED_INTERNAL_LINK_ENTITY_TYPES = [
1334
- "page",
1335
- "content",
1336
- "pageSurface"
1337
- ];
1338
- const resolvedInternalLinkKeys = [
1339
- "entityId",
1340
- "entityType",
1341
- "href",
1342
- "title",
1343
- "typeLabel"
1344
- ];
1345
- const internalRouteOnlyLinkSchema = z.object({
1346
- kind: z.literal("internal"),
1347
- routeId: z.string().min(1)
1348
- }).passthrough().superRefine((value, ctx) => {
1349
- if (!resolvedInternalLinkKeys.some((key) => value[key] != null)) return;
1350
- ctx.addIssue({
1351
- code: "custom",
1352
- message: "Internal links with resolved metadata must include entityId, entityType, href, title, and typeLabel"
1353
- });
1354
- });
1355
- const internalResolvedLinkSchema = z.object({
1356
- kind: z.literal("internal"),
1357
- routeId: z.string().min(1),
1358
- entityId: z.string().min(1),
1359
- entityType: z.enum(RESOLVED_INTERNAL_LINK_ENTITY_TYPES),
1360
- href: z.string().min(1),
1361
- title: z.string().min(1),
1362
- typeLabel: z.string().min(1),
1363
- contentTypeKey: nullableString.optional(),
1364
- contentTypeName: nullableString.optional(),
1365
- updatedAt: nullableString.optional()
1366
- }).passthrough();
1367
- const internalLinkSchema = z.union([internalResolvedLinkSchema, internalRouteOnlyLinkSchema]);
1368
- const externalLinkSchema = z.object({
1369
- kind: z.literal("external"),
1370
- href: z.string().min(1)
1371
- }).passthrough();
1372
- const customLinkSchema = z.object({
1373
- kind: z.literal("url"),
1374
- href: z.string().min(1)
1375
- }).passthrough();
1376
- const pageLinkSchema = z.object({
1377
- kind: z.literal("page"),
1378
- identifier: z.string().min(1)
1379
- }).passthrough();
1380
- const entryLinkSchema = z.object({
1381
- kind: z.literal("entry"),
1382
- contentType: z.string().min(1),
1383
- identifier: z.string().min(1)
1384
- }).passthrough();
1385
- const linkSchema = z.union([
1386
- internalLinkSchema,
1387
- externalLinkSchema,
1388
- customLinkSchema,
1389
- pageLinkSchema,
1390
- entryLinkSchema
1391
- ]);
1393
+ //#region ../blocks/src/system/runtime/nodes/location-map.shared.ts
1394
+ /** Additive map DTO; hidden venues retain only their public name and area. */
1395
+ const publicVenueMapLocationSchema = publicLocationSchema$1.unwrap().extend({
1396
+ name: z.string().optional(),
1397
+ area: z.string().nullable().optional(),
1398
+ addressWithBooking: z.boolean().optional()
1399
+ }).readonly();
1400
+ const LOCATION_MAP_DEFAULTS = {
1401
+ zoom: 15,
1402
+ heightPx: 320,
1403
+ showAddressText: true,
1404
+ showDirections: true,
1405
+ directionsLabel: "Get directions"
1406
+ };
1407
+ const LOCATION_MAP_LIMITS = {
1408
+ zoom: {
1409
+ min: 3,
1410
+ max: 18
1411
+ },
1412
+ heightPx: {
1413
+ min: 200,
1414
+ max: 600
1415
+ }
1416
+ };
1417
+ function normalizeNumber(value, fallback) {
1418
+ if (typeof value === "number" && Number.isFinite(value)) return value;
1419
+ if (typeof value === "string") {
1420
+ const parsed = Number.parseFloat(value);
1421
+ if (Number.isFinite(parsed)) return parsed;
1422
+ }
1423
+ return fallback;
1424
+ }
1425
+ function normalizeBoolean$1(value, fallback) {
1426
+ if (typeof value === "boolean") return value;
1427
+ if (typeof value === "string") {
1428
+ if (value === "true") return true;
1429
+ if (value === "false") return false;
1430
+ }
1431
+ return fallback;
1432
+ }
1433
+ function normalizeLocationMapValue(value, siteCountry) {
1434
+ if (typeof value !== "object" || value === null) return null;
1435
+ const projected = readLocationMapProjection(value, siteCountry);
1436
+ return projected === null ? null : {
1437
+ addressText: projected.displayAddress,
1438
+ ...projected.pin ?? {
1439
+ lat: null,
1440
+ lng: null
1441
+ },
1442
+ drawing: projected.drawing,
1443
+ doorNote: projected.doorNote
1444
+ };
1445
+ }
1446
+ function normalizeLocationMapSource(value) {
1447
+ return value === "business_address" || value === "venue" ? value : "custom";
1448
+ }
1449
+ function resolveLocationMapLocation(input) {
1450
+ const source = normalizeLocationMapSource(input.locationSource);
1451
+ if (source === "business_address") {
1452
+ const locationValue = normalizeLocationMapValue(input.businessAddress, input.siteCountry);
1453
+ return locationValue ? {
1454
+ kind: "business_address",
1455
+ locationValue
1456
+ } : {
1457
+ kind: "unresolved",
1458
+ source,
1459
+ reason: "missing_business_address"
1460
+ };
1461
+ }
1462
+ if (source === "venue") {
1463
+ const venueId = typeof input.venueId === "string" && input.venueId.trim() ? input.venueId.trim() : null;
1464
+ if (!venueId) return {
1465
+ kind: "unresolved",
1466
+ source,
1467
+ reason: "missing_venue_id"
1468
+ };
1469
+ const locationValue = input.venuesById ? normalizeLocationMapValue(input.venuesById[venueId] ?? null, input.siteCountry) : null;
1470
+ return locationValue ? {
1471
+ kind: "venue",
1472
+ venueId,
1473
+ locationValue
1474
+ } : {
1475
+ kind: "unresolved",
1476
+ source,
1477
+ reason: "missing_venue_location"
1478
+ };
1479
+ }
1480
+ const locationValue = normalizeLocationMapValue(input.location, input.siteCountry);
1481
+ return locationValue ? {
1482
+ kind: "custom",
1483
+ locationValue
1484
+ } : {
1485
+ kind: "unresolved",
1486
+ source,
1487
+ reason: "missing_custom_location"
1488
+ };
1489
+ }
1490
+ function describeUnresolvedLocationMapLocation(resolvedLocation) {
1491
+ if (resolvedLocation.kind !== "unresolved") return null;
1492
+ switch (resolvedLocation.reason) {
1493
+ case "missing_business_address": return "Business address details are not configured yet.";
1494
+ case "missing_venue_id": return "Choose a venue to show this map.";
1495
+ case "missing_venue_location": return "The selected venue does not have location details yet.";
1496
+ case "missing_custom_location": return "Location details coming soon.";
1497
+ }
1498
+ }
1499
+ function normalizeLocationMapProps(input) {
1500
+ const parsedHours = parseWeeklyOpeningHours(input.openingHours);
1501
+ const resolvedLocation = resolveLocationMapLocation(input);
1502
+ const locationValue = resolvedLocation.kind === "unresolved" ? null : resolvedLocation.locationValue;
1503
+ const directionsLabel = normalizeLocationAddressText(input.directionsLabel) ?? LOCATION_MAP_DEFAULTS.directionsLabel;
1504
+ return {
1505
+ ...locationMapDetails(locationValue),
1506
+ wider: input.wider === true,
1507
+ googleMapsLabel: normalizedGoogleMapsLabel(input.googleMapsLabel),
1508
+ resolvedLocation,
1509
+ locationValue,
1510
+ unresolvedMessage: describeUnresolvedLocationMapLocation(resolvedLocation),
1511
+ zoom: Math.min(LOCATION_MAP_LIMITS.zoom.max, Math.max(LOCATION_MAP_LIMITS.zoom.min, Math.round(normalizeNumber(input.zoom, LOCATION_MAP_DEFAULTS.zoom)))),
1512
+ heightPx: Math.min(LOCATION_MAP_LIMITS.heightPx.max, Math.max(LOCATION_MAP_LIMITS.heightPx.min, Math.round(normalizeNumber(input.heightPx, LOCATION_MAP_DEFAULTS.heightPx)))),
1513
+ openingHours: parsedHours.ok ? parsedHours.value : null,
1514
+ showOpeningHours: normalizeBoolean$1(input.showOpeningHours, true),
1515
+ showAddressText: normalizeBoolean$1(input.showAddressText, LOCATION_MAP_DEFAULTS.showAddressText),
1516
+ showDirections: normalizeBoolean$1(input.showDirections, LOCATION_MAP_DEFAULTS.showDirections),
1517
+ directionsLabel,
1518
+ className: typeof input.className === "string" ? input.className : null
1519
+ };
1520
+ }
1521
+ /** All render-ready permitted details come from the same resolved source value. */
1522
+ function locationMapDetails(value) {
1523
+ return {
1524
+ drawing: value?.drawing ?? null,
1525
+ doorNote: value?.doorNote ?? null,
1526
+ addressText: value?.addressText ?? null,
1527
+ location: toLocationCoordinates(value)
1528
+ };
1529
+ }
1530
+ function normalizedGoogleMapsLabel(value) {
1531
+ return normalizeLocationAddressText(value) ?? "Open in Google Maps";
1532
+ }
1533
+ function readLocationMapProjection(value, siteCountry) {
1534
+ const venue = publicVenueMapLocationSchema.safeParse(value);
1535
+ if (venue.success) return venue.data.addressWithBooking ? {
1536
+ ...venue.data,
1537
+ address: null,
1538
+ displayAddress: venue.data.area ?? null,
1539
+ pin: null,
1540
+ doorNote: null,
1541
+ drawing: void 0
1542
+ } : venue.data;
1543
+ const canonical = parseLocationValue(value);
1544
+ if (canonical.ok && canonical.value !== null) return projectPublicLocation(canonical.value, siteCountry);
1545
+ return null;
1546
+ }
1392
1547
  //#endregion
1393
1548
  //#region ../blocks/src/system/node/schema.ts
1394
1549
  const transformStepSchema = z.object({
@@ -1842,55 +1997,6 @@ function validateLayoutGridConfiguration(data, ctx) {
1842
1997
  });
1843
1998
  }
1844
1999
  //#endregion
1845
- //#region ../blocks/src/system/manifest/sdkBlockPresentationSchema.ts
1846
- const sdkBlockPresentationShape = {
1847
- variants: z.record(z.string().min(1), NodeSchema).optional(),
1848
- defaultVariant: z.string().min(1).optional(),
1849
- variantOptions: z.record(z.string().min(1), z.object({
1850
- label: z.string().min(1).optional(),
1851
- description: z.string().min(1).optional(),
1852
- icon: z.string().min(1).optional()
1853
- })).optional()
1854
- };
1855
- function validateSdkBlockDeclaration(data, ctx) {
1856
- validateTitleSource(data, ctx);
1857
- if (data.layout && data.variants) ctx.addIssue({
1858
- code: z.ZodIssueCode.custom,
1859
- message: "Custom block must define either `layout` or `variants`, not both",
1860
- path: ["variants"]
1861
- });
1862
- if (data.variants) validateVariantKeys(data, ctx);
1863
- }
1864
- function validateTitleSource(data, ctx) {
1865
- if (!data.titleSource) return;
1866
- (Array.isArray(data.titleSource) ? data.titleSource : [data.titleSource]).forEach((source, index) => {
1867
- if (data.fields.some((field) => field !== null && typeof field === "object" && "id" in field && field.id === source)) return;
1868
- ctx.addIssue({
1869
- code: z.ZodIssueCode.custom,
1870
- message: `titleSource must reference a valid field ID (got "${source}")`,
1871
- path: Array.isArray(data.titleSource) ? ["titleSource", index] : ["titleSource"]
1872
- });
1873
- });
1874
- }
1875
- function validateVariantKeys(data, ctx) {
1876
- const variants = data.variants ?? {};
1877
- if (Object.keys(variants).length === 0) ctx.addIssue({
1878
- code: z.ZodIssueCode.custom,
1879
- message: "`variants` must contain at least one variant key",
1880
- path: ["variants"]
1881
- });
1882
- if (data.defaultVariant && !Object.prototype.hasOwnProperty.call(variants, data.defaultVariant)) ctx.addIssue({
1883
- code: z.ZodIssueCode.custom,
1884
- message: "`defaultVariant` must be a key present in `variants`",
1885
- path: ["defaultVariant"]
1886
- });
1887
- Object.keys(data.variantOptions ?? {}).filter((key) => !Object.prototype.hasOwnProperty.call(variants, key)).forEach((key) => ctx.addIssue({
1888
- code: z.ZodIssueCode.custom,
1889
- message: "`variantOptions` key must exist in `variants`",
1890
- path: ["variantOptions", key]
1891
- }));
1892
- }
1893
- //#endregion
1894
2000
  //#region ../blocks/src/system/manifest/schema.ts
1895
2001
  const visibilityLevels = [
1896
2002
  "admin",
@@ -2513,7 +2619,7 @@ const behaviourSchema = z.object({
2513
2619
  paletteHidden: z.boolean().default(false),
2514
2620
  managesOwnWrapper: z.boolean().optional()
2515
2621
  });
2516
- const builtInBlockKindsSchema = z.array(z.enum(SYSTEM_BLOCK_KINDS)).readonly();
2622
+ z.array(z.enum(SYSTEM_BLOCK_KINDS)).readonly();
2517
2623
  const blockRequiredFeatureSchema = z.enum([
2518
2624
  "bookings.appointments",
2519
2625
  "bookings.events",
@@ -2614,19 +2720,7 @@ z.object({
2614
2720
  tags: z.array(z.string()).optional(),
2615
2721
  icon: z.string().optional()
2616
2722
  });
2617
- /** SDK Looks name a single top-level select owned by this definition. */
2618
- function validateManifestLookField(data, ctx) {
2619
- if (!data.lookField) return;
2620
- if (!data.fields.some((field) => field !== null && typeof field === "object" && "id" in field && field.id === data.lookField && "type" in field && field.type === "select" && (!("multiple" in field) || field.multiple !== true))) ctx.addIssue({
2621
- code: z.ZodIssueCode.custom,
2622
- path: ["lookField"],
2623
- message: "lookField must name an existing single select field"
2624
- });
2625
- }
2626
- const blockSectionDeclarationShape = {
2627
- promotedFields: z.array(z.string().min(1)).optional(),
2628
- lookField: z.string().min(1).optional()
2629
- };
2723
+ z.array(z.string().min(1)).optional(), z.string().min(1).optional();
2630
2724
  //#endregion
2631
2725
  //#region ../blocks/src/system/readiness.ts
2632
2726
  const ready = { kind: "Ready" };
@@ -4596,8 +4690,7 @@ const cardListPresentationBindings = {
4596
4690
  showPhotos: { $bind: { from: "content.showPhotos" } },
4597
4691
  cardMarker: { $bind: { from: "content.cardMarker" } },
4598
4692
  itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
4599
- roleSurfaces: { $bind: { from: "content._effectiveLook.roleSurfaces" } },
4600
- itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } }
4693
+ surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } }
4601
4694
  };
4602
4695
  const cardListContentSchema = z.object({
4603
4696
  dates: z.enum(["summary", "next-dates"]).nullish().catch(void 0),
@@ -5610,14 +5703,14 @@ const eventCalendarLayout = [styledSection({
5610
5703
  listBy: { $bind: { from: "content.listBy" } },
5611
5704
  bookingTimeZone: { $bind: { from: "$root.dateContext.timeZone" } },
5612
5705
  dateContext: { $bind: { from: "$root.dateContext" } },
5706
+ combinedLook: { $bind: { from: "content._combinedLook" } },
5613
5707
  monthArrangement: { $bind: { from: "content._lookMonthArrangement" } },
5614
5708
  lookSlots: { $bind: { from: "content._lookSlots" } },
5615
5709
  itemActionStyle: { $bind: { from: "content._effectiveKnobs.actionStyle.value" } },
5616
5710
  showPhotos: { $bind: { from: "content.showPhotos" } },
5617
5711
  panelHeading: { $bind: { from: "content._lookPanelHeading" } },
5618
5712
  itemRoles: { $bind: { from: "content._effectiveLook.itemRoles" } },
5619
- roleSurfaces: { $bind: { from: "content._effectiveLook.roleSurfaces" } },
5620
- itemSurfaces: { $bind: { from: "content._effectiveLook.itemSurfaces" } },
5713
+ surfacePresentation: { $bind: { from: "content._effectiveLook.surfacePresentation" } },
5621
5714
  listColumns: { $bind: { from: "content.listColumns" } },
5622
5715
  layout: { $bind: { from: "content.layout" } },
5623
5716
  columns: { $bind: { from: "content.columns" } },
@@ -5751,6 +5844,116 @@ const eventCalendarLayout = [styledSection({
5751
5844
  baseClass: "",
5752
5845
  spacing: "comfortable"
5753
5846
  })];
5847
+ /**
5848
+ * Page size and "more events" settings apply to paged lists. A week list always shows its whole
5849
+ * week, so they're hidden under List by Week where the site style offers week lists; the editor
5850
+ * passes false when it doesn't, because a stored "Week" then lists upcoming events.
5851
+ */
5852
+ const eventsPerPageOptions = [{
5853
+ value: "1",
5854
+ label: "Show just one"
5855
+ }, ...[
5856
+ "2",
5857
+ "3",
5858
+ "4",
5859
+ "5",
5860
+ "6",
5861
+ "10",
5862
+ "12",
5863
+ "20",
5864
+ "24",
5865
+ "30"
5866
+ ].map((value) => ({
5867
+ value,
5868
+ label: `Show the first ${value}`
5869
+ }))];
5870
+ function eventCalendarPagingFields(weekListsAvailable) {
5871
+ const paged = weekListsAvailable ? { anyOf: [{
5872
+ field: "variant",
5873
+ equals: "combined"
5874
+ }, { allOf: [{
5875
+ field: "variant",
5876
+ equals: "list"
5877
+ }, {
5878
+ field: "listBy",
5879
+ notEquals: "week"
5880
+ }] }] } : {
5881
+ field: "variant",
5882
+ oneOf: ["combined", "list"]
5883
+ };
5884
+ const weekVariants = {
5885
+ field: "variant",
5886
+ oneOf: ["week-board", "week"]
5887
+ };
5888
+ return [
5889
+ {
5890
+ id: "eventsPerPage",
5891
+ type: "select",
5892
+ label: "How many",
5893
+ required: false,
5894
+ multiple: false,
5895
+ defaultValue: "12",
5896
+ options: eventsPerPageOptions,
5897
+ ui: {
5898
+ intent: "behavior",
5899
+ visibleWhen: paged
5900
+ }
5901
+ },
5902
+ {
5903
+ id: "paginationMode",
5904
+ type: "select",
5905
+ label: "More events",
5906
+ required: false,
5907
+ multiple: false,
5908
+ defaultValue: "loadMore",
5909
+ description: "How visitors can see the rest of your events.",
5910
+ options: [
5911
+ {
5912
+ value: "none",
5913
+ label: "No link or button"
5914
+ },
5915
+ {
5916
+ value: "loadMore",
5917
+ label: "Load more button"
5918
+ },
5919
+ {
5920
+ value: "seeAllLink",
5921
+ label: "Link to another page"
5922
+ }
5923
+ ],
5924
+ ui: {
5925
+ intent: "behavior",
5926
+ visibleWhen: paged
5927
+ }
5928
+ },
5929
+ {
5930
+ id: "seeAllUrl",
5931
+ type: "link",
5932
+ label: "Link to the full list",
5933
+ required: false,
5934
+ ui: {
5935
+ intent: "behavior",
5936
+ visibleWhen: { anyOf: [{ allOf: [paged, {
5937
+ field: "paginationMode",
5938
+ equals: "seeAllLink"
5939
+ }] }, weekVariants] }
5940
+ }
5941
+ },
5942
+ {
5943
+ id: "loadMoreText",
5944
+ type: "text",
5945
+ label: "More events button text",
5946
+ required: false,
5947
+ multiline: false,
5948
+ description: "The text on the button or link that shows more events.",
5949
+ defaultValue: "Load more events",
5950
+ ui: {
5951
+ intent: "behavior",
5952
+ visibleWhen: { anyOf: [paged, weekVariants] }
5953
+ }
5954
+ }
5955
+ ];
5956
+ }
5754
5957
  const eventCalendarAdditionalFields = [
5755
5958
  ...cardListKnobFields,
5756
5959
  ...cardListPhotoNumberFields.filter((field) => field.id === "showPhotos"),
@@ -5883,137 +6086,7 @@ const eventCalendarAdditionalFields = [
5883
6086
  }] }
5884
6087
  }
5885
6088
  },
5886
- {
5887
- id: "eventsPerPage",
5888
- type: "select",
5889
- label: "How many",
5890
- required: false,
5891
- multiple: false,
5892
- defaultValue: "12",
5893
- options: [
5894
- {
5895
- value: "1",
5896
- label: "Show just one"
5897
- },
5898
- {
5899
- value: "2",
5900
- label: "Show the first 2"
5901
- },
5902
- {
5903
- value: "3",
5904
- label: "Show the first 3"
5905
- },
5906
- {
5907
- value: "4",
5908
- label: "Show the first 4"
5909
- },
5910
- {
5911
- value: "5",
5912
- label: "Show the first 5"
5913
- },
5914
- {
5915
- value: "6",
5916
- label: "Show the first 6"
5917
- },
5918
- {
5919
- value: "10",
5920
- label: "Show the first 10"
5921
- },
5922
- {
5923
- value: "12",
5924
- label: "Show the first 12"
5925
- },
5926
- {
5927
- value: "20",
5928
- label: "Show the first 20"
5929
- },
5930
- {
5931
- value: "24",
5932
- label: "Show the first 24"
5933
- },
5934
- {
5935
- value: "30",
5936
- label: "Show the first 30"
5937
- }
5938
- ],
5939
- ui: {
5940
- intent: "behavior",
5941
- visibleWhen: {
5942
- field: "variant",
5943
- oneOf: ["combined", "list"]
5944
- }
5945
- }
5946
- },
5947
- {
5948
- id: "paginationMode",
5949
- type: "select",
5950
- label: "More events",
5951
- description: "How visitors can see the rest of your events.",
5952
- required: false,
5953
- multiple: false,
5954
- defaultValue: "loadMore",
5955
- options: [
5956
- {
5957
- value: "none",
5958
- label: "No link or button"
5959
- },
5960
- {
5961
- value: "loadMore",
5962
- label: "Load more button"
5963
- },
5964
- {
5965
- value: "seeAllLink",
5966
- label: "Link to another page"
5967
- }
5968
- ],
5969
- ui: {
5970
- intent: "behavior",
5971
- visibleWhen: {
5972
- field: "variant",
5973
- oneOf: ["combined", "list"]
5974
- }
5975
- }
5976
- },
5977
- {
5978
- id: "seeAllUrl",
5979
- type: "link",
5980
- label: "Link to the full list",
5981
- required: false,
5982
- ui: {
5983
- intent: "behavior",
5984
- visibleWhen: { anyOf: [{ allOf: [{
5985
- field: "variant",
5986
- oneOf: ["combined", "list"]
5987
- }, {
5988
- field: "paginationMode",
5989
- equals: "seeAllLink"
5990
- }] }, {
5991
- field: "variant",
5992
- oneOf: ["week-board", "week"]
5993
- }] }
5994
- }
5995
- },
5996
- {
5997
- id: "loadMoreText",
5998
- type: "text",
5999
- label: "More events button text",
6000
- description: "The text on the button or link that shows more events.",
6001
- required: false,
6002
- multiline: false,
6003
- defaultValue: "Load more events",
6004
- ui: {
6005
- intent: "behavior",
6006
- visibleWhen: {
6007
- field: "variant",
6008
- oneOf: [
6009
- "combined",
6010
- "list",
6011
- "week-board",
6012
- "week"
6013
- ]
6014
- }
6015
- }
6016
- },
6089
+ ...eventCalendarPagingFields(true),
6017
6090
  {
6018
6091
  id: "startOfWeek",
6019
6092
  type: "select",
@@ -7770,147 +7843,6 @@ const newsletterSignupBlockDefinition = {
7770
7843
  runtime: newsletterFormBlockRuntime
7771
7844
  };
7772
7845
  //#endregion
7773
- //#region ../blocks/src/system/runtime/nodes/location-map.shared.ts
7774
- const LOCATION_MAP_DEFAULTS = {
7775
- zoom: 15,
7776
- heightPx: 320,
7777
- showAddressText: true,
7778
- showDirections: true,
7779
- directionsLabel: "Get directions"
7780
- };
7781
- const LOCATION_MAP_LIMITS = {
7782
- zoom: {
7783
- min: 3,
7784
- max: 18
7785
- },
7786
- heightPx: {
7787
- min: 200,
7788
- max: 600
7789
- }
7790
- };
7791
- function normalizeNumber(value, fallback) {
7792
- if (typeof value === "number" && Number.isFinite(value)) return value;
7793
- if (typeof value === "string") {
7794
- const parsed = Number.parseFloat(value);
7795
- if (Number.isFinite(parsed)) return parsed;
7796
- }
7797
- return fallback;
7798
- }
7799
- function normalizeBoolean$1(value, fallback) {
7800
- if (typeof value === "boolean") return value;
7801
- if (typeof value === "string") {
7802
- if (value === "true") return true;
7803
- if (value === "false") return false;
7804
- }
7805
- return fallback;
7806
- }
7807
- function normalizeLocationMapValue(value, siteCountry) {
7808
- if (typeof value !== "object" || value === null) return null;
7809
- const projected = readLocationMapProjection(value, siteCountry);
7810
- return projected === null ? null : {
7811
- addressText: projected.displayAddress,
7812
- ...projected.pin ?? {
7813
- lat: null,
7814
- lng: null
7815
- },
7816
- drawing: projected.drawing,
7817
- doorNote: projected.doorNote
7818
- };
7819
- }
7820
- function normalizeLocationMapSource(value) {
7821
- return value === "business_address" || value === "venue" ? value : "custom";
7822
- }
7823
- function resolveLocationMapLocation(input) {
7824
- const source = normalizeLocationMapSource(input.locationSource);
7825
- if (source === "business_address") {
7826
- const locationValue = normalizeLocationMapValue(input.businessAddress, input.siteCountry);
7827
- return locationValue ? {
7828
- kind: "business_address",
7829
- locationValue
7830
- } : {
7831
- kind: "unresolved",
7832
- source,
7833
- reason: "missing_business_address"
7834
- };
7835
- }
7836
- if (source === "venue") {
7837
- const venueId = typeof input.venueId === "string" && input.venueId.trim() ? input.venueId.trim() : null;
7838
- if (!venueId) return {
7839
- kind: "unresolved",
7840
- source,
7841
- reason: "missing_venue_id"
7842
- };
7843
- const locationValue = input.venuesById ? normalizeLocationMapValue(input.venuesById[venueId] ?? null, input.siteCountry) : null;
7844
- return locationValue ? {
7845
- kind: "venue",
7846
- venueId,
7847
- locationValue
7848
- } : {
7849
- kind: "unresolved",
7850
- source,
7851
- reason: "missing_venue_location"
7852
- };
7853
- }
7854
- const locationValue = normalizeLocationMapValue(input.location, input.siteCountry);
7855
- return locationValue ? {
7856
- kind: "custom",
7857
- locationValue
7858
- } : {
7859
- kind: "unresolved",
7860
- source,
7861
- reason: "missing_custom_location"
7862
- };
7863
- }
7864
- function describeUnresolvedLocationMapLocation(resolvedLocation) {
7865
- if (resolvedLocation.kind !== "unresolved") return null;
7866
- switch (resolvedLocation.reason) {
7867
- case "missing_business_address": return "Business address details are not configured yet.";
7868
- case "missing_venue_id": return "Choose a venue to show this map.";
7869
- case "missing_venue_location": return "The selected venue does not have location details yet.";
7870
- case "missing_custom_location": return "Location details coming soon.";
7871
- }
7872
- }
7873
- function normalizeLocationMapProps(input) {
7874
- const parsedHours = parseWeeklyOpeningHours(input.openingHours);
7875
- const resolvedLocation = resolveLocationMapLocation(input);
7876
- const locationValue = resolvedLocation.kind === "unresolved" ? null : resolvedLocation.locationValue;
7877
- const directionsLabel = normalizeLocationAddressText(input.directionsLabel) ?? LOCATION_MAP_DEFAULTS.directionsLabel;
7878
- return {
7879
- ...locationMapDetails(locationValue),
7880
- wider: input.wider === true,
7881
- googleMapsLabel: normalizedGoogleMapsLabel(input.googleMapsLabel),
7882
- resolvedLocation,
7883
- locationValue,
7884
- unresolvedMessage: describeUnresolvedLocationMapLocation(resolvedLocation),
7885
- zoom: Math.min(LOCATION_MAP_LIMITS.zoom.max, Math.max(LOCATION_MAP_LIMITS.zoom.min, Math.round(normalizeNumber(input.zoom, LOCATION_MAP_DEFAULTS.zoom)))),
7886
- heightPx: Math.min(LOCATION_MAP_LIMITS.heightPx.max, Math.max(LOCATION_MAP_LIMITS.heightPx.min, Math.round(normalizeNumber(input.heightPx, LOCATION_MAP_DEFAULTS.heightPx)))),
7887
- openingHours: parsedHours.ok ? parsedHours.value : null,
7888
- showOpeningHours: normalizeBoolean$1(input.showOpeningHours, true),
7889
- showAddressText: normalizeBoolean$1(input.showAddressText, LOCATION_MAP_DEFAULTS.showAddressText),
7890
- showDirections: normalizeBoolean$1(input.showDirections, LOCATION_MAP_DEFAULTS.showDirections),
7891
- directionsLabel,
7892
- className: typeof input.className === "string" ? input.className : null
7893
- };
7894
- }
7895
- /** All render-ready permitted details come from the same resolved source value. */
7896
- function locationMapDetails(value) {
7897
- return {
7898
- drawing: value?.drawing ?? null,
7899
- doorNote: value?.doorNote ?? null,
7900
- addressText: value?.addressText ?? null,
7901
- location: toLocationCoordinates(value)
7902
- };
7903
- }
7904
- function normalizedGoogleMapsLabel(value) {
7905
- return normalizeLocationAddressText(value) ?? "Open in Google Maps";
7906
- }
7907
- function readLocationMapProjection(value, siteCountry) {
7908
- const canonical = parseLocationValue(value);
7909
- if (canonical.ok && canonical.value !== null) return projectPublicLocation(canonical.value, siteCountry);
7910
- const projected = publicLocationSchema$1.safeParse(value);
7911
- return projected.success ? projected.data : null;
7912
- }
7913
- //#endregion
7914
7846
  //#region ../blocks/src/primitives/layout/Section.tsx
7915
7847
  const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-surface": dataSurface }, ref) {
7916
7848
  return /* @__PURE__ */ jsx(Comp, {
@@ -9337,7 +9269,7 @@ function EventDetailsHydration({ props, presentation, scopedEvents, subject, now
9337
9269
  entryTitle: props.entryTitle,
9338
9270
  actionSize: props.actionSize,
9339
9271
  lookSlots: props.lookSlots,
9340
- itemSurfaces: props.itemSurfaces,
9272
+ surfacePresentation: props.surfacePresentation,
9341
9273
  panelHeading: props.panelHeading
9342
9274
  } : {},
9343
9275
  occurrenceContext: props.occurrenceContext ?? null,
@@ -9400,7 +9332,7 @@ function EventDetailsSSR(props) {
9400
9332
  //#region ../blocks/src/system/runtime/nodes/location-map.server.tsx
9401
9333
  const lookPresentationSchema = z.object({
9402
9334
  lookSlots: lookListPresentationSchemaShape.lookSlots,
9403
- itemSurfaces: lookListPresentationSchemaShape.itemSurfaces
9335
+ surfacePresentation: lookListPresentationSchemaShape.surfacePresentation
9404
9336
  });
9405
9337
  function LocationMapSSR(props) {
9406
9338
  const normalized = normalizeLocationMapProps(props);
@@ -9421,7 +9353,7 @@ function LocationMapSSR(props) {
9421
9353
  function lookDetailsSlot(props) {
9422
9354
  const presentation = lookPresentationSchema.safeParse({
9423
9355
  lookSlots: props.lookSlots ?? void 0,
9424
- itemSurfaces: props.itemSurfaces ?? void 0
9356
+ surfacePresentation: props.surfacePresentation ?? void 0
9425
9357
  });
9426
9358
  return presentation.success ? listLookSlot(presentation.data, "panel") : {};
9427
9359
  }
@@ -9488,7 +9420,7 @@ function renderEventListItem(event, source) {
9488
9420
  if (display.listLayout === "compact") return /* @__PURE__ */ jsx(EventCompactRow, {
9489
9421
  event,
9490
9422
  lookSlots: display.lookSlots,
9491
- itemSurfaces: display.itemSurfaces,
9423
+ surfacePresentation: display.surfacePresentation,
9492
9424
  showCapacity: display.showCapacity,
9493
9425
  showVenue: display.showVenue,
9494
9426
  buttonVariant: display.buttonVariant,
@@ -9498,7 +9430,7 @@ function renderEventListItem(event, source) {
9498
9430
  event,
9499
9431
  ...listingEventCardProps(display),
9500
9432
  lookSlots: display.lookSlots,
9501
- itemSurfaces: display.itemSurfaces
9433
+ surfacePresentation: display.surfacePresentation
9502
9434
  }, event.occurrenceId || event.id);
9503
9435
  }
9504
9436
  //#endregion
@@ -9601,22 +9533,10 @@ function buildLoadedOfferingsPreviewListing(input) {
9601
9533
  }
9602
9534
  //#endregion
9603
9535
  //#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
9604
- /**
9605
- * The upcoming dates a dated series' card lists: its next three live
9606
- * occurrences from the block's one occurrence batch. The date rows and the
9607
- * card's own booking button both read from this, so they can't disagree.
9608
- */
9609
- function upcomingOccurrencesBySeries(events, now) {
9610
- const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
9611
- return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3)]));
9612
- }
9613
- /** One occurrence batch supplies every occurrence-targeted card in the block. */
9536
+ /** A bounded display sample only: capacity and booking admission belong to the booking destination. */
9614
9537
  function offeringDatesBySeries(events, now, booking) {
9615
- return offeringDateRowsBySeries(upcomingOccurrencesBySeries(events, now), booking);
9616
- }
9617
- /** Date rows for occurrences already chosen by {@link upcomingOccurrencesBySeries}. */
9618
- function offeringDateRowsBySeries(upcoming, booking) {
9619
- return new Map([...upcoming].map(([seriesId, occurrences]) => [seriesId, occurrences.map((event) => offeringDateRow(event, event, booking))]));
9538
+ const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
9539
+ return new Map([...groups].map(([seriesId, occurrences]) => [seriesId, orderedUniqueEventOccurrences(occurrences.filter((event) => event.bookingScope !== "whole_series" && Date.parse(event.startsAt) >= now.getTime())).slice(0, 3).map((event) => offeringDateRow(event, event, booking))]));
9620
9540
  }
9621
9541
  /** Whole-series sessions share the run-level booking capacity, by contract. */
9622
9542
  function offeringRunDates(event, now) {
@@ -9760,30 +9680,24 @@ function renderCatalogueItems({ props, items, shape, groupTitle }) {
9760
9680
  style: { gridTemplateColumns: "repeat(auto-fill, minmax(min(100%, 18rem), 1fr))" },
9761
9681
  children: events.map((event) => /* @__PURE__ */ jsx(EventCard, {
9762
9682
  event,
9763
- upcomingDates: dates.upcoming.get(event.seriesId),
9764
9683
  ...catalogueEventCardProps(event, props.buttonVariant ?? "primary")
9765
9684
  }, event.seriesId))
9766
9685
  });
9767
9686
  }
9768
- /** The listed dates and their rows, from one reading so the button and the rows agree. */
9687
+ /** Dates are a display sample; the series card never infers availability from them. */
9769
9688
  function catalogueDates(events, now, shape, pathname) {
9770
- const upcoming = upcomingOccurrencesBySeries(events, now);
9771
- return {
9772
- upcoming,
9773
- rows: offeringDateRowsBySeries(upcoming, catalogueDateBooking(shape, pathname))
9774
- };
9689
+ return offeringDatesBySeries(events, now, catalogueDateBooking(shape, pathname));
9775
9690
  }
9776
9691
  function catalogueCardContent(item, now, dates, typeLabel) {
9777
9692
  const event = item.kind === "event" ? item.event : item.run.representative;
9778
9693
  return {
9779
9694
  ...eventCardListContent(event, {
9780
- kind: "offering",
9695
+ kind: "catalogue",
9781
9696
  now,
9782
9697
  nextStartMs: item.nextStartMs,
9783
- typeLabel,
9784
- upcomingDates: dates.upcoming.get(event.seriesId)
9698
+ typeLabel
9785
9699
  }, catalogueEventCardProps(event).buttonText),
9786
- dates: event.bookingScope === "whole_series" ? offeringRunDates(event, now) : dates.rows.get(event.seriesId)
9700
+ dates: event.bookingScope === "whole_series" ? offeringRunDates(event, now) : dates.get(event.seriesId)
9787
9701
  };
9788
9702
  }
9789
9703
  function renderCatalogueEmpty({ props, failed }) {
@@ -10811,25 +10725,12 @@ function renderCombinedSsr(display, prefetchedEvents) {
10811
10725
  return /* @__PURE__ */ jsxs("div", {
10812
10726
  className: clsx("event-combined", display.className ?? void 0),
10813
10727
  "data-block": "event-combined",
10814
- children: [/* @__PURE__ */ jsxs("div", {
10815
- className: "nav-tabs",
10816
- role: "tablist",
10817
- children: [/* @__PURE__ */ jsx("button", {
10818
- type: "button",
10819
- role: "tab",
10820
- "aria-selected": true,
10821
- className: "nav-tab nav-tab--active",
10822
- children: "List"
10823
- }), /* @__PURE__ */ jsx("button", {
10824
- type: "button",
10825
- role: "tab",
10826
- "aria-selected": false,
10827
- className: "nav-tab",
10828
- children: "Calendar"
10829
- })]
10830
- }), /* @__PURE__ */ jsx(EventListingFrameView, {
10831
- display: listDisplay,
10832
- renderEventCard: (event) => renderEventCard(event, listDisplay)
10728
+ children: [/* @__PURE__ */ jsx(CombinedSsrTabs, { look: display.combinedLook }), /* @__PURE__ */ jsx(CombinedLookFrame, {
10729
+ look: display.combinedLook?.list,
10730
+ children: /* @__PURE__ */ jsx(EventListingFrameView, {
10731
+ display: listDisplay,
10732
+ renderEventCard: (event) => renderEventCard(event, listDisplay)
10733
+ })
10833
10734
  })]
10834
10735
  });
10835
10736
  }
@@ -11109,6 +11010,31 @@ const EventCalendarSSR = (props) => {
11109
11010
  children: [/* @__PURE__ */ jsx(IslandPropsScript, { value: islandProps }), renderEventCalendarMode(islandProps.render.display, islandProps.render.hydration)]
11110
11011
  });
11111
11012
  };
11013
+ function CombinedSsrTabs({ look }) {
11014
+ return /* @__PURE__ */ jsxs("div", {
11015
+ className: "nav-tabs",
11016
+ role: "tablist",
11017
+ ...listLookSlot(look?.list ?? {}, "controls"),
11018
+ children: [/* @__PURE__ */ jsx("button", {
11019
+ type: "button",
11020
+ ...listLookSlot(look?.list ?? {}, "control"),
11021
+ role: "tab",
11022
+ "data-current": look ? "true" : void 0,
11023
+ tabIndex: look ? 0 : void 0,
11024
+ "aria-selected": true,
11025
+ className: "nav-tab nav-tab--active",
11026
+ children: "List"
11027
+ }), /* @__PURE__ */ jsx("button", {
11028
+ type: "button",
11029
+ ...listLookSlot(look?.list ?? {}, "control"),
11030
+ role: "tab",
11031
+ tabIndex: look ? -1 : void 0,
11032
+ "aria-selected": false,
11033
+ className: "nav-tab",
11034
+ children: "Calendar"
11035
+ })]
11036
+ });
11037
+ }
11112
11038
  //#endregion
11113
11039
  //#region ../blocks/src/system/runtime/nodes/events/EventListing.server.tsx
11114
11040
  const EventListingSSR = (props) => {
@@ -11564,4 +11490,4 @@ const serverComponentRegistry = {
11564
11490
  ...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
11565
11491
  };
11566
11492
  //#endregion
11567
- export { defineFragment as $, normalizeSelectSource as $t, eventRegistrationBlockDefinition as A, text as At, markEditableSurfaceForwarding as B, testimonialsReadiness as Bt, cartBlockDefinition as C, containerStylesField as Cn, link as Ct, eventCalendarBlockDefinition as D, createButtonGroup as Dn, richText as Dt, shopBlockDefinition as E, getAnchorClasses as En, repeat as Et, cardListPhotoNumberFields as F, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ft, normalizeMailingListBlockContent as G, DEFAULT_MEDIA_FIELD_KINDS as Gt, desktopOnlyDisplay as H, loadedReadinessFact as Ht, cardListPresentationBindings as I, augmentManifest as It, createBlockManifest as J, blockSectionDeclarationShape as Jt, formBlockDefinition as K, PUBLIC_FILE_FIELD_KINDS as Kt, cardListSectionActionFields as L, chosenString as Lt, FEATURE_CARD_ICON_TREATMENTS as M, when as Mt, cardListSectionAction as N, withApiBindings as Nt, eventListingBlockDefinition as O, createButtonVariantField as On, section as Ot, cardListKnobFields as P, parseBlockIconValue as Pt, composeFragments as Q, fieldSchema as Qt, normalizeCardListContent as R, galleryReadiness as Rt, checkoutBlockDefinition as S, cardStylesField as Sn, inline as St, productListBlockDefinition as T, BACKGROUND_POSITION_PRESET_VALUES as Tn, props as Tt, mobileOnlyDisplay as U, pageTemplateFromEntry as Ut, splitPositioningClasses as V, admitReadinessFacts as Vt, teamMemberCardBiographyFallback as W, unavailableReadinessFact as Wt, formCopyFragment as X, createSdkSelectField as Xt, formEmbedFragment as Y, builtInBlockKindsSchema as Yt, buildFragmentDataLoaders as Z, createSiteOptionSelectField as Zt, normalizeLocationMapSource as _, cardStylingFields as _n, el as _t, buildLoadedOfferingsPreviewListing as a, projectRepeaterGridLayout as an, sectionContainer as at, sanitizeNewsletterSignupPublicContent as b, eventDisplayFields as bn, headerSection as bt, HeaderSectionFrame as c, parseRepeaterGridInteger as cn, lookLeadSlotTransform as ct, accordionIconColorStyle as d, resolveRepeaterGridRowFieldId as dn, lookSlot as dt, parseFieldDefinition as en, sectionHeaderFields as et, resolveAccordionIconStyle as f, resolveRepeaterGridSpanFieldId as fn, accordionList as ft, normalizeLocationMapProps as g, linkSchema as gn, carousel as gt, LOCATION_MAP_LIMITS as h, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as hn, button as ht, WeeklySlotAvailabilityView as i, validateSdkBlockDeclaration as in, styledContainer as it, FEATURE_CARD_GENERATED_ICON_SIZE_PX as j, videoEmbed as jt, mapDrawingStyleBinding as k, stack as kt, accordionItemPartSlots as l, resolveRepeaterGridColumnFieldId as ln, lookQuoteLimitTransform as lt, LOCATION_MAP_DEFAULTS as m, bindingSchema as mn, bookingForm as mt, runtimeBackedBlockModes as n, validateManifestLookField as nn, resolveBackgroundColorValue as nt, LocationMapSSR as o, projectRepeaterGridLayoutForRendering as on, backgroundFrame as ot, SectionNode as p, NodeSchema as pn, bind as pt, formDataSchema as q, blockCategoryEnum as qt, runtimeBackedBlockServerEntries as r, sdkBlockPresentationShape as rn, styledSection as rt, buildAppointmentServicesView as s, buildRepeaterGridLayout as sn, lookCarouselRegionTransform as st, serverComponentRegistry as t, parseFieldDefinitions as tn, sectionHeaderLayoutNodes as tt, accordionLookAttributes as u, resolveRepeaterGridColumnsForBreakpoint as un, lookSkinSlotTransform as ut, resolveLocationMapLocation as v, columnsField as vn, fileDownload as vt, productDetailBlockDefinition as w, sectionStylesField as wn, media as wt, giftingBlockDefinition as x, layoutField as xn, icon as xt, newsletterSignupBlockDefinition as y, emptyStateField as yn, form as yt, composeHeaderSectionWrapperClassName as z, teamReadiness as zt };
11493
+ export { styledContainer as $, resolveRepeaterGridRowFieldId as $t, cardListPhotoNumberFields as A, PUBLIC_DOWNLOAD_MEDIA_TYPES as At, normalizeMailingListBlockContent as B, DEFAULT_MEDIA_FIELD_KINDS as Bt, eventListingBlockDefinition as C, section as Ct, FEATURE_CARD_ICON_TREATMENTS as D, when as Dt, FEATURE_CARD_GENERATED_ICON_SIZE_PX as E, videoEmbed as Et, markEditableSurfaceForwarding as F, testimonialsReadiness as Ft, formCopyFragment as G, parseFieldDefinition as Gt, formDataSchema as H, createSdkSelectField as Ht, splitPositioningClasses as I, admitReadinessFacts as It, defineFragment as J, projectRepeaterGridLayoutForRendering as Jt, buildFragmentDataLoaders as K, parseFieldDefinitions as Kt, desktopOnlyDisplay as L, loadedReadinessFact as Lt, cardListSectionActionFields as M, chosenString as Mt, normalizeCardListContent as N, galleryReadiness as Nt, cardListSectionAction as O, withApiBindings as Ot, composeHeaderSectionWrapperClassName as P, teamReadiness as Pt, styledSection as Q, resolveRepeaterGridColumnsForBreakpoint as Qt, mobileOnlyDisplay as R, pageTemplateFromEntry as Rt, eventCalendarBlockDefinition as S, richText as St, eventRegistrationBlockDefinition as T, text as Tt, createBlockManifest as U, createSiteOptionSelectField as Ut, formBlockDefinition as V, PUBLIC_FILE_FIELD_KINDS as Vt, formEmbedFragment as W, normalizeSelectSource as Wt, sectionHeaderLayoutNodes as X, parseRepeaterGridInteger as Xt, sectionHeaderFields as Y, buildRepeaterGridLayout as Yt, resolveBackgroundColorValue as Z, resolveRepeaterGridColumnFieldId as Zt, checkoutBlockDefinition as _, createButtonGroup as _n, inline as _t, buildLoadedOfferingsPreviewListing as a, normalizeLocationMapSource as an, lookSkinSlotTransform as at, productListBlockDefinition as b, linkSchema as bn, props as bt, HeaderSectionFrame as c, columnsField as cn, bind as ct, accordionIconColorStyle as d, layoutField as dn, carousel as dt, resolveRepeaterGridSpanFieldId as en, sectionContainer as et, resolveAccordionIconStyle as f, cardStylesField as fn, el as ft, giftingBlockDefinition as g, getAnchorClasses as gn, icon as gt, sanitizeNewsletterSignupPublicContent as h, BACKGROUND_POSITION_PRESET_VALUES as hn, headerSection as ht, WeeklySlotAvailabilityView as i, normalizeLocationMapProps as in, lookQuoteLimitTransform as it, cardListPresentationBindings as j, augmentManifest as jt, cardListKnobFields as k, parseBlockIconValue as kt, accordionItemPartSlots as l, emptyStateField as ln, bookingForm as lt, newsletterSignupBlockDefinition as m, sectionStylesField as mn, form as mt, runtimeBackedBlockModes as n, LOCATION_MAP_DEFAULTS as nn, lookCarouselRegionTransform as nt, LocationMapSSR as o, resolveLocationMapLocation as on, lookSlot as ot, SectionNode as p, containerStylesField as pn, fileDownload as pt, composeFragments as q, projectRepeaterGridLayout as qt, runtimeBackedBlockServerEntries as r, LOCATION_MAP_LIMITS as rn, lookLeadSlotTransform as rt, buildAppointmentServicesView as s, cardStylingFields as sn, accordionList as st, serverComponentRegistry as t, bindingSchema as tn, backgroundFrame as tt, accordionLookAttributes as u, eventDisplayFields as un, button as ut, cartBlockDefinition as v, createButtonVariantField as vn, link as vt, mapDrawingStyleBinding as w, stack as wt, shopBlockDefinition as x, repeat as xt, productDetailBlockDefinition as y, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as yn, media as yt, teamMemberCardBiographyFallback as z, unavailableReadinessFact as zt };