@riverbankcms/sdk 0.160.0 → 0.162.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 (209) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CoqeotCL.d.ts → BlocksIslandsHydrator-PZUoA872.d.ts} +1 -1
  2. package/dist/_dts/{Page-C0ENVLCF.d.ts → Page-CdQS6C7i.d.ts} +211 -9
  3. package/dist/_dts/{SdkPreviewMode-jZK0A49V.d.ts → SdkPreviewMode-CNGO-5f1.d.ts} +59 -92
  4. package/dist/_dts/{auth-contract-FPg0-2MC.d.ts → auth-contract-CgJ5nMaH.d.ts} +2 -0
  5. package/dist/_dts/{client-uMMuPq9V.d.ts → client-DGa53rjL.d.ts} +11 -3
  6. package/dist/_dts/{content-types-D6nXGqdQ.d.ts → content-types-K9R7P-KF.d.ts} +2 -2
  7. package/dist/_dts/{contracts-Bnmj1nxu.d.ts → contracts-CyBaPaIq.d.ts} +17 -5
  8. package/dist/_dts/{footerPageOutline-CeLjFX8b.d.ts → footerPageOutline-B6jmKmon.d.ts} +6 -6
  9. package/dist/_dts/{generatePageMetadata-nyU8q02J.d.ts → generatePageMetadata-iemoR3AN.d.ts} +2 -2
  10. package/dist/_dts/{index-BaaGBY1v.d.ts → index-8CN0Nd-Z.d.ts} +2 -2
  11. package/dist/_dts/{index-nVoi_74l.d.ts → index-BtnsA14K.d.ts} +10 -20
  12. package/dist/_dts/{index-lkpjIg5i.d.ts → index-C39F9KaB.d.ts} +13 -2
  13. package/dist/_dts/{index-C5xslEBn.d.ts → index-DEu85xBt.d.ts} +1 -1
  14. package/dist/_dts/{schema-D0bNcPWK.d.ts → index-DI2yaSPY.d.ts} +22873 -19918
  15. package/dist/_dts/{types-D8czmbQF.d.ts → index-Dbd0Sn0G.d.ts} +4356 -1827
  16. package/dist/_dts/{index-CEaKil7G.d.ts → index-Du1IRglc.d.ts} +2 -2
  17. package/dist/_dts/{index-DahMwisK.d.ts → index-Jlcq6w69.d.ts} +3 -3
  18. package/dist/_dts/{index-Bg64CkV-.d.ts → index-Wm62sXf2.d.ts} +4 -4
  19. package/dist/_dts/{loadContent-CYLmzvLq.d.ts → loadContent-BPfAAZDW.d.ts} +13 -10
  20. package/dist/_dts/{resolvePageContent-DqnxChOs.d.ts → resolvePageContent-DWbrtKf8.d.ts} +2 -2
  21. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  23. package/dist/_dts/sdk/src/client.d.ts +7 -7
  24. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  25. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  27. package/dist/_dts/sdk/src/index.d.ts +8 -8
  28. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  29. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  30. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  31. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  32. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  33. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  35. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  36. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  37. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  38. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/keep-alive.d.ts +1 -1
  40. package/dist/_dts/sdk/src/preview-next/session.d.ts +2 -2
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  43. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  45. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  46. package/dist/_dts/sdk/src/server.d.ts +5 -5
  47. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  48. package/dist/_dts/{session-Ba2CsnK5.d.ts → session-C_gtSFyZ.d.ts} +2 -1
  49. package/dist/_dts/{types-DSgmJ15W.d.ts → types-CVv2H4AT.d.ts} +7 -7
  50. package/dist/_dts/{types-CFrYuXYP.d.ts → types-CfNG5koF.d.ts} +4 -2
  51. package/dist/_dts/{types-Dm-KW7nj.d.ts → types-ClZ-BQL_.d.ts} +3 -3
  52. package/dist/_dts/{validation-Bmb4WnHg.d.ts → validation-BJ6Lf_Dr.d.ts} +4 -4
  53. package/dist/client/{BlocksIslandsHydrator-DZRKi6tT.mjs → BlocksIslandsHydrator-COqlgWYU.mjs} +23 -21
  54. package/dist/client/{BookingMailingListNote-C00sLLdL.mjs → BookingMailingListNote-CFYPDEHH.mjs} +1 -1
  55. package/dist/client/{CalendarNavigationChevron-CHSi9b3E.mjs → CalendarNavigationChevron-COBVxgHb.mjs} +6 -6
  56. package/dist/client/{CheckboxChoice-Bhm6RAUL.mjs → CheckboxChoice-C7X9dJ8A.mjs} +1 -1
  57. package/dist/client/{DemoBookingPortalAccess-CaN-7ui7.mjs → DemoBookingPortalAccess-CvT0E9AR.mjs} +26 -10
  58. package/dist/client/{DemoPortalSignInLink-ClxN5_xZ.mjs → DemoPortalSignInLink-EBOBN5dT.mjs} +1 -1
  59. package/dist/client/{EventCalendar.client-BncvSa1n.mjs → EventCalendar.client-U6pKcntV.mjs} +16 -17
  60. package/dist/client/{EventCombined.client-DluBxVVu.mjs → EventCombined.client-CNzwEHws.mjs} +8 -8
  61. package/dist/client/{EventEmbeddedCheckoutStep-BiJrMtfp.mjs → EventEmbeddedCheckoutStep-B9yAWV_k.mjs} +1 -1
  62. package/dist/client/{EventItem-CXhnT9pF.mjs → EventItem-M5rpaHxi.mjs} +4 -4
  63. package/dist/client/{EventListWeekNavigation-V-dtoDlD.mjs → EventListWeekNavigation-D4ieBLDY.mjs} +1 -1
  64. package/dist/client/{EventListing.client-DPO6SZbx.mjs → EventListing.client-B8F40Rmn.mjs} +3 -3
  65. package/dist/client/{EventListing.view-B-Yi5JZS.mjs → EventListing.view-k4lhuCn5.mjs} +15 -6
  66. package/dist/client/{EventRegistrationPayment-Dc3Fnlnw.mjs → EventRegistrationPayment-C3g8_Hqb.mjs} +25 -13
  67. package/dist/client/LocationMapActions-CAjt7qVo.mjs +62 -0
  68. package/dist/client/MapDrawingSvg-_aIK2ojv.mjs +200 -0
  69. package/dist/client/{Page-7PkzO04N.mjs → Page-DJBIQBOw.mjs} +2555 -536
  70. package/dist/client/{StepIndicator-DiD6euZ8.mjs → StepIndicator-CFacB1z6.mjs} +2 -2
  71. package/dist/client/{TabBarFragment-BHd8GN8y.mjs → TabBarFragment-BLsfQskO.mjs} +1 -1
  72. package/dist/client/ThemedButton-BWsDgjMC.mjs +2243 -0
  73. package/dist/client/{accordion-2m27DsIk.mjs → accordion-CtO2XF7M.mjs} +1 -1
  74. package/dist/client/{booking-form.client-BddWV5w1.mjs → booking-form.client-RICCQ0h2.mjs} +137 -60
  75. package/dist/client/{bookingForm-bcdXQjmw.mjs → bookingForm-SvjLPx8i.mjs} +4 -4
  76. package/dist/client/bookings.mjs +5 -5
  77. package/dist/client/{carousel-D7nj9I0y.mjs → carousel-BR-zCD3O.mjs} +2 -2
  78. package/dist/client/{carousel.client-AffDJo_s.mjs → carousel.client-CEWtoZd3.mjs} +1 -1
  79. package/dist/client/{cart-PN6yCw1H.mjs → cart-C6YpKbZZ.mjs} +3 -3
  80. package/dist/client/{cart.client-D4t1f0cJ.mjs → cart.client-dC938WrX.mjs} +1 -1
  81. package/dist/client/{checkout-CsTwXVSb.mjs → checkout-Dy9RlREI.mjs} +3 -3
  82. package/dist/client/{checkout.client-BhQE3zY7.mjs → checkout.client-CefG0d2F.mjs} +1 -1
  83. package/dist/client/client.mjs +37 -71
  84. package/dist/client/{context-BLAvalAa.mjs → context-BFwxgZpB.mjs} +28 -1
  85. package/dist/client/{cta-CUXhX_D7.mjs → cta-DtA42Xio.mjs} +1 -1
  86. package/dist/client/{dateFormatting-BHIHxNuo.mjs → dateFormatting-yP1B7F0O.mjs} +39 -2
  87. package/dist/client/{demoPortalMagicLink-R-awbk_0.mjs → demoPortalMagicLink-WOiT5Ryi.mjs} +1 -1
  88. package/dist/client/{enhanceHeaderSection-9Q93uvTo.mjs → enhanceHeaderSection-Dh8c_Lq-.mjs} +3 -3
  89. package/dist/client/{event-details.client-BS1WtG-a.mjs → event-details.client-BFgsLqTj.mjs} +3 -17
  90. package/dist/client/{event-registration.client-BXndwsET.mjs → event-registration.client-BaXZ1-Ky.mjs} +16 -16
  91. package/dist/client/{eventCalendar-HyoOt1Qz.mjs → eventCalendar-COLwF80U.mjs} +4 -4
  92. package/dist/client/{eventCombined-sdG5oEaH.mjs → eventCombined-D3Ltwu03.mjs} +4 -4
  93. package/dist/client/{eventDetails-FFAknE4w.mjs → eventDetails-CBrkimXu.mjs} +2 -2
  94. package/dist/client/{eventListing-CGK6urk3.mjs → eventListing-CedKVA1S.mjs} +4 -4
  95. package/dist/client/{eventRegistration-VhrvCs4l.mjs → eventRegistration-DkQQfR1b.mjs} +4 -4
  96. package/dist/client/{form-C-B5O_ko.mjs → form-XFy9uXSJ.mjs} +3 -3
  97. package/dist/client/{form.client-DoZVcl8d.mjs → form.client-B0iancFK.mjs} +4 -4
  98. package/dist/client/{form.parts-mttKpgif.mjs → form.parts-DMbolu9Y.mjs} +3 -3
  99. package/dist/client/{formatDate-xUSCknEO.mjs → formatDate-Jm5MQOCA.mjs} +1 -1
  100. package/dist/client/gifting/client.mjs +3 -3
  101. package/dist/client/{headerSection-BHUEXsaI.mjs → headerSection-WjlECjtV.mjs} +2 -2
  102. package/dist/client/{mediaAssets-BOj-Co0B.mjs → mediaAssets-BkoW_PEn.mjs} +1 -1
  103. package/dist/client/{mediaContext-DThoeEBU.mjs → mediaContext-CNzWmoA4.mjs} +1 -1
  104. package/dist/client/{newsletter-form.client-D_n0rftg.mjs → newsletter-form.client-D-XwJTjN.mjs} +5 -5
  105. package/dist/client/{newsletter-form.parts-DKHye4IE.mjs → newsletter-form.parts-H92f30y0.mjs} +2 -2
  106. package/dist/client/{newsletterForm-tEaYelzx.mjs → newsletterForm-DMuxzu6I.mjs} +3 -3
  107. package/dist/client/{noop-B610YKEx.mjs → noop-B3RNPVrt.mjs} +313 -3
  108. package/dist/client/portal/client.mjs +1116 -85
  109. package/dist/client/{product-detail.client-DUf5x5Jt.mjs → product-detail.client-B3HuuykE.mjs} +1 -1
  110. package/dist/client/{product-list.client-Cqp1BPTV.mjs → product-list.client-CzsDrHQO.mjs} +1 -1
  111. package/dist/client/{productDetail-B8bBiogP.mjs → productDetail-CbBUVWgd.mjs} +3 -3
  112. package/dist/client/{productList-BKN4D-1z.mjs → productList-vqOKH2mh.mjs} +3 -3
  113. package/dist/client/{propsDecoder-2nNZh2Oe.mjs → propsDecoder-CkSUep5a.mjs} +4 -28
  114. package/dist/client/{registry.server-BAm4RPNJ.mjs → registry.server-cZ24QwtW.mjs} +607 -210
  115. package/dist/client/rendering/client.mjs +28 -28
  116. package/dist/client/rendering/islands.mjs +1 -1
  117. package/dist/client/rendering.mjs +18 -9
  118. package/dist/client/{richText-coerce-Cv-qomNB.mjs → richText-coerce-DDcCKvBJ.mjs} +1 -1
  119. package/dist/client/{routeIslandApiConfig-C5u8MbAA.mjs → routeIslandApiConfig-DYBioANh.mjs} +1 -1
  120. package/dist/client/{ThemedButton-C22C9cCF.mjs → schema-DNHLlze-.mjs} +7307 -8363
  121. package/dist/client/{shop-DZNC0VKk.mjs → shop-CF0dhnfH.mjs} +3 -3
  122. package/dist/client/{shop-commerce-DdX4LSa3.mjs → shop-commerce-DQznNBEo.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-BJtrZov9.mjs → shop-commerce-store-Ba8zPlIg.mjs} +1 -1
  124. package/dist/client/{shop.client-DmDd-igg.mjs → shop.client-DqfYoqWH.mjs} +12 -12
  125. package/dist/client/{shop.interactive-5SnnDHz3.mjs → shop.interactive-CreQ0I7i.mjs} +38 -183
  126. package/dist/client/{shopShared-CPqUlAh9.mjs → shopShared-D-yh-P7g.mjs} +2 -2
  127. package/dist/client/site-styles-B9HgmY07.mjs +11619 -0
  128. package/dist/client/{timetableModel-C19rcHEw.mjs → timetableModel-DCdVErTJ.mjs} +149 -8
  129. package/dist/client/{useAvailableSlots-BjbJXotk.mjs → useAvailableSlots-Cvgdp2DH.mjs} +8 -11
  130. package/dist/client/{useBookingNowIso-CMgfL7YJ.mjs → useBookingNowIso-DrTnGNzD.mjs} +1 -1
  131. package/dist/client/{useDiscountApply-KG8jB7WC.mjs → useDiscountApply-CULjnXGl.mjs} +2 -2
  132. package/dist/client/{useDiscountCodeUi-DK2w_i0a.mjs → useDiscountCodeUi-Gn_m7e0o.mjs} +1 -1
  133. package/dist/client/{useEventPagination-DW6MCirb.mjs → useEventPagination-CsysCF22.mjs} +8 -21
  134. package/dist/client/{view-CseyBW07.mjs → view-BpBjo9Te.mjs} +71 -59
  135. package/dist/client/{view-CkUn3Y0Y.mjs → view-DMyTchi7.mjs} +4 -4
  136. package/dist/client/wizardSteps-BO2OmMO9.mjs +6604 -0
  137. package/dist/preview-next/before-render.mjs +7 -6
  138. package/dist/preview-next/chrome.css +2 -0
  139. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-lUHBrzHv.mjs → EventEmbeddedCheckoutStep-DLsSmZbO.mjs} +2 -1
  140. package/dist/preview-next/client/LocationPickerEnvironment-QtSG2Bl-.mjs +138 -0
  141. package/dist/preview-next/client/MapLibreEditMap-B-rohNcG.mjs +488 -0
  142. package/dist/preview-next/client/{PreviewEditorSidebar-DWyUGCAG.mjs → PreviewEditorSidebar-ChrW9VEo.mjs} +269 -1100
  143. package/dist/preview-next/client/{PreviewEditorUI-Wq0b3Daw.mjs → PreviewEditorUI-VaHvYtrA.mjs} +10 -190
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-BtZPcwYV.mjs → SdkPreviewModeRuntime-Bz7jR6nl.mjs} +1 -1
  145. package/dist/preview-next/client/{SdkPreviewModeRuntime-wSI_R361.mjs → SdkPreviewModeRuntime-DWwktlWs.mjs} +639 -536
  146. package/dist/preview-next/client/{ThemedButton-DzeycIlD.mjs → ThemedButton-CHKOWXxl.mjs} +1706 -692
  147. package/dist/preview-next/client/lucide-react-CA9cpo0P.mjs +51984 -0
  148. package/dist/preview-next/client/maplibre-gl-DykfOYYn.mjs +34208 -0
  149. package/dist/preview-next/client/{SiteChromeCustomizeContext-Hc4pYnNe.mjs → previewAuthStore-C0VUwEHz.mjs} +81363 -136296
  150. package/dist/preview-next/client/{previewChromeSurface-Corq4AG7.mjs → previewChromeSurface-Dhyx2YrS.mjs} +1 -1
  151. package/dist/preview-next/client/result-BjJUoxUF.mjs +16 -0
  152. package/dist/preview-next/client/rolldown-runtime-CE6sIgz8.mjs +34 -0
  153. package/dist/preview-next/client/runtime.mjs +3 -3
  154. package/dist/preview-next/client/{sdk-runtime-CWymRWhK.mjs → sdk-runtime-C2GWOCyj.mjs} +1 -1
  155. package/dist/preview-next/client/siteStyleAccess-DHyzUpv4.mjs +12833 -0
  156. package/dist/preview-next/client/{spinner-C4If5Y-O.mjs → spinner-BeR2S8oG.mjs} +2 -1
  157. package/dist/preview-next/{constants-D8Ya7bO4.mjs → constants-Bf-vqdKH.mjs} +2 -1
  158. package/dist/preview-next/editor-base.css +2 -2
  159. package/dist/preview-next/keepAlive.mjs +3 -3
  160. package/dist/preview-next/middleware.mjs +7 -3
  161. package/dist/preview-next/{refresh-contract-CvmNqZ1Q.mjs → refresh-contract-uQ6BXgLJ.mjs} +5 -0
  162. package/dist/preview-next/{route-contract-8csADeIT.mjs → route-contract-CkrFDMrl.mjs} +434 -203
  163. package/dist/preview-next/{session-BgkrPqu0.mjs → session-P1R_ajT7.mjs} +12 -2
  164. package/dist/preview-next/session.mjs +1 -1
  165. package/dist/server/{Block.shared-D1_gonwM.mjs → Block.shared-DxvNGDig.mjs} +4 -4
  166. package/dist/server/{bindings-CFmJg5lm.mjs → bindings-BuhKvYkE.mjs} +2 -1
  167. package/dist/server/{client-DPsi0Dai.mjs → client-BobW6DOz.mjs} +39 -72
  168. package/dist/server/config-validation.mjs +1 -1
  169. package/dist/server/config.mjs +2 -2
  170. package/dist/server/{siteChromeOverlayClearance-DALIAMwo.mjs → effectiveNavLinkStyle-B-MKSt0p.mjs} +2060 -1680
  171. package/dist/server/index.mjs +3 -3
  172. package/dist/server/{loadContent-RMCcuVU_.mjs → loadContent-CCG_3mbY.mjs} +14 -5
  173. package/dist/server/loadPage-Bk9HDh9K.mjs +2 -0
  174. package/dist/server/{loadPage-DhDGzj7t.mjs → loadPage-jntGoMrf.mjs} +3 -2
  175. package/dist/server/next.mjs +9 -9
  176. package/dist/server/{overrideResolution-OxY5FMuy.mjs → overrideResolution-BBOlgn4Z.mjs} +1 -1
  177. package/dist/server/{overrides-Bz_A6sB9.mjs → overrides-DByQwIyW.mjs} +803 -412
  178. package/dist/server/page-converter.mjs +1 -1
  179. package/dist/server/{prebuild-B_1vrSru.mjs → prebuild-DrwcTk2t.mjs} +1 -1
  180. package/dist/server/prebuild.mjs +1 -1
  181. package/dist/server/{prefetchBlockData-B7ukYXXR.mjs → prefetchBlockData-LfgxSJYE.mjs} +156 -89
  182. package/dist/server/{publicProducts-Djbpc81A.mjs → publicProducts-8A3T5v4M.mjs} +685 -166
  183. package/dist/server/{registry-eFjKtEhF.mjs → registry-Digv02oV.mjs} +780 -1052
  184. package/dist/server/rendering/server.mjs +4 -4
  185. package/dist/server/rendering.mjs +8 -8
  186. package/dist/server/{resolveBlockData-DYvEa9c5.mjs → resolveBlockData-C23t8-77.mjs} +1 -1
  187. package/dist/server/routing.mjs +1 -1
  188. package/dist/server/{schema-C3dJ5UkL.mjs → schema-BiqpDRwB.mjs} +4805 -3561
  189. package/dist/server/server.mjs +3 -3
  190. package/dist/server/site-styles-DrkprQPL.mjs +755 -0
  191. package/dist/server/siteChromeOverlayClearance-BmKKkkbh.mjs +750 -0
  192. package/dist/server/{src-C5Mu-z0F.mjs → src-08GY1njw.mjs} +1060 -44
  193. package/dist/server/theme-bridge.mjs +1 -1
  194. package/dist/server/theme.mjs +1 -1
  195. package/dist/server/{themeAdmission-ruoyXb_0.mjs → themeAdmission-CSd_Vusz.mjs} +151 -53
  196. package/dist/server/{validation-B-Xar8QS.mjs → validation-DdUTkBOZ.mjs} +2 -2
  197. package/dist/server/{version-Bg7VHK3i.mjs → version-DdIOqIDe.mjs} +1 -1
  198. package/dist/styles/index.css +1029 -41
  199. package/package.json +1 -1
  200. package/dist/_dts/index-Blwl7yl6.d.ts +0 -13
  201. package/dist/client/LeafletStaticMap-ClZCCzAm.mjs +0 -135
  202. package/dist/client/location-map.client-Cylb_MHw.mjs +0 -28
  203. package/dist/client/location-map.view-Cx4Bl7ij.mjs +0 -345
  204. package/dist/client/locationMap-QnKJi-nZ.mjs +0 -15
  205. package/dist/client/renderableMediaAssetAdmission-DGjBr_e-.mjs +0 -152
  206. package/dist/client/wizardSteps-zgq10lN1.mjs +0 -17181
  207. package/dist/preview-next/client/siteStyleAccess-QZkJRHl5.mjs +0 -1359
  208. package/dist/server/loadPage-DUPP51C-.mjs +0 -2
  209. package/dist/server/media-CcHwZkdJ.mjs +0 -243
