@riverbankcms/sdk 0.166.0 → 0.168.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 (230) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +5 -0
  3. package/dist/_dts/{BlocksIslandsHydrator-CPvN6RBW.d.ts → BlocksIslandsHydrator-CiD_VVGM.d.ts} +1 -1
  4. package/dist/_dts/{Page-rW0xgQCA.d.ts → Page-Bj6VJRS5.d.ts} +9 -8
  5. package/dist/_dts/{SdkPreviewMode-BWZh2WCk.d.ts → SdkPreviewMode-ChpsnwDX.d.ts} +2 -2
  6. package/dist/_dts/{client-D4BXQEZc.d.ts → client-C8mfUxrJ.d.ts} +73 -35
  7. package/dist/_dts/{content-types-MUzta0l9.d.ts → content-types-_vXZyR4H.d.ts} +2 -2
  8. package/dist/_dts/{contracts-Cl9Xh1DO.d.ts → contracts-CJFfrVKU.d.ts} +9 -5
  9. package/dist/_dts/{footerPageOutline-4BgLKehl.d.ts → footerPageOutline-CMegb23G.d.ts} +6 -6
  10. package/dist/_dts/{generatePageMetadata-BsmJ0qKh.d.ts → generatePageMetadata-D9YdAIMh.d.ts} +2 -2
  11. package/dist/_dts/{index-DdcwPqQN.d.ts → index-BQXaZ7aY.d.ts} +4 -4
  12. package/dist/_dts/{index-ahxQCUc7.d.ts → index-Bpr-wT5k.d.ts} +2 -2
  13. package/dist/_dts/{index--qflsCiy.d.ts → index-C7_Rz8EY.d.ts} +3 -3
  14. package/dist/_dts/{index-kQ5xkM6X.d.ts → index-Cx2BQlHL.d.ts} +3 -3
  15. package/dist/_dts/{index-Bmboeb49.d.ts → index-Dgz6yhsy.d.ts} +1 -1
  16. package/dist/_dts/index-Vh8B9FSa.d.ts +14 -0
  17. package/dist/_dts/{index-BgJ2aU5c.d.ts → index-vR3p9Bu-.d.ts} +2 -2
  18. package/dist/_dts/{loadContent-BG5IAV-V.d.ts → loadContent-dhWSgLeS.d.ts} +7 -7
  19. package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
  20. package/dist/_dts/{index-wbBZ0awa.d.ts → request-BrYhNV9Z.d.ts} +81287 -47810
  21. package/dist/_dts/{resolveBlockData-Cmcle_zV.d.ts → resolveBlockData-BfSHm8Ms.d.ts} +5 -5
  22. package/dist/_dts/{resolvePageContent-BRJUTFoH.d.ts → resolvePageContent-gZJ4i1wN.d.ts} +2 -2
  23. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  24. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  25. package/dist/_dts/sdk/src/client.d.ts +7 -7
  26. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  27. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  28. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  29. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  30. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  31. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  32. package/dist/_dts/sdk/src/index.d.ts +8 -8
  33. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  34. package/dist/_dts/sdk/src/metadata/index.d.ts +6 -1
  35. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  36. package/dist/_dts/sdk/src/next/index.d.ts +7 -7
  37. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  38. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  39. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  40. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  41. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  42. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  43. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  45. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
  46. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +7 -5
  48. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  49. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  50. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  51. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  52. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  53. package/dist/_dts/sdk/src/server.d.ts +5 -5
  54. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  55. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  56. package/dist/_dts/{types-BX3Y-EW3.d.ts → types-BB33-Spd.d.ts} +3 -3
  57. package/dist/_dts/{types-DF54stxv.d.ts → types-BVFXYtRg.d.ts} +7 -7
  58. package/dist/_dts/{types-DuiHLiPo.d.ts → types-FOsJ-KYb.d.ts} +4 -2
  59. package/dist/_dts/{validation-Bxi0f81D.d.ts → validation-DckTc6TQ.d.ts} +4 -4
  60. package/dist/client/{BlocksIslandsHydrator-DwiRGtgh.mjs → BlocksIslandsHydrator-DcwEaliO.mjs} +21 -21
  61. package/dist/client/BookingMailingListNote-Dsugoe-n.mjs +946 -0
  62. package/dist/client/BookingQuestionFields-Bhh0cvsl.mjs +359 -0
  63. package/dist/client/{CalendarNavigationChevron-5a0x0vcC.mjs → CalendarNavigationChevron-CNe3ZjdC.mjs} +166 -17
  64. package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
  65. package/dist/client/{DemoBookingPortalAccess-B2qLkPRB.mjs → DemoBookingPortalAccess-BeiZxEUJ.mjs} +7 -7
  66. package/dist/client/{EventCalendar.client-BhADnDCg.mjs → EventCalendar.client-BL943-tl.mjs} +11 -30
  67. package/dist/client/{EventCombined.client-jik34zTb.mjs → EventCombined.client-BFVxECTp.mjs} +137 -61
  68. package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
  69. package/dist/client/{EventItem-CMKrtkT7.mjs → EventItem-BIc4gjiD.mjs} +86 -17
  70. package/dist/client/{EventListWeekNavigation-AGHjxy6C.mjs → EventListWeekNavigation-a0QEIEf0.mjs} +1 -1
  71. package/dist/client/{EventListing.client-DZeDM0Qt.mjs → EventListing.client-CEFTC3jH.mjs} +3 -3
  72. package/dist/client/{EventListing.view-3BBRdNVa.mjs → EventListing.view-Bt2sBBms.mjs} +41 -50
  73. package/dist/client/{EventRegistrationPayment-CpNcpga4.mjs → EventRegistrationPayment-D9YBNb_E.mjs} +255 -40
  74. package/dist/client/{LocationMapActions-D5-H9ooQ.mjs → LocationMapActions-gqzt5gkW.mjs} +2 -2
  75. package/dist/client/{MapDrawingSvg-C30geMl-.mjs → MapDrawingSvg-13JQI7_z.mjs} +22 -2
  76. package/dist/client/{Page-DNDZLRlB.mjs → Page-D_M2Vxz3.mjs} +26063 -22139
  77. package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
  78. package/dist/client/{StepIndicator-Bin7YR0A.mjs → StepIndicator-CaN8snZ8.mjs} +3 -3
  79. package/dist/client/{TabBarFragment-_IAthZVM.mjs → TabBarFragment-DkVKtK5a.mjs} +19 -19
  80. package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
  81. package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
  82. package/dist/client/{accordion-uVqNowRX.mjs → accordion-DE7OG--d.mjs} +1 -1
  83. package/dist/client/{booking-form.client-w-PvyWBv.mjs → booking-form.client-CS1PPjw7.mjs} +842 -374
  84. package/dist/client/{bookingForm-DNMojb6A.mjs → bookingForm-DE2CwIU9.mjs} +5 -4
  85. package/dist/client/{src-DjnxOjXG.mjs → bookingQuestionValues-BjcyCru5.mjs} +88 -1
  86. package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
  87. package/dist/client/bookings.mjs +18 -13
  88. package/dist/client/{carousel-C8kxI3Dm.mjs → carousel-DZyUdnFh.mjs} +3 -3
  89. package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
  90. package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
  91. package/dist/client/{cart-DCxjE3Is.mjs → cart-D7HkkNwe.mjs} +3 -3
  92. package/dist/client/{cart.client-Ceeng8fB.mjs → cart.client-H4sv2TpD.mjs} +1 -1
  93. package/dist/client/{checkout-B0EKbeVv.mjs → checkout-2qVyG-Sh.mjs} +3 -3
  94. package/dist/client/{checkout.client-DtPj3fYk.mjs → checkout.client-DAjrBZ74.mjs} +1 -1
  95. package/dist/client/client.mjs +325 -65
  96. package/dist/client/{context-n6IZigd3.mjs → context-DXmIbXCK.mjs} +300 -3
  97. package/dist/client/{cta-CDeAwYoN.mjs → cta-DP_IBnq3.mjs} +2 -2
  98. package/dist/client/{dateFormatting-BWPzdeZE.mjs → dateFormatting-CwrkFZTr.mjs} +1 -1
  99. package/dist/client/{demoPortalMagicLink-BdXu0fj-.mjs → demoPortalMagicLink-DQXK-Fh6.mjs} +1 -1
  100. package/dist/client/{enhanceHeaderSection-VHfv8M6-.mjs → enhanceHeaderSection-DheQj7rg.mjs} +4 -4
  101. package/dist/client/{event-details.client-Cfr1_Cj4.mjs → event-details.client-C5UufcRp.mjs} +1 -1
  102. package/dist/client/{event-registration.client-BhygihpQ.mjs → event-registration.client-CMGg63IU.mjs} +73 -239
  103. package/dist/client/{eventCalendar-B4XCL9u6.mjs → eventCalendar-DlD0GCEy.mjs} +4 -4
  104. package/dist/client/{eventCombined-DVjz4wdf.mjs → eventCombined-DoSi8p_l.mjs} +4 -4
  105. package/dist/client/{eventDetails-B0DA1Nw1.mjs → eventDetails-DzuQYgmO.mjs} +2 -2
  106. package/dist/client/{eventListing-2-xjn2nz.mjs → eventListing-CkiMjl0g.mjs} +4 -4
  107. package/dist/client/{eventRegistration-ng4iGo9O.mjs → eventRegistration-CjS3Zpjp.mjs} +4 -4
  108. package/dist/client/{form-BeNQiZ2V.mjs → form-DgQqm7T2.mjs} +3 -3
  109. package/dist/client/{form.client-BFdCKlp7.mjs → form.client-BI9Dcsq5.mjs} +5 -5
  110. package/dist/client/{form.parts-C7gLK3jh.mjs → form.parts-DevF0L_A.mjs} +3 -3
  111. package/dist/client/{formatDate-CWfelfMt.mjs → formatDate-DDyURjoe.mjs} +1 -1
  112. package/dist/client/gifting/client.mjs +3 -3
  113. package/dist/client/{headerSection-CalNAShx.mjs → headerSection-DYIG6Pwb.mjs} +2 -2
  114. package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
  115. package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
  116. package/dist/client/{newsletter-form.client-Dq7GHGXU.mjs → newsletter-form.client-BWp7Y1e1.mjs} +6 -6
  117. package/dist/client/{newsletter-form.parts-BSMDYQiS.mjs → newsletter-form.parts-Dg8s9NwJ.mjs} +2 -2
  118. package/dist/client/{newsletterForm-snzZ4L6i.mjs → newsletterForm-DnPraMzx.mjs} +3 -3
  119. package/dist/client/{noop-D-RG9eR3.mjs → noop-ByFRHYQ2.mjs} +456 -491
  120. package/dist/client/portal/client.mjs +76 -229
  121. package/dist/client/{product-detail.client-Gu0INDb7.mjs → product-detail.client-BFAgHrdg.mjs} +1 -1
  122. package/dist/client/{product-list.client-BmH40fNf.mjs → product-list.client-DVrs_DyY.mjs} +1 -1
  123. package/dist/client/{productDetail-DsPUmJ0z.mjs → productDetail-D4rvl6Xg.mjs} +3 -3
  124. package/dist/client/{productList-DjGrjOwD.mjs → productList-B8o5AOMX.mjs} +3 -3
  125. package/dist/client/{propsDecoder-kTVPMnfD.mjs → propsDecoder-hhotPP6P.mjs} +5 -5
  126. package/dist/client/{registry.server-CKK_RXZo.mjs → registry.server-Ch3EpupA.mjs} +2296 -2489
  127. package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
  128. package/dist/client/rendering/client.mjs +30 -30
  129. package/dist/client/rendering/islands.mjs +1 -1
  130. package/dist/client/rendering.mjs +10 -9
  131. package/dist/client/{richText-coerce-BcjTX-7h.mjs → richText-coerce-C3LabQ1O.mjs} +1 -1
  132. package/dist/client/{routeIslandApiConfig-CaXesATK.mjs → routeIslandApiConfig-CQGlxId8.mjs} +1 -1
  133. package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
  134. package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
  135. package/dist/client/{shop-commerce-BxYYXLNK.mjs → shop-commerce-VDbVaKY-.mjs} +12 -12
  136. package/dist/client/{shop-commerce-store-Dp3Nl5YK.mjs → shop-commerce-store-DqdgJ8Zw.mjs} +1 -1
  137. package/dist/client/{shop-DLufMauE.mjs → shop-rRXplPGZ.mjs} +3 -3
  138. package/dist/client/{shop.client-CBy9_alG.mjs → shop.client-DdwvMvaK.mjs} +13 -13
  139. package/dist/client/{shop.interactive-BM0NRsFQ.mjs → shop.interactive-C8OvFY06.mjs} +167 -68
  140. package/dist/client/{shopShared-lS23OQE-.mjs → shopShared-BeuJiGPU.mjs} +2 -2
  141. package/dist/client/spam-protection.mjs +1 -1
  142. package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
  143. package/dist/client/{timetableModel-DzRWikCU.mjs → timetableModel-Cko9LRKy.mjs} +13 -158
  144. package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
  145. package/dist/client/{useAvailableSlots-C3LphWDX.mjs → useAvailableSlots-M6QIEiWf.mjs} +3 -3
  146. package/dist/client/{useDiscountApply-SLoWhcen.mjs → useDiscountApply-BJSnyO0f.mjs} +3 -3
  147. package/dist/client/{useDiscountCodeUi-D6a2BJij.mjs → useDiscountCodeUi-D3XnOSCi.mjs} +1 -1
  148. package/dist/client/{useEventPagination-Ccr4TZlm.mjs → useEventPagination-PhTIoFVX.mjs} +7 -7
  149. package/dist/client/{view-DAVEoe8A.mjs → view-448wvvEY.mjs} +21 -12
  150. package/dist/client/{view-8w4GA8rf.mjs → view-L_mkgtnk.mjs} +4 -4
  151. package/dist/client/{site-styles-DELkUk9s.mjs → wizardSteps-CFulHWnT.mjs} +19371 -17045
  152. package/dist/preview-next/client/{ArrangementLookControls-DY5TzhEa.mjs → ArrangementLookControls-BpvnOGlN.mjs} +26 -17
  153. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
  154. package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
  155. package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
  156. package/dist/preview-next/client/{PreviewEditorSidebar-DdnhmdFO.mjs → PreviewEditorSidebar-C0OtdWu_.mjs} +432 -127
  157. package/dist/preview-next/client/{PreviewEditorUI-C7ZmYE33.mjs → PreviewEditorUI-Csc5vH5k.mjs} +6 -6
  158. package/dist/preview-next/client/{PreviewShell-DnO38NaL.mjs → PreviewShell-BOLH_pm-.mjs} +252 -158
  159. package/dist/preview-next/client/{SdkPreviewModeRuntime-D2OtoRMB.mjs → SdkPreviewModeRuntime-CKodLReY.mjs} +31 -32
  160. package/dist/preview-next/client/{SiteChromeCustomizeButton-eIu2RejJ.mjs → SiteChromeCustomizeButton-BeEZpeKn.mjs} +19484 -18082
  161. package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
  162. package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
  163. package/dist/preview-next/client/{previewAssistantSlot-Bp1AlAxx.mjs → previewAssistantSlot-BBdN5kfY.mjs} +21470 -16697
  164. package/dist/preview-next/client/{previewChromeSurface-D2cREDJ5.mjs → previewChromeSurface-VZtGwPuH.mjs} +1 -1
  165. package/dist/preview-next/client/runtime.mjs +3 -3
  166. package/dist/preview-next/client/{sdk-runtime-DK0PUhLL.mjs → sdk-runtime-kiZkMcuR.mjs} +2 -2
  167. package/dist/preview-next/client/{useAutosaveStatus--Pw8vnef.mjs → useAutosaveStatus-BiIHEeE0.mjs} +2 -2
  168. package/dist/preview-next/client/{useBlockCustomizeControls-C1Rl73N4.mjs → useBlockCustomizeControls-BuFLIpmX.mjs} +2 -93
  169. package/dist/preview-next/client/{useOpenBlockForSetup-CL3842FM.mjs → useOpenBlockForSetup-DlxYgmh_.mjs} +1 -1
  170. package/dist/preview-next/keepAlive.mjs +1 -1
  171. package/dist/preview-next/middleware.mjs +1 -1
  172. package/dist/preview-next/{route-contract-Bq7SUX3K.mjs → route-contract-C0sCvCYL.mjs} +248 -0
  173. package/dist/server/{Block.shared-wXr7Iwhs.mjs → Block.shared-Dnhc0Wu5.mjs} +5 -5
  174. package/dist/server/{ThemeScopeCore-BI2mld9R.mjs → ThemeScopeCore-NAQ_zsFu.mjs} +1173 -148
  175. package/dist/server/{accessibleSurfaces-CuN8U_iU.mjs → accessibleSurfaces-108nxyGc.mjs} +520 -129
  176. package/dist/server/{bindings-DjdUq9FR.mjs → bindings-DLoZYUxG.mjs} +2 -2
  177. package/dist/server/{client-07UeMDzA.mjs → client-Bc8jI8zN.mjs} +346 -63
  178. package/dist/server/config-validation.mjs +1 -1
  179. package/dist/server/config.mjs +1 -1
  180. package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
  181. package/dist/server/data/resolveBlockData.mjs +1 -1
  182. package/dist/server/headerVariant-BwR9NV4b.mjs +463 -0
  183. package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
  184. package/dist/server/index.mjs +3 -3
  185. package/dist/server/{loadContent-ClpaSlBb.mjs → loadContent-D61gpqHB.mjs} +4 -5
  186. package/dist/server/{loadPage-BwtVqpaA.mjs → loadPage-B4ZYpIcd.mjs} +2 -2
  187. package/dist/server/manifest.mjs +1 -1
  188. package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
  189. package/dist/server/metadata.mjs +5 -1
  190. package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
  191. package/dist/server/next/revalidate.mjs +9 -4
  192. package/dist/server/next.mjs +6 -6
  193. package/dist/server/{opaqueSurface-3YSDPtDe.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
  194. package/dist/server/{overrideResolution-Du_w3LY4.mjs → overrideResolution-CDReKy2P.mjs} +1 -1
  195. package/dist/server/page-converter.mjs +3 -3
  196. package/dist/server/{pageRenderPlan-BShULdc2.mjs → pageRenderPlan-ByVTA7-4.mjs} +375 -171
  197. package/dist/server/{pageRuntimeSupport-C4Dh5-mB.mjs → pageRuntimeSupport-Dzz_Dze6.mjs} +291 -5
  198. package/dist/server/{pageShared-HdKFBpaX.mjs → pageShared-Dk5Ku6hs.mjs} +12184 -11593
  199. package/dist/server/{schema-C2PqHrMo.mjs → parseThemeForPersistence-pJPGfMrf.mjs} +593 -1591
  200. package/dist/server/{prebuild-Cl-bkaMA.mjs → prebuild-CW4M0WEZ.mjs} +1 -1
  201. package/dist/server/prebuild.mjs +1 -1
  202. package/dist/server/{prefetchBlockData-C4yUmz-r.mjs → prefetchBlockData-Bvx0SiIM.mjs} +5 -34
  203. package/dist/server/{registry-TFPJdGQi.mjs → registry-Bh0Y25zH.mjs} +6041 -4562
  204. package/dist/server/rendering/components/pageShared.mjs +1 -1
  205. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  206. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  207. package/dist/server/rendering/server.mjs +3 -3
  208. package/dist/server/rendering.mjs +8 -8
  209. package/dist/server/{resolveBlockData-OHlOXlOE.mjs → resolveBlockData-CnHHst9r.mjs} +1 -1
  210. package/dist/server/{resolveButtonColourStates-lry2ORwX.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +393 -502
  211. package/dist/server/responseMedia-t6gs0cB7.mjs +115 -0
  212. package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
  213. package/dist/server/server.mjs +3 -3
  214. package/dist/server/theme-bridge.mjs +2 -3
  215. package/dist/server/theme.mjs +1 -2
  216. package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
  217. package/dist/server/{validation-DIBFZeMB.mjs → validation-D2bHWSxJ.mjs} +59 -10
  218. package/dist/server/{version-DZWZM1H6.mjs → version-DkM1eAxG.mjs} +1 -1
  219. package/dist/styles/index.css +991 -48
  220. package/package.json +4 -3
  221. package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
  222. package/dist/_dts/index-mMMvLLAJ.d.ts +0 -31339
  223. package/dist/client/BookingMailingListNote-DOWOZYlK.mjs +0 -331
  224. package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
  225. package/dist/client/events-BmqPeeQm.mjs +0 -20
  226. package/dist/client/site-styles-D8jEPGxA.mjs +0 -3
  227. package/dist/client/useBookingNowIso-Da-f9iHw.mjs +0 -58
  228. package/dist/client/wizardSteps-DNpajrAH.mjs +0 -6926
  229. package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +0 -52
  230. package/dist/server/publicProducts-W9hDRwjz.mjs +0 -64
@@ -0,0 +1,359 @@
1
+ "use client";
2
+ import { Jt as toUtcIsoDateTimeString } from "./noop-ByFRHYQ2.mjs";
3
+ import { a as getInitialFieldValue } from "./bookingQuestionValues-BjcyCru5.mjs";
4
+ import { r as BlockApiError } from "./context-DXmIbXCK.mjs";
5
+ import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
6
+ import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
7
+ import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
8
+ import { useCallback, useEffect, useState } from "react";
9
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
10
+ //#region ../blocks/src/system/runtime/shared/components/DemoPortalSignInLink.tsx
11
+ function DemoPortalSignInLink(props) {
12
+ return /* @__PURE__ */ jsxs("div", { children: [
13
+ /* @__PURE__ */ jsx("h3", { children: "Your sign-in link" }),
14
+ /* @__PURE__ */ jsx("p", { children: "In the demo we don’t send emails, so here’s the link we’d have sent you." }),
15
+ /* @__PURE__ */ jsx(ThemedButtonLink, {
16
+ variant: "default",
17
+ size: "md",
18
+ label: "Sign in to the portal",
19
+ href: props.url
20
+ })
21
+ ] });
22
+ }
23
+ //#endregion
24
+ //#region ../blocks/src/system/runtime/hooks/useBookingNowIso.ts
25
+ const ANCHOR_CLOCK = { kind: "anchor" };
26
+ const MAX_TIMER_DELAY_MS = 2147483647;
27
+ const browserClock = () => toUtcIsoDateTimeString((/* @__PURE__ */ new Date()).toISOString());
28
+ /** The effect owns one timer, including long-delay and early-timer retries. */
29
+ function scheduleBookingClockBoundary(boundary, refresh, clock) {
30
+ const timer = {};
31
+ const schedule = () => {
32
+ const delay = Date.parse(boundary) - Date.parse(clock());
33
+ if (!Number.isFinite(delay) || delay <= 0) return;
34
+ timer.current = setTimeout(() => {
35
+ refresh();
36
+ schedule();
37
+ }, Math.min(delay, MAX_TIMER_DELAY_MS));
38
+ };
39
+ schedule();
40
+ return () => {
41
+ if (timer.current !== void 0) clearTimeout(timer.current);
42
+ };
43
+ }
44
+ /**
45
+ * The supplied server clock snapshot for this booking or registration flow.
46
+ *
47
+ * Payment previews take this as their "now" so the pure view-model builders
48
+ * never read the clock themselves. The anchor stays fixed per mount. Lifecycle
49
+ * presentation starts with the same snapshot, then reconciles in effects.
50
+ */
51
+ function useBookingNowIso(snapshot, policy = ANCHOR_CLOCK, clock = browserClock) {
52
+ const [nowIso, setNowIso] = useState(snapshot);
53
+ const refresh = useCallback(() => setNowIso(clock()), [clock]);
54
+ const nextBoundary = policy.kind === "presentation" ? policy.nextBoundary : null;
55
+ useEffect(() => {
56
+ if (policy.kind === "anchor") return;
57
+ refresh();
58
+ const interval = policy.kind === "relative" ? setInterval(refresh, 6e4) : null;
59
+ window.addEventListener("focus", refresh);
60
+ document.addEventListener("visibilitychange", refresh);
61
+ return () => {
62
+ if (interval !== null) clearInterval(interval);
63
+ window.removeEventListener("focus", refresh);
64
+ document.removeEventListener("visibilitychange", refresh);
65
+ };
66
+ }, [policy.kind, refresh]);
67
+ useEffect(() => {
68
+ if (!nextBoundary) return;
69
+ return scheduleBookingClockBoundary(nextBoundary, refresh, clock);
70
+ }, [
71
+ nextBoundary,
72
+ clock,
73
+ refresh
74
+ ]);
75
+ return nowIso;
76
+ }
77
+ //#endregion
78
+ //#region ../blocks/src/system/runtime/shared/parseBookingSubmissionFailure.ts
79
+ /** `fieldPrefix` is where the server puts question field ids: booking flows send them under `bookingQuestions.`, the portal under `answers.`. */
80
+ function parseBookingSubmissionFailure(error, fallbackMessage, fieldPrefix = "bookingQuestions.") {
81
+ const fieldErrors = error instanceof BlockApiError ? error.fieldErrors : [];
82
+ return {
83
+ message: error instanceof Error ? error.message : fallbackMessage,
84
+ answersNeeded: fieldErrors.some(({ field, code }) => field === "bookingQuestions" && code === "validation:required"),
85
+ questionFieldErrors: Object.fromEntries(fieldErrors.flatMap(({ field, message }) => field.startsWith(fieldPrefix) && field.length > fieldPrefix.length ? [[field.slice(fieldPrefix.length), message]] : []))
86
+ };
87
+ }
88
+ //#endregion
89
+ //#region ../blocks/src/system/runtime/shared/components/BookingQuestionFields.tsx
90
+ /**
91
+ * Optional questions say so; required ones carry aria-required instead of an
92
+ * asterisk. The appointment booking form's own fields use it too, so a form
93
+ * never mixes the two conventions.
94
+ */
95
+ function OptionalMark() {
96
+ return /* @__PURE__ */ jsx("span", {
97
+ className: "rb-bq-optional status-muted",
98
+ children: " (optional)"
99
+ });
100
+ }
101
+ function toStringValue(value) {
102
+ return typeof value === "string" || typeof value === "number" ? String(value) : "";
103
+ }
104
+ /** Native scalar controls share value conversion and validation; choices and uploads have their own controls. */
105
+ function ScalarQuestionInput({ field, inputId, value, disabled, control, onChange }) {
106
+ const temporal = field.type === "date" || field.type === "time";
107
+ return /* @__PURE__ */ jsx("input", {
108
+ id: inputId,
109
+ type: field.type,
110
+ className: "form-input",
111
+ value: toStringValue(value),
112
+ placeholder: temporal ? void 0 : field.placeholder,
113
+ min: field.type === "number" ? field.min : void 0,
114
+ max: field.type === "number" ? field.max : void 0,
115
+ disabled,
116
+ ...control,
117
+ onChange: (event) => onChange(event.target.value)
118
+ });
119
+ }
120
+ function TextareaQuestionInput({ field, inputId, value, disabled, control, onChange }) {
121
+ return /* @__PURE__ */ jsx("textarea", {
122
+ id: inputId,
123
+ className: "form-textarea",
124
+ value: toStringValue(value),
125
+ rows: 4,
126
+ placeholder: field.placeholder,
127
+ disabled,
128
+ ...control,
129
+ onChange: (event) => onChange(event.target.value)
130
+ });
131
+ }
132
+ function SelectQuestionInput({ field, inputId, value, disabled, control, onChange }) {
133
+ const options = field.options?.map((option) => /* @__PURE__ */ jsx("option", {
134
+ value: option.value,
135
+ children: option.label
136
+ }, option.value));
137
+ if (field.multiple) return /* @__PURE__ */ jsx("select", {
138
+ id: inputId,
139
+ className: "form-select rb-h-32",
140
+ multiple: true,
141
+ disabled,
142
+ ...control,
143
+ value: Array.isArray(value) ? value : [],
144
+ onChange: (event) => onChange(Array.from(event.target.selectedOptions, (option) => option.value)),
145
+ children: options
146
+ });
147
+ return /* @__PURE__ */ jsxs("select", {
148
+ id: inputId,
149
+ className: "form-select",
150
+ disabled,
151
+ ...control,
152
+ value: toStringValue(value),
153
+ onChange: (event) => onChange(event.target.value),
154
+ children: [/* @__PURE__ */ jsx("option", {
155
+ value: "",
156
+ children: "Select an option..."
157
+ }), options]
158
+ });
159
+ }
160
+ function RadioQuestionInput({ field, inputId, value, disabled, control, onChange }) {
161
+ return /* @__PURE__ */ jsx("div", {
162
+ className: "rb-space-y-2",
163
+ children: field.options?.map((option) => /* @__PURE__ */ jsxs("label", {
164
+ className: "form-check",
165
+ children: [/* @__PURE__ */ jsx("input", {
166
+ type: "radio",
167
+ name: inputId,
168
+ value: option.value,
169
+ checked: value === option.value,
170
+ disabled,
171
+ className: "form-radio",
172
+ "aria-invalid": control["aria-invalid"],
173
+ onChange: (event) => onChange(event.target.value)
174
+ }), /* @__PURE__ */ jsx("span", {
175
+ className: "form-check-label",
176
+ children: option.label
177
+ })]
178
+ }, option.value))
179
+ });
180
+ }
181
+ function toggledValues(selected, value, checked) {
182
+ return checked ? [...selected, value] : selected.filter((entry) => entry !== value);
183
+ }
184
+ function CheckboxQuestionInput({ field, inputId, value, disabled, control, onChange }) {
185
+ if (!field.options || field.options.length <= 1) return /* @__PURE__ */ jsx(CheckboxChoice, {
186
+ id: inputId,
187
+ checked: Boolean(value),
188
+ disabled,
189
+ ...control,
190
+ onChange: (event) => onChange(event.target.checked),
191
+ label: field.placeholder || field.label
192
+ });
193
+ const selectedValues = Array.isArray(value) ? value : [];
194
+ return /* @__PURE__ */ jsx("div", {
195
+ className: "rb-space-y-2",
196
+ children: field.options.map((option) => /* @__PURE__ */ jsx(CheckboxChoice, {
197
+ name: inputId,
198
+ value: option.value,
199
+ checked: selectedValues.includes(option.value),
200
+ disabled,
201
+ "aria-invalid": control["aria-invalid"],
202
+ onChange: (event) => onChange(toggledValues(selectedValues, option.value, event.target.checked)),
203
+ label: option.label
204
+ }, option.value))
205
+ });
206
+ }
207
+ function BookingQuestionFieldInput(props) {
208
+ const { field } = props;
209
+ switch (field.type) {
210
+ case "textarea": return /* @__PURE__ */ jsx(TextareaQuestionInput, {
211
+ ...props,
212
+ field
213
+ });
214
+ case "select": return /* @__PURE__ */ jsx(SelectQuestionInput, {
215
+ ...props,
216
+ field
217
+ });
218
+ case "radio": return /* @__PURE__ */ jsx(RadioQuestionInput, {
219
+ ...props,
220
+ field
221
+ });
222
+ case "checkbox": return /* @__PURE__ */ jsx(CheckboxQuestionInput, {
223
+ ...props,
224
+ field
225
+ });
226
+ case "document_upload": return props.renderDocumentField?.({
227
+ field,
228
+ inputId: props.inputId,
229
+ value: props.value,
230
+ disabled: props.disabled,
231
+ error: props.error,
232
+ control: props.control,
233
+ onChange: props.onChange
234
+ }) ?? null;
235
+ case "number":
236
+ case "date":
237
+ case "time":
238
+ case "email":
239
+ case "tel":
240
+ case "text":
241
+ case "url": return /* @__PURE__ */ jsx(ScalarQuestionInput, {
242
+ ...props,
243
+ field
244
+ });
245
+ }
246
+ }
247
+ function questionControlProps(field, ids, error) {
248
+ return {
249
+ ...getFieldValidationControlProps({
250
+ message: error,
251
+ messageId: ids.errorId,
252
+ describedBy: ids.helpTextId
253
+ }),
254
+ ...field.required ? { "aria-required": "true" } : {}
255
+ };
256
+ }
257
+ /** Radios and multi-choice checkboxes answer one question with several controls, so they're a named group. */
258
+ function isChoiceGroup(field) {
259
+ return field.type === "radio" || field.type === "checkbox" && (field.options?.length ?? 0) > 1;
260
+ }
261
+ function QuestionLabel({ field, inputId }) {
262
+ const text = /* @__PURE__ */ jsxs(Fragment, { children: [field.label, field.required ? null : /* @__PURE__ */ jsx(OptionalMark, {})] });
263
+ return isChoiceGroup(field) ? /* @__PURE__ */ jsx("legend", {
264
+ className: "form-label rb-p-0",
265
+ children: text
266
+ }) : /* @__PURE__ */ jsx("label", {
267
+ htmlFor: inputId,
268
+ className: "form-label",
269
+ children: text
270
+ });
271
+ }
272
+ /** A choice group is a fieldset: the question is its legend, and the group carries required state and descriptions. */
273
+ function QuestionFrame({ field, control, children }) {
274
+ if (!isChoiceGroup(field)) return /* @__PURE__ */ jsx("div", {
275
+ className: "rb-space-y-2",
276
+ children
277
+ });
278
+ return /* @__PURE__ */ jsx("fieldset", {
279
+ className: "rb-space-y-2 rb-border-0 rb-p-0 rb-m-0 rb-min-w-0",
280
+ "aria-describedby": control["aria-describedby"],
281
+ ...field.type === "radio" ? {
282
+ role: "radiogroup",
283
+ "aria-required": control["aria-required"]
284
+ } : {},
285
+ children
286
+ });
287
+ }
288
+ function QuestionField({ field, value, error, disabled, idPrefix, onChange, renderDocumentField }) {
289
+ const inputId = `${idPrefix}${field.id}`;
290
+ const helpTextId = field.helpText ? `${inputId}-help` : void 0;
291
+ const errorId = `${inputId}-error`;
292
+ const control = questionControlProps(field, {
293
+ errorId,
294
+ helpTextId
295
+ }, error);
296
+ return /* @__PURE__ */ jsxs(QuestionFrame, {
297
+ field,
298
+ control,
299
+ children: [
300
+ /* @__PURE__ */ jsx(QuestionLabel, {
301
+ field,
302
+ inputId
303
+ }),
304
+ field.helpText ? /* @__PURE__ */ jsx("p", {
305
+ id: helpTextId,
306
+ className: "rb-caption status-muted",
307
+ children: field.helpText
308
+ }) : null,
309
+ /* @__PURE__ */ jsx(BookingQuestionFieldInput, {
310
+ field,
311
+ inputId,
312
+ value: value ?? getInitialFieldValue(field, {}),
313
+ disabled,
314
+ error,
315
+ control,
316
+ onChange: (next) => onChange(field.id, next),
317
+ renderDocumentField
318
+ }),
319
+ error ? /* @__PURE__ */ jsx(FieldValidationMessage, {
320
+ id: errorId,
321
+ className: "rb-caption status-error",
322
+ children: error
323
+ }) : null
324
+ ]
325
+ });
326
+ }
327
+ function SectionTitle({ section }) {
328
+ return /* @__PURE__ */ jsxs("div", {
329
+ className: "rb-space-y-1",
330
+ children: [/* @__PURE__ */ jsx("h4", {
331
+ className: "rb-font-medium",
332
+ children: section.title
333
+ }), section.description ? /* @__PURE__ */ jsx("p", {
334
+ className: "rb-caption status-muted",
335
+ children: section.description
336
+ }) : null]
337
+ });
338
+ }
339
+ /**
340
+ * The questions of a booking-question set, rendered the same way in the
341
+ * portal, the appointment booking form and event registration. Fields use
342
+ * the theme's `form-*` classes, so each site's input styling applies.
343
+ */
344
+ function BookingQuestionFields({ sections, values, fieldErrors = {}, onChange, disabled = false, idPrefix = "", showFirstSectionTitle = false, renderDocumentField }) {
345
+ return /* @__PURE__ */ jsx(Fragment, { children: sections.map((section, sectionIndex) => /* @__PURE__ */ jsxs("div", {
346
+ className: "rb-space-y-3",
347
+ children: [showFirstSectionTitle || sectionIndex > 0 ? /* @__PURE__ */ jsx(SectionTitle, { section }) : null, section.items.map((field) => /* @__PURE__ */ jsx(QuestionField, {
348
+ field,
349
+ value: values[field.id],
350
+ error: fieldErrors[field.id] ?? null,
351
+ disabled,
352
+ idPrefix,
353
+ onChange,
354
+ renderDocumentField
355
+ }, field.id))]
356
+ }, section.id)) });
357
+ }
358
+ //#endregion
359
+ export { DemoPortalSignInLink as a, useBookingNowIso as i, OptionalMark as n, parseBookingSubmissionFailure as r, BookingQuestionFields as t };
@@ -1,23 +1,15 @@
1
1
  "use client";
2
- import { an as formatEventPrice } from "./shop.interactive-BM0NRsFQ.mjs";
3
- import { Cn as formatEventRemainingPlaces, _n as formatTime, kn as isEventFull, sn as eventDateOptions, vn as groupEventsByDate, yn as resolveEventTimeZone } from "./wizardSteps-DNpajrAH.mjs";
4
- import { dt as formatDate } from "./noop-D-RG9eR3.mjs";
2
+ import { on as formatEventPrice } from "./shop.interactive-C8OvFY06.mjs";
3
+ import { Dn as formatTime, Nn as formatEventRemainingPlaces, On as groupEventsByDate, _n as eventDateOptions, ii as listItemPresentation, kn as resolveEventTimeZone, oi as listLookSlot, zn as isEventFull } from "./wizardSteps-CFulHWnT.mjs";
4
+ import { Ht as parseBookingLocalDate, Tt as formatDate } from "./noop-ByFRHYQ2.mjs";
5
5
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
6
6
  import { d as formatDateKey, v as isToday } from "./src-1PJxc8KO.mjs";
7
- import { i as ThemedButtonLink } from "./ThemedButton-8jUc02mZ.mjs";
8
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-CDeAwYoN.mjs";
9
- import { c as formatEventTeacherLine } from "./EventItem-CMKrtkT7.mjs";
7
+ import { i as ThemedButtonLink } from "./ThemedButton-BdnEwA38.mjs";
8
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-DP_IBnq3.mjs";
9
+ import { o as formatEventLocation } from "./MapDrawingSvg-13JQI7_z.mjs";
10
+ import { l as formatEventTeacherLine, r as EventItem } from "./EventItem-BIc4gjiD.mjs";
10
11
  import "react";
11
- import { jsx, jsxs } from "react/jsx-runtime";
12
- //#region ../blocks/src/system/runtime/nodes/events/domain/location.ts
13
- function formatEventLocation(event) {
14
- switch (event.deliveryMode) {
15
- case "online": return "Online";
16
- case "hybrid": return event.venue ? `${event.venue.name} + online` : "Hybrid";
17
- case "in_person": return event.venue?.name ?? "In person";
18
- }
19
- }
20
- //#endregion
12
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
21
13
  //#region ../blocks/src/system/runtime/nodes/events/domain/monthDay.ts
22
14
  /** Day facts are shared by the legacy grid and arrangement month Looks. */
23
15
  function buildMonthDay(input) {
@@ -53,6 +45,163 @@ function CalendarDayHeaders({ dayNames }) {
53
45
  });
54
46
  }
55
47
  //#endregion
48
+ //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookView.tsx
49
+ function MonthEvent({ event, timeZone, locale, presentation }) {
50
+ return /* @__PURE__ */ jsxs("a", {
51
+ ...resolveEventLinkProps(event),
52
+ ...listLookSlot(presentation, "item"),
53
+ children: [
54
+ /* @__PURE__ */ jsx("span", {
55
+ ...listLookSlot(presentation, "time"),
56
+ children: formatTime(event.startsAt, {
57
+ ...eventDateOptions({
58
+ ...event,
59
+ timeZone
60
+ }),
61
+ locale
62
+ })
63
+ }),
64
+ " ",
65
+ /* @__PURE__ */ jsx("span", {
66
+ ...listLookSlot(presentation, "what"),
67
+ children: event.title
68
+ })
69
+ ]
70
+ });
71
+ }
72
+ function dateLabel(key, timeZone, date = "short") {
73
+ return formatDate({
74
+ kind: "civil",
75
+ value: parseBookingLocalDate(key)
76
+ }, eventDateOptions({
77
+ siteTimeZone: timeZone,
78
+ timeZone
79
+ }), {
80
+ date,
81
+ weekday: "long"
82
+ });
83
+ }
84
+ function MonthDay(props) {
85
+ const { day, selection } = props;
86
+ const { controls } = selection;
87
+ const selected = day.dateKey === selection.selectedDay;
88
+ return /* @__PURE__ */ jsxs("div", {
89
+ ...listLookSlot(selection, "date"),
90
+ "data-current": String(selected),
91
+ "data-today": String(day.isToday),
92
+ "data-other-month": String(!day.isCurrentMonth),
93
+ children: [selection.arrangement === "month-day" ? /* @__PURE__ */ jsx("button", {
94
+ type: "button",
95
+ ...listLookSlot(selection, "control"),
96
+ "aria-label": `Show events on ${dateLabel(day.dateKey, selection.timeZone, "long")}`,
97
+ "aria-pressed": selected,
98
+ onClick: controls ? () => controls.selectDay(day.dateKey) : void 0,
99
+ children: day.date.day
100
+ }) : /* @__PURE__ */ jsx("span", {
101
+ ...listLookSlot(selection, "date-label"),
102
+ children: day.date.day
103
+ }), selection.arrangement === "month-grid" ? /* @__PURE__ */ jsxs(Fragment, { children: [day.visibleEntries.map(({ event, timeZone }, index, entries) => /* @__PURE__ */ jsx(MonthEvent, {
104
+ presentation: listItemPresentation(selection, index, entries.length),
105
+ event,
106
+ timeZone,
107
+ locale: eventDateOptions({ siteTimeZone: selection.timeZone }).locale
108
+ }, event.occurrenceId ?? event.id)), day.moreCount > 0 ? /* @__PURE__ */ jsxs("button", {
109
+ type: "button",
110
+ className: "event-calendar-more",
111
+ ...listLookSlot(selection, "more"),
112
+ onClick: controls ? () => controls.openDay(day.date, day.entries.map(({ event }) => event)) : void 0,
113
+ children: [
114
+ "+",
115
+ day.moreCount,
116
+ " more"
117
+ ]
118
+ }) : null] }) : /* @__PURE__ */ jsx(MonthDayMarks, {
119
+ count: day.entries.length,
120
+ presentation: selection
121
+ })]
122
+ });
123
+ }
124
+ /** Both Looks and the legacy month grid consume the same per-day model. */
125
+ function MonthLookView(props) {
126
+ const days = props.days.map((date) => buildMonthDay({
127
+ date,
128
+ events: props.eventsByDate.get(formatDateKey(date)) ?? [],
129
+ viewDate: props.viewDate,
130
+ today: props.today,
131
+ calendarTimeZone: props.timeZone
132
+ }));
133
+ const selected = days.find((day) => day.dateKey === props.selectedDay);
134
+ return /* @__PURE__ */ jsxs("div", {
135
+ ...listLookSlot(props, "frame"),
136
+ "data-arrangement": props.arrangement,
137
+ children: [/* @__PURE__ */ jsxs("div", {
138
+ ...listLookSlot(props, "grid"),
139
+ children: [props.dayNames.map((name) => /* @__PURE__ */ jsx("span", {
140
+ ...listLookSlot(props, "group-label"),
141
+ children: name
142
+ }, name)), days.map((day) => /* @__PURE__ */ jsx(MonthDay, {
143
+ day,
144
+ selection: props
145
+ }, day.dateKey))]
146
+ }), props.arrangement === "month-day" ? /* @__PURE__ */ jsxs("section", {
147
+ ...listLookSlot(props, "panel"),
148
+ "aria-live": "polite",
149
+ children: [/* @__PURE__ */ jsx("h3", {
150
+ ...listLookSlot(props, "panel-heading"),
151
+ children: dateLabel(props.selectedDay, props.timeZone)
152
+ }), /* @__PURE__ */ jsx("div", {
153
+ ...listLookSlot(props, "list"),
154
+ children: selected?.entries.length ? selected.entries.map(({ event }, index, entries) => /* @__PURE__ */ jsx(EventItem, {
155
+ ...listItemPresentation(props, index, entries.length),
156
+ event,
157
+ arrangement: "month-day"
158
+ }, event.occurrenceId ?? event.id)) : /* @__PURE__ */ jsx("p", {
159
+ ...listLookSlot(props, "intro"),
160
+ children: props.emptyMessage
161
+ })
162
+ })]
163
+ }) : null]
164
+ });
165
+ }
166
+ function MonthDayMarks({ count, presentation }) {
167
+ if (count === 0) return null;
168
+ return /* @__PURE__ */ jsx("span", {
169
+ ...listLookSlot(presentation, "item-meta"),
170
+ role: "img",
171
+ "aria-label": `${count} ${count === 1 ? "event" : "events"}`,
172
+ children: Array.from({ length: Math.min(count, 3) }, (_, index) => /* @__PURE__ */ jsx("span", {
173
+ ...listLookSlot(presentation, "mark"),
174
+ "aria-hidden": "true"
175
+ }, index))
176
+ });
177
+ }
178
+ function monthSlotParents(arrangement) {
179
+ return {
180
+ frame: null,
181
+ grid: "frame",
182
+ date: "grid",
183
+ panel: "frame",
184
+ list: "panel",
185
+ item: arrangement === "month-grid" ? "date" : "list",
186
+ row: "list",
187
+ "group-label": "grid",
188
+ "item-meta": "date",
189
+ mark: "item-meta"
190
+ };
191
+ }
192
+ //#endregion
193
+ //#region ../blocks/src/system/runtime/nodes/events/shared/CombinedLookFrame.tsx
194
+ /** Recipe markup keeps its existing tree; arrangements carry the selected tab's hooks. */
195
+ function CombinedLookFrame({ look, children }) {
196
+ return look ? /* @__PURE__ */ jsx("div", {
197
+ ...look.hooks,
198
+ children
199
+ }) : /* @__PURE__ */ jsx(Fragment, { children });
200
+ }
201
+ function combinedClassName(look, className) {
202
+ return look ? ["event-combined", className].filter(Boolean).join(" ") : `event-combined ${className || ""}`;
203
+ }
204
+ //#endregion
56
205
  //#region ../blocks/src/system/runtime/nodes/events/shared/AgendaEventCard.tsx
57
206
  /**
58
207
  * AgendaEventCard Component
@@ -300,4 +449,4 @@ function CalendarNavigationChevron({ direction }) {
300
449
  });
301
450
  }
302
451
  //#endregion
303
- export { buildMonthDay as a, CalendarDayHeaders as i, WeekAgendaView as n, resolveMonthSelectedDay as o, AgendaEventCard as r, formatEventLocation as s, CalendarNavigationChevron as t };
452
+ export { combinedClassName as a, CalendarDayHeaders as c, CombinedLookFrame as i, buildMonthDay as l, WeekAgendaView as n, MonthLookView as o, AgendaEventCard as r, monthSlotParents as s, CalendarNavigationChevron as t, resolveMonthSelectedDay as u };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
2
+ import { S as clsx } from "./ThemedButton-BdnEwA38.mjs";
3
3
  import React from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
  //#region ../blocks/src/system/runtime/shared/components/CheckboxChoice.tsx
@@ -1,12 +1,12 @@
1
1
  "use client";
2
- import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-D-RG9eR3.mjs";
3
- import { t as assertNever } from "./src-DjnxOjXG.mjs";
4
- import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
5
- import { t as CheckboxChoice } from "./CheckboxChoice-CZ-anOqV.mjs";
2
+ import { r as verifiedSiteTermsAcceptanceSchema } from "./noop-ByFRHYQ2.mjs";
3
+ import { d as assertNever } from "./bookingQuestionValues-BjcyCru5.mjs";
4
+ import { n as useBlockApi, r as BlockApiError } from "./context-DXmIbXCK.mjs";
5
+ import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
6
+ import { t as CheckboxChoice } from "./CheckboxChoice-W_uiRgDK.mjs";
6
7
  import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
7
8
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
8
- import { n as useBlockApi, r as BlockApiError } from "./context-n6IZigd3.mjs";
9
- import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-BdXu0fj-.mjs";
9
+ import { n as buildPortalCallbackUrl, r as requestDemoPortalMagicLink, t as CUSTOMER_PORTAL_PATH } from "./demoPortalMagicLink-DQXK-Fh6.mjs";
10
10
  import React, { useCallback, useEffect, useId, useMemo, useReducer } from "react";
11
11
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
12
12
  //#region ../core/src/site-terms.ts
@@ -553,7 +553,7 @@ function SiteTermsAgreementField(props) {
553
553
  }),
554
554
  presentation: "tile",
555
555
  label: /* @__PURE__ */ jsxs(Fragment, { children: ["I agree to ", `${view.terms.businessName}'s `] }),
556
- labelLink: /* @__PURE__ */ jsxs(Fragment, { children: [
556
+ labelLink: props.requiredMark === "none" ? link : /* @__PURE__ */ jsxs(Fragment, { children: [
557
557
  link,
558
558
  " ",
559
559
  /* @__PURE__ */ jsx("span", {
@@ -1,36 +1,16 @@
1
1
  "use client";
2
- import { Tt as buildEventCalendarListingRender, Vt as buildEventRuntimeFilters, nn as buildEventListWeek, rn as eventListWeekDays } from "./shop.interactive-BM0NRsFQ.mjs";
3
- import { mn as formatEventHourLabel, vn as groupEventsByDate } from "./wizardSteps-DNpajrAH.mjs";
4
- import { _ as resolveCalendarReadProfile } from "./noop-D-RG9eR3.mjs";
5
- import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, p as MonthLookView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-DzRWikCU.mjs";
2
+ import { Ht as buildEventRuntimeFilters, Tt as buildEventCalendarListingRender, in as eventListWeekDays, rn as buildEventListWeek } from "./shop.interactive-C8OvFY06.mjs";
3
+ import { On as groupEventsByDate, wn as formatEventHourLabel } from "./wizardSteps-CFulHWnT.mjs";
4
+ import { p as resolveCalendarReadProfile } from "./noop-ByFRHYQ2.mjs";
5
+ import { a as CalendarRecurringWeek, i as buildWeekBoardViewProps, n as WeekBoardView, r as buildWeekBoardNavigationState, t as buildTimetableModel } from "./timetableModel-Cko9LRKy.mjs";
6
6
  import { d as formatDateKey, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
7
- import { r as ThemedButton } from "./ThemedButton-8jUc02mZ.mjs";
8
- import { i as CalendarDayHeaders, n as WeekAgendaView, o as resolveMonthSelectedDay, t as CalendarNavigationChevron } from "./CalendarNavigationChevron-5a0x0vcC.mjs";
9
- import { i as useEventCollectionFilters } from "./useEventPagination-Ccr4TZlm.mjs";
10
- import { n as EventListingController } from "./EventListing.client-DZeDM0Qt.mjs";
11
- import { a as CalendarDayCell, c as EventModalProvider, i as useHydrationReady, l as useEventModal, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useCalendarToday } from "./EventCombined.client-jik34zTb.mjs";
12
- import React, { useEffect, useMemo, useState } from "react";
7
+ import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
8
+ import { c as CalendarDayHeaders, n as WeekAgendaView, t as CalendarNavigationChevron, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CNe3ZjdC.mjs";
9
+ import { i as useEventCollectionFilters } from "./useEventPagination-PhTIoFVX.mjs";
10
+ import { n as EventListingController } from "./EventListing.client-CEFTC3jH.mjs";
11
+ import { a as CalendarDayCell, c as MonthLookClient, d as useCalendarToday, i as useHydrationReady, l as EventModalProvider, o as useCalendarEvents, r as EventModals, s as useCalendarViewport, t as EventCombinedClient, u as useEventModal } from "./EventCombined.client-BFVxECTp.mjs";
12
+ import { useEffect, useMemo, useState } from "react";
13
13
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
14
- //#region ../blocks/src/system/runtime/nodes/events/shared/MonthLookClient.tsx
15
- /** Connect the shared month view to calendar selection and the existing day modal. */
16
- function MonthLookClient(props) {
17
- const { openDayModal } = useEventModal();
18
- const [selection, setSelection] = React.useState(null);
19
- const anchor = `${props.viewDate.year}-${props.viewDate.month}`;
20
- const selectedDay = selection?.anchor === anchor ? selection.day : props.selectedDay;
21
- return /* @__PURE__ */ jsx(MonthLookView, {
22
- ...props,
23
- selectedDay,
24
- controls: {
25
- selectDay: (day) => setSelection({
26
- anchor,
27
- day
28
- }),
29
- openDay: (date, events) => openDayModal(date, [...events])
30
- }
31
- });
32
- }
33
- //#endregion
34
14
  //#region ../blocks/src/system/runtime/nodes/events/shared/WeekTimetableView.tsx
35
15
  const WeekTimetableView = ({ viewDate, events, startOfWeek, today, showCapacity, calendarTimeZone, emptyMessage = "No classes scheduled" }) => {
36
16
  const { openEventModal } = useEventModal();
@@ -185,6 +165,7 @@ const EventCalendarClient = ({ render }) => {
185
165
  function EventCalendarCombinedClient({ render }) {
186
166
  const { display, hydration } = render;
187
167
  return /* @__PURE__ */ jsx(EventCombinedClient, {
168
+ combinedLook: display.combinedLook,
188
169
  events: hydration.prefetchedEvents ? [...display.events] : void 0,
189
170
  siteId: hydration.siteId,
190
171
  listLayout: display.listLayout,