@riverbankcms/sdk 0.179.0 → 0.180.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 (193) hide show
  1. package/README.md +2 -2
  2. package/dist/_dts/{BlocksIslandsHydrator-DKwgs95u.d.ts → BlocksIslandsHydrator-DC_AvZwy.d.ts} +1 -1
  3. package/dist/_dts/{Page-lWenra5i.d.ts → Page-DQOxVtp3.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-BRxhRw4I.d.ts → SdkPreviewMode-DrLgY9_f.d.ts} +3 -2
  5. package/dist/_dts/{client-qWn7xAwJ.d.ts → client-BP7VBRvs.d.ts} +235 -56
  6. package/dist/_dts/{content-types-DL6GIvTm.d.ts → content-types-1-K2qi__.d.ts} +2 -2
  7. package/dist/_dts/{contracts-CzWyAiJj.d.ts → contracts-Dfqz0Tcu.d.ts} +3 -3
  8. package/dist/_dts/{generatePageMetadata-CBKd0cJ4.d.ts → generatePageMetadata-CSfAqmry.d.ts} +2 -2
  9. package/dist/_dts/{index-DVSipdrT.d.ts → index-B0_2-65A.d.ts} +3 -3
  10. package/dist/_dts/{index-DCiSHd-C.d.ts → index-BeM5Ylwf.d.ts} +5 -3
  11. package/dist/_dts/{index-BYnG_vF5.d.ts → index-Blrw2oVk.d.ts} +1 -1
  12. package/dist/_dts/{index-CaCum9mM.d.ts → index-CB5Csefo.d.ts} +2 -2
  13. package/dist/_dts/{index-CZgJrhzT.d.ts → index-DCcxLa8p.d.ts} +2 -2
  14. package/dist/_dts/{index-7CDBZGb-.d.ts → index-DQBGwBPx.d.ts} +1 -1
  15. package/dist/_dts/{index-BU9uAkHB.d.ts → index-DQr358-m.d.ts} +4 -4
  16. package/dist/_dts/{loadContent-CPKbFQyq.d.ts → loadContent-BG2tLGXj.d.ts} +7 -7
  17. package/dist/_dts/{request-BjKBCS7t.d.ts → request-P08l6mkr.d.ts} +2602 -821
  18. package/dist/_dts/{resolveBlockData-DupbMCup.d.ts → resolveBlockData-BDHc8lFs.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-BqNyCHi8.d.ts → resolvePageContent-Y3IZBbtL.d.ts} +1 -1
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +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 +8 -8
  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 +3 -3
  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 +4 -4
  46. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  47. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  48. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  49. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  50. package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
  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/{serviceBookingOutline-YcsIjvn1.d.ts → serviceBookingOutline-BvtNagjw.d.ts} +8 -7
  55. package/dist/_dts/{types-BOxSq-Bq.d.ts → types-BrK6SS5c.d.ts} +9 -8
  56. package/dist/_dts/{types-CT-KOxl_.d.ts → types-DpEAnP4F.d.ts} +7 -2
  57. package/dist/_dts/{types-B7e6Lmo5.d.ts → types-HAy1-Jjo.d.ts} +3 -3
  58. package/dist/_dts/{validation-Dz6qccue.d.ts → validation-D6q3tOBA.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-1XifJg6V.mjs → BlocksIslandsHydrator-DJSmdNUJ.mjs} +16 -16
  60. package/dist/client/{BookingMailingListNote-BsbEgagJ.mjs → BookingMailingListNote-CGxg37zx.mjs} +91 -59
  61. package/dist/client/{BookingQuestionFields-C8IbeLHj.mjs → BookingQuestionFields-DXegGSnS.mjs} +24 -3
  62. package/dist/client/{CalendarNavigationChevron-Bbqij1XQ.mjs → CalendarNavigationChevron-VfP50sYm.mjs} +5 -5
  63. package/dist/client/{DemoBookingPortalAccess-uA9H8LIL.mjs → DemoBookingPortalAccess-0Ua44F1j.mjs} +12 -7
  64. package/dist/client/{EventCalendar.client-yoSI77ov.mjs → EventCalendar.client-CrpiyDSP.mjs} +9 -9
  65. package/dist/client/{EventCombined.client-HeCNlliq.mjs → EventCombined.client-D0me9wnz.mjs} +8 -8
  66. package/dist/client/{EventItem-Duhk1vnF.mjs → EventItem-CJITrGkF.mjs} +5 -4
  67. package/dist/client/{EventListWeekNavigation-BiutEqPK.mjs → EventListWeekNavigation-BlEm_xjq.mjs} +1 -1
  68. package/dist/client/{EventListing.client-B5ln77jG.mjs → EventListing.client-BNM_HuS0.mjs} +3 -3
  69. package/dist/client/{EventListing.view-hUDhNtMv.mjs → EventListing.view-CXfb7RRy.mjs} +7 -210
  70. package/dist/client/{EventRegistrationPayment-DqtX1vB2.mjs → EventRegistrationPayment-DiD9uYs6.mjs} +1292 -224
  71. package/dist/client/{Page-ChJ2TGVk.mjs → Page-bX7iy_MK.mjs} +158 -50
  72. package/dist/client/{SiteTermsAgreementField-CDBU31xW.mjs → SiteTermsAgreementField-BAdW5DvE.mjs} +22 -15
  73. package/dist/client/{StepIndicator-JQA-VuEH.mjs → StepIndicator-DCfdcb7s.mjs} +1 -1
  74. package/dist/client/{StepIndicator-2Dl9zon2.mjs → StepIndicator-DCqorVne.mjs} +6 -6
  75. package/dist/client/{accordion-B6SqU49k.mjs → accordion-wofJY8xY.mjs} +1 -1
  76. package/dist/client/{booking-form.client-DrEOjQ3N.mjs → booking-form.client-CYl9NrqS.mjs} +410 -77
  77. package/dist/client/{bookingForm-drZBwEZW.mjs → bookingForm-kgVWtuMe.mjs} +4 -4
  78. package/dist/client/bookings.mjs +40 -10
  79. package/dist/client/{boxStyleClassNames-DEh45w16.mjs → boxStyleClassNames-CQHWz5gJ.mjs} +2 -2
  80. package/dist/client/{carousel-C-YJliD-.mjs → carousel-BE1dEFsD.mjs} +1 -1
  81. package/dist/client/{cart-acGFWK9R.mjs → cart-BsjsdGZE.mjs} +3 -3
  82. package/dist/client/{cart.client-BzlOGP2j.mjs → cart.client-DylGUWXY.mjs} +1 -1
  83. package/dist/client/{checkout-SEontwhy.mjs → checkout-B5KxEUDr.mjs} +3 -3
  84. package/dist/client/{checkout.client-C0Qvh-d4.mjs → checkout.client-C98fhch3.mjs} +1 -1
  85. package/dist/client/{checkoutUrls-yUKeq1N9.mjs → checkoutUrls-BMLYTf38.mjs} +1 -1
  86. package/dist/client/client.mjs +224 -158
  87. package/dist/client/constants-PfYJsEZF.mjs +101 -0
  88. package/dist/client/{context-DTrwaQtg.mjs → context-DtKdUdkO.mjs} +199 -27
  89. package/dist/client/{dateFormatting-Cg8E1r9l.mjs → dateFormatting-BaGPvQS3.mjs} +1 -1
  90. package/dist/client/{demoPortalMagicLink-D0kOJYOX.mjs → demoPortalMagicLink-B8eDjhuG.mjs} +1 -1
  91. package/dist/client/{enhanceHeaderSection-DyrpZ7ks.mjs → enhanceHeaderSection-DvhD-8eE.mjs} +3 -3
  92. package/dist/client/{event-registration.client-RLZQWi2V.mjs → event-registration.client-Du9a_xAN.mjs} +1980 -1517
  93. package/dist/client/{eventCalendar-CphYnImh.mjs → eventCalendar-Di9wDfzl.mjs} +4 -4
  94. package/dist/client/{eventCombined-BvqjASB_.mjs → eventCombined-CNW6nBsB.mjs} +4 -4
  95. package/dist/client/{eventListing-BaNAoC_M.mjs → eventListing-CQMxQ8By.mjs} +4 -4
  96. package/dist/client/{eventRegistration-COMHoRl6.mjs → eventRegistration-CprS9k1D.mjs} +4 -4
  97. package/dist/client/{form-DyH2juYT.mjs → form-Zl1_8RJ6.mjs} +3 -3
  98. package/dist/client/{form.client-DBwzkB0M.mjs → form.client-TaMUys6I.mjs} +4 -4
  99. package/dist/client/{form.parts-CY4kX3mh.mjs → form.parts-CpNPbPPM.mjs} +1 -1
  100. package/dist/client/{formatDate-CTEN7gxW.mjs → formatDate-hhI1-tzt.mjs} +1 -1
  101. package/dist/client/gifting/client.mjs +5 -5
  102. package/dist/client/{gifting-CIx4V378.mjs → gifting-DNVa7-Wj.mjs} +4 -4
  103. package/dist/client/{gifting.client-BEVPpzJM.mjs → gifting.client-CFUq3GVx.mjs} +4 -4
  104. package/dist/client/{gifting.parts-VnORjnZK.mjs → gifting.parts-CDQvxA4A.mjs} +2 -2
  105. package/dist/client/{headerSection-DGcJfRS8.mjs → headerSection-Cg6083rn.mjs} +2 -2
  106. package/dist/client/{lookSurfaces-IqT_SVnX.mjs → lookSurfaces-gJ3OqPf9.mjs} +92 -2
  107. package/dist/client/{newsletter-form.client-BvEDkjiD.mjs → newsletter-form.client-VuL9I96G.mjs} +5 -5
  108. package/dist/client/{newsletter-form.interactive-DCO1lErD.mjs → newsletter-form.interactive-7Of3eYn0.mjs} +18 -24
  109. package/dist/client/{newsletter-form.parts-BIy4IUT3.mjs → newsletter-form.parts-OBqsfT24.mjs} +1 -1
  110. package/dist/client/{newsletterForm-CoTXDNFS.mjs → newsletterForm-BkJe_RTv.mjs} +3 -3
  111. package/dist/client/portal/client.mjs +299 -115
  112. package/dist/client/{product-detail.client-YHQ2aKX1.mjs → product-detail.client-B2hdxqJN.mjs} +1 -1
  113. package/dist/client/{product-list.client-DxoZw1vF.mjs → product-list.client-CCEgu9rx.mjs} +1 -1
  114. package/dist/client/{productDetail-DjuFvkey.mjs → productDetail-CRX_ZRfS.mjs} +3 -3
  115. package/dist/client/{productList-DE9GEFoZ.mjs → productList-BAdJ6z5S.mjs} +3 -3
  116. package/dist/client/{propsDecoder-Cyag_HOs.mjs → propsDecoder-BLKAmX0S.mjs} +2 -2
  117. package/dist/client/{registry.server-BPwV-0Pp.mjs → registry.server-Bj9cmHHF.mjs} +89 -50
  118. package/dist/client/rendering/client.mjs +22 -22
  119. package/dist/client/rendering/islands.mjs +1 -1
  120. package/dist/client/rendering.mjs +4 -4
  121. package/dist/client/{richText-coerce-NrRqDeOg.mjs → richText-coerce-Z45OLLEX.mjs} +1 -1
  122. package/dist/client/{routeIslandApiConfig-BWq5gKFK.mjs → routeIslandApiConfig-DHpTTK77.mjs} +1 -1
  123. package/dist/client/{shop-C3wM0Hr4.mjs → shop-BKsgxm_-.mjs} +3 -3
  124. package/dist/client/{shop-commerce-34YvcpbX.mjs → shop-commerce-Cbtk_kUW.mjs} +12 -12
  125. package/dist/client/{shop-commerce-store-B7xHksOs.mjs → shop-commerce-store-B-rv2p5h.mjs} +1 -1
  126. package/dist/client/{shop-discount-apply.state-BiBnozfO.mjs → shop-discount-apply.state-CiCDLNh7.mjs} +2 -2
  127. package/dist/client/{shop.client-C0v88nLd.mjs → shop.client-Rnqa74Tk.mjs} +12 -12
  128. package/dist/client/{shopShared-Ct-BRNez.mjs → shopShared-BaBfhjCq.mjs} +2 -2
  129. package/dist/client/{src-CCtanNlD.mjs → src-o7WEvbK1.mjs} +118 -3
  130. package/dist/client/{timetableModel-lhE29TNT.mjs → timetableModel-BOff1Kk5.mjs} +201 -7
  131. package/dist/client/{useAvailableSlots-BelJviOT.mjs → useAvailableSlots-DQJNh10g.mjs} +3 -23
  132. package/dist/client/{useDiscountCodeUi-rQRE1-Ho.mjs → useDiscountCodeUi-BcFQRI_7.mjs} +1 -1
  133. package/dist/client/{useEventPagination-C4rS2Xxl.mjs → useEventPagination-BvdcexDC.mjs} +7 -7
  134. package/dist/client/{view-LJVHVqsy.mjs → view-CTBwSpKv.mjs} +3 -3
  135. package/dist/client/{wizardSteps-CNDsxeJH.mjs → wizardSteps-CWIQyRIw.mjs} +1605 -442
  136. package/dist/preview-next/before-render.mjs +1 -0
  137. package/dist/preview-next/client/{LocationPickerEnvironment-BHAT81Wx.mjs → LocationPickerEnvironment-BW3dRFIv.mjs} +1 -1
  138. package/dist/preview-next/client/{MapLibreEditMap-B52hkdIZ.mjs → MapLibreEditMap-Db9BHyXh.mjs} +2 -2
  139. package/dist/preview-next/client/{PageSectionToolbar-C4TtBPN-.mjs → PageSectionToolbar-CG6KwITA.mjs} +4 -4
  140. package/dist/preview-next/client/{PreviewEditorSidebar-D6fkE59-.mjs → PreviewEditorSidebar-BGBqrC9m.mjs} +8 -7
  141. package/dist/preview-next/client/{PreviewEditorUI-amcDlj0O.mjs → PreviewEditorUI-Bwkyx28x.mjs} +5 -5
  142. package/dist/preview-next/client/{PreviewShell-DeQjx4zk.mjs → PreviewShell-DB1l6JNU.mjs} +7 -7
  143. package/dist/preview-next/client/{SdkPreviewModeRuntime-Cx0SXnoX.mjs → SdkPreviewModeRuntime-Bs6Cwzr3.mjs} +15 -7
  144. package/dist/preview-next/client/{lucide-react-McYZeSMb.mjs → lucide-react-00FF_oar.mjs} +13 -1
  145. package/dist/preview-next/client/{previewAssistantSlot-aqpU34WI.mjs → previewAssistantSlot-T-oDD_Dd.mjs} +5735 -2073
  146. package/dist/preview-next/client/{previewChromeRoot-D3Gy_Rs0.mjs → previewChromeRoot-BeukcDRy.mjs} +1 -1
  147. package/dist/preview-next/client/runtime.mjs +3 -3
  148. package/dist/preview-next/client/{sdk-runtime-Dzx_RrN7.mjs → sdk-runtime-ceDW_9q2.mjs} +2 -2
  149. package/dist/preview-next/client/{siteStyleAccess-LHedw83e.mjs → siteStyleAccess-CCB9bScO.mjs} +35 -23
  150. package/dist/preview-next/client/{useAutosaveStatus-DpSd9aVk.mjs → useAutosaveStatus-D4o0CKq7.mjs} +1 -1
  151. package/dist/preview-next/client/{useOpenBlockForSetup-BGZn5AT1.mjs → useOpenBlockForSetup-Seccrvwu.mjs} +2 -2
  152. package/dist/preview-next/container-responsive.css +103 -10
  153. package/dist/preview-next/keepAlive.mjs +1 -1
  154. package/dist/preview-next/middleware.mjs +1 -1
  155. package/dist/preview-next/{route-contract-DnL-FgSV.mjs → route-contract-FwFj8zGL.mjs} +43 -0
  156. package/dist/server/{Block.shared-BEbq6EwO.mjs → Block.shared-D6WrRCxX.mjs} +4 -4
  157. package/dist/server/{ThemeScopeCore-DFEM1a85.mjs → ThemeScopeCore-BQzjDQ2q.mjs} +8 -1
  158. package/dist/server/{bindings-Bly0dRs7.mjs → bindings-CS6ih1Yc.mjs} +4 -4
  159. package/dist/server/{client-CGJ2ztYp.mjs → client-m0ylCj_f.mjs} +847 -786
  160. package/dist/server/config-validation.mjs +1 -1
  161. package/dist/server/config.mjs +2 -2
  162. package/dist/server/data/resolveBlockData.mjs +1 -1
  163. package/dist/server/index.mjs +2 -2
  164. package/dist/server/{loadContent-BkK1w3QQ.mjs → loadContent-vgWMz1uD.mjs} +6 -4
  165. package/dist/server/{loadPage-DTLe0FEs.mjs → loadPage-CIOL3-9t.mjs} +3 -3
  166. package/dist/server/{lookMediaFrame-CaH018pK.mjs → lookMediaFrame-m-91jGGn.mjs} +36 -0
  167. package/dist/server/next.mjs +43 -30
  168. package/dist/server/{overrideResolution-Uy9Zp2Ks.mjs → overrideResolution-BiHmsvTZ.mjs} +1 -1
  169. package/dist/server/page-converter.mjs +1 -1
  170. package/dist/server/{pageRenderPlan-JzxBnqfV.mjs → pageRenderPlan-DJo_obpi.mjs} +9 -7
  171. package/dist/server/{pageRuntimeSupport-DyNSd2Yj.mjs → pageRuntimeSupport-BnSuoHON.mjs} +5 -1
  172. package/dist/server/{pageShared-DU4ETFPS.mjs → pageShared-BJuOzxzn.mjs} +550 -258
  173. package/dist/server/{prebuild-8jNtDXmS.mjs → prebuild-Cr8p8T7V.mjs} +1 -1
  174. package/dist/server/prebuild.mjs +1 -1
  175. package/dist/server/{prefetchBlockData-xeMG42aw.mjs → prefetchBlockData-BZh57-ua.mjs} +4 -3
  176. package/dist/server/{registry-DH1VrsCl.mjs → registry-CvhFwbXJ.mjs} +240 -80
  177. package/dist/server/rendering/components/pageShared.mjs +1 -1
  178. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  179. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  180. package/dist/server/rendering/server.mjs +4 -4
  181. package/dist/server/rendering.mjs +8 -8
  182. package/dist/server/{resolveBlockData-BN8tweTx.mjs → resolveBlockData-Cv_W1LVB.mjs} +39 -31
  183. package/dist/server/{resolvePageContent-DnM16_f9.mjs → resolvePageContent-BWKUZUIn.mjs} +1 -1
  184. package/dist/server/{responseMedia-F-ElH2Rd.mjs → responseMedia-KRKguBC5.mjs} +56 -1
  185. package/dist/server/routing.mjs +1 -1
  186. package/dist/server/server.mjs +3 -3
  187. package/dist/server/{servicePageContent-B-FezJmH.mjs → servicePageContent-CRKbTm_7.mjs} +14 -10
  188. package/dist/server/theme-bridge.mjs +1 -1
  189. package/dist/server/{validation-3jOzYdPL.mjs → validation-DCl-FCk_.mjs} +4 -4
  190. package/dist/server/{version-8t0o6_jd.mjs → version-DT_R5JAR.mjs} +1 -1
  191. package/dist/styles/index.css +504 -27
  192. package/package.json +1 -1
  193. package/dist/client/constants-4o4_hl34.mjs +0 -6