@@ -1,12 +1,12 @@
1
- import { D as ok, E as err, s as runtimeMediaSchema, u as renderableMediaAssetSchema } from "./media-CcHwZkdJ.mjs";
1
+ import { An as isCssColorLiteral, Cn as textColorStyle, Dr as ok, E as ICON_CONFIG, Er as err, Jt as featureCardCompositionTreatmentValues, N as generateDefaultButtonSystem, Nn as resolveTokenOrCssColorValue, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Sn as rgbColorValue, St as runtimeMediaSchema, Xn as getTextColorForBackground, Zt as introCompositionTreatmentValues, an as testimonialsCompositionTreatmentValues, dr as parseThemeColorToken, fn as serializeSurfaceTree, jn as resolveOnColorForThemeToken, tn as offeringsPreviewCompositionTreatmentValues, vn as backgroundColorStyle, wt as renderableMediaAssetSchema, xn as mergeStyles, zn as defaultThemeTokens } from "./schema-BiqpDRwB.mjs";
2
2
  import { t as assertNever$1 } from "./assert-never-ku-PUn9U.mjs";
3
- import { $ as ImagePresets, $n as createInteractiveIslandCodec, $r as parseBlockIconValue, $t as formatEventHourLabel, A as buildOfferingsCatalogueListing, Aa as isPublicEventPricingOptionDisplayable, An as FEATURE_CARD_ICON_TREATMENTS, At as resolveOfferingsPreviewGroupCta, B as eventCollectionDisplaySchemaShape, Bn as resolveDateRuntimeContext, Br as el, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as parseBookingLocalDate, Cn as isEventFull, Cr as ctaCopyFragment, D as passCardListContent, Da as toScheduledBookingDateTime, Dn as blockBookingConsentSchema, Dr as heroCopyFragment, Dt as buildOfferingsPreviewListing, E as membershipClassesLabel, Ea as toBookingTimeZone, En as publicEventsArraySchema, Er as isBlockButtonRole, Et as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, F as eventListingBlockDefinition, Fa as resolvePricingOptionsPriceDisplay, Fn as composeHeaderSectionWrapperClassName, Ft as ThemedButton, G as catalogueEventCardProps, Gn as staticHeaderChromeRuntime, H as eventCollectionSourceSchemaShape, Hi as arrangementManifestFromVariants, Ht as formatEventPriceAmount, I as buildEventListingInteractiveIslandProps, Ia as formatCurrencyAmount, In as markEditableSurfaceForwarding, It as ThemedButtonLink, J as CardListLeadDate, Jt as formatCalendarTitle, K as listingEventCardProps, Kt as eventDateOptions, L as buildEventCollectionDisplay, La as parseCurrencyCode, Ln as splitPositioningClasses, Lt as ThemedDownloadLink, M as buildEventCalendarInteractiveIslandProps, Ma as publicEventPricingDisplay, Mi as PUBLIC_DOWNLOAD_MEDIA_TYPES, Mn as shouldReserveFeatureCardIconZone, Mr as normalizeBoxStylesBorder, Mt as resolveOfferingsPreviewRunPath, N as buildEventCalendarListingDisplay, Na as publicEventPricingType, Nr as resolveCardRoleForBoxStyles, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as toUtcIsoDateTimeString, On as bookingConsentCarrierSchema, Or as bodyCopyFragment, Ot as normalizeOfferingsPreviewItemLimit, Pa as resolveExactOrFreePriceDisplay, Pt as ThemedAuthoredButton, Q as RichText, Qn as buildInteractiveIslandProps, Qr as buildGeneratedBlockIconRenderAssetLookupFromUnknown, Qt as formatEventDateParts, R as buildEventCollectionHydration, Rr as resolveBackgroundColorValue, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as getLocalScheduleDate, Sn as getEventAvailabilityStatus, Sr as testimonialsHeadingFragment, St as resolveEventRegistrationScopedEvents, T as membershipCardListContent, Ta as resolveBookingBusinessTimeZone, Tn as groupPublicEventsByRun, Tr as ctaRowFragment, Ut as formatEventPriceDisplay, V as eventCollectionHydrationSchema, Vr as when, Vt as formatEventPrice, Wi as resolveEffectiveArrangement, Wt as buildCalendarViewport, X as selectCardListPresentation, Xn as formBlockDefinition, Xt as formatEventClockLabel, Y as resolveCardListSchedule, Yt as formatDate, Z as MediaNodeServer, Zn as buildFormInteractiveIslandProps, Zr as runTransforms, Zt as formatEventCompactDateRail, _ as productListBlockDefinition, _a as formatDateTimeRange, _n as browserReadAuthoritySchema, _r as blogFeaturedPostFragment, a as normalizeLocationMapProps, aa as unavailableReadinessFact, ai as ClockIcon, an as getLocalDateKey, ar as listLookControl, at as resolvePublicMediaUrl, b as buildCheckoutInteractiveIslandProps, ba as formatBookingCompactEnglishTime, bn as formatTotalCapacity, br as formCopyFragment, ca as orderedLiveRunSessions, ci as FileSpreadsheetIcon, cn as formatDateKey, cr as itemRole, ct as setContextResolveImageUrlContext, d as newsletterBlockSubmissionMessage, da as parseMailingListRuntimeContext, di as PlusIcon, dn as getWeekCalendarDayTuple, dr as clsx, dt as getContainerClass, ei as resolveBlockIconRenderValue, en as formatEventNextDateFact, er as defineInteractiveIslandMetaKeys, et as MediaPlaceholder, f as giftingBlockDefinition, fi as inlineTextToPlainText, fn as getWeekCalendarDays, fr as richTextFragment, g as productDetailBlockDefinition, ga as formatDateRange, gn as formatBookingSchedulePresentation, gr as faqHeadingFragment, gt as previewStageSchema, h as cartBlockDefinition, ha as formatDate$1, hn as resolveRuntimeEventDestination, hr as faqAccordionFragment, ht as bookingNowSchema, i as buildGoogleMapsDirectionsUrl, ia as pageTemplateFromEntry, ii as CirclePlusIcon, in as resolveEventTimeZone, ir as listItemPresentation, j as eventCalendarBlockDefinition, ja as publicEventPricingCurrency, jn as resolveFeatureCardGeneratedIconSizePx, jr as boxStyleClassNames, jt as resolveOfferingsPreviewGroups, k as publicRouteCandidatesSchema, ka as formatBookingPriceDisplay, ki as bindingSchema, kn as blockBookingPaymentTermsSchema, kr as defineFragment, kt as offeringsListingFor, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, la as resolveWholeSeriesBookingPhase, li as FileTextIcon, ln as getDayOfWeek, lt as sanitizeHref, m as checkoutBlockDefinition, ma as sameMailingListPlacementTargeting, mi as parseInlineTextFromUnknown, mn as isToday, mr as cardFragment, mt as buildEventRegistrationInteractiveIslandProps, na as admitReadinessFacts, ni as ChevronDownIcon, nn as formatTime, nr as defineClientOwnedBlockRuntime, o as toLocationMapHydrationProps, oa as CANCELLED_SESSION_STATUS, oi as FileArchiveIcon, on as getLocalMinuteOfDay, or as listLookSlot, ot as buildResolveImageUrlContext, p as buildGiftingInteractiveIslandProps, pa as parseMailingListPlacementTargeting, pi as isInlineTextEmpty, pn as isSameCalendarDay, pr as headingFragment, pt as eventRegistrationBlockDefinition, q as CardListContentPart, qt as eventLocalDateKey, r as normalizeBlockContent, ra as loadedReadinessFact, ri as CircleMinusIcon, rn as groupEventsByDate, rr as defineProgressiveBlockRuntime, s as newsletterSignupBlockDefinition, sa as nextLiveRunSessionStartMs, si as FileAudioIcon, sn as addDays, sr as resolvedItemSurfaceProps, st as getCurrentResolveImageUrlContext, t as getBlockDefinition, ta as chosenString, ti as ArrowDownIcon, tn as formatEventTimeRange, tr as createZodCodec, u as buildNewsletterFormInteractiveIslandProps, ua as buildMailingListSignupBlockSourceRef, ui as MinusIcon, un as getOrderedDayNames, ur as Grid, ut as getCardOrientation, v as shopBlockDefinition, vn as canJoinEventWaitlistOnAnyMode, vr as singleButtonFragment, w as shopProductPresentation, wa as parseLocalScheduleTime, wi as parseFieldDefinitions, wn as blockSiteTermsSchema, wr as heroCtaRowFragment, x as buildProductDetailInteractiveIslandProps, xa as getBookingLocalDateKey, xn as getEventAvailability, xr as testimonialsCarouselFragment, xt as normalizeEventRegistrationPageSurfaceSubject, y as buildCartInteractiveIslandProps, ya as compareLocalScheduleDates, yn as formatEventRemainingPlaces, yr as formEmbedFragment, z as buildEventCollectionListingDisplay, zn as readRuntimeNow, zr as ctaButton, zt as SpinnerNode } from "./registry-eFjKtEhF.mjs";
4
- import { g as validateManifestDraft, h as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-ruoyXb_0.mjs";
5
- import { C as resolvePageRouteTarget, D as parseStoredVariant, E as toPresentationPage, S as resolveEntryRouteTarget, T as toEditorPresentationPage, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as buildPageRenderPlan, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-B7ukYXXR.mjs";
6
- import { E as ICON_CONFIG, En as defaultThemeTokens, Jn as parseThemeColorToken, Jt as testimonialsCompositionTreatmentValues, Ln as getTextColorForBackground, N as generateDefaultButtonSystem, P as parseThemeButtonVariantId, R as parseThemeForPersistence, Rt as featureCardCompositionTreatmentValues, Vt as introCompositionTreatmentValues, Wt as offeringsPreviewCompositionTreatmentValues, cn as rgbColorValue, gn as resolveOnColorForThemeToken, hn as isCssColorLiteral, in as backgroundColorStyle, ln as textColorStyle, sn as mergeStyles, vn as resolveTokenOrCssColorValue } from "./schema-C3dJ5UkL.mjs";
7
- import { A as arrangementLookHooks } from "./siteChromeOverlayClearance-DALIAMwo.mjs";
3
+ import { $ as RichText, $i as CANCELLED_SESSION_STATUS, $n as formBlockDefinition, $t as formatEventHourLabel, A as buildOfferingsCatalogueListing, Aa as publicEventPricingCurrency, An as FEATURE_CARD_ICON_TREATMENTS, Ar as isBlockButtonRole, At as offeringsListingFor, B as buildEventCollectionListingDisplay, Bn as teamMemberBiography, Bt as buildEventListWeek, C as buildShopInteractiveIslandProps, Ca as parseLocalScheduleTime, Cn as isEventFull, Cr as formEmbedFragment, Ct as resolveEventRegistrationScopedEvents, D as passCardListContent, Da as toUtcIsoDateTimeString, Dn as blockBookingConsentSchema, Dr as ctaCopyFragment, Dt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, E as membershipClassesLabel, Ea as toScheduledBookingDateTime, En as publicEventsArraySchema, Er as testimonialsHeadingFragment, Fa as formatCurrencyAmount, Fn as composeHeaderSectionWrapperClassName, Fr as boxStyleClassNames, Ft as ThemedButton, Gr as el, H as eventCollectionHydrationSchema, Hn as readRuntimeNow, Ht as formatEventPriceAmount, I as eventListingBlockDefinition, Ia as parseCurrencyCode, In as markEditableSurfaceForwarding, Ir as normalizeBoxStylesBorder, It as ThemedButtonLink, J as CardListContentPart, Ji as chosenString, Jn as staticHeaderChromeRuntime, Jt as formatCalendarTitle, K as catalogueEventCardProps, Kr as when, Kt as eventDateOptions, L as buildEventListingInteractiveIslandProps, Li as PUBLIC_DOWNLOAD_MEDIA_TYPES, Ln as splitPositioningClasses, Lr as resolveCardRoleForBoxStyles, Lt as ThemedDownloadLink, M as eventCalendarBlockDefinition, Ma as publicEventPricingType, Mn as shouldReserveFeatureCardIconZone, Mr as bodyCopyFragment, Mt as resolveOfferingsPreviewGroups, N as buildEventCalendarInteractiveIslandProps, Na as resolveExactOrFreePriceDisplay, Nr as defineFragment, Nt as resolveOfferingsRenderInput, O as offeringsPreviewBlockDefinition, Oa as formatBookingPriceDisplay, On as bookingConsentCarrierSchema, Or as heroCtaRowFragment, Ot as buildOfferingsPreviewListing, P as buildEventCalendarListingDisplay, Pa as resolvePricingOptionsPriceDisplay, Pi as bindingSchema, Pt as ThemedAuthoredButton, Q as MediaNodeServer, Qi as unavailableReadinessFact, Qt as formatEventDateParts, R as buildEventCollectionDisplay, Rt as getIconComponent, S as buildProductListInteractiveIslandProps, Sa as parseBookingLocalDate, Sn as getEventAvailabilityStatus, Sr as singleButtonFragment, St as normalizeEventRegistrationPageSurfaceSubject, T as membershipCardListContent, Ta as toBookingTimeZone, Tn as groupPublicEventsByRun, Tr as testimonialsCarouselFragment, U as eventCollectionSourceSchemaShape, Un as resolveDateRuntimeContext, Ur as resolveBackgroundColorValue, Ut as formatEventPriceDisplay, V as eventCollectionDisplaySchemaShape, Vn as teamMemberCardBiography, Vt as formatEventPrice, Wr as ctaButton, Wt as buildCalendarViewport, X as resolveCardListSchedule, Xi as loadedReadinessFact, Xt as formatEventClockLabel, Y as CardListLeadDate, Yi as admitReadinessFacts, Yt as formatDate, Z as selectCardListPresentation, Zi as pageTemplateFromEntry, Zt as formatEventCompactDateRail, _ as productListBlockDefinition, _i as inlineTextToPlainText, _n as browserReadAuthoritySchema, _r as headingFragment, _t as previewStageSchema, a as normalizeLocationMapSource, ai as resolveBlockIconRenderValue, an as getLocalDateKey, ar as defineClientOwnedBlockRuntime, b as buildCheckoutInteractiveIslandProps, ba as getBookingLocalDateKey, bn as formatTotalCapacity, br as faqHeadingFragment, ca as decideLocationSourcePermission, ci as CircleMinusIcon, cn as formatDateKey, cr as listLookControl, ct as getCurrentResolveImageUrlContext, d as newsletterBlockSubmissionMessage, di as FileArchiveIcon, dn as getWeekCalendarDayTuple, dr as resolvedItemSurfaceProps, dt as getCardOrientation, ea as nextLiveRunSessionStartMs, en as formatEventNextDateFact, er as buildFormInteractiveIslandProps, et as ImagePresets, f as giftingBlockDefinition, fi as FileAudioIcon, fn as getWeekCalendarDays, fr as itemRole, ft as getContainerClass, g as productDetailBlockDefinition, ga as formatDateTimeRange, gi as PlusIcon, gn as formatBookingSchedulePresentation, gr as richTextFragment, gt as bookingNowSchema, h as cartBlockDefinition, ha as formatDateRange, hi as MinusIcon, hn as resolveRuntimeEventDestination, hr as clsx, ht as buildEventRegistrationInteractiveIslandProps, i as normalizeLocationMapProps, ia as parseMailingListRuntimeContext, ii as parseBlockIconValue, in as resolveEventTimeZone, ir as createZodCodec, j as offeringsCatalogueShape, ja as publicEventPricingDisplay, jn as resolveFeatureCardGeneratedIconSizePx, jr as heroCopyFragment, jt as resolveOfferingsPreviewGroupCta, k as publicRouteCandidatesSchema, ka as isPublicEventPricingOptionDisplayable, ki as parseFieldDefinitions, kn as blockBookingPaymentTermsSchema, kr as ctaRowFragment, kt as normalizeOfferingsPreviewItemLimit, l as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, li as CirclePlusIcon, ln as getDayOfWeek, lr as listLookSlot, lt as setContextResolveImageUrlContext, m as checkoutBlockDefinition, ma as formatDate$1, mi as FileTextIcon, mn as isToday, mr as Grid, mt as eventRegistrationBlockDefinition, na as resolveWholeSeriesBookingPhase, ni as runTransforms, nn as formatTime, nr as createInteractiveIslandCodec, o as resolveLocationMapLocation, oa as parseMailingListPlacementTargeting, oi as ArrowDownIcon, on as getLocalMinuteOfDay, or as defineProgressiveBlockRuntime, ot as resolvePublicMediaUrl, p as buildGiftingInteractiveIslandProps, pa as mapDrawingSchema, pi as FileSpreadsheetIcon, pn as isSameCalendarDay, q as listingEventCardProps, qt as eventLocalDateKey, r as normalizeBlockContent, ra as buildMailingListSignupBlockSourceRef, ri as buildGeneratedBlockIconRenderAssetLookupFromUnknown, rn as groupEventsByDate, rr as defineInteractiveIslandMetaKeys, s as newsletterSignupBlockDefinition, sa as sameMailingListPlacementTargeting, si as ChevronDownIcon, sn as addDays, sr as listItemPresentation, st as buildResolveImageUrlContext, t as getBlockDefinition, ta as orderedLiveRunSessions, tn as formatEventTimeRange, tr as buildInteractiveIslandProps, tt as MediaPlaceholder, u as buildNewsletterFormInteractiveIslandProps, ua as normalizeLocationAddressText, ui as ClockIcon, un as getOrderedDayNames, ur as lookListPresentationSchemaShape, ut as sanitizeHref, v as shopBlockDefinition, va as compareLocalScheduleDates, vi as isInlineTextEmpty, vn as canJoinEventWaitlistOnAnyMode, vr as cardFragment, w as shopProductPresentation, wa as resolveBookingBusinessTimeZone, wn as blockSiteTermsSchema, wr as formCopyFragment, x as buildProductDetailInteractiveIslandProps, xa as getLocalScheduleDate, xn as getEventAvailability, xr as blogFeaturedPostFragment, y as buildCartInteractiveIslandProps, ya as formatBookingCompactEnglishTime, yi as parseInlineTextFromUnknown, yn as formatEventRemainingPlaces, yr as faqAccordionFragment, z as buildEventCollectionHydration, zn as parseTeamMemberSpecialties, zt as SpinnerNode } from "./registry-Digv02oV.mjs";
4
+ import { _ as validateManifestDraft, g as compileManifestContentContract, u as readSdkPreviewPublishedPlacement } from "./themeAdmission-CSd_Vusz.mjs";
5
+ import { C as resolvePageRouteTarget, D as parseStoredVariant, E as toPresentationPage, S as resolveEntryRouteTarget, T as toEditorPresentationPage, _ as buildLinkedContentEditTarget, b as defaultTransforms, f as buildPageRenderPlan, g as retargetJoinsAcrossOmissions, h as renderedJoinLayout, m as joinSlotKey, p as composePageJoins, v as resolveLinkedEntryInlineFieldEligibility, w as resolveRouteTarget } from "./prefetchBlockData-LfgxSJYE.mjs";
6
+ import { _ as resolveEffectiveArrangement, d as arrangementLookHooks, h as arrangementManifestFromVariants } from "./effectiveNavLinkStyle-B-MKSt0p.mjs";
7
+ import "./site-styles-DrkprQPL.mjs";
8
8
  import { a as isRecord$4, i as isObjectRecord, t as RichTextDocSchema } from "./richTextSchema-YYc85FX4.mjs";
9
- import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-C5Mu-z0F.mjs";
9
+ import { a as buildThemeRuntime$1, n as ResponsiveScope, o as mergeContentWithBlockStyleOverrides, r as ThemeScope$1, s as generateDefaultAccordionSystem } from "./src-08GY1njw.mjs";
10
10
  import { t as getAtPath } from "./src-Cxucn-1P.mjs";
11
11
  import { z } from "zod";
12
12
  import * as React$1 from "react";
@@ -132,6 +132,26 @@ function selectCategoryView(categories, services, filterCategoryId) {
132
132
  };
133
133
  }
134
134
  //#endregion
135
+ //#region ../core/src/locationLinks.ts
136
+ /** Both outbound actions use the arrival pin, never match evidence. */
137
+ function locationMapLinks(input) {
138
+ const target = input.location != null ? `${input.location.lat},${input.location.lng}` : normalizeLocationAddressText(input.addressText);
139
+ if (target === null) return {
140
+ directions: null,
141
+ googleMaps: null
142
+ };
143
+ const directions = new URL("https://www.google.com/maps/dir/");
144
+ directions.searchParams.set("api", "1");
145
+ directions.searchParams.set("destination", target);
146
+ const search = new URL("https://www.google.com/maps/search/");
147
+ search.searchParams.set("api", "1");
148
+ search.searchParams.set("query", target);
149
+ return {
150
+ directions: directions.toString(),
151
+ googleMaps: search.toString()
152
+ };
153
+ }
154
+ //#endregion
135
155
  //#region ../core/src/opening-hours.ts
136
156
  const openingHoursWeekdayLabels = {
137
157
  monday: "Monday",
@@ -298,6 +318,50 @@ function getFragmentRegistry() {
298
318
  return fragmentRegistry;
299
319
  }
300
320
  //#endregion
321
+ //#region ../blocks/src/system/blocks/events/shared/detailsSelection.ts
322
+ function isFutureOrNow(iso, nowIso) {
323
+ const ts = Date.parse(iso);
324
+ const now = Date.parse(nowIso);
325
+ if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
326
+ return ts >= now;
327
+ }
328
+ const localDateKey = (startsAt, timeZone) => getBookingLocalDateKey(toScheduledBookingDateTime({
329
+ startsAt,
330
+ timeZone
331
+ }));
332
+ function selectRequested(events, requested) {
333
+ if (!requested) return null;
334
+ const byId = events.find((event) => event.occurrenceId === requested.id || event.id === requested.id);
335
+ if (byId) return byId;
336
+ if (!requested.startsAt || !requested.timeZone) return null;
337
+ const requestedDate = localDateKey(requested.startsAt, requested.timeZone);
338
+ return events.find((event) => localDateKey(event.startsAt, event.timeZone) === requestedDate) ?? null;
339
+ }
340
+ function selectNextUpcoming(events, nowIso) {
341
+ return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
342
+ }
343
+ function selectCompletedWholeSeries(events) {
344
+ if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
345
+ return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
346
+ }
347
+ function selectEventDetailsCandidate(events, requested, nowIso) {
348
+ const selected = selectRequested(events, requested);
349
+ if (selected) return {
350
+ event: selected,
351
+ mode: "selected"
352
+ };
353
+ const upcoming = selectNextUpcoming(events, nowIso);
354
+ if (upcoming) return {
355
+ event: upcoming,
356
+ mode: "next"
357
+ };
358
+ const completed = selectCompletedWholeSeries(events);
359
+ return completed ? {
360
+ event: completed,
361
+ mode: "completed"
362
+ } : null;
363
+ }
364
+ //#endregion
301
365
  //#region ../blocks/src/system/runtime/nodes/events/domain/bookability.ts
302
366
  /**
303
367
  * Whether a public event has a registration path a visitor can take.
@@ -1521,6 +1585,201 @@ function leadItemPresentation(presentation, index, count) {
1521
1585
  };
1522
1586
  }
1523
1587
  //#endregion
1588
+ //#region ../blocks/src/system/runtime/nodes/svg.tsx
1589
+ /**
1590
+ * Strict SVG-`transform` validator.
1591
+ *
1592
+ * Accepts only a whitespace/comma-separated list of the geometric transform
1593
+ * functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
1594
+ * arguments are plain numbers. This deliberately rejects anything else —
1595
+ * `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
1596
+ * so a persisted custom-block tree can't smuggle an executable or exfiltrating
1597
+ * value into the attribute.
1598
+ */
1599
+ const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
1600
+ const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
1601
+ const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
1602
+ const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
1603
+ function safeTransform(value) {
1604
+ if (typeof value !== "string") return void 0;
1605
+ const trimmed = value.trim();
1606
+ if (trimmed.length === 0) return void 0;
1607
+ return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
1608
+ }
1609
+ /**
1610
+ * Turn paint props into a CSS style object. Colour values pass through as-is so
1611
+ * they may reference theme tokens via `var()`, which only resolves in a CSS
1612
+ * property context (not in a bare presentation attribute).
1613
+ */
1614
+ function paintStyle(shape) {
1615
+ const style = {};
1616
+ if (shape.fill !== void 0) style.fill = shape.fill;
1617
+ if (shape.stroke !== void 0) style.stroke = shape.stroke;
1618
+ if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
1619
+ if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
1620
+ if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
1621
+ if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
1622
+ if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
1623
+ if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
1624
+ return style;
1625
+ }
1626
+ function renderShape(shape, key) {
1627
+ const style = paintStyle(shape);
1628
+ const transform = safeTransform(shape.transform);
1629
+ switch (shape.kind) {
1630
+ case "text": return /* @__PURE__ */ jsx("text", {
1631
+ className: shape.className,
1632
+ x: shape.x,
1633
+ y: shape.y,
1634
+ transform,
1635
+ children: shape.text
1636
+ }, key);
1637
+ case "path": return /* @__PURE__ */ jsx("path", {
1638
+ d: shape.d,
1639
+ className: shape.className,
1640
+ fillRule: shape.fillRule,
1641
+ style,
1642
+ transform
1643
+ }, key);
1644
+ case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
1645
+ cx: shape.cx,
1646
+ cy: shape.cy,
1647
+ rx: shape.rx,
1648
+ ry: shape.ry,
1649
+ style,
1650
+ transform
1651
+ }, key);
1652
+ case "circle": return /* @__PURE__ */ jsx("circle", {
1653
+ cx: shape.cx,
1654
+ cy: shape.cy,
1655
+ r: shape.r,
1656
+ style,
1657
+ transform
1658
+ }, key);
1659
+ case "rect": return /* @__PURE__ */ jsx("rect", {
1660
+ x: shape.x,
1661
+ y: shape.y,
1662
+ className: shape.className,
1663
+ width: shape.width,
1664
+ height: shape.height,
1665
+ rx: shape.rx,
1666
+ ry: shape.ry,
1667
+ style,
1668
+ transform
1669
+ }, key);
1670
+ case "line": return /* @__PURE__ */ jsx("line", {
1671
+ x1: shape.x1,
1672
+ y1: shape.y1,
1673
+ x2: shape.x2,
1674
+ y2: shape.y2,
1675
+ style,
1676
+ transform
1677
+ }, key);
1678
+ default: return null;
1679
+ }
1680
+ }
1681
+ const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
1682
+ return /* @__PURE__ */ jsx("svg", {
1683
+ viewBox,
1684
+ width,
1685
+ height,
1686
+ className,
1687
+ style,
1688
+ "aria-hidden": ariaHidden || void 0,
1689
+ role: ariaLabel ? "img" : void 0,
1690
+ "aria-label": ariaLabel,
1691
+ xmlns: "http://www.w3.org/2000/svg",
1692
+ fill: "none",
1693
+ children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
1694
+ });
1695
+ };
1696
+ //#endregion
1697
+ //#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
1698
+ const PIN_PATH = "M0 0C-3.5-9-13-15-13-25A13 13 0 1 1 13-25C13-15 3.5-9 0 0ZM0-20.5A4.5 4.5 0 1 0 0-29.5A4.5 4.5 0 1 0 0-20.5Z";
1699
+ const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
1700
+ function pathShape(path) {
1701
+ return path.kind === "polygon" ? {
1702
+ kind: "path",
1703
+ className: path.className,
1704
+ fillRule: path.fillRule,
1705
+ d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
1706
+ } : {
1707
+ kind: "path",
1708
+ className: path.className,
1709
+ d: commands(path.points)
1710
+ };
1711
+ }
1712
+ function labelShapes(label) {
1713
+ const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
1714
+ return [label.haloClassName, label.className].map((className) => ({
1715
+ kind: "text",
1716
+ className,
1717
+ x,
1718
+ y,
1719
+ transform,
1720
+ text: label.text
1721
+ }));
1722
+ }
1723
+ /** The drawing the renderer below would show, or null when there's nothing it can draw. */
1724
+ function readableMapDrawing(drawing) {
1725
+ const parsed = mapDrawingSchema.safeParse(drawing);
1726
+ return parsed.success ? parsed.data : null;
1727
+ }
1728
+ /** Untrusted standalone callers retain boundary admission. */
1729
+ function MapDrawingSvg(props) {
1730
+ const drawing = readableMapDrawing(props.drawing);
1731
+ return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
1732
+ ...props,
1733
+ drawing
1734
+ }) : null;
1735
+ }
1736
+ /** Render an already admitted value without allocating another validation copy. */
1737
+ function AdmittedMapDrawingSvg(props) {
1738
+ const drawing = props.drawing;
1739
+ const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
1740
+ const shapes = [
1741
+ {
1742
+ kind: "rect",
1743
+ className: frame.backgroundClass,
1744
+ x: 0,
1745
+ y: 0,
1746
+ width: 800,
1747
+ height: 800
1748
+ },
1749
+ ...frame.paths.map(pathShape),
1750
+ ...frame.labels.flatMap(labelShapes),
1751
+ {
1752
+ kind: "path",
1753
+ className: frame.pin.className,
1754
+ fillRule: "evenodd",
1755
+ d: PIN_PATH,
1756
+ transform: `translate(${frame.pin.point.join(" ")})`
1757
+ }
1758
+ ];
1759
+ return /* @__PURE__ */ jsxs("figure", {
1760
+ className: `rb-map-drawing ${props.className ?? ""}`.trim(),
1761
+ children: [/* @__PURE__ */ jsx("div", {
1762
+ className: "rb-map-drawing-crop",
1763
+ style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
1764
+ children: /* @__PURE__ */ jsx(SvgNode, {
1765
+ className: `map-${name}`,
1766
+ viewBox: frame.viewBox.join(" "),
1767
+ shapes,
1768
+ ariaHidden: false,
1769
+ ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
1770
+ })
1771
+ }), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
1772
+ href: "https://www.openstreetmap.org/copyright",
1773
+ target: "_blank",
1774
+ rel: "noreferrer",
1775
+ children: "OpenStreetMap contributors"
1776
+ })] })]
1777
+ });
1778
+ }
1779
+ function cropHeightStyle(height, heightAs) {
1780
+ return heightAs === "minimum" ? { minHeight: height } : { height };
1781
+ }
1782
+ //#endregion
1524
1783
  //#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
