@riverbankcms/sdk 0.178.0 → 0.179.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 (210) hide show
  1. package/README.md +15 -8
  2. package/dist/_dts/{BlocksIslandsHydrator-CrKsXtpD.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
  3. package/dist/_dts/{Page-C9i27wZA.d.ts → Page-lWenra5i.d.ts} +7 -7
  4. package/dist/_dts/{SdkPreviewMode-DzGSR3jh.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
  5. package/dist/_dts/{client-BnYN6XsH.d.ts → client-qWn7xAwJ.d.ts} +47 -17
  6. package/dist/_dts/{content-types-CXj6lp3d.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
  7. package/dist/_dts/{contracts-BZLwkTwL.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
  8. package/dist/_dts/{generatePageMetadata-ByEWwe9j.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
  9. package/dist/_dts/{index-DCa-8TEY.d.ts → index-7CDBZGb-.d.ts} +1 -1
  10. package/dist/_dts/{index-CKDRr54L.d.ts → index-BU9uAkHB.d.ts} +4 -4
  11. package/dist/_dts/{index-D9-N1d9v.d.ts → index-BYnG_vF5.d.ts} +1 -1
  12. package/dist/_dts/{index-nnEdgc3Z.d.ts → index-CZgJrhzT.d.ts} +4 -2
  13. package/dist/_dts/{index-cTpvQg_Q.d.ts → index-CaCum9mM.d.ts} +2 -2
  14. package/dist/_dts/{index-0HFgCnGz.d.ts → index-DCiSHd-C.d.ts} +1 -1
  15. package/dist/_dts/{index-BE9dWIsr.d.ts → index-DVSipdrT.d.ts} +3 -3
  16. package/dist/_dts/{loadContent-DYkVV6w4.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
  17. package/dist/_dts/{request-B20VRWHH.d.ts → request-BjKBCS7t.d.ts} +1201 -335
  18. package/dist/_dts/{resolveBlockData-C_aK5GIS.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
  19. package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +3 -3
  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 +7 -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 +16 -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 +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 +4 -4
  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 +19 -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 +582 -0
  55. package/dist/_dts/{types-rm2M4LGx.d.ts → types-B7e6Lmo5.d.ts} +3 -3
  56. package/dist/_dts/{types-CYcd15BQ.d.ts → types-BOxSq-Bq.d.ts} +8 -7
  57. package/dist/_dts/{types-CMZ5mkpv.d.ts → types-CT-KOxl_.d.ts} +5 -39
  58. package/dist/_dts/{validation-BSxnRhyy.d.ts → validation-Dz6qccue.d.ts} +4 -4
  59. package/dist/client/{BlocksIslandsHydrator-D1n09bu-.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
  60. package/dist/client/{BookingMailingListNote-DSD4gS96.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
  61. package/dist/client/{BookingQuestionFields-B57oGPcj.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
  62. package/dist/client/{CalendarNavigationChevron-qXvsFYOg.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +42 -9
  63. package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
  64. package/dist/client/{DemoBookingPortalAccess-Olvrwi3Z.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
  65. package/dist/client/{EventCalendar.client-DwFNFb-0.mjs → EventCalendar.client-yoSI77ov.mjs} +10 -10
  66. package/dist/client/{EventCombined.client-Ffu-aVOb.mjs → EventCombined.client-HeCNlliq.mjs} +10 -10
  67. package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
  68. package/dist/client/{EventItem-b8tVkNHA.mjs → EventItem-Duhk1vnF.mjs} +247 -7
  69. package/dist/client/{EventListWeekNavigation-BxnJW_Gf.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
  70. package/dist/client/{EventListing.client-ViCnrNg4.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
  71. package/dist/client/{EventListing.view-CdjiepMf.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
  72. package/dist/client/{EventRegistrationPayment-BVd70XkH.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +189 -111
  73. package/dist/client/{Page-DqETUt-U.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
  74. package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
  75. package/dist/client/{SiteTermsAgreementField-DkFnbzf_.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
  76. package/dist/client/{StepIndicator-JO2PS03n.mjs → StepIndicator-2Dl9zon2.mjs} +6 -6
  77. package/dist/client/{BookingPanelArrangement--EkA1ZQd.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
  78. package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
  79. package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
  80. package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
  81. package/dist/client/{accordion-XgNxl0Wg.mjs → accordion-B6SqU49k.mjs} +1 -1
  82. package/dist/client/{booking-form.client-ljJoDwuI.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
  83. package/dist/client/{bookingForm-DtEHwY4W.mjs → bookingForm-drZBwEZW.mjs} +4 -4
  84. package/dist/client/bookings.mjs +5 -5
  85. package/dist/client/{boxStyleClassNames-BHoMAcun.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
  86. package/dist/client/{carousel-B3UhbFu7.mjs → carousel-C-YJliD-.mjs} +2 -2
  87. package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
  88. package/dist/client/{cart-DzOJfYOR.mjs → cart-acGFWK9R.mjs} +3 -3
  89. package/dist/client/{cart.client-DBG77v-5.mjs → cart.client-BzlOGP2j.mjs} +1 -1
  90. package/dist/client/{checkout-LmePoEgM.mjs → checkout-SEontwhy.mjs} +3 -3
  91. package/dist/client/{checkout.client-DmgZuLBT.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
  92. package/dist/client/{checkoutUrls-CMZI8o_V.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
  93. package/dist/client/client.mjs +414 -319
  94. package/dist/client/{context-CJIz4FdL.mjs → context-DTrwaQtg.mjs} +2 -1
  95. package/dist/client/{dateFormatting-UoXqBh10.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
  96. package/dist/client/{demoPortalMagicLink-6CgFZNvu.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +1 -1
  97. package/dist/client/{enhanceHeaderSection-DaMo6len.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
  98. package/dist/client/{event-registration.client-b6APrFQe.mjs → event-registration.client-RLZQWi2V.mjs} +13 -13
  99. package/dist/client/{eventCalendar-DJYz7yZf.mjs → eventCalendar-CphYnImh.mjs} +4 -4
  100. package/dist/client/{eventCombined-j9VCVgMW.mjs → eventCombined-BvqjASB_.mjs} +4 -4
  101. package/dist/client/{eventListing-DWgpGuFM.mjs → eventListing-BaNAoC_M.mjs} +4 -4
  102. package/dist/client/{eventRegistration-DCinRot3.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
  103. package/dist/client/events-9LPvwbWp.mjs +28 -0
  104. package/dist/client/{form-BBBtRwvy.mjs → form-DyH2juYT.mjs} +3 -3
  105. package/dist/client/{form.client-CZeRQLGF.mjs → form.client-DBwzkB0M.mjs} +5 -5
  106. package/dist/client/{form.parts-DhGGv4_L.mjs → form.parts-CY4kX3mh.mjs} +3 -3
  107. package/dist/client/{formatDate-DVFVDcDW.mjs → formatDate-CTEN7gxW.mjs} +1 -1
  108. package/dist/client/gifting/client.mjs +6 -6
  109. package/dist/client/{gifting-Di9-SpwW.mjs → gifting-CIx4V378.mjs} +4 -4
  110. package/dist/client/{gifting.client-CjT5PrAZ.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
  111. package/dist/client/{gifting.parts-ffP6mjMd.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
  112. package/dist/client/{headerSection-jjAvtSZk.mjs → headerSection-DGcJfRS8.mjs} +2 -2
  113. package/dist/client/{lookSurfaces-C2VzJfyG.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
  114. package/dist/client/{newsletter-form.client-D45frHoa.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
  115. package/dist/client/{shop.interactive-D7wky1GL.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3975 -3975
  116. package/dist/client/{newsletter-form.parts-CHdg82ct.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
  117. package/dist/client/{newsletterForm-tS465_vl.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
  118. package/dist/client/portal/client.mjs +9 -9
  119. package/dist/client/{product-detail.client-DIWSeW7P.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
  120. package/dist/client/{product-list.client-BRf14h_e.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
  121. package/dist/client/{productDetail-gxF5whea.mjs → productDetail-DjuFvkey.mjs} +3 -3
  122. package/dist/client/{productList-B9t0XJrN.mjs → productList-DE9GEFoZ.mjs} +3 -3
  123. package/dist/client/{propsDecoder-Db8wAmgr.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
  124. package/dist/client/{registry.server-Bn0gE0uP.mjs → registry.server-BPwV-0Pp.mjs} +10420 -9108
  125. package/dist/client/rendering/client.mjs +41 -27
  126. package/dist/client/rendering/islands.mjs +1 -1
  127. package/dist/client/rendering.mjs +23 -2836
  128. package/dist/client/{richText-coerce-COnKrLO7.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
  129. package/dist/client/{routeIslandApiConfig-Bok1Oy50.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
  130. package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
  131. package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
  132. package/dist/client/{shop-D1oTPDxm.mjs → shop-C3wM0Hr4.mjs} +3 -3
  133. package/dist/client/{shop-commerce-DyMZLC0a.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
  134. package/dist/client/{shop-commerce-store-FODNS63D.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
  135. package/dist/client/{shop-discount-apply.state-C4xcmFzZ.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
  136. package/dist/client/{shop.client-CRgRulfI.mjs → shop.client-C0v88nLd.mjs} +14 -14
  137. package/dist/client/{shopShared-Bd_hy9ZO.mjs → shopShared-Ct-BRNez.mjs} +2 -2
  138. package/dist/client/spam-protection.mjs +1 -1
  139. package/dist/client/{noop-D11X-B6n.mjs → src-CCtanNlD.mjs} +317 -342
  140. package/dist/client/{timetableModel-UlWfP1gh.mjs → timetableModel-lhE29TNT.mjs} +65 -11
  141. package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
  142. package/dist/client/{useAvailableSlots-D-qoooLy.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
  143. package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
  144. package/dist/client/{useEventPagination-CQH2e9sQ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
  145. package/dist/client/{view-bGU1ws-m.mjs → view-LJVHVqsy.mjs} +4 -4
  146. package/dist/client/{display-D1oVR5Eh.mjs → wizardSteps-CNDsxeJH.mjs} +8935 -8913
  147. package/dist/preview-next/before-render.mjs +4 -3
  148. package/dist/preview-next/client/{PageSectionToolbar-D-Le7O3o.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
  149. package/dist/preview-next/client/{PreviewEditorSidebar-DNy5j_ce.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +5 -5
  150. package/dist/preview-next/client/{PreviewEditorUI-CzJvgbqt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
  151. package/dist/preview-next/client/{PreviewShell-xhJ6ca1i.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
  152. package/dist/preview-next/client/{SdkPreviewModeRuntime-BmYO1TdT.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
  153. package/dist/preview-next/client/{previewAssistantSlot-BN93X9o1.mjs → previewAssistantSlot-aqpU34WI.mjs} +627 -498
  154. package/dist/preview-next/client/{previewChromeRoot-C51RQseo.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
  155. package/dist/preview-next/client/runtime.mjs +3 -3
  156. package/dist/preview-next/client/{sdk-runtime-oeGquJM-.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
  157. package/dist/preview-next/client/{siteStyleAccess-BGTAcPud.mjs → siteStyleAccess-LHedw83e.mjs} +1 -1
  158. package/dist/preview-next/client/{useAutosaveStatus-BMGXjGZq.mjs → useAutosaveStatus-DpSd9aVk.mjs} +1 -1
  159. package/dist/preview-next/client/{useOpenBlockForSetup-CTDoR_gQ.mjs → useOpenBlockForSetup-BGZn5AT1.mjs} +1 -1
  160. package/dist/preview-next/keepAlive.mjs +1 -1
  161. package/dist/preview-next/middleware.mjs +1 -1
  162. package/dist/preview-next/{route-contract-BtdzkSUg.mjs → route-contract-DnL-FgSV.mjs} +28 -10
  163. package/dist/server/{Block.shared-Bp3OlOjj.mjs → Block.shared-BEbq6EwO.mjs} +4 -4
  164. package/dist/server/{bindings-DrbJuftt.mjs → bindings-Bly0dRs7.mjs} +36 -5
  165. package/dist/server/{client-Bf06n9oj.mjs → client-CGJ2ztYp.mjs} +1449 -1600
  166. package/dist/server/config-validation.mjs +1 -1
  167. package/dist/server/config.mjs +2 -2
  168. package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
  169. package/dist/server/data/dataLoaderContext.mjs +1 -1
  170. package/dist/server/data/resolveBlockData.mjs +1 -1
  171. package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
  172. package/dist/server/error-f4g44bKx.mjs +387 -0
  173. package/dist/server/index.mjs +3 -2
  174. package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
  175. package/dist/server/{loadPage-5iZefzDd.mjs → loadPage-DTLe0FEs.mjs} +22 -4
  176. package/dist/server/next.mjs +54 -94
  177. package/dist/server/{overrideResolution-CUHtm7tW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
  178. package/dist/server/page-converter.mjs +1 -1
  179. package/dist/server/{pageRenderPlan-GmPXForc.mjs → pageRenderPlan-JzxBnqfV.mjs} +7 -2
  180. package/dist/server/{pageRuntimeSupport-Dd8LFzfa.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
  181. package/dist/server/{pageShared-tz-GVWft.mjs → pageShared-DU4ETFPS.mjs} +8 -50
  182. package/dist/server/{prebuild-JmsuYCIH.mjs → prebuild-8jNtDXmS.mjs} +5 -4
  183. package/dist/server/prebuild.mjs +1 -1
  184. package/dist/server/{prefetchBlockData-Ce9DDwON.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
  185. package/dist/server/{registry-D12XF_h1.mjs → registry-DH1VrsCl.mjs} +122 -19
  186. package/dist/server/rendering/components/pageShared.mjs +1 -1
  187. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  188. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  189. package/dist/server/rendering/server.mjs +5 -4
  190. package/dist/server/rendering.mjs +9 -8
  191. package/dist/server/{resolveBlockData-D9yZIN3V.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
  192. package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
  193. package/dist/server/routing.mjs +271 -57
  194. package/dist/server/server.mjs +3 -3
  195. package/dist/server/{loadContent-eaTY7RPg.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
  196. package/dist/server/{validation-CLq5cw6M.mjs → validation-3jOzYdPL.mjs} +3 -3
  197. package/dist/server/{version-oPbhAx8E.mjs → version-8t0o6_jd.mjs} +1 -1
  198. package/package.json +1 -1
  199. package/dist/_dts/footerPageOutline-D_XbQW_o.d.ts +0 -256
  200. package/dist/_dts/resolvePageContent-YT6ndha1.d.ts +0 -162
  201. package/dist/client/LocationMapActions-CiMtl1Ha.mjs +0 -62
  202. package/dist/client/MapDrawingSvg-BCZa3dpf.mjs +0 -200
  203. package/dist/client/course-DBEU9IA9.mjs +0 -244
  204. package/dist/client/duration-Q6_QNgiv.mjs +0 -37
  205. package/dist/client/event-details.client-BwASwKIq.mjs +0 -53
  206. package/dist/client/eventDetails-BzGOVDI-.mjs +0 -13
  207. package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
  208. package/dist/client/useDiscountCodeUi-B9DODAkj.mjs +0 -237
  209. package/dist/client/view-DNX59QwM.mjs +0 -1372
  210. package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
@@ -1,200 +0,0 @@
1
- "use client";
2
- import { Gt as mapDrawingSchema } from "./noop-D11X-B6n.mjs";
3
- import "react";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- //#region ../blocks/src/system/runtime/nodes/svg.tsx
6
- /**
7
- * Strict SVG-`transform` validator.
8
- *
9
- * Accepts only a whitespace/comma-separated list of the geometric transform
10
- * functions (`translate`/`rotate`/`scale`/`skewX`/`skewY`/`matrix`) whose
11
- * arguments are plain numbers. This deliberately rejects anything else —
12
- * `url(...)`, CSS functions, `javascript:`, angle/length units, stray letters —
13
- * so a persisted custom-block tree can't smuggle an executable or exfiltrating
14
- * value into the attribute.
15
- */
16
- const TRANSFORM_NUMBER = String.raw`-?(?:\d+\.?\d*|\.\d+)(?:e-?\d+)?`;
17
- const TRANSFORM_ARGS = String.raw`${TRANSFORM_NUMBER}(?:[\s,]+${TRANSFORM_NUMBER})*`;
18
- const TRANSFORM_FN = String.raw`(?:translate|rotate|scale|skewX|skewY|matrix)\(\s*${TRANSFORM_ARGS}\s*\)`;
19
- const SAFE_TRANSFORM_RE = new RegExp(String.raw`^\s*${TRANSFORM_FN}(?:[\s,]*${TRANSFORM_FN})*\s*$`);
20
- function safeTransform(value) {
21
- if (typeof value !== "string") return void 0;
22
- const trimmed = value.trim();
23
- if (trimmed.length === 0) return void 0;
24
- return SAFE_TRANSFORM_RE.test(trimmed) ? trimmed : void 0;
25
- }
26
- /**
27
- * Turn paint props into a CSS style object. Colour values pass through as-is so
28
- * they may reference theme tokens via `var()`, which only resolves in a CSS
29
- * property context (not in a bare presentation attribute).
30
- */
31
- function paintStyle(shape) {
32
- const style = {};
33
- if (shape.fill !== void 0) style.fill = shape.fill;
34
- if (shape.stroke !== void 0) style.stroke = shape.stroke;
35
- if (shape.strokeWidth !== void 0) style.strokeWidth = shape.strokeWidth;
36
- if (shape.fillOpacity !== void 0) style.fillOpacity = shape.fillOpacity;
37
- if (shape.strokeOpacity !== void 0) style.strokeOpacity = shape.strokeOpacity;
38
- if (shape.strokeLinecap !== void 0) style.strokeLinecap = shape.strokeLinecap;
39
- if (shape.strokeLinejoin !== void 0) style.strokeLinejoin = shape.strokeLinejoin;
40
- if (shape.strokeDasharray !== void 0) style.strokeDasharray = shape.strokeDasharray;
41
- return style;
42
- }
43
- function renderShape(shape, key) {
44
- const style = paintStyle(shape);
45
- const transform = safeTransform(shape.transform);
46
- switch (shape.kind) {
47
- case "text": return /* @__PURE__ */ jsx("text", {
48
- className: shape.className,
49
- x: shape.x,
50
- y: shape.y,
51
- transform,
52
- children: shape.text
53
- }, key);
54
- case "path": return /* @__PURE__ */ jsx("path", {
55
- d: shape.d,
56
- className: shape.className,
57
- fillRule: shape.fillRule,
58
- style,
59
- transform
60
- }, key);
61
- case "ellipse": return /* @__PURE__ */ jsx("ellipse", {
62
- cx: shape.cx,
63
- cy: shape.cy,
64
- rx: shape.rx,
65
- ry: shape.ry,
66
- style,
67
- transform
68
- }, key);
69
- case "circle": return /* @__PURE__ */ jsx("circle", {
70
- cx: shape.cx,
71
- cy: shape.cy,
72
- r: shape.r,
73
- style,
74
- transform
75
- }, key);
76
- case "rect": return /* @__PURE__ */ jsx("rect", {
77
- x: shape.x,
78
- y: shape.y,
79
- className: shape.className,
80
- width: shape.width,
81
- height: shape.height,
82
- rx: shape.rx,
83
- ry: shape.ry,
84
- style,
85
- transform
86
- }, key);
87
- case "line": return /* @__PURE__ */ jsx("line", {
88
- x1: shape.x1,
89
- y1: shape.y1,
90
- x2: shape.x2,
91
- y2: shape.y2,
92
- style,
93
- transform
94
- }, key);
95
- default: return null;
96
- }
97
- }
98
- const SvgNode = ({ blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, viewBox, width, height, className, style, ariaHidden = true, ariaLabel, shapes }) => {
99
- return /* @__PURE__ */ jsx("svg", {
100
- viewBox,
101
- width,
102
- height,
103
- className,
104
- style,
105
- "aria-hidden": ariaHidden || void 0,
106
- role: ariaLabel ? "img" : void 0,
107
- "aria-label": ariaLabel,
108
- xmlns: "http://www.w3.org/2000/svg",
109
- fill: "none",
110
- children: (Array.isArray(shapes) ? shapes : []).map((shape, index) => renderShape(shape, index))
111
- });
112
- };
113
- //#endregion
114
- //#region ../blocks/src/system/runtime/nodes/shared/MapDrawingSvg.tsx
115
- 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";
116
- const commands = (points) => points.map(([x, y], index) => `${index ? "L" : "M"}${x} ${y}`).join(" ");
117
- function pathShape(path) {
118
- return path.kind === "polygon" ? {
119
- kind: "path",
120
- className: path.className,
121
- fillRule: path.fillRule,
122
- d: path.rings.map((ring) => `${commands(ring)} Z`).join(" ")
123
- } : {
124
- kind: "path",
125
- className: path.className,
126
- d: commands(path.points)
127
- };
128
- }
129
- function labelShapes(label) {
130
- const [x, y] = label.point, transform = `rotate(${label.angle} ${x} ${y})`;
131
- return [label.haloClassName, label.className].map((className) => ({
132
- kind: "text",
133
- className,
134
- x,
135
- y,
136
- transform,
137
- text: label.text
138
- }));
139
- }
140
- /** The drawing the renderer below would show, or null when there's nothing it can draw. */
141
- function readableMapDrawing(drawing) {
142
- const parsed = mapDrawingSchema.safeParse(drawing);
143
- return parsed.success ? parsed.data : null;
144
- }
145
- /** Untrusted standalone callers retain boundary admission. */
146
- function MapDrawingSvg(props) {
147
- const drawing = readableMapDrawing(props.drawing);
148
- return drawing ? /* @__PURE__ */ jsx(AdmittedMapDrawingSvg, {
149
- ...props,
150
- drawing
151
- }) : null;
152
- }
153
- /** Render an already admitted value without allocating another validation copy. */
154
- function AdmittedMapDrawingSvg(props) {
155
- const drawing = props.drawing;
156
- const name = props.wider ? "wider" : "neighbourhood", frame = drawing.frames[name];
157
- const shapes = [
158
- {
159
- kind: "rect",
160
- className: frame.backgroundClass,
161
- x: 0,
162
- y: 0,
163
- width: 800,
164
- height: 800
165
- },
166
- ...frame.paths.map(pathShape),
167
- ...frame.labels.flatMap(labelShapes),
168
- {
169
- kind: "path",
170
- className: frame.pin.className,
171
- fillRule: "evenodd",
172
- d: PIN_PATH,
173
- transform: `translate(${frame.pin.point.join(" ")})`
174
- }
175
- ];
176
- return /* @__PURE__ */ jsxs("figure", {
177
- className: `rb-map-drawing ${props.className ?? ""}`.trim(),
178
- children: [/* @__PURE__ */ jsx("div", {
179
- className: "rb-map-drawing-crop",
180
- style: cropHeightStyle(Math.max(255, props.height ?? 320), props.heightAs ?? "fixed"),
181
- children: /* @__PURE__ */ jsx(SvgNode, {
182
- className: `map-${name}`,
183
- viewBox: frame.viewBox.join(" "),
184
- shapes,
185
- ariaHidden: false,
186
- ariaLabel: props.label ? `Map showing ${props.label}` : "Map showing the arrival pin"
187
- })
188
- }), /* @__PURE__ */ jsxs("figcaption", { children: ["© ", /* @__PURE__ */ jsx("a", {
189
- href: "https://www.openstreetmap.org/copyright",
190
- target: "_blank",
191
- rel: "noreferrer",
192
- children: "OpenStreetMap contributors"
193
- })] })]
194
- });
195
- }
196
- function cropHeightStyle(height, heightAs) {
197
- return heightAs === "minimum" ? { minHeight: height } : { height };
198
- }
199
- //#endregion
200
- export { SvgNode as i, MapDrawingSvg as n, readableMapDrawing as r, AdmittedMapDrawingSvg as t };
@@ -1,244 +0,0 @@
1
- "use client";
2
- import { Ci as resolveRuntimeEventDestination, Co as isEventFull, Ko as orderedLiveRunSessions, _o as formatEventRemainingPlaces, go as canJoinEventWaitlistOnAnyMode, po as hasEventBookingClosedEarly, qo as resolveWholeSeriesBookingPhase, xo as getEventAvailabilityStatus } from "./display-D1oVR5Eh.mjs";
3
- import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
4
- //#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
5
- /**
6
- * Booking call-to-action resolution for events: where an event links to and
7
- * what the button says. Sold-out and waitlist decisions come from capacity.ts
8
- * so cards, rows and the wizard never disagree.
9
- */
10
- function closedEventBookingLabel(reason) {
11
- switch (reason) {
12
- case "occurrence_cancelled":
13
- case "series_cancelled": return "Cancelled";
14
- case "occurrence_completed":
15
- case "series_completed": return "Completed";
16
- case "series_draft":
17
- case "series_archived":
18
- case "parent_archived":
19
- case "parent_inconsistent":
20
- case "already_started":
21
- case "enrollment_closed": return "Registration closed";
22
- default: return assertNever(reason);
23
- }
24
- }
25
- function resolveEventHref(event) {
26
- const destination = resolveRuntimeEventDestination(event);
27
- return destination.kind === "external" ? destination.url : destination.path;
28
- }
29
- function resolveEventLinkProps(event) {
30
- const href = resolveEventHref(event);
31
- return resolveRuntimeEventDestination(event).kind === "external" ? {
32
- href,
33
- target: "_blank",
34
- rel: "noopener noreferrer"
35
- } : { href };
36
- }
37
- /**
38
- * Resolve the CTA state for an event.
39
- * Shared by EventCard and EventCompactRow to keep sold-out, registration-closed,
40
- * and course-specific defaults consistent.
41
- */
42
- function resolveEventCta(event, buttonText) {
43
- const isSoldOut = isEventFull(event);
44
- const isExternal = resolveRuntimeEventDestination(event).kind === "external";
45
- const href = resolveEventHref(event);
46
- if (event.bookingAvailability.kind === "closed") {
47
- const linksToClosedWholeSeriesDetails = event.bookingAvailability.reason === "enrollment_closed" && !isExternal;
48
- return {
49
- label: closedEventBookingLabel(event.bookingAvailability.reason),
50
- href,
51
- external: isExternal,
52
- hidden: !linksToClosedWholeSeriesDetails
53
- };
54
- }
55
- if (!isExternal && isSoldOut) {
56
- if (canJoinEventWaitlistOnAnyMode(event)) return {
57
- label: "Join waitlist",
58
- href,
59
- external: false,
60
- hidden: false
61
- };
62
- return {
63
- label: "Sold out",
64
- href,
65
- external: false,
66
- hidden: true
67
- };
68
- }
69
- return destinationCta(event, buttonText);
70
- }
71
- function destinationCta(event, buttonText) {
72
- const destination = resolveRuntimeEventDestination(event);
73
- return {
74
- label: buttonText ?? (destination.kind === "external" ? destination.label : "Book"),
75
- href: resolveEventHref(event),
76
- external: destination.kind === "external",
77
- hidden: false
78
- };
79
- }
80
- /**
81
- * A bounded date strip cannot prove a series sold out. Its destination owns date selection,
82
- * so the card offers that destination and leaves capacity with the individual date rows.
83
- * Whole-series bookings still have one shared capacity, as do ordinary occurrence cards.
84
- */
85
- function resolveEventCardBooking(event, scope, buttonText, options) {
86
- const closedCta = event.bookingAvailability.kind === "closed" ? resolveEventCta(event, buttonText) : renderClockClosedCta(event, options.now);
87
- if (scope === "series" && event.bookingScope === "single_occurrence") {
88
- const closed = seriesBookingClosed(event);
89
- return {
90
- cta: closed ? resolveEventCta(event, buttonText) : withoutPage(destinationCta(event, buttonText)),
91
- availability: null,
92
- closed
93
- };
94
- }
95
- return closedCta ? {
96
- cta: closedCta,
97
- availability: null,
98
- closed: true
99
- } : {
100
- cta: withoutPage(resolveEventCta(event, buttonText)),
101
- availability: occurrenceCardAvailability(event, options.count),
102
- closed: false
103
- };
104
- }
105
- /** A native card with no page yet can't invite booking: there is nowhere to send the visitor. */
106
- function withoutPage(cta) {
107
- return !cta.external && !cta.hidden && cta.href === "" ? {
108
- ...cta,
109
- label: "Details coming soon",
110
- hidden: true
111
- } : cta;
112
- }
113
- /** Only a series-wide closure closes its card; a cancelled or started date says nothing about later dates. */
114
- function seriesBookingClosed(event) {
115
- if (event.bookingAvailability.kind !== "closed") return false;
116
- switch (event.bookingAvailability.reason) {
117
- case "occurrence_cancelled":
118
- case "occurrence_completed":
119
- case "already_started": return false;
120
- case "series_cancelled":
121
- case "series_completed":
122
- case "series_draft":
123
- case "series_archived":
124
- case "parent_archived":
125
- case "parent_inconsistent":
126
- case "enrollment_closed": return true;
127
- default: return assertNever(event.bookingAvailability.reason);
128
- }
129
- }
130
- function occurrenceCardAvailability(event, count) {
131
- const label = formatEventRemainingPlaces(event, {
132
- full: "Sold out",
133
- count
134
- });
135
- const availability = getEventAvailabilityStatus(event);
136
- return label ? {
137
- label,
138
- status: availability.isFull ? "full" : availability.status === "filling" ? "low" : "available"
139
- } : null;
140
- }
141
- /** Preserve projected closure reasons; only an open native booking needs its clock rechecked. */
142
- function renderClockClosedCta(event, now) {
143
- if (!now || event.destination.kind !== "native") return null;
144
- if (event.bookingScope !== "whole_series") return hasEventBookingClosedEarly(event, now) ? {
145
- label: "Registration closed",
146
- href: resolveEventHref(event),
147
- external: false,
148
- hidden: true
149
- } : null;
150
- const phase = resolveWholeSeriesBookingPhase(event.run, now);
151
- if (phase.kind === "open") return null;
152
- return {
153
- label: (() => {
154
- switch (phase.reason) {
155
- case "cancelled": return "Cancelled";
156
- case "completed": return "Completed";
157
- case "in-progress":
158
- case "bookings-closed":
159
- case "enrolment-closed":
160
- case "no-sessions": return "Registration closed";
161
- default: return assertNever(phase.reason);
162
- }
163
- })(),
164
- href: resolveEventHref(event),
165
- external: false,
166
- hidden: phase.reason !== "enrolment-closed" && phase.reason !== "bookings-closed"
167
- };
168
- }
169
- //#endregion
170
- //#region ../blocks/src/system/runtime/nodes/events/domain/course.ts
171
- function eventDisplayTitle(event) {
172
- const run = event.bookingScope === "whole_series" ? event.run : void 0;
173
- const courseTitle = run?.courseTitle?.trim();
174
- if (!courseTitle) return {
175
- title: event.title,
176
- runName: null
177
- };
178
- const runName = run?.runName?.trim();
179
- return {
180
- title: courseTitle,
181
- runName: runName && runName !== courseTitle ? runName : null
182
- };
183
- }
184
- /**
185
- * Complete name for one dated occurrence: calendar cells, tooltips, modal
186
- * headings and accessible labels. A title authored on the occurrence itself
187
- * wins over the course and run name, which only describe the run as a whole.
188
- */
189
- function eventDisplayTitleText(event) {
190
- const occurrenceTitle = event.occurrenceTitle?.trim();
191
- if (occurrenceTitle) return occurrenceTitle;
192
- const { title, runName } = eventDisplayTitle(event);
193
- return runName ? `${title}: ${runName}` : title;
194
- }
195
- const WEEK_MS = 10080 * 60 * 1e3;
196
- /** A clock change moves a weekly session by an hour against UTC. */
197
- const CLOCK_CHANGE_MS = 3600 * 1e3;
198
- function sessionMinutes(session) {
199
- return Math.round((Date.parse(session.endsAt) - Date.parse(session.startsAt)) / 6e4);
200
- }
201
- function isWeekly(sessions) {
202
- return sessions.slice(1).every((session, index) => {
203
- const previous = sessions[index];
204
- return previous !== void 0 && Math.abs(Date.parse(session.startsAt) - Date.parse(previous.startsAt) - WEEK_MS) <= CLOCK_CHANGE_MS;
205
- });
206
- }
207
- /** "1 hour", "3 hours", "45 minutes", "1 hour 30 minutes". */
208
- function formatSessionLength(minutes) {
209
- if (!Number.isFinite(minutes) || minutes <= 0) return null;
210
- const hours = Math.floor(minutes / 60);
211
- const rest = minutes % 60;
212
- return [hours ? `${hours} hour${hours === 1 ? "" : "s"}` : null, rest ? `${rest} minute${rest === 1 ? "" : "s"}` : null].filter(Boolean).join(" ");
213
- }
214
- /**
215
- * A course's sessions in one line, from the run's complete schedule rather
216
- * than whichever occurrence rows were loaded: "6 weekly sessions, 1 hour
217
- * each". The cadence and length are only stated when every session shares
218
- * them. A one-session course has nothing to add to its date and time.
219
- */
220
- function formatCourseSessions(event) {
221
- if (event.bookingScope !== "whole_series" || !event.run) return null;
222
- const sessions = orderedLiveRunSessions(event.run.sessions);
223
- if (sessions.length < 2) return null;
224
- const lengths = new Set(sessions.map(sessionMinutes));
225
- const [onlyLength] = lengths;
226
- const length = lengths.size === 1 && onlyLength !== void 0 ? formatSessionLength(onlyLength) : null;
227
- const count = `${sessions.length} ${isWeekly(sessions) ? "weekly " : ""}sessions`;
228
- return length ? `${count}, ${length} each` : count;
229
- }
230
- /** The dates a card doesn't list: "and 5 more". */
231
- function formatMoreDates(remaining) {
232
- return remaining > 0 ? `and ${remaining} more` : null;
233
- }
234
- /**
235
- * For a card that shows one course session's date: how many of the course's
236
- * sessions come after it ("and 5 more"), or null for anything else.
237
- */
238
- function formatCourseDatesAfter(event) {
239
- if (event.bookingScope !== "whole_series" || !event.run) return null;
240
- const shownMs = Date.parse(event.startsAt);
241
- return formatMoreDates(orderedLiveRunSessions(event.run.sessions).filter((session) => Date.parse(session.startsAt) > shownMs).length);
242
- }
243
- //#endregion
244
- export { formatMoreDates as a, resolveEventLinkProps as c, formatCourseSessions as i, eventDisplayTitleText as n, resolveEventCardBooking as o, formatCourseDatesAfter as r, resolveEventCta as s, eventDisplayTitle as t };
@@ -1,37 +0,0 @@
1
- "use client";
2
- //#region ../core/src/duration.ts
3
- const UNIT_LABELS_SINGULAR = {
4
- minutes: "minute",
5
- hours: "hour",
6
- days: "day",
7
- weeks: "week"
8
- };
9
- const UNIT_LABELS_PLURAL = {
10
- minutes: "minutes",
11
- hours: "hours",
12
- days: "days",
13
- weeks: "weeks"
14
- };
15
- function formatDurationUnitLabel(unit, count) {
16
- return count === 1 ? UNIT_LABELS_SINGULAR[unit] : UNIT_LABELS_PLURAL[unit];
17
- }
18
- //#endregion
19
- //#region ../blocks/src/system/runtime/nodes/events/domain/duration.ts
20
- function formatEventDuration(event, style = "legacy") {
21
- const durationMinutes = Math.max(0, Math.round((Date.parse(event.endsAt) - Date.parse(event.startsAt)) / 6e4));
22
- if (style === "readable" && durationMinutes >= 120) return readableDuration(durationMinutes);
23
- if (durationMinutes < 120 || durationMinutes % 60 !== 0) return `${durationMinutes} min`;
24
- return `${durationMinutes / 60} hrs`;
25
- }
26
- function readableDuration(minutes) {
27
- const days = Math.floor(minutes / 1440);
28
- const hours = Math.floor(minutes % 1440 / 60);
29
- const remainder = minutes % 60;
30
- return [
31
- days ? `${days} ${formatDurationUnitLabel("days", days)}` : null,
32
- hours ? `${hours} ${formatDurationUnitLabel("hours", hours)}` : null,
33
- remainder ? `${remainder} min` : null
34
- ].filter(Boolean).join(" ");
35
- }
36
- //#endregion
37
- export { formatEventDuration as t };
@@ -1,53 +0,0 @@
1
- "use client";
2
- import { n as resolveEventDetailsPresentation, t as EventDetailsView } from "./view-DNX59QwM.mjs";
3
- import "react";
4
- import { jsx, jsxs } from "react/jsx-runtime";
5
- //#region ../blocks/src/system/runtime/nodes/event-details.client.tsx
6
- function toEventDetailsClientProps(props) {
7
- return {
8
- arrangement: props.arrangement,
9
- quickFacts: props.quickFacts,
10
- entryTitle: props.entryTitle,
11
- actionSize: props.actionSize,
12
- lookSlots: props.lookSlots,
13
- surfacePresentation: props.surfacePresentation,
14
- panelHeading: props.panelHeading,
15
- occurrenceContext: props.occurrenceContext,
16
- subject: props.subject,
17
- events: props.events ? [...props.events] : props.events,
18
- venueDrawing: props.venueDrawing,
19
- showVenue: props.showVenue,
20
- showMap: props.showMap,
21
- showOtherDates: props.showOtherDates,
22
- otherDatesLimit: props.otherDatesLimit,
23
- showCost: props.showCost,
24
- showTitle: props.showTitle,
25
- showDescription: props.showDescription,
26
- showCapacity: props.showCapacity,
27
- showAcceptedPasses: props.showAcceptedPasses,
28
- showAcceptedMemberships: props.showAcceptedMemberships,
29
- sitePasses: props.sitePasses ? { passes: [...props.sitePasses.passes] } : props.sitePasses,
30
- siteMemberships: props.siteMemberships ? { memberships: [...props.siteMemberships.memberships] } : props.siteMemberships,
31
- autoApplyDiscount: props.autoApplyDiscount ?? null,
32
- className: props.className,
33
- now: props.now
34
- };
35
- }
36
- function EventDetailsClient(props) {
37
- const { occurrenceContext = null, events = null, className, children } = props;
38
- const presentation = resolveEventDetailsPresentation({
39
- ...props,
40
- events: events ? [...events] : events,
41
- occurrenceContext
42
- });
43
- return /* @__PURE__ */ jsxs("div", {
44
- className: `event-details ${className ?? ""}`.trim(),
45
- "data-block": "event-details",
46
- children: [/* @__PURE__ */ jsx(EventDetailsView, { ...presentation }), children]
47
- });
48
- }
49
- function EventDetailsIslandClient(props) {
50
- return /* @__PURE__ */ jsx(EventDetailsClient, { ...toEventDetailsClientProps(props) });
51
- }
52
- //#endregion
53
- export { EventDetailsIslandClient as t };
@@ -1,13 +0,0 @@
1
- "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-Db8wAmgr.mjs";
3
- import { t as EventDetailsIslandClient } from "./event-details.client-BwASwKIq.mjs";
4
- import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
5
- import "react";
6
- import { jsx } from "react/jsx-runtime";
7
- //#region src/rendering/islands/enhancers/eventDetails.tsx
8
- const decode = defineIslandPropsDecoder("event-details");
9
- const enhance = (root, props) => {
10
- return mountReactIsland(root, /* @__PURE__ */ jsx(EventDetailsIslandClient, { ...props }));
11
- };
12
- //#endregion
13
- export { decode, enhance };
@@ -1,3 +0,0 @@
1
- "use client";
2
- import { t as restoreRuntimeResponse } from "./runtimeResponse-9v8q2NBc.mjs";
3
- export { restoreRuntimeResponse };