@@ -878,6 +878,18 @@ const mapDrawingSchema = z.strictObject({
878
878
  //#endregion
879
879
  //#region ../core/src/string.ts
880
880
  /**
881
+ * Return true for string values that contain at least one character.
882
+ */
883
+ function isNonEmptyString(value) {
884
+ return typeof value === "string" && value.length > 0;
885
+ }
886
+ /**
887
+ * Narrow optional string values to non-empty strings.
888
+ */
889
+ function hasText(value) {
890
+ return isNonEmptyString(value);
891
+ }
892
+ /**
881
893
  * Trim a user-entered string and collapse blank values to null.
882
894
  */
883
895
  function trimmedStringOrNull(value) {
@@ -1350,6 +1362,80 @@ function unsafeAsPositiveCheckoutQuantity(quantity) {
1350
1362
  return quantity;
1351
1363
  }
1352
1364
  //#endregion
1365
+ //#region ../commerce/src/purchase/roomVocabulary.ts
1366
+ const ROOM_FOR_WHO = [
1367
+ "mixed",
1368
+ "women",
1369
+ "men",
1370
+ "one_per_room"
1371
+ ];
1372
+ const SHARED_ROOM_ARRANGEMENTS = [
1373
+ "together",
1374
+ "separate",
1375
+ "organiser"
1376
+ ];
1377
+ /** The kind of shared place a guest chose. Nobody is asked their gender: this describes the room. */
1378
+ const ROOM_PLACES = [
1379
+ "women",
1380
+ "men",
1381
+ "mixed"
1382
+ ];
1383
+ const PLACES_FOR = {
1384
+ mixed: ["mixed"],
1385
+ women: ["women"],
1386
+ men: ["men"],
1387
+ one_per_room: ["women", "men"]
1388
+ };
1389
+ /** Which places a room for these people can hold. A one-per-room room becomes one of them with its first guest. */
1390
+ function placesFor(forWho) {
1391
+ return PLACES_FOR[forWho];
1392
+ }
1393
+ const MAX_ROOM_BOOKING_PEOPLE = 100;
1394
+ const roomPlaceSchema = z.enum(ROOM_PLACES);
1395
+ const sharedRoomArrangementSchema = z.enum(SHARED_ROOM_ARRANGEMENTS);
1396
+ const roomSetupSchema = z.discriminatedUnion("way", [z.object({ way: z.literal("private") }).strict(), z.object({
1397
+ way: z.enum(["shared", "either"]),
1398
+ forWho: z.enum(ROOM_FOR_WHO)
1399
+ }).strict()]);
1400
+ const roomOccupancySchema = z.discriminatedUnion("bookedAs", [
1401
+ z.object({ bookedAs: z.literal("empty") }).strict(),
1402
+ z.object({ bookedAs: z.literal("private") }).strict(),
1403
+ z.object({
1404
+ bookedAs: z.literal("shared"),
1405
+ place: roomPlaceSchema
1406
+ }).strict()
1407
+ ]);
1408
+ const roomPeopleSchema = z.number().int().min(1).max(MAX_ROOM_BOOKING_PEOPLE);
1409
+ /** What someone chose, from a guest, staff or the draft kept through sign-in and payment. */
1410
+ const roomChoicesSchema = z.array(z.discriminatedUnion("way", [
1411
+ z.object({
1412
+ way: z.literal("own"),
1413
+ kindId: z.uuid(),
1414
+ people: roomPeopleSchema
1415
+ }),
1416
+ z.object({
1417
+ way: z.literal("whole_room"),
1418
+ kindId: z.uuid(),
1419
+ people: roomPeopleSchema
1420
+ }),
1421
+ z.object({
1422
+ way: z.literal("sharing"),
1423
+ kindId: z.uuid(),
1424
+ people: roomPeopleSchema,
1425
+ place: roomPlaceSchema
1426
+ })
1427
+ ])).max(MAX_ROOM_BOOKING_PEOPLE);
1428
+ /** What they accepted when they left the rooms step. */
1429
+ const reviewedRoomsSchema = z.array(z.object({
1430
+ kindId: z.uuid(),
1431
+ place: roomPlaceSchema,
1432
+ together: z.boolean()
1433
+ })).max(MAX_ROOM_BOOKING_PEOPLE);
1434
+ z.object({
1435
+ choices: roomChoicesSchema,
1436
+ reviewed: reviewedRoomsSchema
1437
+ });
1438
+ //#endregion
1353
1439
  //#region ../site-contracts/src/identity/presentationVocabulary.ts
1354
1440
  const arrangementModes = [
1355
1441
  "list",
@@ -2092,7 +2178,6 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
2092
2178
  const eventVenueSchema = z.object({
2093
2179
  area: z.string().nullable().optional(),
2094
2180
  addressWithBooking: z.boolean().optional(),
2095
- drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
2096
2181
  id: z.string(),
2097
2182
  name: z.string(),
2098
2183
  address: z.string().nullable(),
@@ -2273,6 +2358,34 @@ const publicWholeSeriesRunSchema = z.object({
2273
2358
  /**
2274
2359
  * Zod schema for the fields shared by both booking scopes.
2275
2360
  */
2361
+ /** An event's rooms as placement reads them. Nothing here says who has booked. */
2362
+ const publicEventRoomsSchema = z.object({
2363
+ seriesId: z.string(),
2364
+ arrangement: sharedRoomArrangementSchema,
2365
+ kinds: z.array(z.object({
2366
+ id: z.string(),
2367
+ name: z.string(),
2368
+ sleeps: z.number().int().positive(),
2369
+ description: z.string(),
2370
+ photos: z.array(z.object({
2371
+ src: z.string(),
2372
+ alt: z.string()
2373
+ })),
2374
+ prices: z.array(z.object({
2375
+ pricingOptionId: z.string(),
2376
+ peopleInRoom: z.number().int().positive().nullable(),
2377
+ priceName: z.string()
2378
+ }))
2379
+ })),
2380
+ rooms: z.array(z.object({
2381
+ id: z.string(),
2382
+ kindId: z.string(),
2383
+ setup: roomSetupSchema,
2384
+ occupancy: roomOccupancySchema,
2385
+ freePlaces: z.number().int().nonnegative()
2386
+ })),
2387
+ linkedOptionIds: z.array(z.string())
2388
+ });
2276
2389
  const publicEventBaseSchema = z.object({
2277
2390
  eventPreset: eventPresetSchema.optional(),
2278
2391
  eventDestinationMode: eventDestinationModeSchema.optional(),
@@ -2360,7 +2473,9 @@ const publicEventBaseSchema = z.object({
2360
2473
  * Wire admission reads an older server, which never sends it, as off.
2361
2474
  */
2362
2475
  allowsMultipleBooking: z.boolean().default(false),
2363
- combinationPrices: z.array(combinationOfferSchema).default([])
2476
+ combinationPrices: z.array(combinationOfferSchema).default([]),
2477
+ /** Only an event with rooms has this, and the page can't book it without it. */
2478
+ rooms: publicEventRoomsSchema.optional()
2364
2479
  });
2365
2480
  /**
2366
2481
  * Zod schema for public event data.
@@ -2562,4 +2677,4 @@ function assertNever(value, message) {
2562
2677
  throw new Error(message ?? `Unexpected value: ${String(value)}`);
2563
2678
  }
2564
2679
  //#endregion
2565
- export { PUBLIC_FILE_FIELD_KINDS as $, formatTimeRange as $t, toBookingRequirementConsentField as A, eventSurfaceScopeValues as At, normalizeEventCalendarDisplayMode as B, toLocationCoordinates as Bt, publicEventPricingSchema as C, publicProductSchema as Ct, blockBookingConsentSchema as D, calendarWindowQuerySchema as Dt, blockBookingPaymentTermsSchema as E, calendarMonthDate as Et, eventCalendarVariantMeaning as F, locationValueSchema as Ft, isRichTextDoc as G, validateBookingPaymentOptionKinds as Gt, RichTextDocSchema as H, trimmedStringOrNull as Ht, eventListArrangementValues as I, normalizeLocationAddressText as It, imageMediaSchema as J, formatDateTime as Jt, assetMediaSchema as K, formatDate as Kt, isEventCalendarDefaultView as L, parseLocationValue as Lt, bookingQuestionsAnswerValueSchema as M, isRecord as Mt, eventCalendarListGroupingDecision as N, EVENT_PRESET_VALUES as Nt, bookingConsentCarrierSchema as O, eventScheduleScopeValues as Ot, eventCalendarListLayoutOptions as P, WHOLE_SERIES_EVENT_PRESET_VALUES as Pt, videoMediaSchema as Q, formatTime as Qt, isEventCalendarDisplayMode as R, projectPublicLocation as Rt, publicEventDestinationSchema as S, publicPassProductSchema as St, publicEventsArraySchema as T, purchasablePublicPassProductSchema as Tt, buildRichTextSchema as U, mapDrawingSchema as Ut, resolveEventCalendarReadPlan as V, capitalize as Vt, createRichTextDoc as W, buildBookingUtcDateWindow as Wt, persistableMediaSchema as X, formatSiteInstantDate as Xt, mediaSchema as Y, formatDateTimeRange as Yt, runtimeMediaSchema as Z, formatSiteInstantTime as Zt, planCalendarMonthRanges as _, parsePositiveCents as _n, eventCalendarDefaultViewValues as _t, clearWorkflowFeedback as a, addLocalScheduleDays as an, arrangementModes as at, publicPassProductCollectionSchema as b, formatCurrencyAmount as bn, eventCalendarListLayoutValues as bt, blockSiteTermsSchema as c, getBookingLocalDateKey as cn, eyebrowTreatmentValues as ct, calendarMonthKey as d, parseLocalScheduleTime as dn, isArrangementMode as dt, formatTimeZoneCityLabel as en, isDisplayMediaKind as et, calendarPageResponseError as f, parseUtcIsoDateTimeString as fn, tileTreatmentValues as ft, calendarWindowPageSchema as g, toBookingTimeZone as gn, normalizeCurrencyCode as gt, calendarWindowMonths as h, resolveBookingTimeZoneId as hn, allocateReductionCents as ht, okWith as i, toScheduledBookingDateTime as in, accordionIconSetValues as it, beforeBookingQuestionsPresentationSchema as j, publicEventLoaderQuerySchemaShape as jt, isBookingRequirementConsentFieldId as k, eventSurfacePresetValues as kt, verifiedSiteTermsAcceptanceSchema as l, getLocalScheduleDate as ln, headingDecorationColorTokenValues as lt, calendarWindowBounds as m, resolveBookingBusinessTimeZone as mn, unsafeAsPositiveCheckoutQuantity as mt, err as n, resolveBookingDisplayContext as nn, accordionIconColorTokenValues as nt, reportWorkflowError as o, compareLocalScheduleDates as on, decorativeTransitionIntentValues as ot, calendarQueryKey as p, toUtcIsoDateTimeString as pn, visibleHeadingDecorationFamilyValues as pt, externalMediaSchema as q, formatDateRange as qt, ok as r, formatBookingCompactEnglishTime as rn, accordionIconMotionValues as rt, reportWorkflowSuccess as s, formatLocalScheduleDate as sn, eventListTreatmentValues as st, assertNever as t, inferSiteDateLocale as tn, mediaTypeDiscriminants as tt, logger as u, parseBookingLocalDate as un, headingDecorationOverrideValues as ut, resolveCalendarReadProfile as v, parsePositiveMoneyInputToCents as vn, eventCalendarDisplayModeValues as vt, publicEventSchema as w, purchasablePublicMembershipProductSchema as wt, eventVenueDrawingSchema as x, formatGiftCardAmountLabel as xn, publicMembershipProductSchema as xt, publicMembershipProductCollectionSchema as y, toNonNegativeCents as yn, eventCalendarListLayoutCompatibleDisplayModeValues as yt, isEventCalendarListLayout as z, publicLocationSchema as zt };
2680
+ export { PUBLIC_FILE_FIELD_KINDS as $, formatDateTime as $t, toBookingRequirementConsentField as A, calendarMonthDate as At, normalizeEventCalendarDisplayMode as B, normalizeLocationAddressText as Bt, publicEventPricingSchema as C, parsePositiveMoneyInputToCents as Cn, eventCalendarListLayoutCompatibleDisplayModeValues as Ct, blockBookingConsentSchema as D, publicProductSchema as Dt, blockBookingPaymentTermsSchema as E, formatGiftCardAmountLabel as En, publicPassProductSchema as Et, eventCalendarVariantMeaning as F, publicEventLoaderQuerySchemaShape as Ft, isRichTextDoc as G, capitalize as Gt, RichTextDocSchema as H, projectPublicLocation as Ht, eventListArrangementValues as I, isRecord as It, imageMediaSchema as J, mapDrawingSchema as Jt, assetMediaSchema as K, hasText as Kt, isEventCalendarDefaultView as L, EVENT_PRESET_VALUES as Lt, bookingQuestionsAnswerValueSchema as M, eventScheduleScopeValues as Mt, eventCalendarListGroupingDecision as N, eventSurfacePresetValues as Nt, bookingConsentCarrierSchema as O, purchasablePublicMembershipProductSchema as Ot, eventCalendarListLayoutOptions as P, eventSurfaceScopeValues as Pt, videoMediaSchema as Q, formatDateRange as Qt, isEventCalendarDisplayMode as R, WHOLE_SERIES_EVENT_PRESET_VALUES as Rt, publicEventDestinationSchema as S, parsePositiveCents as Sn, eventCalendarDisplayModeValues as St, publicEventsArraySchema as T, formatCurrencyAmount as Tn, publicMembershipProductSchema as Tt, buildRichTextSchema as U, publicLocationSchema as Ut, resolveEventCalendarReadPlan as V, parseLocationValue as Vt, createRichTextDoc as W, toLocationCoordinates as Wt, persistableMediaSchema as X, validateBookingPaymentOptionKinds as Xt, mediaSchema as Y, buildBookingUtcDateWindow as Yt, runtimeMediaSchema as Z, formatDate as Zt, planCalendarMonthRanges as _, parseUtcIsoDateTimeString as _n, roomChoicesSchema as _t, clearWorkflowFeedback as a, formatTimeZoneCityLabel as an, arrangementModes as at, publicPassProductCollectionSchema as b, resolveBookingTimeZoneId as bn, normalizeCurrencyCode as bt, blockSiteTermsSchema as c, formatBookingCompactEnglishTime as cn, eyebrowTreatmentValues as ct, calendarMonthKey as d, compareLocalScheduleDates as dn, isArrangementMode as dt, formatDateTimeRange as en, isDisplayMediaKind as et, calendarPageResponseError as f, formatLocalScheduleDate as fn, tileTreatmentValues as ft, calendarWindowPageSchema as g, parseLocalScheduleTime as gn, reviewedRoomsSchema as gt, calendarWindowMonths as h, parseBookingLocalDate as hn, placesFor as ht, okWith as i, formatTimeRange as in, accordionIconSetValues as it, beforeBookingQuestionsPresentationSchema as j, calendarWindowQuerySchema as jt, isBookingRequirementConsentFieldId as k, purchasablePublicPassProductSchema as kt, verifiedSiteTermsAcceptanceSchema as l, toScheduledBookingDateTime as ln, headingDecorationColorTokenValues as lt, calendarWindowBounds as m, getLocalScheduleDate as mn, ROOM_PLACES as mt, err as n, formatSiteInstantTime as nn, accordionIconColorTokenValues as nt, reportWorkflowError as o, inferSiteDateLocale as on, decorativeTransitionIntentValues as ot, calendarQueryKey as p, getBookingLocalDateKey as pn, visibleHeadingDecorationFamilyValues as pt, externalMediaSchema as q, trimmedStringOrNull as qt, ok as r, formatTime as rn, accordionIconMotionValues as rt, reportWorkflowSuccess as s, resolveBookingDisplayContext as sn, eventListTreatmentValues as st, assertNever as t, formatSiteInstantDate as tn, mediaTypeDiscriminants as tt, logger as u, addLocalScheduleDays as un, headingDecorationOverrideValues as ut, resolveCalendarReadProfile as v, toUtcIsoDateTimeString as vn, unsafeAsPositiveCheckoutQuantity as vt, publicEventSchema as w, toNonNegativeCents as wn, eventCalendarListLayoutValues as wt, eventVenueDrawingSchema as x, toBookingTimeZone as xn, eventCalendarDefaultViewValues as xt, publicMembershipProductCollectionSchema as y, resolveBookingBusinessTimeZone as yn, allocateReductionCents as yt, isEventCalendarListLayout as z, locationValueSchema as zt };
@@ -1,14 +1,13 @@
1
1
  "use client";
2
- import { $a as formatEventTimeRange, Da as formatEventRemainingPlaces, Do as isInlineTextEmpty, Na as isEventFull, Oo as parseInlineTextFromUnknown, Po as resolveDateRuntimeContext, Ua as eventDateOptions, ja as getEventAvailabilityStatus, no as groupEventsByDate, qa as formatEventClockLabel, ro as resolveEventTimeZone, za as RichText } from "./wizardSteps-CNDsxeJH.mjs";
3
- import { It as normalizeLocationAddressText, Kt as formatDate, dn as parseLocalScheduleTime, in as toScheduledBookingDateTime, rn as formatBookingCompactEnglishTime } from "./src-CCtanNlD.mjs";
2
+ import { $a as RichText, Ga as getEventAvailabilityStatus, Ho as parseInlineTextFromUnknown, Jo as resolveDateRuntimeContext, Va as formatEventRemainingPlaces, Vo as isInlineTextEmpty, _o as resolveEventTimeZone, go as groupEventsByDate, po as formatEventTimeRange, qa as isEventFull, ro as eventDateOptions, so as formatEventClockLabel } from "./wizardSteps-CWIQyRIw.mjs";
3
+ import { Bt as normalizeLocationAddressText, Jt as mapDrawingSchema, Zt as formatDate, cn as formatBookingCompactEnglishTime, gn as parseLocalScheduleTime, ln as toScheduledBookingDateTime } from "./src-o7WEvbK1.mjs";
4
4
  import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
5
- import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-Bbqij1XQ.mjs";
5
+ import { n as CALENDAR_LOAD_FAILURE_MESSAGE, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-VfP50sYm.mjs";
6
6
  import { q as textColorStyle } from "./accessibleSurfaces-Wl8-_OVJ.mjs";
7
7
  import { C as parseThemeButtonVariantId, S as clsx, i as ThemedButtonLink, n as ThemedAuthoredButton, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
8
8
  import { d as formatDateKey, f as getDayOfWeek, i as buildTimetableModel$1, v as isToday } from "./src-uwCpbHXG.mjs";
9
- import { t as coerceRichTextDoc } from "./richText-coerce-NrRqDeOg.mjs";
10
- import { c as readableMapDrawing, o as AdmittedMapDrawingSvg } from "./EventListing.view-hUDhNtMv.mjs";
11
- import { _ as resolveEventLinkProps, m as formatEventTeacherLine, u as eventDisplayTitleText } from "./EventItem-Duhk1vnF.mjs";
9
+ import { t as coerceRichTextDoc } from "./richText-coerce-Z45OLLEX.mjs";
10
+ import { _ as resolveEventLinkProps, m as formatEventTeacherLine, u as eventDisplayTitleText } from "./EventItem-CJITrGkF.mjs";
12
11
  import "react";
13
12
  import { jsx, jsxs } from "react/jsx-runtime";
14
13
  //#region ../core/src/locationLinks.ts
@@ -224,6 +223,201 @@ function LocationMapActions(props) {
224
223
  }) }) : null;
225
224
  }
226
225
  //#endregion
226
+ //#region ../blocks/src/system/runtime/nodes/svg.tsx
227
+ /**
228
+ * Strict SVG-`transform` validator.
229
+ *
230
+ * Accepts only a whitespace/comma-separated list of the geometric transform
231
+ * functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
232
+ * arguments are plain numbers. This deliberately rejects anything else —
233
+ * `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
234
+ * so a persisted custom-block tree can't smuggle an executable or exfiltrating
235
+ * value into the attribute.
236
+ */
237
+ const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
238
+ const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
239
+ const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
240
+ const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
241
+ function safeTransform(value) {
242
+ if (typeof value !== "string") return void 0;
243
+ const trimmed = value.trim();
244
+ if (trimmed.length === 0) return void 0;
245
+ return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
246
+ }
247
+ /**
248
+ * Turn paint props into a CSS style object. Colour values pass through as-is so
249
+ * they may reference theme tokens via `var()`, which only resolves in a CSS
250
+ * property context (not in a bare presentation attribute).
251
+ */
252
+ function paintStyle(shape) {
253
+ const style = {};
254
+ if (shape.fill !== void 0) style.fill = shape.fill;
255
+ if (shape.stroke !== void 0) style.stroke = shape.stroke;
256
+ if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
257
+ if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
258
+ if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
259
+ if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
260
+ if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
261
+ if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
262
+ return style;
263
+ }
264
+ function renderShape(shape, key) {
265
+ const style = paintStyle(shape);
266
+ const transform = safeTransform(shape.transform);
267
+ switch (shape.kind) {
268
+ case "text": return /* @__PURE__ */ jsx("text", {
269
+ className: shape.className,
270
+ x: shape.x,
271
+ y: shape.y,
272
+ transform,
273
+ children: shape.text
274
+ }, key);
275
+ case "path": return /* @__PURE__ */ jsx("path", {
276
+ d: shape.d,
277
+ className: shape.className,
278
+ fillRule: shape.fillRule,
279
+ style,
280
+ transform
281
+ }, key);
282
+ case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
283
+ cx: shape.cx,
284
+ cy: shape.cy,
285
+ rx: shape.rx,
286
+ ry: shape.ry,
287
+ style,
288
+ transform
289
+ }, key);
290
+ case "circle": return /* @__PURE__ */ jsx("circle", {
291
+ cx: shape.cx,
292
+ cy: shape.cy,
293
+ r: shape.r,
294
+ style,
295
+ transform
296
+ }, key);
297
+ case "rect": return /* @__PURE__ */ jsx("rect", {
298
+ x: shape.x,
299
+ y: shape.y,
300
+ className: shape.className,
301
+ width: shape.width,
302
+ height: shape.height,
303
+ rx: shape.rx,
304
+ ry: shape.ry,
305
+ style,
306
+ transform
307
+ }, key);
308
+ case "line": return /* @__PURE__ */ jsx("line", {
309
+ x1: shape.x1,
310
+ y1: shape.y1,
311
+ x2: shape.x2,
312
+ y2: shape.y2,
313
+ style,
314
+ transform
315
+ }, key);
316
+ default: return null;
317
+ }
318
+ }
319
+ const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
320
+ return /* @__PURE__ */ jsx("svg", {
321
+ viewBox,
322
+ width,
323
+ height,
324
+ className,
325
+ style,
326
+ "aria-hidden": ariaHidden || void 0,
327
+ role: ariaLabel ? "img" : void 0,
328
+ "aria-label": ariaLabel,
329
+ xmlns: "http://www.w3.org/2000/svg",
330
+ fill: "none",
331
+ children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
332
+ });
333
+ };
334
+ //#endregion
335
+ //#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
336
+ 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";
337
+ const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
338
+ function pathShape(path) {
339
+ return path.kind === "polygon" ? {
340
+ kind: "path",
341
+ className: path.className,
342
+ fillRule: path.fillRule,
343
+ d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
344
+ } : {
345
+ kind: "path",
346
+ className: path.className,
347
+ d: commands(path.points)
348
+ };
349
+ }
350
+ function labelShapes(label) {
351
+ const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
352
+ return [label.haloClassName, label.className].map((className) => ({
353
+ kind: "text",
354
+ className,
355
+ x,
356
+ y,
357
+ transform,
358
+ text: label.text
359
+ }));
360
+ }
361
+ /** The drawing the renderer below would show, or null when there's nothing it can draw. */
362
+ function readableMapDrawing(drawing) {
363
+ const parsed = mapDrawingSchema.safeParse(drawing);
364
+ return parsed.success ? parsed.data : null;
365
+ }
366
+ /** Untrusted standalone callers retain boundary admission. */
367
+ function MapDrawingSvg(props) {
368
+ const drawing = readableMapDrawing(props.drawing);
369
+ return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
370
+ ...props,
371
+ drawing
372
+ }) : null;
373
+ }
374
+ /** Render an already admitted value without allocating another validation copy. */
375
+ function AdmittedMapDrawingSvg(props) {
376
+ const drawing = props.drawing;
377
+ const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
378
+ const shapes = [
379
+ {
380
+ kind: "rect",
381
+ className: frame.backgroundClass,
382
+ x: 0,
383
+ y: 0,
384
+ width: 800,
385
+ height: 800
386
+ },
387
+ ...frame.paths.map(pathShape),
388
+ ...frame.labels.flatMap(labelShapes),
389
+ {
390
+ kind: "path",
391
+ className: frame.pin.className,
392
+ fillRule: "evenodd",
393
+ d: PIN_PATH,
394
+ transform: `translate(${frame.pin.point.join(" ")})`
395
+ }
396
+ ];
397
+ return /* @__PURE__ */ jsxs("figure", {
398
+ className: `rb-map-drawing ${props.className ?? ""}`.trim(),
399
+ children: [/* @__PURE__ */ jsx("div", {
400
+ className: "rb-map-drawing-crop",
401
+ style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
402
+ children: /* @__PURE__ */ jsx(SvgNode, {
403
+ className: `map-${name}`,
404
+ viewBox: frame.viewBox.join(" "),
405
+ shapes,
406
+ ariaHidden: false,
407
+ ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
408
+ })
409
+ }), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
410
+ href: "https://www.openstreetmap.org/copyright",
411
+ target: "_blank",
412
+ rel: "noreferrer",
413
+ children: "OpenStreetMap contributors"
414
+ })] })]
415
+ });
416
+ }
417
+ function cropHeightStyle(height, heightAs) {
418
+ return heightAs === "minimum" ? { minHeight: height } : { height };
419
+ }
420
+ //#endregion
227
421
  //#region ../blocks/src/system/runtime/nodes/location-map.view.tsx