1525
1784
  function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
1526
1785
  return /* @__PURE__ */ jsxs("svg", {
@@ -1631,7 +1890,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
1631
1890
  formattedTime,
1632
1891
  hasImage,
1633
1892
  headingLevel: cardHeadingLevel,
1634
- mapSlot,
1893
+ mapSlot: resolveVenueMapSlot(event.venue, mapSlot),
1635
1894
  priceText,
1636
1895
  showMap,
1637
1896
  showSummary,
@@ -1642,6 +1901,13 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
1642
1901
  })]
1643
1902
  });
1644
1903
  };
1904
+ function resolveVenueMapSlot(venue, override) {
1905
+ return override ?? (venue?.drawing ? /* @__PURE__ */ jsx(MapDrawingSvg, {
1906
+ drawing: venue.drawing,
1907
+ label: venue.name,
1908
+ height: 255
1909
+ }) : null);
1910
+ }
1645
1911
  function EventCardMedia(props) {
1646
1912
  if (props.lookPresentation.lookSlots !== void 0) return /* @__PURE__ */ jsx(EventLookDate, {
1647
1913
  event: props.event,
@@ -2025,23 +2291,31 @@ function EventQuickDates({ events, pathname, buttonVariant = "primary", dateStyl
2025
2291
  })]
2026
2292
  });
