@riverbankcms/sdk 0.175.0 → 0.176.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 (186) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-hb2IWD8K.d.ts → BlocksIslandsHydrator-DvoTk7Py.d.ts} +1 -1
  2. package/dist/_dts/{Page-BlY68ZF-.d.ts → Page-D-l374tU.d.ts} +8 -16
  3. package/dist/_dts/{SdkPreviewMode-CA8hU7hW.d.ts → SdkPreviewMode-22DdQAj5.d.ts} +2 -2
  4. package/dist/_dts/{client-B6tCvmG4.d.ts → client-D4p0J1lK.d.ts} +1 -1
  5. package/dist/_dts/{content-types-B9qryk4R.d.ts → content-types-0WWR6dC4.d.ts} +2 -2
  6. package/dist/_dts/{contracts-DWoaRxj1.d.ts → contracts-f_ZG_SwY.d.ts} +8 -8
  7. package/dist/_dts/{footerPageOutline-Djdrhp5s.d.ts → footerPageOutline-DSeZvOaj.d.ts} +85 -8
  8. package/dist/_dts/{generatePageMetadata-CFi0vxov.d.ts → generatePageMetadata-BlitPA2D.d.ts} +2 -2
  9. package/dist/_dts/{index-CQUzwOxO.d.ts → index-CKkkCgb6.d.ts} +1 -1
  10. package/dist/_dts/{index-Bl5_pjmq.d.ts → index-CoLcwjqJ.d.ts} +1 -1
  11. package/dist/_dts/{index-_pXaCO12.d.ts → index-D-ai8IQd.d.ts} +4 -4
  12. package/dist/_dts/{index-OtazQE3U.d.ts → index-DDsfmM4d.d.ts} +2 -2
  13. package/dist/_dts/{index-Btp5nIoz.d.ts → index-EJMo-KSo.d.ts} +2 -2
  14. package/dist/_dts/{index-DmhFb6R1.d.ts → index-ZKEDvLuN.d.ts} +1 -1
  15. package/dist/_dts/{index-YRQulWB4.d.ts → index-tcPtGdag.d.ts} +3 -3
  16. package/dist/_dts/{loadContent-Hcuvs4pz.d.ts → loadContent-Ci932ORy.d.ts} +7 -7
  17. package/dist/_dts/{request-BT8i_vH-.d.ts → request-B8jVdvgI.d.ts} +374 -24
  18. package/dist/_dts/{resolveBlockData-B-dJrunl.d.ts → resolveBlockData-DrSMuD76.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-CVLYWcoI.d.ts → resolvePageContent-Be4iL6-F.d.ts} +2 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
  30. package/dist/_dts/sdk/src/index.d.ts +8 -8
  31. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  32. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  33. package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  35. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  36. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  37. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  38. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  39. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  41. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  42. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  43. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  45. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +5 -177
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  51. package/dist/_dts/sdk/src/server.d.ts +5 -5
  52. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  53. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  54. package/dist/_dts/{types-CXL1QJSY.d.ts → types-BXMX4z2j.d.ts} +7 -7
  55. package/dist/_dts/{types-C0XZnjXz.d.ts → types-DXY64Xh4.d.ts} +4 -4
  56. package/dist/_dts/{types-OKzbqRBx.d.ts → types-lwSgCWZ4.d.ts} +11 -2
  57. package/dist/_dts/{validation-Bxi66FtQ.d.ts → validation-C5xp--Fu.d.ts} +7 -4
  58. package/dist/client/{BlocksIslandsHydrator-2xzlERTG.mjs → BlocksIslandsHydrator-CeYQQQs7.mjs} +17 -17
  59. package/dist/client/{BookingMailingListNote-qsohSEdQ.mjs → BookingMailingListNote-CDDWrY_W.mjs} +6 -6
  60. package/dist/client/{BookingPanelArrangement-DrdtON0q.mjs → BookingPanelArrangement-BShQSial.mjs} +1 -1
  61. package/dist/client/{BookingQuestionFields-CUFxBaTM.mjs → BookingQuestionFields-MbvIo2jS.mjs} +2 -2
  62. package/dist/client/{CalendarNavigationChevron-Ch0w0Utn.mjs → CalendarNavigationChevron-C6CSVfEB.mjs} +9 -9
  63. package/dist/client/{DemoBookingPortalAccess-DGgsjqXK.mjs → DemoBookingPortalAccess-C9Ggcfx3.mjs} +3 -3
  64. package/dist/client/{EventCalendar.client-Dg4PHFJJ.mjs → EventCalendar.client-BSMuSqg0.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-tky8JcnQ.mjs → EventCombined.client-BTrmSyUB.mjs} +8 -8
  66. package/dist/client/{EventItem-BybMSKNL.mjs → EventItem-B0WjGXsH.mjs} +4 -4
  67. package/dist/client/{EventListWeekNavigation-uvWRE5wi.mjs → EventListWeekNavigation-8Ij7vuxY.mjs} +1 -1
  68. package/dist/client/{EventListing.client-DQx9dohz.mjs → EventListing.client-CWk2NEwd.mjs} +3 -3
  69. package/dist/client/{EventListing.view-r31k8Icz.mjs → EventListing.view-BEH4UbSL.mjs} +17 -8
  70. package/dist/client/{EventRegistrationPayment-BMmPDmSf.mjs → EventRegistrationPayment-B2EikR3f.mjs} +9 -9
  71. package/dist/client/{LocationMapActions-BecH-qhI.mjs → LocationMapActions-myIQIvQL.mjs} +1 -1
  72. package/dist/client/{MapDrawingSvg-BJzmFdcn.mjs → MapDrawingSvg-BfsVyPvB.mjs} +2 -37
  73. package/dist/client/{Page-CWN_8cLZ.mjs → Page-F3lhDvw1.mjs} +329 -268
  74. package/dist/client/{SiteTermsAgreementField-Dr5lj4oY.mjs → SiteTermsAgreementField-BYACYP0T.mjs} +2 -2
  75. package/dist/client/{StepIndicator-C7RJBOW3.mjs → StepIndicator-Bb7rPtSq.mjs} +5 -5
  76. package/dist/client/{accordion-uUi_N6mZ.mjs → accordion-BfsOiweL.mjs} +1 -1
  77. package/dist/client/{booking-form.client-CKHgxvsh.mjs → booking-form.client-B8ohIj13.mjs} +13 -13
  78. package/dist/client/{bookingForm-Bi74dmiS.mjs → bookingForm-CXsck2oH.mjs} +4 -4
  79. package/dist/client/bookings.mjs +5 -5
  80. package/dist/client/{boxStyleClassNames-C-gFwhnO.mjs → boxStyleClassNames-B_hcuT06.mjs} +2 -2
  81. package/dist/client/{carousel-C0_BqMA0.mjs → carousel-Cz5Ddbsx.mjs} +1 -1
  82. package/dist/client/{cart-BOHuppVu.mjs → cart-CTC2oS3p.mjs} +3 -3
  83. package/dist/client/{cart.client-IfJE1zAp.mjs → cart.client-c1YkTC-Q.mjs} +1 -1
  84. package/dist/client/{checkout-C3Aj-aNa.mjs → checkout-BeW1ufaH.mjs} +3 -3
  85. package/dist/client/{checkout.client-Tg9lfeYf.mjs → checkout.client-BeU32khQ.mjs} +1 -1
  86. package/dist/client/{checkoutUrls-OLqQdAXD.mjs → checkoutUrls-DVfSUSKp.mjs} +1 -1
  87. package/dist/client/client.mjs +36 -3
  88. package/dist/client/{context-D8TpQXjX.mjs → context-R9p5c8IH.mjs} +1 -1
  89. package/dist/client/{course-DHmeQAvq.mjs → course-CUFVJEAc.mjs} +1 -1
  90. package/dist/client/{dateFormatting-ABCZWkpT.mjs → dateFormatting-CF6FWCoo.mjs} +1 -1
  91. package/dist/client/{demoPortalMagicLink-BdcuW_pa.mjs → demoPortalMagicLink-tZxIm3RL.mjs} +1 -1
  92. package/dist/client/{display-DMqotaGU.mjs → display-4HYOb-AK.mjs} +51 -4
  93. package/dist/client/{enhanceHeaderSection-Ciuhsk0E.mjs → enhanceHeaderSection-DEYDI54E.mjs} +3 -3
  94. package/dist/client/{event-details.client-CJapNbTv.mjs → event-details.client-BwjBJP-f.mjs} +1 -1
  95. package/dist/client/{event-registration.client-CAdcpnLc.mjs → event-registration.client-DWvSODTI.mjs} +11 -11
  96. package/dist/client/{eventCalendar-BlsD5R8M.mjs → eventCalendar-C9Pn9eeZ.mjs} +4 -4
  97. package/dist/client/{eventCombined-B9Ly3024.mjs → eventCombined-Bdhk0fp0.mjs} +4 -4
  98. package/dist/client/{eventDetails-CbEGI4jO.mjs → eventDetails-C2LfNW_o.mjs} +2 -2
  99. package/dist/client/{eventListing-ZSmvhWII.mjs → eventListing-B-bJOQUk.mjs} +4 -4
  100. package/dist/client/{eventRegistration-D-yUcIyO.mjs → eventRegistration-CbdmUiDT.mjs} +4 -4
  101. package/dist/client/{form-DG_YZSNn.mjs → form-BbUUt784.mjs} +3 -3
  102. package/dist/client/{form.client-BU6dM0-C.mjs → form.client-BVlz-9_t.mjs} +4 -4
  103. package/dist/client/{form.parts-Db0Iq7nx.mjs → form.parts-TB4UIrML.mjs} +1 -1
  104. package/dist/client/{formatDate-DFfWHpQB.mjs → formatDate-TDHhFjFN.mjs} +1 -1
  105. package/dist/client/gifting/client.mjs +4 -4
  106. package/dist/client/{gifting-DMrsN4B4.mjs → gifting-CbNSrp7C.mjs} +4 -4
  107. package/dist/client/{gifting.client-BVa2XYJB.mjs → gifting.client-B__bGhFc.mjs} +4 -4
  108. package/dist/client/{gifting.parts-C2u4Y-pf.mjs → gifting.parts-CTA1sDW6.mjs} +2 -2
  109. package/dist/client/{headerSection-D91EzlOR.mjs → headerSection-5Wn9nUW_.mjs} +2 -2
  110. package/dist/client/{lookSurfaces-BDZLALxj.mjs → lookSurfaces-BwiNdgMU.mjs} +1 -1
  111. package/dist/client/{newsletter-form.client-BMGRiRpo.mjs → newsletter-form.client-B17WYHxZ.mjs} +5 -5
  112. package/dist/client/{newsletter-form.parts-D5UfUaD3.mjs → newsletter-form.parts-DN9wD1ZG.mjs} +1 -1
  113. package/dist/client/{newsletterForm-B_67sNwa.mjs → newsletterForm-DLMlxInp.mjs} +3 -3
  114. package/dist/client/{noop-DF8_EiFt.mjs → noop-CaQxI-Js.mjs} +2 -9
  115. package/dist/client/portal/client.mjs +7 -7
  116. package/dist/client/{product-detail.client-D-XNir0m.mjs → product-detail.client-Di_anRGR.mjs} +1 -1
  117. package/dist/client/{product-list.client-BLfYQ-qi.mjs → product-list.client-Duhl6rtL.mjs} +1 -1
  118. package/dist/client/{productDetail-W0_0lDGe.mjs → productDetail-BgKmCwA8.mjs} +3 -3
  119. package/dist/client/{productList-ayAtPJdb.mjs → productList-C_wMKsYS.mjs} +3 -3
  120. package/dist/client/{propsDecoder-ChYKWjLA.mjs → propsDecoder-y3LvxaiG.mjs} +4 -4
  121. package/dist/client/{registry.server-B1EEZkcr.mjs → registry.server-CIWYKz1V.mjs} +83 -27
  122. package/dist/client/rendering/client.mjs +23 -23
  123. package/dist/client/rendering/islands.mjs +1 -1
  124. package/dist/client/rendering.mjs +87 -22
  125. package/dist/client/{richText-coerce-CDAfpMQU.mjs → richText-coerce-DkPBFb_a.mjs} +1 -1
  126. package/dist/client/{routeIslandApiConfig-CcGWvyht.mjs → routeIslandApiConfig-BgO0rZce.mjs} +1 -1
  127. package/dist/client/{shop-DbUUoHFJ.mjs → shop-CFbWlv_W.mjs} +3 -3
  128. package/dist/client/{shop-commerce-aQqcDmyZ.mjs → shop-commerce-C-I29eaA.mjs} +12 -12
  129. package/dist/client/{shop-commerce-store-Cd7USpuY.mjs → shop-commerce-store-DGcc7twO.mjs} +1 -1
  130. package/dist/client/{shop-discount-apply.state-DGvPBmVP.mjs → shop-discount-apply.state-DOm7vx0X.mjs} +2 -2
  131. package/dist/client/{shop.client-BNZ9M8cG.mjs → shop.client-GHTWUKD6.mjs} +12 -12
  132. package/dist/client/{shop.interactive-CJAINJr3.mjs → shop.interactive-CxDJ8P2r.mjs} +3 -3
  133. package/dist/client/{shopShared-DwVAuGsx.mjs → shopShared-Be9QJJpT.mjs} +2 -2
  134. package/dist/client/{timetableModel-DBTIFWTb.mjs → timetableModel--R0zVzZO.mjs} +8 -8
  135. package/dist/client/{useAvailableSlots-BomyyKeo.mjs → useAvailableSlots-BGu_2F50.mjs} +2 -2
  136. package/dist/client/{useDiscountCodeUi-CCxHMWlU.mjs → useDiscountCodeUi-I_mXI9Yd.mjs} +1 -1
  137. package/dist/client/{useEventPagination-Bjin_qaN.mjs → useEventPagination-DxIJ--JZ.mjs} +7 -7
  138. package/dist/client/{view-BTk470k0.mjs → view-3foOzGWR.mjs} +3 -3
  139. package/dist/client/{view-Cw4EmEPv.mjs → view-BbzH5MQb.mjs} +61 -34
  140. package/dist/preview-next/client/{PageSectionToolbar-bq7gbKvn.mjs → PageSectionToolbar-0xyUPWUB.mjs} +3 -3
  141. package/dist/preview-next/client/{PreviewEditorSidebar-DVsPNcos.mjs → PreviewEditorSidebar-D8vUzXtI.mjs} +38 -35
  142. package/dist/preview-next/client/{PreviewEditorUI-B-pq3aZc.mjs → PreviewEditorUI-CRjS4gAu.mjs} +4 -4
  143. package/dist/preview-next/client/{PreviewShell-ChyjB96e.mjs → PreviewShell-BvdBdeH_.mjs} +5 -5
  144. package/dist/preview-next/client/{SdkPreviewModeRuntime-D_czeC0l.mjs → SdkPreviewModeRuntime-DWTyKbFj.mjs} +77 -47
  145. package/dist/preview-next/client/{previewAssistantSlot-B61mZd81.mjs → previewAssistantSlot-BqY2TTcZ.mjs} +436 -278
  146. package/dist/preview-next/client/{previewChromeRoot-dwOn9XtM.mjs → previewChromeRoot-BuRYe2iL.mjs} +1 -1
  147. package/dist/preview-next/client/runtime.mjs +3 -3
  148. package/dist/preview-next/client/{sdk-runtime-DZDfOxoW.mjs → sdk-runtime-BnK5kH9f.mjs} +2 -2
  149. package/dist/preview-next/client/{siteStyleAccess-BZDIC-fA.mjs → siteStyleAccess-DbKozRSn.mjs} +1 -1
  150. package/dist/preview-next/client/{useAutosaveStatus-BbzLMf-l.mjs → useAutosaveStatus-D9s6dyMW.mjs} +1 -1
  151. package/dist/preview-next/client/{useOpenBlockForSetup-BEXcWQeI.mjs → useOpenBlockForSetup-Ce4WCxpT.mjs} +16 -2
  152. package/dist/preview-next/keepAlive.mjs +1 -1
  153. package/dist/preview-next/middleware.mjs +1 -1
  154. package/dist/preview-next/{route-contract-0gSlK9S0.mjs → route-contract-BYezcMx5.mjs} +8 -0
  155. package/dist/server/{Block.shared-DeXXycg8.mjs → Block.shared-Cn7gg13_.mjs} +84 -16
  156. package/dist/server/{bindings-7L3pC5Os.mjs → bindings-VGgS6UvF.mjs} +3 -3
  157. package/dist/server/{client-CgghATBm.mjs → client-Bvag5OtW.mjs} +35 -3
  158. package/dist/server/config-validation.mjs +1 -1
  159. package/dist/server/config.mjs +2 -2
  160. package/dist/server/data/resolveBlockData.mjs +1 -1
  161. package/dist/server/index.mjs +2 -2
  162. package/dist/server/{loadContent-D7M5Vcug.mjs → loadContent-CxASA3PE.mjs} +5 -8
  163. package/dist/server/{loadPage-CiTId05y.mjs → loadPage-CQgde5DN.mjs} +2 -2
  164. package/dist/server/mapLocation-BM5WX7FY.mjs +315 -0
  165. package/dist/server/next.mjs +6 -6
  166. package/dist/server/{overrideResolution-CJ3MRI5Q.mjs → overrideResolution-BqVLO4gX.mjs} +1 -1
  167. package/dist/server/page-converter.mjs +1 -1
  168. package/dist/server/{pageRenderPlan-Cuos4Xcd.mjs → pageRenderPlan-CfSnAkCO.mjs} +10 -41
  169. package/dist/server/{pageRuntimeSupport-CuVj3bkd.mjs → pageRuntimeSupport-uz4gzBOo.mjs} +4 -13
  170. package/dist/server/{pageShared-JxlV8_Bo.mjs → pageShared-D23o5QgC.mjs} +111 -66
  171. package/dist/server/{prebuild-BDhlJbAx.mjs → prebuild-BuoXWT9y.mjs} +1 -1
  172. package/dist/server/prebuild.mjs +1 -1
  173. package/dist/server/{prefetchBlockData-kERh_c0v.mjs → prefetchBlockData-CCiYV8_s.mjs} +21 -6
  174. package/dist/server/{registry-cQ9N5W-n.mjs → registry-CXRXsFSx.mjs} +346 -513
  175. package/dist/server/rendering/components/pageShared.mjs +1 -1
  176. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  177. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  178. package/dist/server/rendering/server.mjs +4 -4
  179. package/dist/server/rendering.mjs +7 -7
  180. package/dist/server/{resolveBlockData-CN4UmmTK.mjs → resolveBlockData-yfe8WLEA.mjs} +1 -1
  181. package/dist/server/{responseMedia-DpBC1hTM.mjs → responseMedia-F-ElH2Rd.mjs} +1 -0
  182. package/dist/server/server.mjs +3 -3
  183. package/dist/server/{validation-3puM5SM8.mjs → validation-CozQ7wE0.mjs} +4 -4
  184. package/dist/server/{version-B8g-Wx57.mjs → version-CgCWRFEY.mjs} +1 -1
  185. package/package.json +1 -1
  186. package/dist/server/identity-DQD_8lNO.mjs +0 -6
