@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
@@ -1,6 +1,5 @@
1
1
  "use client";
2
- import { h as ok, m as err, p as parseUuidBrand } from "./surfaceTransportMarker-BXepAVF6.mjs";
3
- import { Ta as runtimeMediaSchema, Tr as arrangementModes } from "./site-styles-DELkUk9s.mjs";
2
+ import { a as mediaIdentifierSchema, d as parseUuidBrand, f as err, n as renderableMediaAssetSchema, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
3
  import { c as addMonths } from "./src-1PJxc8KO.mjs";
5
4
  import { z } from "zod";
6
5
  //#region ../core/src/branded/customers.ts
@@ -1005,25 +1004,250 @@ const SURFACE_EVENT_PRESET_VALUES = [
1005
1004
  "performance"
1006
1005
  ];
1007
1006
  //#endregion
1008
- //#region ../blocks/src/lib/typeGuards.ts
1009
- /**
1010
- * Strict record guard: excludes null, primitives, and arrays.
1011
- */
1007
+ //#region ../core/src/record-guards.ts
1012
1008
  function isRecord(value) {
1013
1009
  return typeof value === "object" && value !== null && !Array.isArray(value);
1014
1010
  }
1015
- /**
1016
- * Non-null object guard: includes arrays for behavior parity with legacy helpers.
1017
- *
1018
- * NOTE: This intentionally narrows to UnknownRecord for compatibility with existing
1019
- * callsites even though arrays pass at runtime. Follow-up cleanup should replace
1020
- * this API with a more precise predicate type and migrate consumers.
1021
- */
1022
- function isObjectRecord(value) {
1023
- return typeof value === "object" && value !== null;
1011
+ //#endregion
1012
+ //#region ../site-contracts/src/siteData/eventQueries.ts
1013
+ const eventSurfacePresetValues = SURFACE_EVENT_PRESET_VALUES;
1014
+ const eventSurfaceScopeValues = [
1015
+ "all",
1016
+ "regularClassSchedule",
1017
+ "specialDatedEvents",
1018
+ "custom"
1019
+ ];
1020
+ const eventScheduleScopeValues = [
1021
+ "any",
1022
+ "recurring",
1023
+ "oneOff"
1024
+ ];
1025
+ /** Runtime picker sentinels and bound loader IDs must describe the same query. */
1026
+ function normalizeCalendarFilterId(value) {
1027
+ const id = value?.trim();
1028
+ return !id || id === "all" ? void 0 : id;
1029
+ }
1030
+ const calendarMonthSchema = z.string().regex(/^\d{4}-(0[1-9]|1[0-2])$/).refine((month) => Number(month.slice(0, 4)) > 0, "Invalid calendar year");
1031
+ function calendarMonthDate(month) {
1032
+ return {
1033
+ year: Number(month.slice(0, 4)),
1034
+ month: Number(month.slice(5, 7)),
1035
+ day: 1
1036
+ };
1037
+ }
1038
+ const monthNumber = (month) => {
1039
+ const date = calendarMonthDate(month);
1040
+ return date.year * 12 + date.month - 1;
1041
+ };
1042
+ const calendarMonthWindowSchema = z.object({
1043
+ startMonth: calendarMonthSchema,
1044
+ endMonthExclusive: calendarMonthSchema
1045
+ }).refine((window) => {
1046
+ const width = monthNumber(window.endMonthExclusive) - monthNumber(window.startMonth);
1047
+ return width > 0 && width <= 3;
1048
+ }, "Calendar windows must cover one to three months");
1049
+ const calendarWindowQuerySchema = z.object({
1050
+ startMonth: calendarMonthSchema.optional(),
1051
+ endMonthExclusive: calendarMonthSchema.optional(),
1052
+ afterStartsAt: z.string().datetime({ offset: true }).optional(),
1053
+ afterId: z.string().uuid().optional(),
1054
+ limit: z.coerce.number().int().min(1).max(200).default(100),
1055
+ stage: z.enum(["published", "preview"]).default("published"),
1056
+ readProfile: z.enum(["listing-card", "timetable"]).optional(),
1057
+ eventSurface: z.enum(eventSurfaceScopeValues).optional(),
1058
+ eventPresets: z.string().optional(),
1059
+ scheduleScope: z.enum(eventScheduleScopeValues).optional(),
1060
+ seriesIds: z.string().optional(),
1061
+ categoryIds: z.string().optional(),
1062
+ venueId: z.string().transform(normalizeCalendarFilterId).optional(),
1063
+ staffMemberId: z.string().transform(normalizeCalendarFilterId).optional()
1064
+ }).superRefine((query, ctx) => {
1065
+ if (Boolean(query.startMonth) !== Boolean(query.endMonthExclusive)) ctx.addIssue({
1066
+ code: "custom",
1067
+ message: "Both month bounds are required"
1068
+ });
1069
+ if (query.startMonth && query.endMonthExclusive && !calendarMonthWindowSchema.safeParse(query).success) ctx.addIssue({
1070
+ code: "custom",
1071
+ message: "Invalid calendar window"
1072
+ });
1073
+ if (Boolean(query.afterStartsAt) !== Boolean(query.afterId)) ctx.addIssue({
1074
+ code: "custom",
1075
+ message: "Both cursor fields are required"
1076
+ });
1077
+ if (query.afterStartsAt && !query.startMonth) ctx.addIssue({
1078
+ code: "custom",
1079
+ message: "A continuation requires explicit month bounds"
1080
+ });
1081
+ });
1082
+ const calendarSourceCursorSchema = z.object({
1083
+ startsAt: z.string().datetime({ offset: true }),
1084
+ occurrenceId: z.string().uuid()
1085
+ });
1086
+ z.discriminatedUnion("kind", [z.object({ kind: z.literal("complete") }), z.object({
1087
+ kind: z.literal("partial"),
1088
+ nextCursor: calendarSourceCursorSchema
1089
+ })]);
1090
+ const publicEventLoaderQuerySchemaShape = {
1091
+ limit: z.string().optional(),
1092
+ from: z.string().optional(),
1093
+ to: z.string().optional(),
1094
+ afterStartsAt: z.string().optional(),
1095
+ afterId: z.string().optional(),
1096
+ categoryIds: z.string().optional(),
1097
+ venueId: z.string().optional(),
1098
+ staffMemberId: z.string().optional(),
1099
+ eventSurface: z.string().optional(),
1100
+ eventPresets: z.string().optional(),
1101
+ scheduleScope: z.string().optional(),
1102
+ seriesId: z.string().optional(),
1103
+ seriesIds: z.string().optional(),
1104
+ runSeriesId: z.string().optional(),
1105
+ seriesSlug: z.string().optional(),
1106
+ occurrenceIds: z.string().max(4e3).optional(),
1107
+ includeOccurrenceId: z.string().optional(),
1108
+ readIntent: z.string().optional(),
1109
+ detailAdmission: z.string().optional(),
1110
+ detailLevel: z.string().optional(),
1111
+ readProfile: z.string().optional()
1112
+ };
1113
+ z.object(publicEventLoaderQuerySchemaShape);
1114
+ //#endregion
1115
+ //#region ../site-contracts/src/siteData/eventVocabulary.ts
1116
+ const eventCalendarDisplayModeValues = [
1117
+ "combined",
1118
+ "calendar",
1119
+ "list",
1120
+ "timetable",
1121
+ "week-board",
1122
+ "week"
1123
+ ];
1124
+ const eventCalendarDefaultViewValues = ["month", "week"];
1125
+ const eventCalendarListLayoutValues = [
1126
+ "stack",
1127
+ "grid",
1128
+ "compact"
1129
+ ];
1130
+ const eventCalendarListLayoutCompatibleDisplayModeValues = ["combined", "list"];
1131
+ //#endregion
1132
+ //#region ../commerce/src/purchase/settlement.ts
1133
+ function normalizeCurrencyCode(raw) {
1134
+ const normalized = raw.trim().toUpperCase();
1135
+ if (!/^[A-Z]{3}$/.test(normalized)) throw new Error(`Invalid currency code: ${raw}`);
1136
+ return normalized;
1137
+ }
1138
+ //#endregion
1139
+ //#region ../media-core/src/mediaKinds.ts
1140
+ const mediaTypeDiscriminants = [
1141
+ "image",
1142
+ "video",
1143
+ "audio",
1144
+ "document",
1145
+ "spreadsheet",
1146
+ "archive"
1147
+ ];
1148
+ const DISPLAY_MEDIA_KINDS = [
1149
+ "image",
1150
+ "video",
1151
+ "audio"
1152
+ ];
1153
+ const PUBLIC_FILE_FIELD_KINDS = [
1154
+ "document",
1155
+ "spreadsheet",
1156
+ "archive",
1157
+ "audio"
1158
+ ];
1159
+ function isDisplayMediaKind(kind) {
1160
+ return DISPLAY_MEDIA_KINDS.includes(kind);
1024
1161
  }
1025
1162
  //#endregion
1026
- //#region ../blocks/src/system/manifest/richTextSchema.ts
1163
+ //#region ../media-core/src/media.ts
1164
+ const hotspotSchema = z.object({
1165
+ x: z.number().min(0).max(1),
1166
+ y: z.number().min(0).max(1),
1167
+ radius: z.number().optional()
1168
+ });
1169
+ const rotationSchema = z.union([
1170
+ z.literal(0),
1171
+ z.literal(90),
1172
+ z.literal(180),
1173
+ z.literal(270)
1174
+ ]);
1175
+ const rectSchema = z.tuple([
1176
+ z.number(),
1177
+ z.number(),
1178
+ z.number(),
1179
+ z.number()
1180
+ ]);
1181
+ const aspectCropSchema = z.object({
1182
+ aspect: z.preprocess((value) => value == null ? void 0 : value, z.string().optional()),
1183
+ rect: z.preprocess((value) => value == null ? void 0 : value, rectSchema.optional()),
1184
+ hotspot: z.preprocess((value) => value == null ? void 0 : value, hotspotSchema.optional()),
1185
+ rotation: z.preprocess((value) => value == null ? void 0 : value, rotationSchema.optional())
1186
+ });
1187
+ const transformSchema = z.object({
1188
+ aspectCrops: z.preprocess((value) => {
1189
+ if (!value || typeof value !== "object" || Array.isArray(value)) return;
1190
+ return value;
1191
+ }, z.record(z.string(), aspectCropSchema.catch({}))).optional(),
1192
+ rect: rectSchema.optional(),
1193
+ hotspot: hotspotSchema.optional(),
1194
+ rotation: rotationSchema.optional()
1195
+ });
1196
+ const mediaPosterSchema = z.discriminatedUnion("tag", [z.object({
1197
+ tag: z.literal("media"),
1198
+ identifier: mediaIdentifierSchema
1199
+ }).strict(), z.object({
1200
+ tag: z.literal("external-src"),
1201
+ src: z.string().url()
1202
+ }).strict()]);
1203
+ const mediaUsageShape = {
1204
+ purpose: z.string().optional(),
1205
+ placeholder: z.boolean().default(true).optional(),
1206
+ alt: z.string().optional(),
1207
+ filename: z.string().optional(),
1208
+ width: z.number().optional(),
1209
+ height: z.number().optional(),
1210
+ poster: mediaPosterSchema.optional(),
1211
+ transform: transformSchema.optional()
1212
+ };
1213
+ const environmentExclusions = {
1214
+ assetId: z.never().optional(),
1215
+ id: z.never().optional(),
1216
+ src: z.never().optional(),
1217
+ storageBucket: z.never().optional(),
1218
+ storagePath: z.never().optional(),
1219
+ mimeType: z.never().optional()
1220
+ };
1221
+ const mediaBaseSchema = z.object({
1222
+ ...mediaUsageShape,
1223
+ ...environmentExclusions,
1224
+ identifier: mediaIdentifierSchema
1225
+ }).strict();
1226
+ const imageMediaSchema = mediaBaseSchema.extend({ type: z.literal("image") });
1227
+ const videoMediaSchema = mediaBaseSchema.extend({ type: z.literal("video") });
1228
+ const mediaSchema = mediaBaseSchema.extend({ type: z.enum(mediaTypeDiscriminants) });
1229
+ const persistableMediaSchema = mediaSchema;
1230
+ const externalMediaSchema = z.object({
1231
+ ...mediaUsageShape,
1232
+ ...environmentExclusions,
1233
+ type: z.enum(mediaTypeDiscriminants),
1234
+ src: z.string().min(1),
1235
+ identifier: z.never().optional()
1236
+ }).strict();
1237
+ const assetMediaSchema = z.object({
1238
+ ...mediaUsageShape,
1239
+ ...environmentExclusions,
1240
+ type: z.enum(mediaTypeDiscriminants),
1241
+ asset: renderableMediaAssetSchema,
1242
+ identifier: z.never().optional()
1243
+ }).strict();
1244
+ const runtimeMediaSchema = z.union([
1245
+ mediaSchema,
1246
+ externalMediaSchema,
1247
+ assetMediaSchema
1248
+ ]);
1249
+ //#endregion
1250
+ //#region ../core/src/rich-text-schema.ts
1027
1251
  /**
1028
1252
  * Shared Rich Text Schema
1029
1253
  *
@@ -1102,6 +1326,144 @@ function isRichTextDoc(value) {
1102
1326
  return RichTextDocSchema.safeParse(value).success;
1103
1327
  }
1104
1328
  //#endregion
1329
+ //#region ../blocks/src/system/runtime/api/schemas/bookingQuestions.ts
1330
+ const optionSchema = z.object({
1331
+ value: z.string(),
1332
+ label: z.string()
1333
+ });
1334
+ /** Everything a scalar question may carry besides its identity; all of it is optional. */
1335
+ const scalarFieldDetails = z.object({
1336
+ required: z.boolean(),
1337
+ placeholder: z.string(),
1338
+ helpText: z.string(),
1339
+ options: z.array(optionSchema),
1340
+ multiple: z.boolean(),
1341
+ minLength: z.number(),
1342
+ maxLength: z.number(),
1343
+ pattern: z.string(),
1344
+ min: z.number(),
1345
+ max: z.number()
1346
+ }).partial();
1347
+ const scalarFieldSchema = z.object({
1348
+ id: z.string().min(1),
1349
+ label: z.string(),
1350
+ type: z.enum([
1351
+ "text",
1352
+ "email",
1353
+ "textarea",
1354
+ "select",
1355
+ "radio",
1356
+ "checkbox",
1357
+ "tel",
1358
+ "url",
1359
+ "number",
1360
+ "date",
1361
+ "time"
1362
+ ]),
1363
+ ...scalarFieldDetails.shape
1364
+ });
1365
+ const documentFieldSchema = z.object({
1366
+ id: z.string().min(1),
1367
+ label: z.string(),
1368
+ type: z.literal("document_upload"),
1369
+ required: z.boolean().optional(),
1370
+ placeholder: z.string().optional(),
1371
+ helpText: z.string().optional(),
1372
+ allowedFileTypes: z.array(z.enum([
1373
+ "pdf",
1374
+ "image",
1375
+ "docx"
1376
+ ])),
1377
+ maxBytes: z.number()
1378
+ });
1379
+ const fieldSchema = z.union([scalarFieldSchema, documentFieldSchema]);
1380
+ const sectionSchema = z.object({
1381
+ id: z.string(),
1382
+ title: z.string(),
1383
+ description: z.string().optional(),
1384
+ items: z.array(fieldSchema)
1385
+ });
1386
+ /** One answer as a booking flow holds it; also what drafts kept across a sign-in or payment return parse. */
1387
+ const bookingQuestionsAnswerValueSchema = z.union([
1388
+ z.string(),
1389
+ z.number(),
1390
+ z.boolean(),
1391
+ z.null(),
1392
+ z.array(z.string()),
1393
+ z.object({
1394
+ kind: z.literal("document_upload"),
1395
+ fileName: z.string(),
1396
+ mimeType: z.string(),
1397
+ bytes: z.number(),
1398
+ uploadId: z.string().optional()
1399
+ })
1400
+ ]);
1401
+ const setSchema = z.object({
1402
+ requirementId: z.string().min(1),
1403
+ title: z.string(),
1404
+ sections: z.array(sectionSchema)
1405
+ });
1406
+ z.array(sectionSchema);
1407
+ const bookingQuestionAnswersSchema = z.record(z.string(), bookingQuestionsAnswerValueSchema);
1408
+ /** The presentation a public catalogue or the authenticated read hands the booking flows. */
1409
+ const beforeBookingQuestionsPresentationSchema = z.discriminatedUnion("kind", [
1410
+ z.object({ kind: z.literal("none") }),
1411
+ z.object({
1412
+ kind: z.literal("unavailable"),
1413
+ message: z.string()
1414
+ }),
1415
+ z.object({
1416
+ kind: z.literal("ask"),
1417
+ set: setSchema,
1418
+ signIn: z.enum(["offered", "not_offered"])
1419
+ }),
1420
+ z.object({
1421
+ kind: z.literal("prefill"),
1422
+ set: setSchema,
1423
+ answers: bookingQuestionAnswersSchema
1424
+ }),
1425
+ z.object({
1426
+ kind: z.literal("already_answered"),
1427
+ set: setSchema,
1428
+ answers: bookingQuestionAnswersSchema
1429
+ })
1430
+ ]);
1431
+ //#endregion
1432
+ //#region ../blocks/src/system/blocks/shared/bookingConsent.ts
1433
+ const BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX = "booking_requirement_consent_";
1434
+ function toBookingRequirementConsentFieldId(requirementId) {
1435
+ return `${BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX}${requirementId}`;
1436
+ }
1437
+ function isBookingRequirementConsentFieldId(value) {
1438
+ return value.startsWith(BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX);
1439
+ }
1440
+ function toBookingRequirementConsentField(consent) {
1441
+ return {
1442
+ id: toBookingRequirementConsentFieldId(consent.requirementId),
1443
+ label: consent.title,
1444
+ type: "booking_requirement_consent",
1445
+ required: true,
1446
+ agreement: consent.agreement,
1447
+ checkboxLabel: consent.checkboxLabel
1448
+ };
1449
+ }
1450
+ const blockBookingConsentSchema = z.object({
1451
+ requirementId: z.string(),
1452
+ title: z.string(),
1453
+ agreement: RichTextDocSchema,
1454
+ checkboxLabel: z.string()
1455
+ });
1456
+ const bookingRequirementConsentFieldSchema = z.object({
1457
+ id: z.string(),
1458
+ label: z.string(),
1459
+ type: z.literal("booking_requirement_consent"),
1460
+ required: z.literal(true),
1461
+ agreement: RichTextDocSchema,
1462
+ checkboxLabel: z.string().min(1)
1463
+ });
1464
+ /** The two live public carriers for consent copy: Event data and appointment fields. */
1465
+ const bookingConsentCarrierSchema = z.union([blockBookingConsentSchema, bookingRequirementConsentFieldSchema]);
1466
+ //#endregion
1105
1467
  //#region ../core/src/booking-payment-schemas.ts
1106
1468
  const bookingCourseInstalmentDeadlineSchema = z.enum(BOOKING_COURSE_INSTALMENT_DEADLINES);
1107
1469
  const stripObject = (shape) => z.object(shape);
@@ -1222,66 +1584,7 @@ z.strictObject({
1222
1584
  //#region ../blocks/src/system/blocks/shared/bookingPaymentTerms.ts
1223
1585
  const blockBookingPaymentTermsSchema = bookingPaymentTermsSchema;
1224
1586
  //#endregion
1225
- //#region ../blocks/src/system/blocks/shared/bookingConsent.ts
1226
- const BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX = "booking_requirement_consent_";
1227
- function toBookingRequirementConsentFieldId(requirementId) {
1228
- return `${BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX}${requirementId}`;
1229
- }
1230
- function isBookingRequirementConsentFieldId(value) {
1231
- return value.startsWith(BOOKING_REQUIREMENT_CONSENT_FIELD_PREFIX);
1232
- }
1233
- function toBookingRequirementConsentField(consent) {
1234
- return {
1235
- id: toBookingRequirementConsentFieldId(consent.requirementId),
1236
- label: consent.title,
1237
- type: "booking_requirement_consent",
1238
- required: true,
1239
- agreement: consent.agreement,
1240
- checkboxLabel: consent.checkboxLabel
1241
- };
1242
- }
1243
- const blockBookingConsentSchema = z.object({
1244
- requirementId: z.string(),
1245
- title: z.string(),
1246
- agreement: RichTextDocSchema,
1247
- checkboxLabel: z.string()
1248
- });
1249
- const bookingRequirementConsentFieldSchema = z.object({
1250
- id: z.string(),
1251
- label: z.string(),
1252
- type: z.literal("booking_requirement_consent"),
1253
- required: z.literal(true),
1254
- agreement: RichTextDocSchema,
1255
- checkboxLabel: z.string().min(1)
1256
- });
1257
- /** The two live public carriers for consent copy: Event data and appointment fields. */
1258
- const bookingConsentCarrierSchema = z.union([blockBookingConsentSchema, bookingRequirementConsentFieldSchema]);
1259
- //#endregion
1260
1587
  //#region ../blocks/src/system/blocks/events/shared/schemas.ts
1261
- const publicEventLoaderQuerySchemaShape = {
1262
- limit: z.string().optional(),
1263
- from: z.string().optional(),
1264
- to: z.string().optional(),
1265
- afterStartsAt: z.string().optional(),
1266
- afterId: z.string().optional(),
1267
- categoryIds: z.string().optional(),
1268
- venueId: z.string().optional(),
1269
- staffMemberId: z.string().optional(),
1270
- eventSurface: z.string().optional(),
1271
- eventPresets: z.string().optional(),
1272
- scheduleScope: z.string().optional(),
1273
- seriesId: z.string().optional(),
1274
- seriesIds: z.string().optional(),
1275
- runSeriesId: z.string().optional(),
1276
- seriesSlug: z.string().optional(),
1277
- occurrenceIds: z.string().max(4e3).optional(),
1278
- includeOccurrenceId: z.string().optional(),
1279
- readIntent: z.string().optional(),
1280
- detailAdmission: z.string().optional(),
1281
- detailLevel: z.string().optional(),
1282
- readProfile: z.string().optional()
1283
- };
1284
- z.object(publicEventLoaderQuerySchemaShape);
1285
1588
  const eventPresetSchema = z.enum([
1286
1589
  "event",
1287
1590
  "class",
@@ -1319,6 +1622,8 @@ const publicEventDestinationSchema = z.discriminatedUnion("kind", [z.object({
1319
1622
  * Zod schema for venue data
1320
1623
  */
1321
1624
  const eventVenueSchema = z.object({
1625
+ area: z.string().nullable().optional(),
1626
+ addressWithBooking: z.boolean().optional(),
1322
1627
  drawing: z.lazy(() => mapDrawingSchema).optional().catch(void 0),
1323
1628
  id: z.string(),
1324
1629
  name: z.string(),
@@ -1543,6 +1848,7 @@ const publicEventBaseSchema = z.object({
1543
1848
  }) }),
1544
1849
  asksSiteTerms: z.boolean(),
1545
1850
  consent: blockBookingConsentSchema.nullable(),
1851
+ bookingQuestions: beforeBookingQuestionsPresentationSchema,
1546
1852
  accessRestriction: accessRestrictionSchema,
1547
1853
  allowedCategoryIds: z.array(z.string()),
1548
1854
  requireGuestDetails: z.boolean().optional(),
@@ -1567,70 +1873,65 @@ const publicEventSchema = z.union([publicEventBaseSchema.extend({
1567
1873
  */
1568
1874
  const publicEventsArraySchema = z.array(publicEventSchema);
1569
1875
  //#endregion
1570
- //#region ../blocks/src/system/helpers/normalizeIds.ts
1571
- function normalizeIdList(parts) {
1572
- const seen = /* @__PURE__ */ new Set();
1573
- const normalized = [];
1574
- for (const part of parts) {
1575
- const trimmed = part.trim();
1576
- if (!trimmed || seen.has(trimmed)) continue;
1577
- seen.add(trimmed);
1578
- normalized.push(trimmed);
1579
- }
1580
- return normalized.sort();
1876
+ //#region ../site-contracts/src/identity/presentationVocabulary.ts
1877
+ const arrangementModes = [
1878
+ "list",
1879
+ "calendar",
1880
+ "week",
1881
+ "combined"
1882
+ ];
1883
+ function isArrangementMode(value) {
1884
+ return value === "list" || value === "calendar" || value === "week" || value === "combined";
1581
1885
  }
1582
- //#endregion
1583
- //#region ../blocks/src/system/blocks/events/shared/filtering.ts
1584
- const eventSurfacePresetValues = SURFACE_EVENT_PRESET_VALUES;
1585
- const eventSurfaceScopeValues = [
1586
- "all",
1587
- "regularClassSchedule",
1588
- "specialDatedEvents",
1589
- "custom"
1886
+ const tileTreatmentValues = [
1887
+ "default",
1888
+ "quiet",
1889
+ "brand-depth"
1590
1890
  ];
1591
- const eventScheduleScopeValues = [
1592
- "any",
1593
- "recurring",
1594
- "oneOff"
1891
+ const eventListTreatmentValues = [
1892
+ "plain",
1893
+ "lined-panel",
1894
+ "ruled-register",
1895
+ "editorial-register",
1896
+ "dense-index"
1897
+ ];
1898
+ const eyebrowTreatmentValues = [
1899
+ "plain",
1900
+ "accent",
1901
+ "pill",
1902
+ "accent-pill",
1903
+ "pill-bounce",
1904
+ "accent-pill-bounce"
1905
+ ];
1906
+ const visibleHeadingDecorationFamilyValues = ["organic-squiggle", "short-center-rule"];
1907
+ const headingDecorationOverrideValues = ["site-default", "off"];
1908
+ const headingDecorationColorTokenValues = [
1909
+ "text",
1910
+ "primary",
1911
+ "secondary",
1912
+ "accent",
1913
+ "border",
1914
+ "muted"
1915
+ ];
1916
+ const accordionIconSetValues = [
1917
+ "plus",
1918
+ "chevron",
1919
+ "caret",
1920
+ "minimal-cross"
1921
+ ];
1922
+ const accordionIconColorTokenValues = [
1923
+ "text",
1924
+ "muted",
1925
+ "primary",
1926
+ "secondary",
1927
+ "accent",
1928
+ "current"
1929
+ ];
1930
+ const accordionIconMotionValues = [
1931
+ "none",
1932
+ "rotate",
1933
+ "swap"
1595
1934
  ];
1596
- const unsafeAsEventCategoryId = (value) => value;
1597
- const unsafeAsVenueId = (value) => value;
1598
- function normalizeEventSurfaceScope(value) {
1599
- return value === "regularClassSchedule" || value === "specialDatedEvents" || value === "custom" ? value : "all";
1600
- }
1601
- function normalizeEventScheduleScope(value) {
1602
- return value === "recurring" || value === "oneOff" ? value : "any";
1603
- }
1604
- function isEventSurfacePreset(value) {
1605
- return eventSurfacePresetValues.some((preset) => preset === value);
1606
- }
1607
- function normalizeEventSurfacePresets(value) {
1608
- const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((entry) => typeof entry === "string").map((entry) => entry.trim()).filter(isEventSurfacePreset);
1609
- return Array.from(new Set(normalized));
1610
- }
1611
- function normalizeEventSurfacePresetsCsv(value) {
1612
- const normalized = normalizeEventSurfacePresets(value);
1613
- return normalized.length > 0 ? normalized.join(",") : null;
1614
- }
1615
- function normalizeEventCategoryIds(value) {
1616
- if (Array.isArray(value)) return normalizeIdList(value.filter((entry) => typeof entry === "string")).map(unsafeAsEventCategoryId);
1617
- if (typeof value === "string") return normalizeIdList(value.split(",")).map(unsafeAsEventCategoryId);
1618
- return [];
1619
- }
1620
- function normalizeEventCategoryIdsCsv(value) {
1621
- const normalized = normalizeEventCategoryIds(value);
1622
- return normalized.length > 0 ? normalized.join(",") : null;
1623
- }
1624
- function normalizeEventVenueId(value) {
1625
- if (typeof value !== "string") return null;
1626
- const trimmed = value.trim();
1627
- return trimmed ? unsafeAsVenueId(trimmed) : null;
1628
- }
1629
- function normalizeEventStaffMemberId(value) {
1630
- if (typeof value !== "string") return null;
1631
- const trimmed = value.trim();
1632
- return trimmed ? trimmed : null;
1633
- }
1634
1935
  //#endregion
1635
1936
  //#region ../blocks/src/system/constants/events.ts
1636
1937
  /**
@@ -1638,22 +1939,9 @@ function normalizeEventStaffMemberId(value) {
1638
1939
  *
1639
1940
  * Shared constants for event content types and booking system integration.
1640
1941
  */
1641
- const eventCalendarDisplayModeValues = [
1642
- "combined",
1643
- "calendar",
1644
- "list",
1645
- "timetable",
1646
- "week-board",
1647
- "week"
1648
- ];
1649
- const eventCalendarDefaultViewValues = ["month", "week"];
1650
- const eventCalendarListLayoutValues = [
1651
- "stack",
1652
- "grid",
1653
- "compact"
1654
- ];
1655
1942
  const arrangementOnlyListLayouts = [
1656
1943
  "ledger",
1944
+ "timetable-rows",
1657
1945
  "day-groups",
1658
1946
  "week-columns"
1659
1947
  ];
@@ -1672,7 +1960,6 @@ const eventCalendarListLayoutOptions = [
1672
1960
  label: "Compact"
1673
1961
  }
1674
1962
  ];
1675
- const eventCalendarListLayoutCompatibleDisplayModeValues = ["combined", "list"];
1676
1963
  function isEventCalendarDisplayMode(value) {
1677
1964
  return typeof value === "string" && eventCalendarDisplayModeValues.includes(value);
1678
1965
  }
@@ -1753,66 +2040,9 @@ function eventCalendarListGroupingDecision(input) {
1753
2040
  function resolveCalendarReadProfile(content) {
1754
2041
  return resolveEventCalendarReadPlan(content).readProfile;
1755
2042
  }
1756
- /** Runtime picker sentinels and bound loader IDs must describe the same query. */
1757
- function normalizeCalendarFilterId(value) {
1758
- const id = value?.trim();
1759
- return !id || id === "all" ? void 0 : id;
1760
- }
1761
- const calendarMonthSchema = z.string().regex(/^\d{4}-(0[1-9]|1[0-2])$/).refine((month) => Number(month.slice(0, 4)) > 0, "Invalid calendar year");
1762
- function calendarMonthDate(month) {
1763
- return {
1764
- year: Number(month.slice(0, 4)),
1765
- month: Number(month.slice(5, 7)),
1766
- day: 1
1767
- };
1768
- }
1769
2043
  function calendarMonthKey(date) {
1770
2044
  return `${String(date.year).padStart(4, "0")}-${String(date.month).padStart(2, "0")}`;
1771
2045
  }
1772
- const monthNumber = (month) => {
1773
- const date = calendarMonthDate(month);
1774
- return date.year * 12 + date.month - 1;
1775
- };
1776
- const calendarMonthWindowSchema = z.object({
1777
- startMonth: calendarMonthSchema,
1778
- endMonthExclusive: calendarMonthSchema
1779
- }).refine((window) => {
1780
- const width = monthNumber(window.endMonthExclusive) - monthNumber(window.startMonth);
1781
- return width > 0 && width <= 3;
1782
- }, "Calendar windows must cover one to three months");
1783
- const calendarWindowQuerySchema = z.object({
1784
- startMonth: calendarMonthSchema.optional(),
1785
- endMonthExclusive: calendarMonthSchema.optional(),
1786
- afterStartsAt: z.string().datetime({ offset: true }).optional(),
1787
- afterId: z.string().uuid().optional(),
1788
- limit: z.coerce.number().int().min(1).max(200).default(100),
1789
- stage: z.enum(["published", "preview"]).default("published"),
1790
- readProfile: z.enum(["listing-card", "timetable"]).optional(),
1791
- eventSurface: z.enum(eventSurfaceScopeValues).optional(),
1792
- eventPresets: z.string().optional(),
1793
- scheduleScope: z.enum(eventScheduleScopeValues).optional(),
1794
- seriesIds: z.string().optional(),
1795
- categoryIds: z.string().optional(),
1796
- venueId: z.string().transform(normalizeCalendarFilterId).optional(),
1797
- staffMemberId: z.string().transform(normalizeCalendarFilterId).optional()
1798
- }).superRefine((query, ctx) => {
1799
- if (Boolean(query.startMonth) !== Boolean(query.endMonthExclusive)) ctx.addIssue({
1800
- code: "custom",
1801
- message: "Both month bounds are required"
1802
- });
1803
- if (query.startMonth && query.endMonthExclusive && !calendarMonthWindowSchema.safeParse(query).success) ctx.addIssue({
1804
- code: "custom",
1805
- message: "Invalid calendar window"
1806
- });
1807
- if (Boolean(query.afterStartsAt) !== Boolean(query.afterId)) ctx.addIssue({
1808
- code: "custom",
1809
- message: "Both cursor fields are required"
1810
- });
1811
- if (query.afterStartsAt && !query.startMonth) ctx.addIssue({
1812
- code: "custom",
1813
- message: "A continuation requires explicit month bounds"
1814
- });
1815
- });
1816
2046
  function normalizedCsv(value) {
1817
2047
  return [...new Set((value ?? "").split(",").map((part) => part.trim()).filter(Boolean))].sort().join(",");
1818
2048
  }
@@ -1851,14 +2081,6 @@ function calendarWindowBounds(window, timeZone) {
1851
2081
  endExclusive: end.startAt.toISOString()
1852
2082
  };
1853
2083
  }
1854
- const calendarSourceCursorSchema = z.object({
1855
- startsAt: z.string().datetime({ offset: true }),
1856
- occurrenceId: z.string().uuid()
1857
- });
1858
- z.discriminatedUnion("kind", [z.object({ kind: z.literal("complete") }), z.object({
1859
- kind: z.literal("partial"),
1860
- nextCursor: calendarSourceCursorSchema
1861
- })]);
1862
2084
  const pageFields = {
1863
2085
  scope: z.object({
1864
2086
  key: z.string(),
@@ -1902,281 +2124,24 @@ function planCalendarMonthRanges(months) {
1902
2124
  return ranges;
1903
2125
  }
1904
2126
  //#endregion
1905
- //#region ../commerce/src/purchase/settlement.ts
1906
- function normalizeCurrencyCode(raw) {
1907
- const normalized = raw.trim().toUpperCase();
1908
- if (!/^[A-Z]{3}$/.test(normalized)) throw new Error(`Invalid currency code: ${raw}`);
1909
- return normalized;
1910
- }
1911
- //#endregion
1912
- //#region ../commerce/src/purchase/confirmationPaymentSchema.ts
1913
- const settledBalanceSchema = z.strictObject({ kind: z.literal("settled") });
1914
- const dueBalanceSchema = z.strictObject({
1915
- kind: z.literal("due"),
1916
- amountCents: z.number().int().positive().transform((value, ctx) => {
1917
- const cents = parsePositiveCents(value);
1918
- if (cents.ok) return cents.value;
1919
- ctx.addIssue({
1920
- code: "custom",
1921
- message: "Expected positive whole cents"
1922
- });
1923
- return z.NEVER;
1924
- }),
1925
- dueAt: z.string().nullable()
1926
- });
1927
- const paymentBalanceSchema = z.discriminatedUnion("kind", [settledBalanceSchema, dueBalanceSchema]);
1928
- const currencySchema = z.string().regex(/^[A-Z]{3}$/).transform(normalizeCurrencyCode);
1929
- const moneyFields = {
1930
- amountPaidCents: z.number().int().nonnegative().transform(toNonNegativeCents),
1931
- currency: currencySchema
1932
- };
1933
- const confirmationPaymentSchema = z.discriminatedUnion("kind", [
1934
- z.strictObject({
1935
- kind: z.literal("free"),
1936
- balance: settledBalanceSchema
1937
- }),
1938
- z.strictObject({
1939
- kind: z.literal("waived"),
1940
- balance: settledBalanceSchema
1941
- }),
1942
- z.strictObject({
1943
- kind: z.literal("pass"),
1944
- passName: z.string().nullable(),
1945
- passCreditsUsed: z.number().int().positive().nullable(),
1946
- balance: settledBalanceSchema
1947
- }),
1948
- z.strictObject({
1949
- kind: z.literal("membership"),
1950
- membershipName: z.string().nullable(),
1951
- balance: settledBalanceSchema
1952
- }),
1953
- z.strictObject({
1954
- kind: z.literal("manual_due"),
1955
- currency: currencySchema,
1956
- balance: dueBalanceSchema
1957
- }),
1958
- z.strictObject({
1959
- kind: z.literal("managed_balance_due"),
1960
- ...moneyFields,
1961
- balance: dueBalanceSchema
1962
- }),
1963
- z.strictObject({
1964
- kind: z.literal("monetary"),
1965
- ...moneyFields,
1966
- paymentMethod: z.enum([
1967
- "stripe",
1968
- "store_credit",
1969
- "mixed",
1970
- "manual"
1971
- ]),
1972
- balance: paymentBalanceSchema
1973
- })
1974
- ]);
1975
- //#endregion
1976
- //#region ../blocks/src/system/runtime/api/schemas/events.ts
1977
- const uuid = z.string().uuid();
1978
- const eventRegistrationStatusReferenceSchema = z.discriminatedUnion("scope", [z.object({
1979
- scope: z.literal("occurrence"),
1980
- attendeeId: uuid
1981
- }).strict(), z.object({
1982
- scope: z.literal("wholeSeries"),
1983
- registrationId: uuid
1984
- }).strict()]);
1985
- const eventRegistrationPaymentSubjectSchema = z.discriminatedUnion("scope", [z.object({
1986
- scope: z.literal("occurrence"),
1987
- submissionId: uuid,
1988
- attendeeId: uuid
1989
- }).strict(), z.object({
1990
- scope: z.literal("wholeSeries"),
1991
- submissionId: uuid
1992
- }).strict()]);
1993
- const identityFields = {
1994
- submissionId: uuid,
1995
- seriesId: uuid,
1996
- attendanceMode: z.enum(["in_person", "online"])
1997
- };
1998
- const confirmedBookingIdentitySchema = z.discriminatedUnion("scope", [z.object({
1999
- scope: z.literal("occurrence"),
2000
- attendeeId: uuid,
2001
- occurrenceId: uuid,
2002
- ...identityFields
2003
- }).strict(), z.object({
2004
- scope: z.literal("wholeSeries"),
2005
- registrationId: uuid,
2006
- ...identityFields
2007
- }).strict()]);
2008
- const bookedTicketLineSchema = z.object({
2009
- label: z.string().min(1),
2010
- quantity: z.number().int().positive()
2011
- }).strict();
2012
- const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
2013
- kind: z.literal("detailsAvailable"),
2014
- identity: confirmedBookingIdentitySchema,
2015
- ticketLines: z.tuple([bookedTicketLineSchema]).rest(bookedTicketLineSchema).readonly(),
2016
- payment: confirmationPaymentSchema
2017
- }).strict(), z.object({
2018
- kind: z.literal("detailsUnavailable"),
2019
- identity: confirmedBookingIdentitySchema
2020
- }).strict()]);
2021
- const eventEmbeddedCheckoutSchema = z.object({
2022
- kind: z.literal("embedded"),
2023
- sessionId: z.string().min(1),
2024
- clientSecret: z.string().min(1),
2025
- livemode: z.boolean(),
2026
- expiresAt: z.string().datetime({ offset: true }),
2027
- browser: z.discriminatedUnion("kind", [z.object({
2028
- kind: z.literal("connect"),
2029
- publishableKey: z.string().min(1),
2030
- accountId: z.string().min(1)
2031
- }).strict(), z.object({
2032
- kind: z.literal("direct"),
2033
- publishableKey: z.string().min(1)
2034
- }).strict()])
2035
- }).strict();
2036
- const decorations = {
2037
- mailingListSignupNote: z.enum(["confirmation_required", "not_confirmed"]).optional(),
2038
- demoBookingPass: z.string().optional()
2039
- };
2040
- const eventRegistrationSummarySchema = z.object({
2041
- message: z.string(),
2042
- passCreditsRemaining: z.number().int().nonnegative().optional()
2043
- }).strict();
2044
- const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
2045
- z.object({
2046
- kind: z.literal("bookingComplete"),
2047
- outcome: eventBookingOutcomeSchema,
2048
- summary: eventRegistrationSummarySchema,
2049
- ...decorations
2050
- }).strict(),
2051
- z.object({
2052
- kind: z.literal("checkoutRequired"),
2053
- reference: eventRegistrationStatusReferenceSchema,
2054
- checkout: eventEmbeddedCheckoutSchema,
2055
- submissionId: uuid,
2056
- ...decorations
2057
- }).strict(),
2058
- z.object({
2059
- kind: z.literal("paymentStatusRequired"),
2060
- subject: eventRegistrationPaymentSubjectSchema,
2061
- ...decorations
2062
- }).strict(),
2063
- z.object({
2064
- kind: z.literal("waitlisted"),
2065
- waitlist: z.object({
2066
- reference: z.union([z.object({
2067
- scope: z.literal("occurrence"),
2068
- attendeeId: uuid
2069
- }).strict(), z.object({
2070
- scope: z.enum(["occurrence", "wholeSeries"]),
2071
- waitlistEntryId: uuid
2072
- }).strict()]),
2073
- position: z.number().int().nonnegative().nullable(),
2074
- message: z.string(),
2075
- emailFollowupMessage: z.string().optional()
2076
- }).strict(),
2077
- ...decorations
2078
- }).strict()
2079
- ]);
2080
- const checkoutStatusArms = [
2081
- z.object({
2082
- kind: z.literal("resolved"),
2083
- outcome: eventBookingOutcomeSchema
2084
- }).strict(),
2085
- z.object({ kind: z.literal("abandoned") }).strict(),
2086
- z.object({ kind: z.literal("reconciliationRequired") }).strict(),
2087
- z.object({
2088
- kind: z.literal("paymentProcessing"),
2089
- recoverableUntil: z.string().optional()
2090
- }).strict(),
2091
- z.object({
2092
- kind: z.literal("paymentAvailable"),
2093
- checkout: eventEmbeddedCheckoutSchema,
2094
- recoverableUntil: z.string().optional()
2095
- }).strict(),
2096
- z.object({
2097
- kind: z.literal("paymentRetryAvailable"),
2098
- place: z.enum(["held", "released"])
2099
- }).strict(),
2100
- z.object({
2101
- kind: z.literal("paymentCheckUnavailable"),
2102
- recoverableUntil: z.string().optional()
2103
- }).strict(),
2104
- z.object({ kind: z.literal("paymentAssistanceRequired") }).strict()
2105
- ];
2106
- z.discriminatedUnion("kind", [...checkoutStatusArms, z.object({ kind: z.literal("notFound") }).strict()]);
2107
- const eventCheckoutReturnResponseSchema = z.discriminatedUnion("kind", [
2108
- z.object({
2109
- kind: z.literal("checkout"),
2110
- subject: eventRegistrationPaymentSubjectSchema,
2111
- outcome: z.discriminatedUnion("kind", checkoutStatusArms)
2112
- }).strict(),
2113
- z.object({ kind: z.literal("notFound") }).strict(),
2114
- z.object({ kind: z.literal("reconciliationRequired") }).strict()
2115
- ]).superRefine((response, ctx) => {
2116
- if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
2117
- const identity = response.outcome.outcome.identity;
2118
- if (identity.scope !== response.subject.scope || identity.submissionId !== response.subject.submissionId || identity.scope === "occurrence" && response.subject.scope === "occurrence" && identity.attendeeId !== response.subject.attendeeId) ctx.addIssue({
2119
- code: "custom",
2120
- message: "Confirmed booking does not match checkout subject",
2121
- path: ["outcome"]
2122
- });
2123
- });
2124
- const checkoutDecorations = { mailingListSignupNote: decorations.mailingListSignupNote };
2125
- const eventCheckoutResponseSchema = z.union([
2126
- z.object({
2127
- kind: z.literal("completed"),
2128
- scope: z.literal("occurrence"),
2129
- outcome: eventBookingOutcomeSchema,
2130
- ...checkoutDecorations
2131
- }).strict(),
2132
- z.object({
2133
- kind: z.literal("completed"),
2134
- scope: z.literal("wholeSeries"),
2135
- outcome: eventBookingOutcomeSchema,
2136
- ...checkoutDecorations
2137
- }).strict(),
2138
- z.object({
2139
- kind: z.literal("checkoutRequired"),
2140
- scope: z.literal("occurrence"),
2141
- attendeeId: uuid,
2142
- checkout: eventEmbeddedCheckoutSchema,
2143
- ...checkoutDecorations
2144
- }).strict(),
2145
- z.object({
2146
- kind: z.literal("checkoutRequired"),
2147
- scope: z.literal("wholeSeries"),
2148
- registrationId: uuid,
2149
- checkoutAttemptId: uuid,
2150
- checkout: eventEmbeddedCheckoutSchema,
2151
- recoverableUntil: z.string().optional(),
2152
- ...checkoutDecorations
2153
- }).strict(),
2154
- z.object({
2155
- scope: z.literal("wholeSeries"),
2156
- status: z.literal("paymentStatusRequired"),
2157
- checkoutAttemptId: uuid,
2158
- recoverableUntil: z.string().optional(),
2159
- ...checkoutDecorations
2160
- }).strict(),
2161
- z.object({
2162
- scope: z.literal("wholeSeries"),
2163
- status: z.literal("waitlist"),
2164
- waitlistEntryId: uuid,
2165
- waitlistPosition: z.number().int().nonnegative().nullable(),
2166
- alreadyRegistered: z.boolean().optional(),
2167
- ...checkoutDecorations
2168
- }).strict()
2169
- ]).superRefine((response, ctx) => {
2170
- if ("kind" in response && response.kind === "completed" && response.scope !== response.outcome.identity.scope) ctx.addIssue({
2171
- code: "custom",
2172
- message: "Confirmed booking scope mismatch",
2173
- path: [
2174
- "outcome",
2175
- "identity",
2176
- "scope"
2177
- ]
2178
- });
2127
+ //#region ../blocks/src/contracts/events.ts
2128
+ /** Release 1: older SDKs reject additional confirmed-outcome fields. */
2129
+ const EVENT_BOOKING_ARRIVAL_QUERY = "bookingArrival";
2130
+ const eventAutoApplyDiscountPreviewBaseSchema = z.object({
2131
+ id: z.string(),
2132
+ publicLabel: z.string(),
2133
+ description: z.string().nullable(),
2134
+ minTicketsRequired: z.number().nullable()
2179
2135
  });
2136
+ const eventAutoApplyDiscountPreviewSchema = z.discriminatedUnion("discountType", [eventAutoApplyDiscountPreviewBaseSchema.extend({
2137
+ discountType: z.literal("percent"),
2138
+ discountPercent: z.number(),
2139
+ discountAmountCents: z.null()
2140
+ }), eventAutoApplyDiscountPreviewBaseSchema.extend({
2141
+ discountType: z.literal("fixed"),
2142
+ discountPercent: z.null(),
2143
+ discountAmountCents: z.number()
2144
+ })]);
2180
2145
  //#endregion
2181
2146
  //#region ../blocks/src/system/blocks/shared/siteTerms.ts
2182
2147
  const versionId = z.string().uuid().transform((value, ctx) => {
@@ -2213,4 +2178,4 @@ const logger = {
2213
2178
  withFields: (_) => logger
2214
2179
  };
2215
2180
  //#endregion
2216
- export { isRichTextDoc as $, resolveEventCalendarReadPlan as A, resolveBookingBusinessTimeZone as At, normalizeEventVenueId as B, eventCalendarListLayoutValues as C, addLocalScheduleDays as Ct, isEventCalendarDisplayMode as D, getLocalScheduleDate as Dt, isEventCalendarDefaultView as E, getBookingLocalDateKey as Et, normalizeEventScheduleScope as F, validateBookingPaymentOptionKinds as Ft, publicEventSchema as G, eventVenueDrawingSchema as H, normalizeEventStaffMemberId as I, parsePositiveMoneyInputToCents as It, bookingConsentCarrierSchema as J, publicEventsArraySchema as K, normalizeEventSurfacePresets as L, toNonNegativeCents as Lt, eventSurfaceScopeValues as M, toBookingTimeZone as Mt, normalizeEventCategoryIds as N, parseUtcIsoDateTimeString as Nt, isEventCalendarListLayout as O, parseBookingLocalDate as Ot, normalizeEventCategoryIdsCsv as P, toUtcIsoDateTimeString as Pt, RichTextDocSchema as Q, normalizeEventSurfacePresetsCsv as R, formatCurrencyAmount as Rt, eventCalendarListLayoutOptions as S, buildBookingUtcDateWindow as St, eventListArrangementValues as T, formatLocalScheduleDate as Tt, publicEventDestinationSchema as U, normalizeIdList as V, publicEventLoaderQuerySchemaShape as W, toBookingRequirementConsentField as X, isBookingRequirementConsentFieldId as Y, blockBookingPaymentTermsSchema as Z, resolveCalendarReadProfile as _, formatTimeZoneCityLabel as _t, eventCheckoutReturnResponseSchema as a, normalizeLocationAddressText as at, eventCalendarListGroupingDecision as b, formatBookingCompactEnglishTime as bt, calendarMonthDate as c, publicLocationSchema as ct, calendarQueryKey as d, formatDate as dt, isObjectRecord as et, calendarWindowBounds as f, formatDateRange as ft, planCalendarMonthRanges as g, formatTimeRange as gt, calendarWindowQuerySchema as h, formatTime as ht, eventCheckoutResponseSchema as i, locationValueSchema as it, eventScheduleScopeValues as j, resolveBookingTimeZoneId as jt, normalizeEventCalendarDisplayMode as k, parseLocalScheduleTime as kt, calendarMonthKey as l, toLocationCoordinates as lt, calendarWindowPageSchema as m, formatDateTimeRange as mt, blockSiteTermsSchema as n, WHOLE_SERIES_EVENT_PRESET_VALUES as nt, eventRegisterResponseSchema as o, parseLocationValue as ot, calendarWindowMonths as p, formatDateTime as pt, blockBookingConsentSchema as q, verifiedSiteTermsAcceptanceSchema as r, decideLocationSourcePermission as rt, normalizeCurrencyCode as s, projectPublicLocation as st, logger as t, isRecord as tt, calendarPageResponseError as u, mapDrawingSchema as ut, eventCalendarDefaultViewValues as v, inferSiteDateLocale as vt, eventCalendarVariantMeaning as w, compareLocalScheduleDates as wt, eventCalendarListLayoutCompatibleDisplayModeValues as x, toScheduledBookingDateTime as xt, eventCalendarDisplayModeValues as y, resolveBookingDisplayContext as yt, normalizeEventSurfaceScope as z, formatGiftCardAmountLabel as zt };
2181
+ export { videoMediaSchema as $, formatCurrencyAmount as $t, headingDecorationOverrideValues as A, formatTimeRange as At, bookingConsentCarrierSchema as B, getBookingLocalDateKey as Bt, accordionIconColorTokenValues as C, trimmedStringOrNull as Ct, eventListTreatmentValues as D, formatDateTime as Dt, arrangementModes as E, formatDateRange as Et, publicEventDestinationSchema as F, toScheduledBookingDateTime as Ft, RichTextDocSchema as G, resolveBookingTimeZoneId as Gt, toBookingRequirementConsentField as H, parseBookingLocalDate as Ht, publicEventSchema as I, buildBookingUtcDateWindow as It, externalMediaSchema as J, toUtcIsoDateTimeString as Jt, isRichTextDoc as K, toBookingTimeZone as Kt, publicEventsArraySchema as L, addLocalScheduleDays as Lt, tileTreatmentValues as M, inferSiteDateLocale as Mt, visibleHeadingDecorationFamilyValues as N, resolveBookingDisplayContext as Nt, eyebrowTreatmentValues as O, formatDateTimeRange as Ot, eventVenueDrawingSchema as P, formatBookingCompactEnglishTime as Pt, runtimeMediaSchema as Q, toNonNegativeCents as Qt, blockBookingPaymentTermsSchema as R, compareLocalScheduleDates as Rt, resolveEventCalendarReadPlan as S, toLocationCoordinates as St, accordionIconSetValues as T, formatDate as Tt, beforeBookingQuestionsPresentationSchema as U, parseLocalScheduleTime as Ut, isBookingRequirementConsentFieldId as V, getLocalScheduleDate as Vt, bookingQuestionsAnswerValueSchema as W, resolveBookingBusinessTimeZone as Wt, mediaSchema as X, parsePositiveCents as Xt, imageMediaSchema as Y, validateBookingPaymentOptionKinds as Yt, persistableMediaSchema as Z, parsePositiveMoneyInputToCents as Zt, eventListArrangementValues as _, locationValueSchema as _t, eventAutoApplyDiscountPreviewSchema as a, eventCalendarDisplayModeValues as at, isEventCalendarListLayout as b, projectPublicLocation as bt, calendarQueryKey as c, calendarMonthDate as ct, calendarWindowPageSchema as d, eventSurfacePresetValues as dt, formatGiftCardAmountLabel as en, PUBLIC_FILE_FIELD_KINDS as et, planCalendarMonthRanges as f, eventSurfaceScopeValues as ft, eventCalendarVariantMeaning as g, decideLocationSourcePermission as gt, eventCalendarListLayoutOptions as h, WHOLE_SERIES_EVENT_PRESET_VALUES as ht, EVENT_BOOKING_ARRIVAL_QUERY as i, eventCalendarDefaultViewValues as it, isArrangementMode as j, formatTimeZoneCityLabel as jt, headingDecorationColorTokenValues as k, formatTime as kt, calendarWindowBounds as l, calendarWindowQuerySchema as lt, eventCalendarListGroupingDecision as m, isRecord as mt, blockSiteTermsSchema as n, mediaTypeDiscriminants as nt, calendarMonthKey as o, eventCalendarListLayoutCompatibleDisplayModeValues as ot, resolveCalendarReadProfile as p, publicEventLoaderQuerySchemaShape as pt, assetMediaSchema as q, parseUtcIsoDateTimeString as qt, verifiedSiteTermsAcceptanceSchema as r, normalizeCurrencyCode as rt, calendarPageResponseError as s, eventCalendarListLayoutValues as st, logger as t, isDisplayMediaKind as tt, calendarWindowMonths as u, eventScheduleScopeValues as ut, isEventCalendarDefaultView as v, normalizeLocationAddressText as vt, accordionIconMotionValues as w, mapDrawingSchema as wt, normalizeEventCalendarDisplayMode as x, publicLocationSchema as xt, isEventCalendarDisplayMode as y, parseLocationValue as yt, blockBookingConsentSchema as z, formatLocalScheduleDate as zt };