2027
2293
  }
2294
+ /**
2295
+ * The complete link that books one date, shared by the strip and by date rows.
2296
+ * Null when the date has no registration path (closed, paused, not open yet,
2297
+ * no registration, or full with no waitlist), so no caller repeats that gate.
2298
+ */
2299
+ function eventDateBookingLink(event, pathname, dateLabel) {
2300
+ if (!isBookableEvent(event)) return null;
2301
+ const cta = resolveEventCta(event);
2302
+ return {
2303
+ href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(pathname, {
2304
+ kind: "event_occurrence",
2305
+ occurrenceId: event.occurrenceId
2306
+ }),
2307
+ target: cta.external ? "_blank" : void 0,
2308
+ rel: cta.external ? "noopener noreferrer" : void 0,
2309
+ "aria-label": `${cta.label} ${event.title}, ${dateLabel}`,
2310
+ label: cta.label
2311
+ };
2312
+ }
2028
2313
  /** Decide the formatted date and complete booking link before rendering. */
2029
2314
  function quickDateCardPresentation(props) {
2030
- const event = props.event;
2031
- const date = formatEventQuickDate(event, props.dateStyle);
2032
- const cta = resolveEventCta(event);
2315
+ const date = formatEventQuickDate(props.event, props.dateStyle);
2033
2316
  return {
2034
2317
  date,
2035
- bookingLink: {
2036
- href: resolveRuntimeEventDestination(event).kind === "external" ? cta.href : resolveDedicatedBookingHref(props.pathname, {
2037
- kind: "event_occurrence",
2038
- occurrenceId: event.occurrenceId
2039
- }),
2040
- target: cta.external ? "_blank" : void 0,
2041
- rel: cta.external ? "noopener noreferrer" : void 0,
2042
- "aria-label": `${cta.label} ${event.title}, ${date.label}`,
2043
- label: cta.label
2044
- }
2318
+ bookingLink: eventDateBookingLink(props.event, props.pathname, date.label)
2045
2319
  };
2046
2320
  }
2047
2321
  function EventQuickDateCard(props) {
@@ -2077,12 +2351,12 @@ function EventQuickDateCard(props) {
2077
2351
  children: [/* @__PURE__ */ jsx("span", {
2078
2352
  className: "event-quick-date-price",
2079
2353
  children: formatEventPrice(event)
2080
- }), /* @__PURE__ */ jsx(ThemedButtonLink, {
2354
+ }), bookingLink ? /* @__PURE__ */ jsx(ThemedButtonLink, {
2081
2355
  variant: props.buttonVariant,
2082
2356
  size: "sm",
2083
2357
  extraClassName: "event-quick-date-cta",
2084
2358
  ...bookingLink
2085
- })]
2359
+ }) : null]
2086
2360
  })
2087
2361
  ]
2088
2362
  });
@@ -2447,10 +2721,23 @@ const PRIVATE_LOG_KEYS = /* @__PURE__ */ new Set([
2447
2721
  "requestbodyvalues",
2448
2722
  "provideroptions",
2449
2723
  "byok",
2450
- "apikey"
2724
+ "apikey",
2725
+ "drafttoken"
2451
2726
  ]);
2727
+ /**
2728
+ * Query values never logged, wherever a URL turns up (both Next apps use this
2729
+ * logger, and URLs also occur inside nested errors): the draft credential, and
2730
+ * an unsaved Appearance body. That body travels as `changes` on the preview
2731
+ * page and, encoded, inside `targetPath` on the dashboard's `/preview/start`,
2732
+ * so the whole `targetPath` value goes too: no encoding of `changes` can hide
2733
+ * inside it.
2734
+ */
2735
+ function redactPrivateQueryValues(value) {
2736
+ return value.replace(/([?&](?:draftToken|targetPath|changes)=)[^&#\s"']*/gi, "$1[redacted]");
2737
+ }
2452
2738
  function logJsonValue(key, value, seen) {
2453
2739
  if (PRIVATE_LOG_KEYS.has(key.toLowerCase())) return void 0;
2740
+ if (typeof value === "string") return redactPrivateQueryValues(value);
2454
2741
  if (typeof value === "bigint") return String(value);
2455
2742
  if (value === null || typeof value !== "object") return value;
2456
2743
  if (seen.has(value)) return "[circular]";
@@ -2473,11 +2760,11 @@ function safeStringify(value, maxLength) {
2473
2760
  }
2474
2761
  function toScalar(value, maxLength) {
2475
2762
  if (value == null) return null;
2476
- if (typeof value === "string") return truncate(value, maxLength);
2763
+ if (typeof value === "string") return truncate(redactPrivateQueryValues(value), maxLength);
2477
2764
  if (typeof value === "number") return Number.isFinite(value) ? value : null;
2478
2765
  if (typeof value === "boolean") return value;
2479
2766
  if (value instanceof Date) return value.toISOString();
2480
- if (value instanceof Error) return truncate(`${value.name}: ${value.message}`, maxLength);
2767
+ if (value instanceof Error) return truncate(redactPrivateQueryValues(`${value.name}: ${value.message}`), maxLength);
2481
2768
  return safeStringify(value, maxLength);
2482
2769
  }
2483
2770
  function sanitizeV2(fields, maxStringLength) {
@@ -2582,6 +2869,138 @@ function renderMark(mark, key, child) {
2582
2869
  }
2583
2870
  }
2584
2871
  //#endregion
2872
+ //#region ../blocks/src/system/runtime/nodes/shared/LocationMapActions.tsx
2873
+ /**
2874
+ * `compact` (event details) is one plain Google Maps text link under the venue;
2875
+ * `block` (the map block) leads with a secondary directions button and keeps
2876
+ * the same Google Maps text link beside it.
2877
+ */
2878
+ function LocationMapActions(props) {
2879
+ const links = locationMapLinks(props);
2880
+ const directionsLabel = props.directionsLabel ?? "Get directions";
2881
+ const googleMapsLabel = props.googleMapsLabel ?? "Open in Google Maps";
2882
+ if (props.layout === "block") return /* @__PURE__ */ jsxs("div", {
2883
+ className: "rb-location-map-actions",
2884
+ children: [links.directions ? /* @__PURE__ */ jsx(ThemedButtonLink, {
2885
+ href: links.directions,
2886
+ target: "_blank",
2887
+ rel: "noreferrer",
2888
+ variant: "secondary",
2889
+ size: "sm",
2890
+ label: directionsLabel
2891
+ }) : null, links.googleMaps ? /* @__PURE__ */ jsx("a", {
2892
+ className: "rb-location-map-link",
2893
+ href: links.googleMaps,
2894
+ target: "_blank",
2895
+ rel: "noreferrer",
2896
+ children: googleMapsLabel
2897
+ }) : null]
2898
+ });
2899
+ return links.googleMaps ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("a", {
2900
+ className: "rb-location-map-link",
2901
+ href: links.googleMaps,
2902
+ target: "_blank",
2903
+ rel: "noreferrer",
2904
+ children: googleMapsLabel
2905
+ }) }) : null;
2906
+ }
2907
+ //#endregion
2908
+ //#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
2909
+ function OpeningHoursTable({ hours, lookLayout }) {
2910
+ if (!hours) return null;
2911
+ return /* @__PURE__ */ jsxs("div", {
2912
+ className: "rb-location-map-hours",
2913
+ "data-slot": lookLayout ? "schedule" : void 0,
2914
+ children: [/* @__PURE__ */ jsxs("table", { children: [/* @__PURE__ */ jsx("caption", { children: "Opening hours" }), /* @__PURE__ */ jsx("tbody", { children: formatOpeningHoursRows(hours).map((row) => /* @__PURE__ */ jsxs("tr", {
2915
+ "data-slot": lookLayout ? "row" : void 0,
2916
+ "data-closed": row.kind === "closed" ? true : void 0,
2917
+ children: [/* @__PURE__ */ jsx("th", {
2918
+ scope: "row",
2919
+ "data-slot": lookLayout ? "fact-label" : void 0,
2920
+ children: row.label
2921
+ }), /* @__PURE__ */ jsx("td", {
2922
+ "data-slot": lookLayout ? "fact-value" : void 0,
2923
+ children: row.hours
2924
+ })]
2925
+ }, row.label)) })] }), hours.note ? /* @__PURE__ */ jsx("p", { children: hours.note }) : null]
2926
+ });
2927
+ }
2928
+ function LocationMapView(props) {
2929
+ const { addressText, location } = props;
2930
+ const hours = props.showOpeningHours === false ? null : props.openingHours ?? null;
2931
+ if (![
2932
+ location,
2933
+ addressText,
2934
+ hours
2935
+ ].some(Boolean)) return /* @__PURE__ */ jsx("p", {
2936
+ className: "rb-caption",
2937
+ style: textColorStyle("mutedText"),
2938
+ children: props.unresolvedMessage ?? "Location details coming soon."
2939
+ });
2940
+ return /* @__PURE__ */ jsx(LocationMapDetails, {
2941
+ ...props,
2942
+ openingHours: hours
2943
+ });
2944
+ }
2945
+ /** The entrance-photo Look leaves the drawing out; Look layouts treat the authored height as a minimum. */
2946
+ function LocationMapDrawing(props) {
2947
+ return /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
2948
+ drawing: props.drawing,
2949
+ wider: props.wider,
2950
+ label: props.addressText ?? void 0,
2951
+ height: props.heightPx,
2952
+ heightAs: props.lookLayout ? "minimum" : "fixed"
2953
+ });
2954
+ }
2955
+ /**
2956
+ * `data-map="none"` marks details shown without a drawing (none yet, or the entrance photo
2957
+ * takes its place), so map Looks lay the details out on their own instead of beside an empty space.
2958
+ */
2959
+ function LocationMapDetails(props) {
2960
+ const drawing = props.showMap === false ? null : readableMapDrawing(props.drawing);
2961
+ return /* @__PURE__ */ jsxs("div", {
2962
+ className: "rb-location-map",
2963
+ "data-map": drawing ? "drawing" : "none",
2964
+ children: [drawing ? /* @__PURE__ */ jsx(LocationMapDrawing, {
2965
+ ...props,
2966
+ drawing
2967
+ }) : null, /* @__PURE__ */ jsxs("div", {
2968
+ className: "rb-location-map-details",
2969
+ ...props.detailsSlot,
2970
+ children: [/* @__PURE__ */ jsx(LocationMapPlace, { ...props }), /* @__PURE__ */ jsx(OpeningHoursTable, {
2971
+ lookLayout: props.lookLayout,
2972
+ hours: props.openingHours ?? null
2973
+ })]
2974
+ })]
2975
+ });
2976
+ }
2977
+ /** Address, door note and the directions actions. */
2978
+ function LocationMapPlace(props) {
2979
+ const address = props.showAddressText && props.addressText ? props.addressText : null;
2980
+ return /* @__PURE__ */ jsxs("div", {
2981
+ className: "rb-location-map-place",
2982
+ "data-slot": props.lookLayout ? "copy" : void 0,
2983
+ children: [
2984
+ address ? /* @__PURE__ */ jsx("p", {
2985
+ className: "rb-location-map-address",
2986
+ "data-slot": props.lookLayout ? "headline" : void 0,
2987
+ children: address
2988
+ }) : null,
2989
+ props.doorNote ? /* @__PURE__ */ jsx("p", {
2990
+ className: "rb-location-map-door",
2991
+ children: props.doorNote
2992
+ }) : null,
2993
+ props.showDirections ? /* @__PURE__ */ jsx(LocationMapActions, {
2994
+ layout: "block",
2995
+ location: props.location,
2996
+ addressText: props.addressText,
2997
+ directionsLabel: props.directionsLabel,
2998
+ googleMapsLabel: props.googleMapsLabel
2999
+ }) : null
3000
+ ]
3001
+ });
3002
+ }
3003
+ //#endregion
2585
3004
  //#region ../blocks/src/system/runtime/nodes/basic.tsx