228
422
  function OpeningHoursTable({ hours, lookLayout }) {
229
423
  if (!hours) return null;
@@ -898,4 +1092,4 @@ function formatDayLabel(date, timeZone, options) {
898
1092
  }), options);
899
1093
  }
900
1094
  //#endregion
901
- export { CalendarRecurringWeek as a, LinkNode as c, LocationMapView as d, LocationMapActions as f, buildWeekBoardViewProps as i, RichTextNode as l, WeekBoardView as n, RecurringSchedule as o, Text as p, buildWeekBoardNavigationState as r, ButtonNode as s, buildTimetableModel as t, TextNode as u };
1095
+ export { CalendarRecurringWeek as a, LinkNode as c, LocationMapView as d, MapDrawingSvg as f, Text as h, buildWeekBoardViewProps as i, RichTextNode as l, LocationMapActions as m, WeekBoardView as n, RecurringSchedule as o, SvgNode as p, buildWeekBoardNavigationState as r, ButtonNode as s, buildTimetableModel as t, TextNode as u };
@@ -1,28 +1,8 @@
1
1
  "use client";
2
- import { Kt as formatDate$1, Qt as formatTime$1, Vt as capitalize, an as addLocalScheduleDays, fn as parseUtcIsoDateTimeString, hn as resolveBookingTimeZoneId, ln as getLocalScheduleDate, sn as formatLocalScheduleDate, t as assertNever, un as parseBookingLocalDate } from "./src-CCtanNlD.mjs";
2
+ import { Zt as formatDate$1, _n as parseUtcIsoDateTimeString, bn as resolveBookingTimeZoneId, fn as formatLocalScheduleDate, hn as parseBookingLocalDate, mn as getLocalScheduleDate, rn as formatTime$1, t as assertNever, un as addLocalScheduleDays } from "./src-o7WEvbK1.mjs";
3
3
  import { D as unsafeAsAppointmentResourceId } from "./creditProducts-BQ1t1erI.mjs";