@@ -0,0 +1,315 @@
1
+ import { C as ok, S as err, x as parseUuidBrand } from "./media-luf7RF22.mjs";
2
+ import { z } from "zod";
3
+ //#region ../core/src/branded/identity.ts
4
+ const unsafeAsSiteId = (id) => id;
5
+ const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
6
+ //#endregion
7
+ //#region ../core/src/map-drawing/model.ts
8
+ const MAX_DRAWING_BYTES = 1024 * 1024;
9
+ /** Current real city extracts fit with >2x headroom; reservations precede allocation. */
10
+ const DRAWING_DECODE_LIMITS = {
11
+ pathsPerFeature: 2048,
12
+ verticesPerPath: 8192,
13
+ verticesPerFeature: 32768,
14
+ featuresPerLayer: 1e4,
15
+ featuresPerTile: 16e3,
16
+ featuresPerAttempt: 6e4,
17
+ verticesPerAttempt: 1e6
18
+ };
19
+ /**
20
+ * The two fixed framings. Neighbourhood draws 1 m per view-box unit, wider 4 m, so the same stroke and label
21
+ * sizes read well in both. The wider view leaves out buildings, distant paths and small green patches, which turn to
22
+ * noise at that scale. `minParkArea` is in square view-box units. Labels go to the nearest streets first, with a
23
+ * minor street counted as `minorLabelDistance` times further away than it is, so the wider view names main roads.
24
+ */
25
+ const FRAMINGS = [{
26
+ name: "neighbourhood",
27
+ radiusMeters: 400,
28
+ zoom: 15,
29
+ roads: [
30
+ "major",
31
+ "minor",
32
+ "path"
33
+ ],
34
+ maxPathDistance: 800,
35
+ buildings: true,
36
+ minParkArea: .3,
37
+ maxLabels: 6,
38
+ minorLabelDistance: 1.5
39
+ }, {
40
+ name: "wider",
41
+ radiusMeters: 1600,
42
+ zoom: 14,
43
+ roads: [
44
+ "major",
45
+ "minor",
46
+ "path"
47
+ ],
48
+ maxPathDistance: 100,
49
+ buildings: false,
50
+ minParkArea: 40,
51
+ maxLabels: 5,
52
+ minorLabelDistance: 4
53
+ }];
54
+ const tilePoint = z.tuple([z.number().finite().min(-8192).max(12288), z.number().finite().min(-8192).max(12288)]).readonly();
55
+ const paths = z.array(z.array(tilePoint).min(2).max(DRAWING_DECODE_LIMITS.verticesPerPath).readonly()).min(1).max(DRAWING_DECODE_LIMITS.pathsPerFeature).readonly();
56
+ const featureFields = {
57
+ kind: z.string().max(80),
58
+ name: z.string().trim().max(60).regex(/^[^<>\u0000-\u001f\u007f]*$/).nullish().transform((value) => value === void 0 || value === null || value === "" ? null : value),
59
+ sortRank: z.number().finite().min(-1e4).max(1e4).default(0),
60
+ paths: paths.refine((value) => value.reduce((n, path) => n + path.length, 0) <= DRAWING_DECODE_LIMITS.verticesPerFeature)
61
+ };
62
+ const feature = z.discriminatedUnion("geometry", [z.strictObject({
63
+ ...featureFields,
64
+ layer: z.literal("roads"),
65
+ geometry: z.literal("line")
66
+ }).readonly(), z.strictObject({
67
+ ...featureFields,
68
+ layer: z.enum([
69
+ "earth",
70
+ "water",
71
+ "landuse",
72
+ "buildings"
73
+ ]),
74
+ geometry: z.literal("polygon")
75
+ }).refine((value) => value.paths.every((ring) => ring.length >= 3)).readonly()]);
76
+ const tile = z.strictObject({
77
+ z: z.union([z.literal(14), z.literal(15)]),
78
+ x: z.number().int().nonnegative(),
79
+ y: z.number().int().nonnegative(),
80
+ extent: z.literal(4096),
81
+ features: z.array(feature).max(DRAWING_DECODE_LIMITS.featuresPerTile).readonly()
82
+ }).refine((value) => value.x < 2 ** value.z && value.y < 2 ** value.z).readonly();
83
+ z.strictObject({
84
+ buildId: z.string().regex(/^\d{8}$/),
85
+ tileSchemaVersion: z.string().regex(/^4\.\d+\.\d+$/),
86
+ pin: z.lazy(() => locationPinSchema),
87
+ tiles: z.array(tile).min(1).max(96).readonly()
88
+ }).superRefine((value, ctx) => {
89
+ const features = value.tiles.flatMap((item) => item.features);
90
+ if (features.length > DRAWING_DECODE_LIMITS.featuresPerAttempt || features.reduce((sum, item) => sum + item.paths.reduce((count, path) => count + path.length, 0), 0) > DRAWING_DECODE_LIMITS.verticesPerAttempt) ctx.addIssue({
91
+ code: "custom",
92
+ message: "Decoded geometry exceeds the attempt budget."
93
+ });
94
+ }).readonly();
95
+ const point = z.tuple([z.number().min(0).max(800), z.number().min(0).max(800)]).readonly();
96
+ const polygon = z.strictObject({
97
+ kind: z.literal("polygon"),
98
+ fillRule: z.literal("evenodd"),
99
+ className: z.enum([
100
+ "map-land",
101
+ "map-water",
102
+ "map-park",
103
+ "map-building"
104
+ ]),
105
+ rings: z.array(z.array(point).min(3).max(8192).readonly()).min(1).max(DRAWING_DECODE_LIMITS.pathsPerFeature).readonly()
106
+ }).readonly();
107
+ const line = z.strictObject({
108
+ kind: z.literal("line"),
109
+ className: z.enum([
110
+ "map-road-major-casing",
111
+ "map-road-major",
112
+ "map-road-minor-casing",
113
+ "map-road-minor",
114
+ "map-road-path"
115
+ ]),
116
+ points: z.array(point).min(2).max(8192).readonly()
117
+ }).readonly();
118
+ const drawingPathSchema = z.discriminatedUnion("kind", [polygon, line]);
119
+ const label = z.strictObject({
120
+ className: z.literal("map-label"),
121
+ haloClassName: z.literal("map-label-halo"),
122
+ text: z.string().trim().min(1).max(60).regex(/^[^<>\u0000-\u001f\u007f]*$/),
123
+ point,
124
+ angle: z.number().min(-90).max(90)
125
+ }).readonly();
126
+ const drawingFrameSchema = z.strictObject({
127
+ radiusMeters: z.union([z.literal(FRAMINGS[0].radiusMeters), z.literal(FRAMINGS[1].radiusMeters)]),
128
+ viewBox: z.tuple([
129
+ z.literal(0),
130
+ z.literal(0),
131
+ z.literal(800),
132
+ z.literal(800)
133
+ ]).readonly(),
134
+ backgroundClass: z.literal("map-water"),
135
+ paths: z.array(drawingPathSchema).max(1800).readonly(),
136
+ labels: z.array(label).max(12).readonly(),
137
+ pin: z.strictObject({
138
+ className: z.literal("map-pin"),
139
+ point: z.tuple([z.literal(400), z.literal(400)]).readonly()
140
+ }).readonly()
141
+ }).superRefine((value, ctx) => {
142
+ if (value.paths.reduce((sum, path) => sum + (path.kind === "line" ? path.points.length : path.rings.reduce((n, ring) => n + ring.length, 0)), 0) > 5e4) ctx.addIssue({
143
+ code: "custom",
144
+ message: "Drawing exceeds its vertex budget."
145
+ });
146
+ }).readonly();
147
+ const mapDrawingSchema = z.strictObject({
148
+ schemaVersion: z.literal(2),
149
+ generatorVersion: z.literal(3),
150
+ buildId: z.string().regex(/^\d{8}$/),
151
+ tileSchemaVersion: z.string().regex(/^4\.\d+\.\d+$/),
152
+ frames: z.strictObject({
153
+ neighbourhood: drawingFrameSchema,
154
+ wider: drawingFrameSchema
155
+ }).readonly()
156
+ }).refine((value) => value.frames.neighbourhood.radiusMeters === FRAMINGS[0].radiusMeters && value.frames.wider.radiusMeters === FRAMINGS[1].radiusMeters).refine((value) => new TextEncoder().encode(JSON.stringify(value)).byteLength <= MAX_DRAWING_BYTES, { error: "Drawing exceeds its byte budget." }).readonly();
157
+ //#endregion
158
+ //#region ../core/src/string.ts
159
+ /**
160
+ * Trim a user-entered string and collapse blank values to null.
161
+ */
162
+ function trimmedStringOrNull(value) {
163
+ const trimmed = typeof value === "string" ? value.trim() : "";
164
+ return trimmed.length > 0 ? trimmed : null;
165
+ }
166
+ //#endregion
167
+ //#region ../core/src/location.ts
168
+ /** One complete, finite, bounded arrival pin; zero is a valid coordinate. */
169
+ const locationPinSchema = z.strictObject({
170
+ lat: z.number().min(-90).max(90),
171
+ lng: z.number().min(-180).max(180)
172
+ }).readonly().brand();
173
+ const addressPart = z.string().trim().max(200).nullish().transform((value) => trimmedStringOrNull(value));
174
+ /** Building identifies the place; unit/floor refine it without moving it. */
175
+ const locationAddressSchema = z.strictObject({
176
+ building: addressPart,
177
+ unit: addressPart,
178
+ floor: addressPart,
179
+ street: addressPart,
180
+ locality: addressPart,
181
+ region: addressPart,
182
+ postalCode: addressPart,
183
+ country: addressPart.transform((value) => value?.length === 2 ? value.toUpperCase() : value)
184
+ }).readonly().transform((address) => Object.values(address).some((part) => part !== null) ? address : null);
185
+ const locationAddressMatchSchema = z.strictObject({
186
+ point: locationPinSchema,
187
+ precision: z.enum([
188
+ "building",
189
+ "street",
190
+ "area",
191
+ "unknown"
192
+ ]),
193
+ placeId: z.string().trim().max(1024).regex(/^[a-z][a-z0-9-]*:\S+$/),
194
+ attribution: z.array(z.strictObject({
195
+ text: z.string().trim().min(1).max(500),
196
+ url: z.url().max(2048).refine((value) => /^https?:\/\//.test(value))
197
+ }).readonly()).min(1).max(4).readonly()
198
+ }).readonly();
199
+ const locationValueSchema = z.strictObject({
200
+ address: locationAddressSchema.nullable().default(null),
201
+ pin: locationPinSchema.nullable().default(null),
202
+ doorNote: z.string().trim().max(1e3).nullish().transform(trimmedStringOrNull),
203
+ addressMatch: locationAddressMatchSchema.nullable().default(null),
204
+ addressCheckSettled: z.literal(true).optional(),
205
+ ownerConfirmedPinAndAddress: z.boolean().default(false)
206
+ }).superRefine((value, context) => {
207
+ if (value.address === null && value.pin === null) context.addIssue({
208
+ code: "custom",
209
+ path: ["address"],
210
+ message: "Use null to remove a location."
211
+ });
212
+ if (value.address === null && value.addressMatch !== null) context.addIssue({
213
+ code: "custom",
214
+ path: ["addressMatch"],
215
+ message: "Address evidence requires an address."
216
+ });
217
+ if (value.address === null && value.addressCheckSettled) context.addIssue({
218
+ code: "custom",
219
+ path: ["addressCheckSettled"],
220
+ message: "A settled address check requires an address."
221
+ });
222
+ if (value.ownerConfirmedPinAndAddress && (value.address === null || value.pin === null)) context.addIssue({
223
+ code: "custom",
224
+ path: ["ownerConfirmedPinAndAddress"],
225
+ message: "Confirmation requires both address and pin."
226
+ });
227
+ }).readonly();
228
+ /** API/DB ingress parses once. Removed locations are represented by null. */
229
+ function parseLocationValue(input) {
230
+ const parsed = locationValueSchema.nullable().safeParse(input);
231
+ return parsed.success ? ok(parsed.data) : err({
232
+ kind: "invalid_location",
233
+ issues: parsed.error.issues
234
+ });
235
+ }
236
+ /** One display formatter: a known matching site country is redundant. */
237
+ function formatLocationAddress(address, siteCountry) {
238
+ if (address === null) return null;
239
+ return [
240
+ address.building,
241
+ address.street,
242
+ address.unit,
243
+ address.floor,
244
+ address.locality,
245
+ address.region,
246
+ address.postalCode,
247
+ sameLocationCountry(address.country, siteCountry) ? null : address.country
248
+ ].filter((part) => part !== null).join(", ") || null;
249
+ }
250
+ const regionNames = new Intl.DisplayNames(["en"], { type: "region" });
251
+ const countryIdentity = (country) => {
252
+ const text = country.trim();
253
+ const code = text.toUpperCase() === "UK" ? "GB" : text.toUpperCase();
254
+ return (code.length === 2 && /^[A-Z]{2}$/.test(code) ? regionNames.of(code) ?? text : text).toLowerCase();
255
+ };
256
+ function sameLocationCountry(country, siteCountry) {
257
+ return country !== null && Boolean(siteCountry?.trim()) && countryIdentity(country) === countryIdentity(siteCountry ?? "");
258
+ }
259
+ const publicLocationSchema = z.strictObject({
260
+ drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
261
+ address: locationAddressSchema.nullable(),
262
+ displayAddress: z.string().nullable().default(null),
263
+ pin: locationPinSchema.nullable(),
264
+ doorNote: z.string().max(1e3).nullable(),
265
+ attribution: z.array(locationAddressMatchSchema.unwrap().shape.attribution.unwrap().element).max(4).readonly()
266
+ }).readonly();
267
+ /** Permission belongs to the resource/source owner before this projection. */
268
+ function projectPublicLocation(location, siteCountry) {
269
+ return {
270
+ address: location.address,
271
+ displayAddress: formatLocationAddress(location.address, siteCountry),
272
+ pin: location.pin,
273
+ doorNote: location.doorNote,
274
+ attribution: location.addressMatch?.attribution ?? []
275
+ };
276
+ }
277
+ function normalizeLocationAddressText(value) {
278
+ if (typeof value !== "string") return null;
279
+ return trimmedStringOrNull(value);
280
+ }
281
+ function hasLocationCoordinates(value) {
282
+ return value != null && typeof value.lat === "number" && Number.isFinite(value.lat) && Math.abs(value.lat) <= 90 && typeof value.lng === "number" && Number.isFinite(value.lng) && Math.abs(value.lng) <= 180;
283
+ }
284
+ function toLocationCoordinates(value) {
285
+ if (!hasLocationCoordinates(value)) return null;
286
+ return {
287
+ lat: value.lat,
288
+ lng: value.lng
289
+ };
290
+ }
291
+ //#endregion
292
+ //#region ../site-contracts/src/siteData/venues.ts
293
+ /** Additive map DTO; hidden venues retain only their public name and area. */
294
+ const publicVenueMapLocationSchema = publicLocationSchema.unwrap().extend({
295
+ name: z.string().optional(),
296
+ area: z.string().nullable().optional(),
297
+ addressWithBooking: z.boolean().optional()
298
+ }).readonly();
299
+ //#endregion
300
+ //#region ../site-contracts/src/siteData/mapLocation.ts
301
+ /** Site and preview authority belong to transport, never to the selected source. */
302
+ const publicMapLocationParamsSchema = z.discriminatedUnion("source", [z.object({
303
+ source: z.literal("venue"),
304
+ venueId: z.string().uuid()
305
+ }), z.object({ source: z.literal("business_address") })]);
306
+ const publicMapLocationResultSchema = z.discriminatedUnion("kind", [
307
+ z.object({
308
+ kind: z.literal("shown"),
309
+ location: publicVenueMapLocationSchema
310
+ }),
311
+ z.object({ kind: z.literal("hidden") }),
312
+ z.object({ kind: z.literal("not_found") })
313
+ ]);
314
+ //#endregion
315
+ export { normalizeLocationAddressText as a, publicLocationSchema as c, mapDrawingSchema as d, parseSiteId as f, locationValueSchema as i, toLocationCoordinates as l, publicMapLocationResultSchema as n, parseLocationValue as o, publicVenueMapLocationSchema as r, projectPublicLocation as s, publicMapLocationParamsSchema as t, trimmedStringOrNull as u };
@@ -1,16 +1,16 @@
1
- import { Fs as inferSiteDateLocale, Gs as toUtcIsoDateTimeString, Us as resolveBookingBusinessTimeZone } from "./registry-cQ9N5W-n.mjs";
2
- import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-JxlV8_Bo.mjs";
3
- import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-CgghATBm.mjs";
4
- import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-D7M5Vcug.mjs";
1
+ import { Is as inferSiteDateLocale, Ks as toUtcIsoDateTimeString, Ws as resolveBookingBusinessTimeZone } from "./registry-CXRXsFSx.mjs";
2
+ import { i as defaultLayoutThemeRuntime, l as ThemeScope, n as toPageHydrationBootstrapConfig, r as defaultCatchAllThemeRuntime } from "./pageShared-D23o5QgC.mjs";
3
+ import { _ as createBearerAPIClient, h as RiverbankApiError, m as CircuitOpenError, p as sdkRequestOptions, t as createRiverbankClient, v as ApiRequestError, y as unwrapResponse } from "./client-Bvag5OtW.mjs";
4
+ import { i as loadContent, n as isPageContent, r as isPageSurfaceContent, t as isEntryContent } from "./loadContent-CxASA3PE.mjs";
5
5
  import { n as MissingSdkThemeError, r as requireSdkTheme, t as MISSING_SDK_THEME_ERROR_CODE } from "./themeAdmission-DGSAlFUK.mjs";
6
6
  import { r as normalizeDataLoaderSearchParams } from "./dataLoaderContext-B3fXA54R.mjs";
7
7
  import { l as isPreviewMode, o as normalizeSdkRenderingMode, s as themeRuntimeForRendering } from "./overrides-CD4d-1w7.mjs";
8
8
  import { n as generatePreviewMetadata, r as applyPageSurfaceIndexing, t as generatePageMetadata } from "./generatePageMetadata-DB_lbrZ7.mjs";
9
9
  import { t as getPortalToken } from "./portal-BjVHMAUC.mjs";
10
10
  import { _ as toRoutingInfo, a as resolvePageContent, i as contentNotFound, n as contentFound, o as defaultShouldAttemptEntrySubroute, t as RiverbankContentLoadError } from "./resolvePageContent-CAELMBEJ.mjs";
11
- import { t as SDK_VERSION } from "./version-B8g-Wx57.mjs";
11
+ import { t as SDK_VERSION } from "./version-CgCWRFEY.mjs";
12
12
  import { t as appendSearchToRedirectDestination } from "./redirect-destination-Bee5ZEon.mjs";
13
- import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-CJ3MRI5Q.mjs";
13
+ import { i as Page, r as resolveBlockOverridesForPage } from "./overrideResolution-BqVLO4gX.mjs";
14
14
  import { cache } from "react";
15
15
  import { jsx, jsxs } from "react/jsx-runtime";
16
16
  import { BlocksIslandsHydrator } from "#sdk-rendering-client";
@@ -1,4 +1,4 @@
1
- import { t as PageContent } from "./pageShared-JxlV8_Bo.mjs";
1
+ import { t as PageContent } from "./pageShared-D23o5QgC.mjs";
2
2
  import { t as allOutlineBlocks } from "./pageRegions-BaeEF2MU.mjs";
3
3
  import { i as lazyBlockOverrideSymbol } from "./overrides-CD4d-1w7.mjs";
4
4
  import { jsx } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
- import { n as listBlockDescriptors, ni as parseBackgroundContent } from "./registry-cQ9N5W-n.mjs";
1
+ import { li as parseBackgroundContent, n as listBlockDescriptors } from "./registry-CXRXsFSx.mjs";
2
2
  import { i as createRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
3
3
  import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
4
4
  import { r as createDebugWriter } from "./debug-DXUyrE0T.mjs";
@@ -1,5 +1,5 @@
1
1
  import { Dt as parseThemeColorToken, G as hexToRgb, J as oklchToHexGamut, K as oklabToOklch, P as getTextColorForBackground, R as contrastRatio, X as rgbToHex, Z as srgbToOklab, q as oklabToSrgb } from "./resolveButtonColourStates--6yJp9Tq.mjs";
2
- import { $i as eventScopeLoaderParam, $n as chromeLogoTransforms, $s as resolvePricingOptionsPriceDisplay, $t as formatEventCompactDateRail, Aa as arrangementManifestFromVariants, An as canJoinEventWaitlistOnAnyMode, Ar as formatEventPrice, Bs as getLocalScheduleDate, Co as resolveSectionBackground, Do as themeV2CompilerOwnedFieldNames, Dr as resolveClassPriceItems, Dt as groupOfferingRunsByCourse, Eo as stripStaleTransitionStyleGroup, Er as classPricesDataSchema, Fn as isEventFull, Fr as getAnchorClasses, Gn as contentTransforms, Go as formatDateKey, Gs as toUtcIsoDateTimeString, Gt as weekColumnDays, I as combinedLookSchema, Ia as deriveSiteStyleBlockPolicy, J as CardListLeadDate, Ji as eventReadinessLoaderKey, Jt as eventDateOptions, Ka as gradientToCss, Lt as ThemedButtonLink, Ma as resolveEffectiveArrangement, Mn as formatTotalCapacity, Mr as formatEventPriceDisplay, Ms as formatDate, Na as resolveModeArrangement, Nn as getEventAvailability, Nr as formatEventStartingPrice, Ns as formatDateRange, Oi as ClockIcon, Or as formatCoursePrice, Pa as resolvePublishedLook, Pn as getEventAvailabilityStatus, Pr as BACKGROUND_POSITION_PRESET_VALUES, Ps as formatDateTimeRange, Q as MediaNodeServer, Qi as eventDiscoveryFilterKeys, Qn as headerRuntimeTransforms, Qr as boxStylesTransforms, Qs as resolveExactOrFreePriceDisplay, Rs as compareLocalScheduleDates, So as parseCanonicalRuntimeBackground, Tr as classPricesCopySchema, Ui as augmentManifest, Us as resolveBookingBusinessTimeZone, Vs as parseBookingLocalDate, Vt as buildEventListWeek, Wi as isObjectRecord, Wt as groupEventsByWeek, X as resolveCardListSchedule, Xi as eventReadinessQueryKeys, Yi as eventReadinessQuery, Yn as readRuntimeNow, Yt as eventLocalDateKey, Z as selectCardListPresentation, Zn as mediaTransforms, Zo as isToday, _a as heroPhotoPaintsGround, _i as createTransformRegistry, _s as orderedLiveRunSessions, aa as resolveEventCalendarReadPlan, ac as arrangementSlotNames, ai as resolveSectionSurfaceForeground, an as formatEventWeekdayTime, bo as applyLookPhotoTreatment, cn as resolveEventTimeZone, co as sectionShapeHook, ct as systemCustomizeFacetDefinitionsForBlock, da as resolveLookSurfacePresentation, do as boundaryRuntimeMetricsForDecorativeTransition, ea as eventScopeQuery, en as formatEventDateParts, er as layoutTransforms, et as ImagePresets, fi as lookCarouselRegionTransform, ft as EventQuickFacts, gi as asPartialObject, gs as nextLiveRunSessionStartMs, hi as lookSkinSlotTransform, hn as closedRunCopy, hr as listLookSlot, ia as eventCalendarListGroupingDecision, ic as parseGradientPresetId, ii as parseRuntimeBackgroundContent, in as formatEventTimeRange, ja as readStoredMode, jn as formatEventRemainingPlaces, ka as styleSectionBackgroundForColour, kn as isBookableEvent, kr as formatEventDepositNote, li as isSemanticSpacing, ln as resolveRuntimeEventDestination, mi as lookQuoteLimitTransform, na as resolveEventScope, ni as parseBackgroundContent, nr as uiTransforms, nt as computeMediaTransformStyle, oi as resolveSurfaceForegroundStyles, on as formatTime, oo as sectionShapeForGround, pi as lookLeadSlotTransform, pr as listItemPresentation, q as CardListContentPart, qa as getGradientPreset, qi as blockChecksForEvents, qs as formatBookingPriceDisplay, qt as eventCalendarWeekStart, ra as resolveCalendarReadProfile, ri as parseBackgroundOverlay, rn as formatEventRunDates, rr as formattingTransforms, si as resolveBackgroundColorValue, sn as groupEventsByDate, so as sectionShapeFromContent, st as resolveArrangementKnobs, t as getBlockDefinition, ta as eventScopeQueryKeys, ua as lookPresentationOnPalette, un as formatBookingSchedulePresentation, vs as resolveWholeSeriesBookingPhase, wo as sectionSurfaceBase, xa as arrangementAppearancePresets, xo as deriveSectionGround, xr as heroMorePhotoCount } from "./registry-cQ9N5W-n.mjs";
2
+ import { $ as resolveCardListSchedule, $a as gradientToCss, $s as resolveExactOrFreePriceDisplay, Ao as resolveSectionBackground, At as groupOfferingRunsByCourse, Ba as resolveModeArrangement, Bn as getEventAvailability, Br as formatEventStartingPrice, Bt as ThemedButtonLink, Ci as asPartialObject, Cs as nextLiveRunSessionStartMs, Do as applyLookPhotoTreatment, Fi as ClockIcon, Fr as formatCoursePrice, Fs as formatDateTimeRange, Hn as isEventFull, Hr as getAnchorClasses, Hs as parseBookingLocalDate, Ia as styleSectionBackgroundForColour, In as isBookableEvent, Ir as formatEventDepositNote, Js as formatBookingPriceDisplay, Jt as weekColumnDays, Ks as toUtcIsoDateTimeString, La as arrangementManifestFromVariants, Ln as canJoinEventWaitlistOnAnyMode, Lr as formatEventPrice, Mr as classPricesCopySchema, No as stripStaleTransitionStyleGroup, Nr as classPricesDataSchema, Ns as formatDate, Oa as arrangementAppearancePresets, Oo as deriveSectionGround, Or as heroMorePhotoCount, Po as themeV2CompilerOwnedFieldNames, Pr as resolveClassPriceItems, Ps as formatDateRange, Qn as contentTransforms, Qo as formatDateKey, Qt as eventLocalDateKey, Ra as readStoredMode, Rn as formatEventRemainingPlaces, Si as lookSkinSlotTransform, Sn as closedRunCopy, Sr as listLookSlot, Ts as resolveWholeSeriesBookingPhase, Ua as deriveSiteStyleBlockPolicy, Va as resolvePublishedLook, Vn as getEventAvailabilityStatus, Vr as BACKGROUND_POSITION_PRESET_VALUES, Vs as getLocalScheduleDate, Ws as resolveBookingBusinessTimeZone, Wt as buildEventListWeek, X as CardListContentPart, Xi as augmentManifest, Xt as eventCalendarWeekStart, Z as CardListLeadDate, Zi as isObjectRecord, Zt as eventDateOptions, _a as lookPresentationOnPalette, aa as eventDiscoveryFilterKeys, ac as parseGradientPresetId, ai as boxStylesTransforms, ar as headerRuntimeTransforms, at as computeMediaTransformStyle, bi as lookLeadSlotTransform, br as listItemPresentation, ca as eventScopeQueryKeys, cn as formatEventWeekdayTime, da as eventCalendarListGroupingDecision, di as parseRuntimeBackgroundContent, dn as resolveEventTimeZone, dt as systemCustomizeFacetDefinitionsForBlock, ea as blockChecksForEvents, ec as resolvePricingOptionsPriceDisplay, eo as getGradientPreset, et as selectCardListPresentation, fa as resolveEventCalendarReadPlan, fi as resolveSectionSurfaceForeground, fn as resolveRuntimeEventDestination, gi as isSemanticSpacing, ho as sectionShapeHook, ht as EventQuickFacts, ir as mediaTransforms, is as isToday, jo as sectionSurfaceBase, ko as parseCanonicalRuntimeBackground, la as resolveEventScope, li as parseBackgroundContent, ln as formatTime, lr as uiTransforms, mi as resolveBackgroundColorValue, mo as sectionShapeFromContent, na as eventReadinessQuery, nn as formatEventCompactDateRail, nr as readRuntimeNow, oa as eventScopeLoaderParam, oc as arrangementSlotNames, on as formatEventRunDates, or as chromeLogoTransforms, pi as resolveSurfaceForegroundStyles, pn as formatBookingSchedulePresentation, po as sectionShapeForGround, qt as groupEventsByWeek, ra as eventReadinessQueryKeys, rn as formatEventDateParts, rt as ImagePresets, sa as eventScopeQuery, sn as formatEventTimeRange, sr as layoutTransforms, t as getBlockDefinition, ta as eventReadinessLoaderKey, tt as MediaNodeServer, ua as resolveCalendarReadProfile, ui as parseBackgroundOverlay, un as groupEventsByDate, ur as formattingTransforms, ut as resolveArrangementKnobs, va as resolveLookSurfacePresentation, vo as boundaryRuntimeMetricsForDecorativeTransition, wa as heroPhotoPaintsGround, wi as createTransformRegistry, ws as orderedLiveRunSessions, xi as lookQuoteLimitTransform, yi as lookCarouselRegionTransform, yn as formatEventLocation, z as combinedLookSchema, za as resolveEffectiveArrangement, zn as formatTotalCapacity, zr as formatEventPriceDisplay, zs as compareLocalScheduleDates } from "./registry-CXRXsFSx.mjs";
3
3
  import { A as resolveOnColorForThemeToken, G as resolveConcreteColorHex, M as resolveTokenOrCssColorValue, k as isCssColorLiteral, n as parseSurfaceTree } from "./accessibleSurfaces-CM3QANtw.mjs";
4
4
  import { D as asSiteStyleId, O as makeBoundaryId, S as asDesignBlockId, T as asLayoutVariantKey } from "./customCss-BZ8YSrQg.mjs";
5
5
  import { o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
@@ -985,41 +985,6 @@ function readableDuration(minutes) {
985
985
  ].filter(Boolean).join(" ");
986
986
  }
987
987
  //#endregion
988
- //#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
989
- function formatEventLocation(event) {
990
- switch (event.deliveryMode) {
991
- case "online": return "Online";
992
- case "hybrid": return event.venue ? `${event.venue.name} + online` : "In person or online";
993
- case "in_person": return event.venue?.name ?? "In person";
994
- }
995
- }
996
- /** The line under the venue name. A booked-only venue shows its area, and the address follows the booking. */
997
- function eventVenuePlace(venue) {
998
- if (venue.addressWithBooking) return {
999
- place: venue.area ?? null,
1000
- addressWithBooking: true
1001
- };
1002
- return {
1003
- place: venue.address,
1004
- addressWithBooking: false
1005
- };
1006
- }
1007
- /**
1008
- * Where an online or hybrid event happens, for the place a venue would go.
1009
- *
1010
- * Booking here sends a confirmation email that carries the joining link (the
1011
- * link is required for an online event people book here), so the note only
1012
- * promises it when the visitor books on this site. Null for in-person events.
1013
- */
1014
- function eventOnlinePlace(event) {
1015
- if (event.deliveryMode === "in_person") return null;
1016
- const bookedHere = event.requiresRegistration && event.destination.kind !== "external";
1017
- return {
1018
- mode: event.deliveryMode,
1019
- note: bookedHere ? "The joining link comes with your booking confirmation." : null
1020
- };
1021
- }
1022
- //#endregion
1023
988
  //#region ../blocks/src/system/runtime/nodes/events/domain/people.ts
1024
989
  function formatTeamMemberNames(names) {
1025
990
  const normalized = names.map((name) => name.trim()).filter(Boolean);
@@ -2057,10 +2022,7 @@ function offeringFacts(event, places, offering) {
2057
2022
  label: "Length",
2058
2023
  value: sessions
2059
2024
  }] : lengthFact(event, !offering || course),
2060
- ...offering && (event.venue || event.deliveryMode !== "in_person") ? [{
2061
- label: "Venue",
2062
- value: formatEventLocation(event)
2063
- }] : [],
2025
+ ...offering ? placeFact(event) : [],
2064
2026
  ...places ? [{
2065
2027
  label: "Places",
2066
2028
  value: places,
@@ -2072,6 +2034,13 @@ function offeringFacts(event, places, offering) {
2072
2034
  }]
2073
2035
  ];
2074
2036
  }
2037
+ /** An online event, or one whose address follows the booking, says so where a venue would go. */
2038
+ function placeFact(event) {
2039
+ return event.venue || event.addressAfterBooking || event.deliveryMode !== "in_person" ? [{
2040
+ label: "Venue",
2041
+ value: formatEventLocation(event)
2042
+ }] : [];
2043
+ }
2075
2044
  function lengthFact(event, shown) {
2076
2045
  const minutes = Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4);
2077
2046
  return shown && minutes > 0 ? [{
@@ -4766,4 +4735,4 @@ function plannedSlotParents(entry, look) {
4766
4735
  return arrangementSlotParentsForManifest(entry.definition.manifest, look.look.target, arrangement, look.look.structure.eventRows);
4767
4736
  }
4768
4737
  //#endregion
4769
- export { formatEventDuration as $, deriveEventScheduleSummary as A, MapPinIcon as B, EventHeader as C, OfferingCourseCards as D, EventListingFrameView as E, CardListCollection as F, buildMonthDay as G, eventDisplayTitleText as H, CardListItems as I, selectQuickDateEvents as J, resolveMonthSelectedDay as K, EventItem as L, createEditorPresentationPageReader as M, createPresentationPageReader as N, eventCardListContent as O, EmptyState as P, formatEventLocation as Q, eventCategoryBadge as R, lookPartShown as S, MonthLookView as T, formatCourseDatesAfter as U, eventDisplayTitle as V, formatCourseSessions as W, eventOnlinePlace as X, formatEventTeacherLine as Y, eventVenuePlace as Z, publicAppointmentPricingSchema as _, joinSlotKey as a, lookFillPartsFromContent as at, resolvePageRouteTarget as b, buildLinkedContentEditTarget as c, defaultThemeTokens as ct, builtinTransformDefinitions as d, resolveEventCardBooking as et, defaultTransforms as f, publicAppointmentLocationSchema as g, formatAppointmentPrice as h, composePageJoins as i, selectBlockContent as it, derivePreviewRunSchedule as j, offeringDatesBySeries as k, coerceLinkedContentEntriesPayload as l, formatAppointmentLocation as m, createPageRenderPlanReader as n, resolveEventLinkProps as nt, renderedJoinLayout as o, resolveRuntimeSection as ot, formatAppointmentDuration as p, formatEventQuickDate as q, planArrangementContent as r, parseStoredVariant as rt, retargetJoinsAcrossOmissions as s, buildThemeTokens as st, buildPageRenderPlan as t, resolveEventCta as tt, resolveLinkedEntryInlineFieldEligibility as u, resolveAuthoredLinkHref as v, EVENT_REGISTRATION_ANCHOR_ID as w, resolveRouteTarget as x, resolveEntryRouteTarget as y, CalendarIcon as z };
4738
+ export { resolveEventLinkProps as $, deriveEventScheduleSummary as A, MapPinIcon as B, EventHeader as C, OfferingCourseCards as D, EventListingFrameView as E, CardListCollection as F, buildMonthDay as G, eventDisplayTitleText as H, CardListItems as I, selectQuickDateEvents as J, resolveMonthSelectedDay as K, EventItem as L, createEditorPresentationPageReader as M, createPresentationPageReader as N, eventCardListContent as O, EmptyState as P, resolveEventCta as Q, eventCategoryBadge as R, lookPartShown as S, MonthLookView as T, formatCourseDatesAfter as U, eventDisplayTitle as V, formatCourseSessions as W, formatEventDuration as X, formatEventTeacherLine as Y, resolveEventCardBooking as Z, publicAppointmentPricingSchema as _, joinSlotKey as a, defaultThemeTokens as at, resolvePageRouteTarget as b, buildLinkedContentEditTarget as c, builtinTransformDefinitions as d, parseStoredVariant as et, defaultTransforms as f, publicAppointmentLocationSchema as g, formatAppointmentPrice as h, composePageJoins as i, buildThemeTokens as it, derivePreviewRunSchedule as j, offeringDatesBySeries as k, coerceLinkedContentEntriesPayload as l, formatAppointmentLocation as m, createPageRenderPlanReader as n, lookFillPartsFromContent as nt, renderedJoinLayout as o, formatAppointmentDuration as p, formatEventQuickDate as q, planArrangementContent as r, resolveRuntimeSection as rt, retargetJoinsAcrossOmissions as s, buildPageRenderPlan as t, selectBlockContent as tt, resolveLinkedEntryInlineFieldEligibility as u, resolveAuthoredLinkHref as v, EVENT_REGISTRATION_ANCHOR_ID as w, resolveRouteTarget as x, resolveEntryRouteTarget as y, CalendarIcon as z };
@@ -1,6 +1,7 @@
1
- import { As as trimmedStringOrNull, Bo as resolveRepeaterGridRowFieldId, Es as locationValueSchema, Fi as inlineTextToPlainText, Gs as toUtcIsoDateTimeString, Li as parseInlineTextFromUnknown, Lo as isAcceptedRepeaterGridSpan, Os as projectPublicLocation, Ri as plainTextToInlineText, Ro as parseRepeaterGridInteger, Si as parseBlockIconValue, Us as resolveBookingBusinessTimeZone, Vi as parseFieldDefinitions, Vo as resolveRepeaterGridSpanFieldId, jo as DEFAULT_MEDIA_FIELD_KINDS, ks as publicLocationSchema, l as sanitizeNewsletterSignupPublicContent, os as linkSchema, ps as isRecord$1, t as getBlockDefinition, tc as parseContentVersionId, zi as normalizeSelectSource, zo as resolveRepeaterGridColumnFieldId } from "./registry-cQ9N5W-n.mjs";
1
+ import { Gi as plainTextToInlineText, Go as parseRepeaterGridInteger, Hi as inlineTextToPlainText, Ji as parseFieldDefinitions, Jo as resolveRepeaterGridSpanFieldId, Ki as normalizeSelectSource, Ko as resolveRepeaterGridColumnFieldId, Ks as toUtcIsoDateTimeString, Ro as DEFAULT_MEDIA_FIELD_KINDS, Wi as parseInlineTextFromUnknown, Wo as isAcceptedRepeaterGridSpan, Ws as resolveBookingBusinessTimeZone, bs as isRecord$1, f as sanitizeNewsletterSignupPublicContent, ki as parseBlockIconValue, nc as parseContentVersionId, ps as linkSchema, qo as resolveRepeaterGridRowFieldId, t as getBlockDefinition } from "./registry-CXRXsFSx.mjs";
2
2
  import { c as runtimeBoxBackgroundSchema, s as boxBackgroundSchema } from "./schema-BpsqaSSU.mjs";
3
3
  import { f as PUBLIC_FILE_FIELD_KINDS, h as mediaIdentifierSchema, i as mediaSchema, o as runtimeMediaSchema } from "./media-luf7RF22.mjs";
4
+ import { c as publicLocationSchema, i as locationValueSchema, s as projectPublicLocation, u as trimmedStringOrNull } from "./mapLocation-BM5WX7FY.mjs";
4
5
  import { a as isRichTextDoc } from "./richTextSchema-QLaQrbII.mjs";
5
6
  import { t as getFlattenedRepeaterFields } from "./repeaterFields-MIz7r1ez.mjs";
6
7
  import { n as mapOutlineBlocks, r as mapOutlineRegions } from "./pageRegions-BaeEF2MU.mjs";
@@ -1758,21 +1759,16 @@ function siteBookingRenderSupport(site) {
1758
1759
  businessPerson: site.bookingPerson ?? null
1759
1760
  };
1760
1761
  }
1761
- function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
1762
+ function buildSiteRenderSupport(site, mediaAssets) {
1762
1763
  const customBlocks = resolveSiteCustomBlocks(site);
1763
1764
  return {
1764
1765
  theme: site.theme,
1765
- site: locationMapSupport ? {
1766
- ...site.site,
1767
- venuesById: locationMapSupport.venuesById
1768
- } : site.site,
1766
+ site: site.site,
1769
1767
  sdkConfig: site.sdkConfig ?? null,
1770
1768
  openingHours: site.businessDetails?.openingHours ?? null,
1771
1769
  siteTerms: site.siteTerms,
1772
1770
  mailingList: site.mailingList,
1773
1771
  interactionContext: site.interactionContext,
1774
- businessLocationPermission: site.site.businessLocationPermission,
1775
- businessAddressVisibility: site.businessDetails?.addressVisibility ?? "hidden",
1776
1772
  ...siteBookingRenderSupport(site),
1777
1773
  now: toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString()),
1778
1774
  ...customBlocks ? { customBlocks } : {},
@@ -1783,14 +1779,9 @@ function buildSiteRenderSupport(site, mediaAssets, locationMapSupport) {
1783
1779
  ...mediaAssets ? { mediaAssets } : {}
1784
1780
  };
1785
1781
  }
1786
- /** Only already-permitted projections reach the block runtime. */
1787
1782
  function siteBlockRenderContext(support) {
1788
1783
  return {
1789
1784
  businessPerson: support.businessPerson,
1790
- businessLocationPermission: support.site.businessLocationPermission,
1791
- businessAddressVisibility: support.businessAddressVisibility ?? "hidden",
1792
- businessLocation: support.site.businessLocation ?? null,
1793
- venuesById: support.site.venuesById ?? {},
1794
1785
  siteCountry: support.site.siteCountry ?? null
1795
1786
  };
1796
1787
  }