2586
3005
  const TextNode = ({ value, children, blockContent, inlineTextFallbackPath, ...rest }) => {
2587
3006
  const inlineText = parseInlineTextFromUnknown(value);
@@ -3092,7 +3511,7 @@ function getIslandRootProps(kind, id) {
3092
3511
  return resolved;
3093
3512
  }
3094
3513
  function serializeIslandProps(value) {
3095
- return JSON.stringify(value).replace(/</g, "\\u003c");
3514
+ return JSON.stringify(serializeSurfaceTree(value)).replace(/</g, "\\u003c");
3096
3515
  }
3097
3516
  function IslandPropsScript({ value }) {
3098
3517
  return /* @__PURE__ */ jsx("script", {
@@ -3403,128 +3822,31 @@ const HeaderSectionNode = ({ blockId, children, className, runtime, "data-previe
3403
3822
  blockId,
3404
3823
  islandId: blockId ?? void 0,
3405
3824
  previewSiteChromeSurface,
3406
- islandPropsNode: /* @__PURE__ */ jsx(IslandPropsScript, { value: { runtime: runtime ?? staticHeaderChromeRuntime } }),
3407
- as: asProp,
3408
- style: styleProp,
3409
- background: backgroundProp,
3410
- dataSlot: dataSlotProp,
3411
- children
3412
- });
3413
- };
3414
- var header_section_server_default = markEditableSurfaceForwarding(HeaderSectionNode);
3415
- //#endregion
3416
- //#region ../blocks/src/system/runtime/nodes/header-control.tsx
3417
- /** System navigation controls retain their runtime hooks independently of authored CTAs. */
3418
- function HeaderControlNode({ className, children, "aria-label": label, "aria-expanded": expanded, "aria-controls": controls, "aria-haspopup": hasPopup, "data-nav-mobile-toggle": mobileToggle, "data-nav-mobile-trigger": mobileTrigger }) {
3419
- return /* @__PURE__ */ jsx("button", {
3420
- type: "button",
3421
- className,
3422
- "aria-label": label,
3423
- "aria-expanded": expanded,
3424
- "aria-controls": controls,
3425
- "aria-haspopup": hasPopup,
3426
- "data-nav-mobile-toggle": mobileToggle,
3427
- "data-nav-mobile-trigger": mobileTrigger,
3428
- children
3429
- });
3430
- }
3431
- //#endregion
3432
- //#region ../blocks/src/system/runtime/nodes/svg.tsx
3433
- /**
3434
- * Strict SVG-`transform` validator.
3435
- *
3436
- * Accepts only a whitespace/comma-separated list of the geometric transform
3437
- * functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
3438
- * arguments are plain numbers. This deliberately rejects anything else —
3439
- * `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
3440
- * so a persisted custom-block tree can't smuggle an executable or exfiltrating
3441
- * value into the attribute.
3442
- */
3443
- const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
3444
- const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
3445
- const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
3446
- const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
3447
- function safeTransform(value) {
3448
- if (typeof value !== "string") return void 0;
3449
- const trimmed = value.trim();
3450
- if (trimmed.length === 0) return void 0;
3451
- return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
3452
- }
3453
- /**
3454
- * Turn paint props into a CSS style object. Colour values pass through as-is so
3455
- * they may reference theme tokens via `var()`, which only resolves in a CSS
3456
- * property context (not in a bare presentation attribute).
3457
- */
3458
- function paintStyle(shape) {
3459
- const style = {};
3460
- if (shape.fill !== void 0) style.fill = shape.fill;
3461
- if (shape.stroke !== void 0) style.stroke = shape.stroke;
3462
- if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
3463
- if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
3464
- if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
3465
- if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
3466
- if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
3467
- if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
3468
- return style;
3469
- }
3470
- function renderShape(shape, key) {
3471
- const style = paintStyle(shape);
3472
- const transform = safeTransform(shape.transform);
3473
- switch (shape.kind) {
3474
- case "path": return /* @__PURE__ */ jsx("path", {
3475
- d: shape.d,
3476
- style,
3477
- transform
3478
- }, key);
3479
- case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
3480
- cx: shape.cx,
3481
- cy: shape.cy,
3482
- rx: shape.rx,
3483
- ry: shape.ry,
3484
- style,
3485
- transform
3486
- }, key);
3487
- case "circle": return /* @__PURE__ */ jsx("circle", {
3488
- cx: shape.cx,
3489
- cy: shape.cy,
3490
- r: shape.r,
3491
- style,
3492
- transform
3493
- }, key);
3494
- case "rect": return /* @__PURE__ */ jsx("rect", {
3495
- x: shape.x,
3496
- y: shape.y,
3497
- width: shape.width,
3498
- height: shape.height,
3499
- rx: shape.rx,
3500
- ry: shape.ry,
3501
- style,
3502
- transform
3503
- }, key);
3504
- case "line": return /* @__PURE__ */ jsx("line", {
3505
- x1: shape.x1,
3506
- y1: shape.y1,
3507
- x2: shape.x2,
3508
- y2: shape.y2,
3509
- style,
3510
- transform
3511
- }, key);
3512
- default: return null;
3513
- }
3514
- }
3515
- const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, shapes }) => {
3516
- return /* @__PURE__ */ jsx("svg", {
3517
- viewBox,
3518
- width,
3519
- height,
3520
- className,
3521
- style,
3522
- "aria-hidden": ariaHidden,
3523
- xmlns: "http://www.w3.org/2000/svg",
3524
- fill: "none",
3525
- children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
3825
+ islandPropsNode: /* @__PURE__ */ jsx(IslandPropsScript, { value: { runtime: runtime ?? staticHeaderChromeRuntime } }),
3826
+ as: asProp,
3827
+ style: styleProp,
3828
+ background: backgroundProp,
3829
+ dataSlot: dataSlotProp,
3830
+ children
3526
3831
  });
3527
3832
  };
3833
+ var header_section_server_default = markEditableSurfaceForwarding(HeaderSectionNode);
3834
+ //#endregion
3835
+ //#region ../blocks/src/system/runtime/nodes/header-control.tsx
3836
+ /** System navigation controls retain their runtime hooks independently of authored CTAs. */
3837
+ function HeaderControlNode({ className, children, "aria-label": label, "aria-expanded": expanded, "aria-controls": controls, "aria-haspopup": hasPopup, "data-nav-mobile-toggle": mobileToggle, "data-nav-mobile-trigger": mobileTrigger }) {
3838
+ return /* @__PURE__ */ jsx("button", {
3839
+ type: "button",
3840
+ className,
3841
+ "aria-label": label,
3842
+ "aria-expanded": expanded,
3843
+ "aria-controls": controls,
3844
+ "aria-haspopup": hasPopup,
3845
+ "data-nav-mobile-toggle": mobileToggle,
3846
+ "data-nav-mobile-trigger": mobileTrigger,
3847
+ children
3848
+ });
3849
+ }
3528
3850
  //#endregion
3529
3851
  //#region ../blocks/src/system/runtime/nodes/appointment-services.tsx