4
- import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
4
+ import { n as useBlockApi } from "./context-DtKdUdkO.mjs";
5
5
  import { useCallback, useEffect, useReducer, useRef } from "react";
6
- function clientPersonPhrases(noun) {
7
- if (noun == null) return {
8
- label: "Who with",
9
- chooseAnother: "Choose someone else",
10
- anyone: "Anyone who's free",
11
- chooseYours: "Choose who you'd like to see",
12
- withName: (name) => `With ${name}`,
13
- listLabel: () => "With"
14
- };
15
- const singularLabel = capitalize(noun.singular);
16
- return {
17
- label: singularLabel,
18
- chooseAnother: `Choose another ${noun.singular}`,
19
- anyone: `Any ${noun.singular}`,
20
- chooseYours: `Choose your ${noun.singular}`,
21
- withName: (name) => `${singularLabel}: ${name}`,
22
- listLabel: (count) => count === 1 ? singularLabel : capitalize(noun.plural)
23
- };
24
- }
25
- //#endregion
26
6
  //#region ../blocks/src/utils/date-formatting.ts
27
7
  /**
28
8
  * Resolve the browser/runtime timezone for booking surfaces.
@@ -490,4 +470,4 @@ function useAvailableSlots({ serviceId, resourceId, selectedDate, timezone }) {
490
470
  };
491
471
  }
492
472
  //#endregion
493
- export { formatTime as a, formatDatePillParts as i, useAvailableDates as n, getRuntimeTimeZone as o, formatDate as r, clientPersonPhrases as s, useAvailableSlots as t };
473
+ export { formatTime as a, formatDatePillParts as i, useAvailableDates as n, getRuntimeTimeZone as o, formatDate as r, useAvailableSlots as t };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { g as getAutoAppliedDiscountPreview, h as discountAvailabilityHasDiscounts, m as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-uA9H8LIL.mjs";
2
+ import { _ as getAutoAppliedDiscountPreview, g as discountAvailabilityHasDiscounts, h as discountAvailabilityAllowsManualEntry } from "./DemoBookingPortalAccess-0Ua44F1j.mjs";
3
3
  import { useEffect, useReducer, useState } from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/StateIcon.tsx
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { Ft as getEventIdentity, It as getEventPaginationView, Lt as planEventPageOperation, Mt as createInitialEventPaginationLoadState, Nt as eventPageOperationQuery, Pt as eventPaginationLoadReducer, Rt as toEventPaginationLoadError, an as getEventRuntimeFiltersKey, cn as normalizeOptionalId, on as normalizeCsvIds, sn as normalizeCsvString, zt as toError } from "./newsletter-form.interactive-DCO1lErD.mjs";
3
- import { ua as getBlockApiReadStage } from "./wizardSteps-CNDsxeJH.mjs";
4
- import { t as assertNever } from "./src-CCtanNlD.mjs";
5
- import { n as useBlockApi } from "./context-DTrwaQtg.mjs";
6
- import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-IqT_SVnX.mjs";
2
+ import { Ft as getEventIdentity, It as getEventPaginationView, Lt as planEventPageOperation, Mt as createInitialEventPaginationLoadState, Nt as eventPageOperationQuery, Pt as eventPaginationLoadReducer, Rt as toEventPaginationLoadError, an as getEventRuntimeFiltersKey, cn as normalizeOptionalId, on as normalizeCsvIds, sn as normalizeCsvString, zt as toError } from "./newsletter-form.interactive-7Of3eYn0.mjs";
3
+ import { wa as getBlockApiReadStage } from "./wizardSteps-CWIQyRIw.mjs";
4
+ import { t as assertNever } from "./src-o7WEvbK1.mjs";
5
+ import { n as useBlockApi } from "./context-DtKdUdkO.mjs";
6
+ import { r as listLookSlot, t as listItemPresentation } from "./lookSurfaces-gJ3OqPf9.mjs";
7
7
  import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
8
- import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-hUDhNtMv.mjs";
9
- import { r as EventItem } from "./EventItem-Duhk1vnF.mjs";
8
+ import { r as EventItem } from "./EventItem-CJITrGkF.mjs";
9
+ import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-CXfb7RRy.mjs";
10
10
  import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region ../blocks/src/system/runtime/hooks/useEventFilters.state.ts
@@ -1,8 +1,8 @@
1
1
  "use client";
2
- import { hr as passCardListContent, mr as membershipClassesLabel, pr as membershipCardListContent } from "./wizardSteps-CNDsxeJH.mjs";
3
- import { r as listLookSlot } from "./lookSurfaces-IqT_SVnX.mjs";
2
+ import { Dr as membershipClassesLabel, Er as membershipCardListContent, Or as passCardListContent } from "./wizardSteps-CWIQyRIw.mjs";
3
+ import { r as listLookSlot } from "./lookSurfaces-gJ3OqPf9.mjs";
4
4
  import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
5
- import { r as EventItem, t as CardListCollection } from "./EventItem-Duhk1vnF.mjs";
5
+ import { r as EventItem, t as CardListCollection } from "./EventItem-CJITrGkF.mjs";
6
6
  import React from "react";
7
7
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
8
8
  //#region ../blocks/src/system/runtime/nodes/commerce/shared/view.tsx