3530
3852
  const publicVenueSchema = z.object({
@@ -3933,15 +4255,6 @@ function appointmentServicesListing(view, arrangement) {
3933
4255
  } : view;
3934
4256
  }
3935
4257
  //#endregion
3936
- //#region ../blocks/src/system/blocks/shared/teamMembers.ts
3937
- const teamMemberSpecialtiesInputSchema = z.union([z.string(), z.array(z.string())]).nullish();
3938
- function parseTeamMemberSpecialties(value) {
3939
- const parsed = teamMemberSpecialtiesInputSchema.safeParse(value);
3940
- if (!parsed.success) return [];
3941
- const parts = typeof parsed.data === "string" ? parsed.data.split(/\r?\n|,/) : parsed.data ?? [];
3942
- return [...new Set(parts.map((part) => part.trim()).filter(Boolean))];
3943
- }
3944
- //#endregion
3945
4258
  //#region ../blocks/src/system/runtime/nodes/team-members.tsx
3946
4259
  const teamMemberCardSchema = z.object({
3947
4260
  id: z.string().optional(),
@@ -3950,12 +4263,13 @@ const teamMemberCardSchema = z.object({
3950
4263
  bio: z.union([z.string(), RichTextDocSchema]).nullish(),
3951
4264
  profileBio: RichTextDocSchema.nullish(),
3952
4265
  photo: runtimeMediaSchema.refine((value) => value.type === "image").nullish(),
4266
+ summary: z.string().nullish(),
3953
4267
  profilePath: z.string().nullish(),
3954
4268
  specialties: z.unknown().transform(parseTeamMemberSpecialties)
3955
4269
  });
3956
4270
  /** Staff and manual members meet at one boundary; Look data chooses biography length. */
3957
- function teamMemberCardContent(member, index, biographySource) {
3958
- const biography = biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
4271
+ function teamMemberCardContent(member, index, biographySource, cardBiography) {
4272
+ const biography = cardBiography === "any" ? cardText(teamMemberCardBiography(member)) : biographySource === "profile" && member.profileBio ? member.profileBio : member.bio;
3959
4273
  const href = sanitizeHref(member.profilePath);
3960
4274
  return {
3961
4275
  id: member.id ?? `member-${index}`,
@@ -3973,12 +4287,83 @@ function teamMemberCardContent(member, index, biographySource) {
3973
4287
  } } : {}
3974
4288
  };
3975
4289
  }
4290
+ function cardText(biography) {
4291
+ if (!biography) return null;
4292
+ return biography.kind === "document" ? biography.document : biography.paragraphs.join("\n\n");
4293
+ }
4294
+ /**
4295
+ * The quiet line under an "About" heading: the person's name and role. The
4296
+ * name is left out when the heading already says it, so it isn't read twice.
4297
+ */
4298
+ function teamMemberAboutLine(input) {
4299
+ const name = input.name.trim();
4300
+ const parts = [name.length > 0 && (input.heading ?? "").toLocaleLowerCase().includes(name.toLocaleLowerCase()) ? "" : name, input.role?.trim() ?? ""].filter(Boolean);
4301
+ return parts.length > 0 ? parts.join(", ") : null;
4302
+ }
4303
+ /** The one person a section can be about: the list's only member, with a bio to read. */
4304
+ function personToWriteAbout(members) {
4305
+ const [member, ...others] = members;
4306
+ const biography = member && others.length === 0 ? teamMemberBiography(member) : null;
4307
+ return member && biography ? {
4308
+ member,
4309
+ biography
4310
+ } : null;
4311
+ }
4312
+ /**
4313
+ * One person given the section: their photo in the look's frame, a name and
4314
+ * role line, and their bio in full. The section's heading stays where the
4315
+ * block puts it; the stylesheet sets it beside the photo.
4316
+ */
4317
+ function TeamMemberAbout({ member, biography, props }) {
4318
+ const line = teamMemberAboutLine({
4319
+ heading: props.sectionHeading,
4320
+ name: member.name,
4321
+ role: member.role
4322
+ });
4323
+ const photo = props.showPhotos === false ? null : member.photo;
4324
+ return /* @__PURE__ */ jsxs("div", {
4325
+ className: "rb-team-about",
4326
+ "data-team-about": true,
4327
+ "data-has-photo": String(Boolean(photo)),
4328
+ children: [
4329
+ photo ? /* @__PURE__ */ jsx("div", {
4330
+ className: "rb-team-about-photo",
4331
+ ...listLookSlot(props, "item-media"),
4332
+ children: /* @__PURE__ */ jsx(MediaNodeServer, {
4333
+ value: photo,
4334
+ size: ImagePresets.hero,
4335
+ ...listLookSlot(props, "photo")
4336
+ })
4337
+ }) : null,
4338
+ line ? /* @__PURE__ */ jsx("p", {
4339
+ className: "rb-team-about-line",
4340
+ ...listLookSlot(props, "item-meta"),
4341
+ children: line
4342
+ }) : null,
4343
+ biography.kind === "document" ? /* @__PURE__ */ jsx(RichText, {
4344
+ doc: biography.document,
4345
+ className: "rb-team-about-bio",
4346
+ ...listLookSlot(props, "item-text"),
4347
+ lookSlots: props.lookSlots
4348
+ }) : /* @__PURE__ */ jsx("div", {
4349
+ className: "rb-team-about-bio",
4350
+ ...listLookSlot(props, "item-text"),
4351
+ children: biography.paragraphs.map((paragraph, index) => /* @__PURE__ */ jsx("p", { children: paragraph }, index))
4352
+ })
4353
+ ]
4354
+ });
4355
+ }
3976
4356
  function TeamMembersNode(props) {
3977
4357
  const parsed = z.array(teamMemberCardSchema).safeParse(props.source === "site_staff" ? props.siteMembers : props.members);
3978
4358
  if (!parsed.success) return null;
4359
+ const about = props.onePerson === "about" ? personToWriteAbout(parsed.data) : null;
4360
+ if (about) return /* @__PURE__ */ jsx(TeamMemberAbout, {
4361
+ ...about,
4362
+ props
4363
+ });
3979
4364
  return /* @__PURE__ */ jsx(CardListItems, {
3980
4365
  Carousel: props.Carousel,
3981
- items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource)),
4366
+ items: parsed.data.map((member, index) => teamMemberCardContent(member, index, props.biographySource, props.cardBiography)),
3982
4367
  presentation: {
3983
4368
  ...props,
3984
4369
  bodyParts: [
@@ -4541,12 +4926,6 @@ function parseLimit(value, fallback) {
4541
4926
  const n = typeof value === "string" ? parseInt(value, 10) : typeof value === "number" ? value : NaN;
4542
4927
  return Number.isFinite(n) && n > 0 ? n : fallback;
4543
4928
  }
4544
- function isFutureOrNow(iso, nowIso) {
4545
- const ts = Date.parse(iso);
4546
- const now = Date.parse(nowIso);
4547
- if (!Number.isFinite(ts) || !Number.isFinite(now)) return false;
4548
- return ts >= now;
4549
- }
4550
4929
  function uniqByOccurrenceId(events) {
4551
4930
  const seen = /* @__PURE__ */ new Set();
4552
4931
  const out = [];
@@ -4558,43 +4937,6 @@ function uniqByOccurrenceId(events) {
4558
4937
  }
4559
4938
  return out;
4560
4939
  }
4561
- function selectFromOccurrenceContext(events, occurrenceContext) {
4562
- if (!occurrenceContext) return null;
4563
- const byId = events.find((event) => event.occurrenceId === occurrenceContext.id || event.id === occurrenceContext.id);
4564
- if (byId) return byId;
4565
- const contextDate = getBookingLocalDateKey(toScheduledBookingDateTime({
4566
- startsAt: occurrenceContext.startsAt,
4567
- timeZone: occurrenceContext.timeZone
4568
- }));
4569
- return events.find((event) => getBookingLocalDateKey(toScheduledBookingDateTime({
4570
- startsAt: event.startsAt,
4571
- timeZone: event.timeZone
4572
- })) === contextDate) ?? null;
4573
- }
4574
- function selectNextUpcoming(events, nowIso) {
4575
- return [...events].filter((event) => isFutureOrNow(event.startsAt, nowIso)).sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt))[0] ?? null;
4576
- }
4577
- function selectCompletedWholeSeries(events) {
4578
- if (events.length === 0 || !events.every((event) => event.bookingScope === "whole_series")) return null;
4579
- return [...events].sort((left, right) => Date.parse(right.startsAt) - Date.parse(left.startsAt))[0] ?? null;
4580
- }
4581
- function selectEventCandidate(events, occurrenceContext, nowIso) {
4582
- const selected = selectFromOccurrenceContext(events, occurrenceContext);
4583
- if (selected) return {
4584
- event: selected,
4585
- mode: "selected"
4586
- };
4587
- const upcoming = selectNextUpcoming(events, nowIso);
4588
- if (upcoming) return {
4589
- event: upcoming,
4590
- mode: "next"
4591
- };
4592
- const completed = selectCompletedWholeSeries(events);
4593
- return completed ? {
4594
- event: completed,
4595
- mode: "completed"
4596
- } : null;
4597
- }
4598
4940
  function isWholeSeriesEvent(event) {
4599
4941
  return event.bookingScope === "whole_series";
4600
4942
  }
@@ -4628,7 +4970,7 @@ function selectEventDetails(args) {
4628
4970
  }));
4629
4971
  const occurrenceContext = args.occurrenceContext ?? null;
4630
4972
  const otherLimit = parseLimit(args.otherDatesLimit, 5);
4631
- const candidate = selectEventCandidate(all, occurrenceContext, args.nowIso);
4973
+ const candidate = selectEventDetailsCandidate(all, occurrenceContext, args.nowIso);
4632
4974
  const timeZone = toBookingTimeZone(candidate?.event.timeZone ?? all[0]?.timeZone ?? null);
4633
4975
  if (!candidate) return emptySelection(timeZone);
4634
4976
  const { event: selected, mode } = candidate;
@@ -4692,6 +5034,10 @@ function resolveEligibility(input, selected) {
4692
5034
  applicableMemberships: filterMembershipsForEvent(input.siteMemberships?.memberships ?? null, selected)
4693
5035
  };
4694
5036
  }
5037
+ /** The response's one drawing belongs to the selected event only when it is for that event's venue. */
5038
+ function resolveSelectedVenueDrawing(venueDrawing, selected) {
5039
+ return venueDrawing && selected?.venue?.id === venueDrawing.venueId ? venueDrawing.drawing : null;
5040
+ }
4695
5041
  function resolveEventDetailsPresentation(input) {
4696
5042
  const selection = resolveSelection(input);
4697
5043
  const selected = selection.kind === "empty" ? null : selection.selected;
@@ -4705,7 +5051,8 @@ function resolveEventDetailsPresentation(input) {
4705
5051
  panelHeading: input.panelHeading,
4706
5052
  ...resolveDisplaySettings(input),
4707
5053
  ...resolveEligibility(input, selected),
4708
- autoApplyDiscount: input.autoApplyDiscount ?? null
5054
+ autoApplyDiscount: input.autoApplyDiscount ?? null,
5055
+ selectedVenueDrawing: resolveSelectedVenueDrawing(input.venueDrawing, selected)
4709
5056
  };
4710
5057
  }
4711
5058
  //#endregion
@@ -5132,7 +5479,11 @@ function EventVenueFact({ venue }) {
5132
5479
  venue.address ? /* @__PURE__ */ jsx("p", {
5133
5480
  className: "rb-caption",
5134
5481
  children: venue.address
5135
- }) : null
5482
+ }) : null,
5483
+ /* @__PURE__ */ jsx(LocationMapActions, {
5484
+ location: venue.location,
5485
+ addressText: venue.address
5486
+ })
5136
5487
  ]
5137
5488
  }) : null;
5138
5489
  }
@@ -5271,11 +5622,11 @@ function acceptedProductNames(props) {
5271
5622
  const memberships = props.showAcceptedMemberships !== false ? (props.applicableMemberships ?? []).map(({ name }) => name) : [];
5272
5623
  return [...passes, ...memberships];
5273
5624
  }
5274
- function EventVenueMap({ venue, showMap, mapHeight, mapClassName, renderVenueMap }) {
5275
- if (!showMap || !renderVenueMap || !venue?.location) return null;
5276
- return renderVenueMap({
5277
- venueName: venue.name,
5278
- location: venue.location,
5625
+ function EventVenueMap({ venue, drawing, showMap, mapHeight, mapClassName }) {
5626
+ if (!showMap || !venue || !drawing) return null;
5627
+ return /* @__PURE__ */ jsx(MapDrawingSvg, {
5628
+ drawing,
5629
+ label: venue.name,
5279
5630
  className: mapClassName,
5280
5631
  height: mapHeight
5281
5632
  });
@@ -5294,7 +5645,7 @@ function selectedEventPricing(event, showCost) {
5294
5645
  };
5295
5646
  }
5296
5647
  function SelectedEventDetailsView(props) {
5297
- const { selection, showVenue, showMap, showOtherDates, showTitle, showDescription, showCapacity, mapHeight, mapClassName, renderVenueMap, acceptedItems } = props;
5648
+ const { selection, showVenue, showMap, showOtherDates, showTitle, showDescription, showCapacity, mapHeight, mapClassName, acceptedItems } = props;
5298
5649
  const selected = selection.selected;
5299
5650
  const venue = showVenue ? selected.venue : void 0;
5300
5651
  const pricing = selectedEventPricing(selected, props.showCost);
@@ -5326,7 +5677,7 @@ function SelectedEventDetailsView(props) {
5326
5677
  showMap,
5327
5678
  mapHeight,
5328
5679
  mapClassName,
5329
- renderVenueMap
5680
+ drawing: props.selectedVenueDrawing
5330
5681
  })]
5331
5682
  }),
5332
5683
  showOtherDates ? /* @__PURE__ */ jsx(OtherEventDates, { selection }) : null
@@ -5349,9 +5700,9 @@ function LegacyEventDetailsView(props) {
5349
5700
  showDescription: props.showDescription ?? false,
5350
5701
  showCapacity: props.showCapacity ?? false,
5351
5702
  autoApplyDiscount: props.autoApplyDiscount ?? null,
5703
+ selectedVenueDrawing: props.selectedVenueDrawing,
5352
5704
  mapHeight: props.mapHeight ?? 200,
5353
5705
  mapClassName: props.mapClassName ?? "event-details-map",
5354
- renderVenueMap: props.renderVenueMap,
5355
5706
  acceptedItems: acceptedProductNames(props)
5356
5707
  });
5357
5708
  }
@@ -5391,22 +5742,6 @@ function EventDetailsView(props) {
5391
5742
  }
5392
5743
  //#endregion
5393
5744
  //#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
5394
- function ServerVenueMap({ venueName, className, height }) {
5395
- return /* @__PURE__ */ jsx("div", {
5396
- className: "event-details-map-wrap rb-w-full rb-ml-auto",
5397
- children: /* @__PURE__ */ jsx("div", {
5398
- className,
5399
- style: {
5400
- height: height ?? 200,
5401
- width: "100%",
5402
- borderRadius: "0.5rem",
5403
- overflow: "hidden",
5404
- backgroundColor: "rgb(var(--tb-surface))"
5405
- },
5406
- "aria-label": `Map showing ${venueName}`
5407
- })
5408
- });
5409
- }
5410
5745
  function EventDetailsHydration({ props, presentation, scopedEvents, subject, nowIso }) {
5411
5746
  return /* @__PURE__ */ jsx(IslandPropsScript, { value: {
5412
5747
  ...props.arrangement ? {
@@ -5420,6 +5755,7 @@ function EventDetailsHydration({ props, presentation, scopedEvents, subject, now
5420
5755
  occurrenceContext: props.occurrenceContext ?? null,
5421
5756
  subject,
5422
5757
  events: scopedEvents,
5758
+ venueDrawing: props.venueDrawing ?? null,
5423
5759
  showVenue: presentation.showVenue,
5424
5760
  showMap: presentation.showMap,
5425
5761
  showOtherDates: presentation.showOtherDates,
@@ -5466,105 +5802,41 @@ function EventDetailsSSR(props) {
5466
5802
  }),
5467
5803
  /* @__PURE__ */ jsx(EventDetailsView, {
5468
5804
  ...presentation,
5469
- mapClassName: "venue-map event-details-map",
5470
- renderVenueMap: ServerVenueMap
5805
+ mapClassName: "venue-map event-details-map"
5471
5806
  }),
5472
5807
  children
5473
5808
  ]
5474
5809
  });
5475
5810
  }
5476
5811
  //#endregion
5477
- //#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
5478
- function OpeningHoursTable({ hours }) {
5479
- if (!hours) return null;
5480
- return /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("table", { children: [/* @__PURE__ */ jsx("caption", { children: "Opening hours" }), /* @__PURE__ */ jsx("tbody", { children: formatOpeningHoursRows(hours).map((row) => /* @__PURE__ */ jsxs("tr", {
5481
- "data-closed": row.kind === "closed" ? true : void 0,
5482
- children: [/* @__PURE__ */ jsx("th", {
5483
- scope: "row",
5484
- children: row.label
5485
- }), /* @__PURE__ */ jsx("td", { children: row.hours })]
5486
- }, row.label)) })] }), hours.note ? /* @__PURE__ */ jsx("p", { children: hours.note }) : null] });
5487
- }
5488
- function LocationMapDirections({ url, label }) {
5489
- return url ? /* @__PURE__ */ jsx(ThemedButtonLink, {
5490
- href: url,
5491
- target: "_blank",
5492
- rel: "noreferrer",
5493
- variant: "ghost",
5494
- size: "sm",
5495
- extraClassName: "rb-w-fit",
5496
- label
5497
- }) : null;
5498
- }
5499
- function LocationMapView(props) {
5500
- const { addressText, location, renderMap, zoom, heightPx, showAddressText, directionsLabel } = props;
5501
- const directionsUrl = props.showDirections ? buildGoogleMapsDirectionsUrl({
5502
- addressText,
5503
- location
5504
- }) : null;
5505
- const hours = props.showOpeningHours === false ? null : props.openingHours ?? null;
5506
- if (![
5507
- location,
5508
- addressText,
5509
- directionsUrl,
5510
- hours
5511
- ].some(Boolean)) return /* @__PURE__ */ jsx("p", {
5512
- className: "rb-caption",
5513
- style: textColorStyle("mutedText"),
5514
- children: props.unresolvedMessage ?? "Location details coming soon."
5515
- });
5516
- return /* @__PURE__ */ jsxs("div", {
5517
- className: "rb-flex rb-flex-col rb-gap-4 rb-text-left",
5518
- children: [
5519
- location && renderMap ? renderMap({
5520
- addressText,
5521
- location,
5522
- className: "rb-location-map-canvas",
5523
- height: heightPx,
5524
- zoom
5525
- }) : null,
5526
- showAddressText && addressText ? /* @__PURE__ */ jsx("p", {
5527
- className: "rb-caption",
5528
- style: textColorStyle("mutedText"),
5529
- children: addressText
5530
- }) : null,
5531
- /* @__PURE__ */ jsx(OpeningHoursTable, { hours }),
5532
- /* @__PURE__ */ jsx(LocationMapDirections, {
5533
- url: directionsUrl,
5534
- label: directionsLabel
5535
- })
5536
- ]
5537
- });
5538
- }
5539
- //#endregion
5540
5812
  //#region ../blocks/src/system/runtime/nodes/location-map.server.tsx
5813
+ const lookPresentationSchema = z.object({
5814
+ lookSlots: lookListPresentationSchemaShape.lookSlots,
5815
+ itemSurfaces: lookListPresentationSchemaShape.itemSurfaces
5816
+ });
5541
5817
  function LocationMapSSR(props) {
5542
5818
  const normalized = normalizeLocationMapProps(props);
5543
- const hydrationProps = toLocationMapHydrationProps(props);
5819
+ if (normalized.resolvedLocation.kind === "unresolved") return null;
5544
5820
  return /* @__PURE__ */ jsxs("div", {
5545
5821
  className: `location-map ${normalized.className ?? ""}`.trim(),
5546
5822
  "data-block": "location-map",
5547
- ...getIslandRootProps("location-map", props.blockId),
5548
- children: [
5549
- /* @__PURE__ */ jsx(IslandPropsScript, { value: hydrationProps }),
5550
- /* @__PURE__ */ jsx(LocationMapView, {
5551
- ...normalized,
5552
- renderMap: ({ addressText, className, height }) => /* @__PURE__ */ jsx("div", {
5553
- className,
5554
- style: {
5555
- height,
5556
- width: "100%",
5557
- borderRadius: "0.75rem",
5558
- overflow: "hidden",
5559
- backgroundColor: "rgb(var(--tb-surface))"
5560
- },
5561
- "aria-label": addressText ? `Map showing ${addressText}` : "Map showing business location"
5562
- })
5563
- }),
5564
- props.children
5565
- ]
5823
+ style: props.mapStyle ?? void 0,
5824
+ children: [/* @__PURE__ */ jsx(LocationMapView, {
5825
+ ...normalized,
5826
+ showMap: props.showMap !== false,
5827
+ lookLayout: props.lookSlots != null,
5828
+ detailsSlot: lookDetailsSlot(props)
5829
+ }), props.children]
5566
5830
  });
5567
5831
  }
5832
+ /** Legacy and automatic-Look markup carries no slot; Look-only layouts mark the details as the panel. */
5833
+ function lookDetailsSlot(props) {
5834
+ const presentation = lookPresentationSchema.safeParse({
5835
+ lookSlots: props.lookSlots ?? void 0,
5836
+ itemSurfaces: props.itemSurfaces ?? void 0
5837
+ });
5838
+ return presentation.success ? listLookSlot(presentation.data, "panel") : {};
5839
+ }
5568
5840
  //#endregion
5569
5841
  //#region ../blocks/src/system/runtime/nodes/events/EventSpotlight.tsx
5570
5842
  /**
@@ -5756,9 +6028,8 @@ const EventCombinedSSR = ({ blockId, ...source }) => {
5756
6028
  //#endregion
5757
6029
  //#region ../blocks/src/system/blocks/offerings-preview/itemData.ts
5758
6030
  function buildItemDataMap(props) {
5759
- const routeCandidates = props.routeCandidates?.routes ?? [];
5760
6031
  const entries = OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.sourceKey, eventDataFromMaybeArray(props[definition.dataKey])]);
5761
- return new Map([...entries, ["course", runDataFromMaybeArray(props.wholeSeriesRunEvents, routeCandidates)]]);
6032
+ return new Map([...entries, ["course", runDataFromMaybeArray(props.wholeSeriesRunEvents)]]);
5762
6033
  }
5763
6034
  function eventDataFromMaybeArray(events) {
5764
6035
  return events ? {
@@ -5772,7 +6043,7 @@ function eventDataFromMaybeArray(events) {
5772
6043
  reason: "not_loaded"
5773
6044
  };
5774
6045
  }
5775
- function runDataFromMaybeArray(events, routes) {
6046
+ function runDataFromMaybeArray(events) {
5776
6047
  if (!events) return {
5777
6048
  kind: "failed",
5778
6049
  reason: "not_loaded"
@@ -5782,7 +6053,7 @@ function runDataFromMaybeArray(events, routes) {
5782
6053
  items: [...groupPublicEventsByRun(events)].map((run) => ({
5783
6054
  kind: "run",
5784
6055
  run,
5785
- path: resolveOfferingsPreviewRunPath(run.run, routes)
6056
+ path: run.representative.destination.kind === "native" ? run.representative.destination.path : null
5786
6057
  }))
5787
6058
  };
5788
6059
  }
@@ -5809,9 +6080,9 @@ function buildLoadedOfferingsPreviewListing(input) {
5809
6080
  //#endregion
5810
6081
  //#region ../blocks/src/system/runtime/nodes/events/shared/offeringNextDates.ts
5811
6082
  /** One occurrence batch supplies every occurrence-targeted card in the block. */
5812
- function offeringDatesBySeries(events, now) {
6083
+ function offeringDatesBySeries(events, now, booking) {
5813
6084
  const groups = events.reduce((result, event) => new Map([...result, [event.seriesId, [...result.get(event.seriesId) ?? [], event]]]), /* @__PURE__ */ new Map());
5814
- 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))]));
6085
+ 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))]));
5815
6086
  }
5816
6087
  /** Whole-series sessions share the run-level booking capacity, by contract. */
5817
6088
  function offeringRunDates(event, now) {
@@ -5819,7 +6090,7 @@ function offeringRunDates(event, now) {
5819
6090
  const nextStart = nextLiveRunSessionStartMs(event.run.sessions, now);
5820
6091
  return nextStart === null ? [] : orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) >= nextStart).slice(0, 3).map((session) => offeringDateRow(session, event));
5821
6092
  }
5822
- function offeringDateRow(session, event) {
6093
+ function offeringDateRow(session, event, booking) {
5823
6094
  const options = eventDateOptions({
5824
6095
  ...event,
5825
6096
  timeZone: session.timeZone
@@ -5827,9 +6098,12 @@ function offeringDateRow(session, event) {
5827
6098
  const date = formatEventCompactDateRail(session.startsAt, options, "as-written");
5828
6099
  const capacity = getEventAvailability(event);
5829
6100
  const status = getEventAvailabilityStatus(event);
6101
+ const label = `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`;
6102
+ const bookingLink = booking?.(event, label) ?? null;
5830
6103
  return {
5831
6104
  startsAt: session.startsAt,
5832
- label: `${date.weekday} ${date.day} ${date.month}, ${formatTime(session.startsAt, options)}`,
6105
+ label,
6106
+ ...bookingLink ? { booking: bookingLink } : {},
5833
6107
  places: capacity.available === null ? null : {
5834
6108
  label: capacity.isFull ? "Sold out" : `${capacity.available} place${capacity.available === 1 ? "" : "s"} left`,
5835
6109
  status: capacity.isFull ? "full" : status.status === "filling" ? "low" : "available"
@@ -5847,6 +6121,10 @@ function OfferingsCatalogue(props) {
5847
6121
  presets: props.bookingOfferingPresets,
5848
6122
  events: props.catalogueEvents
5849
6123
  });
6124
+ const shape = offeringsCatalogueShape(state, {
6125
+ listDates: props.lookSlots !== void 0 && props.datesMode === "next-dates",
6126
+ oneOfferingRequested: props.oneOffering === true
6127
+ });
5850
6128
  switch (state.kind) {
5851
6129
  case "no-groups": return renderCatalogueEmpty({
5852
6130
  props,
@@ -5859,7 +6137,8 @@ function OfferingsCatalogue(props) {
5859
6137
  case "by-date": return renderCatalogueMergedList({
5860
6138
  props,
5861
6139
  listing: state,
5862
- now
6140
+ now,
6141
+ shape
5863
6142
  });
5864
6143
  case "by-type": return props.lookSlots ? /* @__PURE__ */ jsxs("div", {
5865
6144
  ...listLookSlot(props, "layout"),
@@ -5872,26 +6151,37 @@ function OfferingsCatalogue(props) {
5872
6151
  now,
5873
6152
  children: void 0
5874
6153
  },
5875
- groups: state.groups
6154
+ groups: state.groups,
6155
+ shape
5876
6156
  }) })]
5877
6157
  }) : renderOfferingsCatalogueGroups({
5878
6158
  props: {
5879
6159
  ...props,
5880
6160
  now
5881
6161
  },
5882
- groups: state.groups
6162
+ groups: state.groups,
6163
+ shape
5883
6164
  });
5884
6165
  default: return assertNever$1(state);
5885
6166
  }
5886
6167
  }
5887
- function renderOfferingsCatalogueGroups({ props, groups }) {
6168
+ /** The hook the single-offering layout hangs from; absent for several. */
6169
+ function catalogueShapeHook(shape) {
6170
+ return shape === "single" ? { "data-has-one-offering": "true" } : {};
6171
+ }
6172
+ /** One offering has room for a Book link on each date; several keep plain rows. */
6173
+ function catalogueDateBooking(shape, pathname) {
6174
+ return shape === "single" ? (event, dateLabel) => eventDateBookingLink(event, pathname ?? "/", dateLabel) : void 0;
6175
+ }
6176
+ function renderOfferingsCatalogueGroups({ props, groups, shape }) {
5888
6177
  const enabledSeriesIds = new Set(groups.flatMap((load) => load.kind === "items" ? load.items.map((item) => item.kind === "event" ? item.event.seriesId : item.run.eventSeriesId) : []));
5889
- const quickDateEvents = selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
6178
+ const quickDateEvents = shape === "single" ? [] : selectQuickDateEvents((props.quickDateEvents ?? []).filter((event) => enabledSeriesIds.has(event.seriesId)));
5890
6179
  const populated = groups.flatMap(catalogueGroupItems);
5891
6180
  return /* @__PURE__ */ jsxs("div", {
5892
6181
  className: "offerings-preview rb-flex rb-flex-col rb-gap-6",
5893
6182
  "data-block": "offerings-preview",
5894
6183
  "data-offerings-mode": "catalogue",
6184
+ ...catalogueShapeHook(shape),
5895
6185
  children: [
5896
6186
  quickDateEvents.length > 0 ? /* @__PURE__ */ jsx("div", {
5897
6187
  className: "offerings-preview-quick-dates rb-flex rb-flex-col rb-gap-4",
@@ -5908,28 +6198,30 @@ function renderOfferingsCatalogueGroups({ props, groups }) {
5908
6198
  children: populated.map(({ group, items }) => /* @__PURE__ */ jsxs("section", {
5909
6199
  className: "rb-flex rb-flex-col rb-gap-5",
5910
6200
  "data-offering-source": group.sourceKey,
5911
- children: [/* @__PURE__ */ jsx("h3", {
6201
+ children: [shape === "single" ? null : /* @__PURE__ */ jsx("h3", {
5912
6202
  ...listLookSlot(props, "heading"),
5913
6203
  children: group.title
5914
6204
  }), renderCatalogueItems({
5915
6205
  props,
5916
- items
6206
+ items,
6207
+ shape,
6208
+ groupTitle: group.title
5917
6209
  })]
5918
6210
  }, group.sourceKey))
5919
6211
  })
5920
6212
  ]
5921
6213
  });
5922
6214
  }
5923
- function renderCatalogueItems({ props, items }) {
6215
+ function renderCatalogueItems({ props, items, shape, groupTitle }) {
5924
6216
  const events = items.map((item) => item.kind === "event" ? item.event : item.run.representative);
5925
6217
  if (props.lookSlots) {
5926
6218
  const now = props.now;
5927
- const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now);
6219
+ const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
5928
6220
  return CardListItems({
5929
6221
  Carousel: props.Carousel,
5930
- Title: "h4",
6222
+ Title: shape === "single" ? "h3" : "h4",
5931
6223
  presentation: props,
5932
- items: items.map((item) => catalogueCardContent(item, now, dates))
6224
+ items: items.map((item) => catalogueCardContent(item, now, dates, shape === "single" ? groupTitle : void 0))
5933
6225
  });
5934
6226
  }
5935
6227
  return /* @__PURE__ */ jsx("div", {
@@ -5964,11 +6256,12 @@ function renderCatalogueEmpty({ props, failed }) {
5964
6256
  })]
5965
6257
  });
5966
6258
  }
5967
- function renderCatalogueMergedList({ props, listing, now }) {
5968
- const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now);
6259
+ function renderCatalogueMergedList({ props, listing, now, shape }) {
6260
+ const dates = offeringDatesBySeries(props.quickDateEvents ?? [], now, catalogueDateBooking(shape, props.pathname));
5969
6261
  const items = listing.items.map(({ item, group }) => catalogueCardContent(item, now, dates, group.singularLabel));
5970
6262
  return /* @__PURE__ */ jsxs("div", {
5971
6263
  ...listLookSlot(props, "layout"),
6264
+ ...catalogueShapeHook(shape),
5972
6265
  children: [/* @__PURE__ */ jsx("header", {
5973
6266
  ...listLookSlot(props, "head"),
5974
6267
  children: props.children
@@ -10971,7 +11264,7 @@ function prepareBlockRender(input) {
10971
11264
  resolvedThemeConfig: resolveThemeConfigForBindings(input.themeConfig),
10972
11265
  viewModelOverrides: input.viewModelOverrides
10973
11266
  }),
10974
- themeForTransforms: withButtonSystem(input.theme, input.themeConfig),
11267
+ themeForTransforms: withThemeRuntimeFacts(input.theme, input.themeConfig),
10975
11268
  proseHoverCandidate: parseThemeColorToken(input.themeConfig?.typography.proseLinkStyle?.hoverColorToken) ?? void 0
10976
11269
  };
10977
11270
  }
@@ -10991,11 +11284,13 @@ function buildBlockViewModel(input) {
10991
11284
  }
10992
11285
  };
10993
11286
  }
10994
- function withButtonSystem(theme, themeConfig) {
11287
+ /** The theme facts transforms decide from: button system, and the arrangement skin map tokens follow. */
11288
+ function withThemeRuntimeFacts(theme, themeConfig) {
10995
11289
  if (!themeConfig) return theme;
10996
11290
  return {
10997
11291
  ...theme,
10998
- buttons: themeConfig.buttons ?? generateDefaultButtonSystem(themeConfig)
11292
+ buttons: themeConfig.buttons ?? generateDefaultButtonSystem(themeConfig),
11293
+ ...themeConfig.skin === void 0 ? {} : { skin: themeConfig.skin }
10999
11294
  };
11000
11295
  }
11001
11296
  function beginBlockRenderMeasurement() {
@@ -11089,6 +11384,56 @@ function runtimeDateContext(viewModel) {
11089
11384
  return resolveDateRuntimeContext(typeof root.bookingTimeZone === "string" ? root.bookingTimeZone : void 0);
11090
11385
  }
11091
11386
  //#endregion
11387
+ //#region ../blocks/src/pageRenderAudience.tsx
11388
+ /**
11389
+ * The single policy for what a non-renderable block looks like.
11390
+ *
11391
+ * Public visitors never see renderer diagnostics, so every reason omits.
11392
+ * Authoring surfaces keep the wording they have always had — the strings below
11393
+ * are moved verbatim from the five former `fallback()` call sites.
11394
+ */
11395
+ function presentNotRenderableBlock(reason, audience) {
11396
+ if (audience === "public") return null;
11397
+ if (reason.kind === "hidden-business-location" && reason.businessDetailsHref) return diagnostic(/* @__PURE__ */ jsxs(Fragment, { children: [
11398
+ authoringMessage(reason),
11399
+ " ",
11400
+ /* @__PURE__ */ jsx("a", {
11401
+ href: reason.businessDetailsHref,
11402
+ children: "Open Business details"
11403
+ })
11404
+ ] }));
11405
+ return diagnostic(authoringMessage(reason));
11406
+ }
11407
+ function authoringMessage(reason) {
11408
+ switch (reason.kind) {
11409
+ case "invalid-admission": return `Invalid content for block kind "${reason.blockKind}".`;
11410
+ case "missing-definition": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". The custom block definition was not found (missing manifest).` : `No renderer available for block kind "${reason.blockKind}".`;
11411
+ case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
11412
+ case "hidden-business-location": return "This map is hidden because your business address is hidden.";
11413
+ case "unresolved-location":
11414
+ if (reason.source === "business_address") return "Business address details are not configured yet.";
11415
+ return reason.source === "venue" ? "This map is hidden on your site until the venue has a location." : "This map is hidden on your site until you choose a place.";
11416
+ case "editor-unpreviewable":
11417
+ case "render-threw": return `Unable to render block kind "${reason.blockKind}".`;
11418
+ }
11419
+ }
11420
+ /**
11421
+ * The empty-page notice. Authoring-only for the same reason as the block
11422
+ * diagnostics: "No blocks found." is a message for whoever is building the
11423
+ * page, not for whoever is reading it.
11424
+ */
11425
+ function presentEmptyPage(audience) {
11426
+ if (audience === "public") return null;
11427
+ return diagnostic("No blocks found.");
11428
+ }
11429
+ function diagnostic(message) {
11430
+ return /* @__PURE__ */ jsx("div", {
11431
+ className: "rb-p-6 rb-caption",
11432
+ style: textColorStyle("mutedText"),
11433
+ children: message
11434
+ });
11435
+ }
11436
+ //#endregion
11092
11437
  //#region ../blocks/src/pageRenderingMode.ts
11093
11438
  var MissingBlockOverrideError$1 = class extends Error {
11094
11439
  constructor(blockKind) {
@@ -11213,27 +11558,33 @@ function pageBlockPosition(index, blockCount) {
11213
11558
  //#endregion
11214
11559
  //#region ../blocks/src/pageRendererContracts.ts
11215
11560
  function buildPageRendererRootRuntime(dataContext) {
11216
- const { siteId = null, siteName, pageId = null, pathname = null, bookingTimeZone, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, bookingOfferingPresets = [], appointmentServicePathPrefix = null, openingHours, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
11561
+ const { siteId = null, siteName, pageId = null, pathname = null, previewStage = "published", apiBaseUrl = null, portalToken = null, readAuthority, openingHours, siteTerms, mailingList = { tag: "not_configured" }, loaderFailures = {} } = dataContext ?? {};
11217
11562
  return {
11218
11563
  siteId,
11219
11564
  demoEmailSuppressed: resolveDemoEmailSuppression(dataContext),
11220
11565
  siteName,
11566
+ site: publicLocationRuntime(dataContext),
11221
11567
  pageId,
11222
11568
  pathname,
11223
- bookingTimeZone,
11569
+ ...pageBookingRuntime(dataContext),
11224
11570
  ...pageRuntimeContext(dataContext),
11225
11571
  previewStage,
11226
11572
  apiBaseUrl,
11227
11573
  portalToken,
11228
11574
  readAuthority,
11229
- bookingOfferingPresets,
11230
- appointmentServicePathPrefix,
11231
11575
  openingHours,
11232
11576
  siteTerms,
11233
11577
  mailingList,
11234
11578
  loaderFailures
11235
11579
  };
11236
11580
  }
11581
+ function publicLocationRuntime(context) {
11582
+ return {
11583
+ businessAddress: context?.businessLocation ?? null,
11584
+ venuesById: context?.venuesById ?? {},
11585
+ siteCountry: context?.siteCountry ?? null
11586
+ };
11587
+ }
11237
11588
  function resolveDemoEmailSuppression(dataContext) {
11238
11589
  return dataContext?.demoEmailSuppressed === true;
11239
11590
  }
@@ -11247,43 +11598,14 @@ function pageRuntimeContext(dataContext) {
11247
11598
  function pageDateRuntimeContext(dataContext) {
11248
11599
  return dataContext?.dateContext ?? resolveDateRuntimeContext(dataContext?.bookingTimeZone);
11249
11600
  }
11250
- //#endregion
11251
- //#region ../blocks/src/pageRenderAudience.tsx
11252
- /**
11253
- * The single policy for what a non-renderable block looks like.
11254
- *
11255
- * Public visitors never see renderer diagnostics, so every reason omits.
11256
- * Authoring surfaces keep the wording they have always had — the strings below
11257
- * are moved verbatim from the five former `fallback()` call sites.
11258
- */
11259
- function presentNotRenderableBlock(reason, audience) {
11260
- if (audience === "public") return null;
11261
- return diagnostic(authoringMessage(reason));
11262
- }
11263
- function authoringMessage(reason) {
11264
- switch (reason.kind) {
11265
- case "invalid-admission": return `Invalid content for block kind "${reason.blockKind}".`;
11266
- case "missing-definition": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". The custom block definition was not found (missing manifest).` : `No renderer available for block kind "${reason.blockKind}".`;
11267
- case "missing-layout": return reason.isCustom ? `No renderer available for block kind "${reason.blockKind}". This custom block has no layout/variants, so it must be rendered via blockOverrides["${reason.blockKind}"].` : `No renderer available for block kind "${reason.blockKind}".`;
11268
- case "editor-unpreviewable":
11269
- case "render-threw": return `Unable to render block kind "${reason.blockKind}".`;
11270
- }
11271
- }
11272
- /**
11273
- * The empty-page notice. Authoring-only for the same reason as the block
11274
- * diagnostics: "No blocks found." is a message for whoever is building the
11275
- * page, not for whoever is reading it.
11276
- */
11277
- function presentEmptyPage(audience) {
11278
- if (audience === "public") return null;
11279
- return diagnostic("No blocks found.");
11280
- }
11281
- function diagnostic(message) {
11282
- return /* @__PURE__ */ jsx("div", {
11283
- className: "rb-p-6 rb-caption",
11284
- style: textColorStyle("mutedText"),
11285
- children: message
11286
- });
11601
+ /** Booking context keeps its defaults together across SSR and authoring. */
11602
+ function pageBookingRuntime(context) {
11603
+ const { bookingTimeZone, bookingOfferingPresets = [], appointmentServicePathPrefix = null } = context ?? {};
11604
+ return {
11605
+ bookingTimeZone,
11606
+ bookingOfferingPresets,
11607
+ appointmentServicePathPrefix
11608
+ };
11287
11609
  }
11288
11610
  //#endregion
11289
11611
  //#region ../blocks/src/pageRenderDiagnostics.ts
@@ -11591,15 +11913,44 @@ function preparePageRender(input) {
11591
11913
  mailingList: input.dataContext?.mailingList,
11592
11914
  template: input.dataContext?.template ?? pageTemplateFromEntry(input.dataContext?.contentEntry)
11593
11915
  });
11594
- const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts)).map((entry) => preparedPlanEntry(entry, prepareEntry(entry, input)));
11595
- const constructionFailures = entries.filter(({ prepared }) => prepared.kind === "render-threw").map(({ entry }) => entry);
11596
- const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw");
11916
+ const permission = input.dataContext?.businessLocationPermission ?? decideLocationSourcePermission("business_address", input.dataContext?.businessAddressVisibility);
11917
+ const entries = input.plan.entries.filter((entry) => input.audience === "authoring" || !entryNeedsSetup(entry, facts)).filter((entry) => isPublicSourcePermitted(entry, permission) || input.audience === "authoring" && permission.kind === "hidden").map((entry) => preparedPlanEntry(entry, prepareSourceEntry(entry, input, permission)));
11918
+ const constructionFailures = entries.filter((candidate) => candidate.prepared.kind === "render-threw").map((candidate) => candidate.entry);
11919
+ const survivors = input.audience === "authoring" ? entries : entries.filter((candidate) => candidate.prepared.kind !== "render-threw" && candidate.prepared.kind !== "unresolved-location");
11597
11920
  return {
11598
11921
  entries: survivors,
11599
11922
  constructionFailures,
11600
11923
  joins: composeSurvivorJoins(input.plan, survivors, input.themeResources)
11601
11924
  };
11602
11925
  }
11926
+ /** Source availability is decided before constructing the block or its hydration props. */
11927
+ function prepareSourceEntry(entry, input, permission) {
11928
+ if (!isPublicSourcePermitted(entry, permission)) return {
11929
+ kind: "hidden-business-location",
11930
+ businessDetailsHref: input.dataContext?.authoringBusinessDetailsHref ?? null
11931
+ };
11932
+ if (entry.block.kind === "block.location-map") {
11933
+ const content = entry.renderableContent;
11934
+ const resolved = resolveLocationMapLocation({
11935
+ location: content.location,
11936
+ locationSource: typeof content.locationSource === "string" ? content.locationSource : null,
11937
+ venueId: typeof content.venueId === "string" ? content.venueId : null,
11938
+ businessAddress: input.dataContext?.businessLocation,
11939
+ venuesById: input.dataContext?.venuesById
11940
+ });
11941
+ if (resolved.kind === "unresolved") return {
11942
+ kind: "unresolved-location",
11943
+ source: resolved.source
11944
+ };
11945
+ }
11946
+ return prepareEntry(entry, input);
11947
+ }
11948
+ /** No source data, override component or wrapper is touched for a hidden map. */
11949
+ function isPublicSourcePermitted(entry, permission) {
11950
+ if (entry.block.kind !== "block.location-map") return true;
11951
+ const rawSource = entry.renderableContent.locationSource;
11952
+ return normalizeLocationMapSource(typeof rawSource === "string" ? rawSource : null) !== "business_address" || permission.kind === "permitted";
11953
+ }
11603
11954
  /**
11604
11955
  * The only place joins are composed. Plan-time omissions were already
11605
11956
  * re-pointed by the plan; construction failures are re-pointed here by the
@@ -12188,6 +12539,64 @@ function renderSystemBlockElement(input) {
12188
12539
  previewAuthoring: input.previewAuthoring
12189
12540
  });
12190
12541
  }
12542
+ /** Pure diagnostic choice; the audience owner controls its presentation. */
12543
+ function preparationDiagnostic(prepared, blockKind) {
12544
+ switch (prepared.kind) {
12545
+ case "hidden-business-location": return {
12546
+ reason: {
12547
+ kind: prepared.kind,
12548
+ blockKind,
12549
+ businessDetailsHref: prepared.businessDetailsHref
12550
+ },
12551
+ outcome: "invalidPlaceholder"
12552
+ };
12553
+ case "unresolved-location": return {
12554
+ reason: {
12555
+ kind: prepared.kind,
12556
+ blockKind,
12557
+ source: prepared.source
12558
+ },
12559
+ outcome: "invalidPlaceholder"
12560
+ };
12561
+ case "editor-unpreviewable": return {
12562
+ reason: {
12563
+ kind: prepared.kind,
12564
+ blockKind
12565
+ },
12566
+ outcome: "invalidPlaceholder"
12567
+ };
12568
+ case "render-threw": return {
12569
+ reason: {
12570
+ kind: prepared.kind,
12571
+ blockKind
12572
+ },
12573
+ outcome: "exception"
12574
+ };
12575
+ case "content":
12576
+ case "plan-decided": return null;
12577
+ }
12578
+ }
12579
+ function blockRenderPerformanceMeta(meta) {
12580
+ return {
12581
+ outcome: meta?.outcome ?? "ok",
12582
+ override: meta?.override ?? false,
12583
+ hasResolvedData: meta?.hasResolvedData ?? false
12584
+ };
12585
+ }
12586
+ function finishBlockRender(node, block, perfStart, meta) {
12587
+ if (!perfStart) return node;
12588
+ const durationMs = Date.now() - perfStart;
12589
+ if (durationMs < getPerfSlowBlockRenderThresholdMs()) return node;
12590
+ try {
12591
+ console.debug("perf.blocks.blockRender", {
12592
+ blockId: block.id ?? null,
12593
+ blockKind: block.kind,
12594
+ durationMs,
12595
+ ...blockRenderPerformanceMeta(meta)
12596
+ });
12597
+ } catch {}
12598
+ return node;
12599
+ }
12191
12600
  /**
12192
12601
  * Memoized block section component.
12193
12602
  *
@@ -12200,22 +12609,7 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
12200
12609
  const block = entry.block;
12201
12610
  const perfStart = globalThis.process?.env?.DEBUG_PERF === "1" && typeof window === "undefined" ? Date.now() : 0;
12202
12611
  const resolvedImageResolveContext = imageResolveContext ?? getCurrentResolveImageUrlContext();
12203
- function finish(node, meta) {
12204
- if (!perfStart) return node;
12205
- const durationMs = Date.now() - perfStart;
12206
- if (durationMs < getPerfSlowBlockRenderThresholdMs()) return node;
12207
- try {
12208
- console.debug("perf.blocks.blockRender", {
12209
- blockId: block.id ?? null,
12210
- blockKind: block.kind,
12211
- durationMs,
12212
- outcome: meta?.outcome ?? "ok",
12213
- override: meta?.override ?? false,
12214
- hasResolvedData: meta?.hasResolvedData ?? false
12215
- });
12216
- } catch {}
12217
- return node;
12218
- }
12612
+ const finish = (node, meta) => finishBlockRender(node, block, perfStart, meta);
12219
12613
  function wrapped(node) {
12220
12614
  return wrapBlock && block.id ? /* @__PURE__ */ jsx(Fragment, { children: wrapBlock(block.id, node) }) : /* @__PURE__ */ jsx(Fragment, { children: node });
12221
12615
  }
@@ -12231,6 +12625,11 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
12231
12625
  override: false
12232
12626
  });
12233
12627
  }
12628
+ const diagnostic = preparationDiagnostic(prepared, block.kind);
12629
+ if (diagnostic) return finish(wrapped(presentNotRenderableBlock(diagnostic.reason, audience)), {
12630
+ outcome: diagnostic.outcome,
12631
+ override: false
12632
+ });
12234
12633
  if (entry.kind === "override-only") {
12235
12634
  const OverrideOnlyComponent = entry.override;
12236
12635
  return finish(wrapped(/* @__PURE__ */ jsx(OverrideOnlyComponent, { ...buildBlockOverrideProps({
@@ -12247,20 +12646,7 @@ const MemoBlockSection = React$1.memo(function MemoBlockSection({ themeResources
12247
12646
  hasResolvedData: false
12248
12647
  });
12249
12648
  }
12250
- if (prepared.kind === "editor-unpreviewable") return finish(wrapped(presentNotRenderableBlock({
12251
- kind: "editor-unpreviewable",
12252
- blockKind: block.kind
12253
- }, audience)), {
12254
- outcome: "invalidPlaceholder",
12255
- override: false
12256
- });
12257
- if (prepared.kind !== "content") return finish(wrapped(presentNotRenderableBlock({
12258
- kind: "render-threw",
12259
- blockKind: block.kind
12260
- }, audience)), {
12261
- outcome: "exception",
12262
- override: false
12263
- });
12649
+ if (prepared.kind !== "content") return null;
12264
12650
  let rendered;
12265
12651
  if (OverrideComponent) rendered = /* @__PURE__ */ jsx(OverrideComponent, { ...prepared.baseProps });
12266
12652
  else {
@@ -12534,6 +12920,11 @@ function buildPageIdentityRenderContext(dataContext) {
12534
12920
  demoEmailSuppressed: dataContext.demoEmailSuppressed,
12535
12921
  now: dataContext.now,
12536
12922
  siteName: dataContext.siteName,
12923
+ businessLocationPermission: dataContext.businessLocationPermission,
12924
+ businessAddressVisibility: dataContext.businessAddressVisibility,
12925
+ businessLocation: dataContext.businessLocation,
12926
+ venuesById: dataContext.venuesById,
12927
+ siteCountry: dataContext.siteCountry,
12537
12928
  pathname: dataContext.pathname
12538
12929
  };
12539
12930
  }