@riverbankcms/sdk 0.165.0 → 0.166.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 (241) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CdsSMQEv.d.ts → BlocksIslandsHydrator-CPvN6RBW.d.ts} +1 -1
  2. package/dist/_dts/{Page-D6gp2Ipb.d.ts → Page-rW0xgQCA.d.ts} +18 -256
  3. package/dist/_dts/{SdkPreviewMode-DNXAvnet.d.ts → SdkPreviewMode-BWZh2WCk.d.ts} +26 -3
  4. package/dist/_dts/{client-BkkExozE.d.ts → client-D4BXQEZc.d.ts} +5 -1
  5. package/dist/_dts/{content-types-CXNAD7ef.d.ts → content-types-MUzta0l9.d.ts} +3 -3
  6. package/dist/_dts/{contracts-XRXhbLWP.d.ts → contracts-Cl9Xh1DO.d.ts} +4 -4
  7. package/dist/_dts/{footerPageOutline-BP2bJYdY.d.ts → footerPageOutline-4BgLKehl.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-DcMtbztV.d.ts → generatePageMetadata-BsmJ0qKh.d.ts} +2 -2
  9. package/dist/_dts/{index-RXkE3a7M.d.ts → index--qflsCiy.d.ts} +4 -3
  10. package/dist/_dts/{index-C_3kdrUb.d.ts → index-BgJ2aU5c.d.ts} +2 -2
  11. package/dist/_dts/{index-CQfJhOEA.d.ts → index-Bmboeb49.d.ts} +1 -1
  12. package/dist/_dts/{index-CRRiddNp.d.ts → index-DdcwPqQN.d.ts} +4 -4
  13. package/dist/_dts/{index-DKNEgSOS.d.ts → index-ahxQCUc7.d.ts} +2 -2
  14. package/dist/_dts/{index-BdkHhyf8.d.ts → index-kQ5xkM6X.d.ts} +1 -1
  15. package/dist/_dts/{index-DAPTSmBM.d.ts → index-mMMvLLAJ.d.ts} +2596 -2511
  16. package/dist/_dts/{index-B4ozSzFP.d.ts → index-wbBZ0awa.d.ts} +9248 -8251
  17. package/dist/_dts/{loadContent-B9vJMq3s.d.ts → loadContent-BG5IAV-V.d.ts} +9 -6
  18. package/dist/_dts/resolveBlockData-Cmcle_zV.d.ts +136 -0
  19. package/dist/_dts/{resolvePageContent-DIQyYUi-.d.ts → resolvePageContent-BRJUTFoH.d.ts} +3 -2
  20. package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
  21. package/dist/_dts/sdk/src/client/types.d.ts +2 -2
  22. package/dist/_dts/sdk/src/client.d.ts +9 -6
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +20 -0
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +2 -0
  28. package/dist/_dts/sdk/src/data/types.d.ts +54 -0
  29. package/dist/_dts/sdk/src/index.d.ts +8 -8
  30. package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
  31. package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
  32. package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
  33. package/dist/_dts/sdk/src/next/index.d.ts +9 -8
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +36 -48
  36. package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
  37. package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
  38. package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
  39. package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
  40. package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
  41. package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
  42. package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +3 -0
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +257 -0
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +8 -7
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
  48. package/dist/_dts/{themeAdmission-D_qtGYAT.d.ts → sdk/src/rendering/themeAdmission.d.ts} +3 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +7 -5
  51. package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
  52. package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
  53. package/dist/_dts/{types-Cl0nP6al.d.ts → types-BX3Y-EW3.d.ts} +3 -3
  54. package/dist/_dts/{types-mstFvhK4.d.ts → types-DF54stxv.d.ts} +8 -7
  55. package/dist/_dts/{types-BDF73NzM.d.ts → types-DuiHLiPo.d.ts} +2 -2
  56. package/dist/_dts/{validation-DVWqSvjK.d.ts → validation-Bxi0f81D.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-CzKpH9Pm.mjs → BlocksIslandsHydrator-DwiRGtgh.mjs} +31 -24
  58. package/dist/client/{BookingMailingListNote-rUqsBN7L.mjs → BookingMailingListNote-DOWOZYlK.mjs} +2 -2
  59. package/dist/client/{CalendarNavigationChevron-YGzw2IPB.mjs → CalendarNavigationChevron-5a0x0vcC.mjs} +7 -7
  60. package/dist/client/{CheckboxChoice-DlTC4J2a.mjs → CheckboxChoice-CZ-anOqV.mjs} +1 -1
  61. package/dist/client/{DemoBookingPortalAccess-D2LyS_Bi.mjs → DemoBookingPortalAccess-B2qLkPRB.mjs} +6 -6
  62. package/dist/client/{DemoPortalSignInLink-BaFg2Uit.mjs → DemoPortalSignInLink-B9YrzZt2.mjs} +1 -1
  63. package/dist/client/{EventCalendar.client-tRrhPscX.mjs → EventCalendar.client-BhADnDCg.mjs} +9 -9
  64. package/dist/client/{EventCombined.client-6cfAVtnZ.mjs → EventCombined.client-jik34zTb.mjs} +8 -8
  65. package/dist/client/{EventEmbeddedCheckoutStep-CDNUpI0S.mjs → EventEmbeddedCheckoutStep-D_14yqAU.mjs} +27 -2
  66. package/dist/client/{EventItem-dILw2PN_.mjs → EventItem-CMKrtkT7.mjs} +26 -11
  67. package/dist/client/{EventListWeekNavigation-ClgLtjNY.mjs → EventListWeekNavigation-AGHjxy6C.mjs} +1 -1
  68. package/dist/client/{EventListing.client-BNueAHmU.mjs → EventListing.client-DZeDM0Qt.mjs} +3 -3
  69. package/dist/client/{EventListing.view-DtVbKVkt.mjs → EventListing.view-3BBRdNVa.mjs} +31 -20
  70. package/dist/client/{EventRegistrationPayment-CzkG0NSJ.mjs → EventRegistrationPayment-CpNcpga4.mjs} +108 -11
  71. package/dist/client/{LocationMapActions-zWQsJhE5.mjs → LocationMapActions-D5-H9ooQ.mjs} +2 -2
  72. package/dist/client/{MapDrawingSvg-D1AO_o4h.mjs → MapDrawingSvg-C30geMl-.mjs} +1 -1
  73. package/dist/client/{Page-DUr2YhFR.mjs → Page-DNDZLRlB.mjs} +1894 -11322
  74. package/dist/client/{ProtectedSubmitButton-2fJqT_NR.mjs → ProtectedSubmitButton-8DuDw2ag.mjs} +1 -1
  75. package/dist/client/{StepIndicator-udNHcpOT.mjs → StepIndicator-Bin7YR0A.mjs} +3 -3
  76. package/dist/client/{TabBarFragment-C_kt-PXh.mjs → TabBarFragment-_IAthZVM.mjs} +1 -1
  77. package/dist/client/{ThemedButton-Cfbo1bfh.mjs → ThemedButton-8jUc02mZ.mjs} +64 -2
  78. package/dist/client/{accordion-3CYNWzTS.mjs → accordion-uVqNowRX.mjs} +1 -1
  79. package/dist/client/{booking-form.client-BSbWgLyx.mjs → booking-form.client-w-PvyWBv.mjs} +19 -14
  80. package/dist/client/{bookingForm-2MoFBWSt.mjs → bookingForm-DNMojb6A.mjs} +4 -4
  81. package/dist/client/bookings.mjs +6 -6
  82. package/dist/client/{carousel-Cu5mcpO-.mjs → carousel-C8kxI3Dm.mjs} +2 -2
  83. package/dist/client/{carousel.client-CQLV8_Al.mjs → carousel.client-BO7sCEpH.mjs} +1 -1
  84. package/dist/client/{cart-CDc6x9cR.mjs → cart-DCxjE3Is.mjs} +3 -3
  85. package/dist/client/{cart.client-BWS2r5Ef.mjs → cart.client-Ceeng8fB.mjs} +1 -1
  86. package/dist/client/{checkout-CkxPqSwD.mjs → checkout-B0EKbeVv.mjs} +3 -3
  87. package/dist/client/{checkout.client-DJfomKQc.mjs → checkout.client-DtPj3fYk.mjs} +1 -1
  88. package/dist/client/client.mjs +9465 -15
  89. package/dist/client/{context-CBV21-9L.mjs → context-n6IZigd3.mjs} +8 -6
  90. package/dist/client/{cta-Bw-al3cs.mjs → cta-CDeAwYoN.mjs} +45 -28
  91. package/dist/client/{dateFormatting-CFIUJ4Uf.mjs → dateFormatting-BWPzdeZE.mjs} +1 -1
  92. package/dist/client/{demoPortalMagicLink-D0veHJyi.mjs → demoPortalMagicLink-BdXu0fj-.mjs} +1 -1
  93. package/dist/client/{enhanceHeaderSection-CEqqq92r.mjs → enhanceHeaderSection-VHfv8M6-.mjs} +3 -3
  94. package/dist/client/{event-details.client-Bk2kQ7ax.mjs → event-details.client-Cfr1_Cj4.mjs} +2 -2
  95. package/dist/client/{event-registration.client-QMqtIywj.mjs → event-registration.client-BhygihpQ.mjs} +33 -16
  96. package/dist/client/{eventCalendar-BTDTMosr.mjs → eventCalendar-B4XCL9u6.mjs} +4 -4
  97. package/dist/client/{eventCombined-BC7a709c.mjs → eventCombined-DVjz4wdf.mjs} +4 -4
  98. package/dist/client/{eventDetails-DL08GpUc.mjs → eventDetails-B0DA1Nw1.mjs} +2 -2
  99. package/dist/client/{eventListing-BfzuEQp_.mjs → eventListing-2-xjn2nz.mjs} +4 -4
  100. package/dist/client/{eventRegistration-Lfyzh1Ab.mjs → eventRegistration-ng4iGo9O.mjs} +4 -4
  101. package/dist/client/{form-L-xZOBUS.mjs → form-BeNQiZ2V.mjs} +3 -3
  102. package/dist/client/{form.client-BtpK3TZW.mjs → form.client-BFdCKlp7.mjs} +5 -5
  103. package/dist/client/{form.parts-Djos5Un4.mjs → form.parts-C7gLK3jh.mjs} +3 -3
  104. package/dist/client/{formatDate-DGmrm7YB.mjs → formatDate-CWfelfMt.mjs} +1 -1
  105. package/dist/client/gifting/client.mjs +3 -4
  106. package/dist/client/{headerSection-f16OGkz-.mjs → headerSection-CalNAShx.mjs} +2 -2
  107. package/dist/client/{mediaAssets-DHAmrVIi.mjs → mediaAssets-DpPauppt.mjs} +1 -1
  108. package/dist/client/{mediaContext-CwT6ZOm7.mjs → mediaContext-BLo4NtjP.mjs} +25 -19
  109. package/dist/client/{newsletter-form.client-DpHNZc7k.mjs → newsletter-form.client-Dq7GHGXU.mjs} +6 -6
  110. package/dist/client/{newsletter-form.parts-CLGH20PL.mjs → newsletter-form.parts-BSMDYQiS.mjs} +2 -2
  111. package/dist/client/{newsletterForm-BEU0Ocu9.mjs → newsletterForm-snzZ4L6i.mjs} +3 -3
  112. package/dist/client/{noop-CQU7tiMg.mjs → noop-D-RG9eR3.mjs} +394 -168
  113. package/dist/client/portal/client.mjs +13 -14
  114. package/dist/client/{product-detail.client-Be-om1BT.mjs → product-detail.client-Gu0INDb7.mjs} +1 -1
  115. package/dist/client/{product-list.client-DR7hD5Vs.mjs → product-list.client-BmH40fNf.mjs} +1 -1
  116. package/dist/client/{productDetail-BD42UOmG.mjs → productDetail-DsPUmJ0z.mjs} +3 -3
  117. package/dist/client/{productList-CSk8sXCl.mjs → productList-DjGrjOwD.mjs} +3 -3
  118. package/dist/client/{propsDecoder-C_Y6VYnF.mjs → propsDecoder-kTVPMnfD.mjs} +4 -4
  119. package/dist/client/{registry.server-CIKtTsCl.mjs → registry.server-CKK_RXZo.mjs} +213 -314
  120. package/dist/client/rendering/client.mjs +29 -28
  121. package/dist/client/rendering/islands.mjs +1 -1
  122. package/dist/client/rendering.mjs +70 -8
  123. package/dist/client/{richText-coerce-spWtx86G.mjs → richText-coerce-BcjTX-7h.mjs} +1 -1
  124. package/dist/client/{routeIslandApiConfig-CROHPlYS.mjs → routeIslandApiConfig-CaXesATK.mjs} +1 -1
  125. package/dist/client/{shop-DscvMz86.mjs → shop-DLufMauE.mjs} +3 -3
  126. package/dist/client/{shop-commerce-CDUohm_2.mjs → shop-commerce-BxYYXLNK.mjs} +12 -12
  127. package/dist/client/{shop-commerce-store-B9nw4lRP.mjs → shop-commerce-store-Dp3Nl5YK.mjs} +1 -1
  128. package/dist/client/{shop.client-M3kNsVPi.mjs → shop.client-CBy9_alG.mjs} +13 -13
  129. package/dist/client/{shop.interactive-BGmkdIAZ.mjs → shop.interactive-BM0NRsFQ.mjs} +48 -34
  130. package/dist/client/{shopShared-BdWp6LHa.mjs → shopShared-lS23OQE-.mjs} +2 -2
  131. package/dist/client/site-styles-D8jEPGxA.mjs +3 -0
  132. package/dist/{preview-next/client/ThemedButton-Dc6aJ34Z.mjs → client/site-styles-DELkUk9s.mjs} +25468 -17264
  133. package/dist/client/spam-protection.mjs +1 -1
  134. package/dist/client/src-DjnxOjXG.mjs +217 -0
  135. package/dist/client/surfaceTransportMarker-BXepAVF6.mjs +152 -0
  136. package/dist/client/{timetableModel-Dynh5-j4.mjs → timetableModel-DzRWikCU.mjs} +157 -139
  137. package/dist/client/types-sF-IrGQr.mjs +633 -0
  138. package/dist/client/{useAvailableSlots-Cw9paRPY.mjs → useAvailableSlots-C3LphWDX.mjs} +8 -5
  139. package/dist/client/{useBookingNowIso-C9SF2rC6.mjs → useBookingNowIso-Da-f9iHw.mjs} +1 -1
  140. package/dist/client/{useDiscountApply-B-QJfBg0.mjs → useDiscountApply-SLoWhcen.mjs} +3 -3
  141. package/dist/client/{useDiscountCodeUi-Uvum8q9d.mjs → useDiscountCodeUi-D6a2BJij.mjs} +1 -1
  142. package/dist/client/{useEventPagination-BfM3xk6j.mjs → useEventPagination-Ccr4TZlm.mjs} +9 -9
  143. package/dist/client/{view-DXOuduIr.mjs → view-8w4GA8rf.mjs} +4 -4
  144. package/dist/client/{view-DlkCDfuN.mjs → view-DAVEoe8A.mjs} +277 -227
  145. package/dist/client/{wizardSteps-DManVJpc.mjs → wizardSteps-DNpajrAH.mjs} +453 -141
  146. package/dist/preview-next/before-render.mjs +3 -140
  147. package/dist/preview-next/client/ArrangementLookControls-DY5TzhEa.mjs +31197 -0
  148. package/dist/preview-next/client/{EventEmbeddedCheckoutStep-Die6Y25O.mjs → EventEmbeddedCheckoutStep-C_h1cMYm.mjs} +33 -4
  149. package/dist/preview-next/client/{LocationPickerEnvironment-Bp4BHLCL.mjs → LocationPickerEnvironment-D56RD3e_.mjs} +1 -1
  150. package/dist/preview-next/client/{MapLibreEditMap-Cb0JhM9p.mjs → MapLibreEditMap-DFnyCckr.mjs} +2 -2
  151. package/dist/preview-next/client/PreviewEditorSidebar-DdnhmdFO.mjs +37049 -0
  152. package/dist/preview-next/client/{PreviewEditorUI-CxwlLBGw.mjs → PreviewEditorUI-C7ZmYE33.mjs} +45 -17
  153. package/dist/preview-next/client/PreviewShell-DnO38NaL.mjs +4707 -0
  154. package/dist/preview-next/client/SdkPreviewModeRuntime-D2OtoRMB.mjs +4258 -0
  155. package/dist/preview-next/client/SiteChromeCustomizeButton-eIu2RejJ.mjs +71144 -0
  156. package/dist/preview-next/client/ThemedButton-C0dgGJ5k.mjs +2006 -0
  157. package/dist/preview-next/client/{lucide-react-CqxuVAyz.mjs → lucide-react-CPBCf6QT.mjs} +15 -2
  158. package/dist/preview-next/client/previewAssistantSlot-Bp1AlAxx.mjs +110560 -0
  159. package/dist/preview-next/client/{previewChromeSurface-yuwnDP3B.mjs → previewChromeSurface-D2cREDJ5.mjs} +90 -28
  160. package/dist/preview-next/client/runtime.mjs +3 -3
  161. package/dist/preview-next/client/sdk-runtime-DK0PUhLL.mjs +5 -0
  162. package/dist/preview-next/client/{editorStatusDecision-DR4BBKhy.mjs → useAutosaveStatus--Pw8vnef.mjs} +40 -3
  163. package/dist/preview-next/client/useBlockCustomizeControls-C1Rl73N4.mjs +2724 -0
  164. package/dist/preview-next/client/useOpenBlockForSetup-CL3842FM.mjs +28 -0
  165. package/dist/preview-next/keepAlive.mjs +25 -2
  166. package/dist/preview-next/middleware.mjs +1 -1
  167. package/dist/preview-next/{route-contract-BBAJjFIz.mjs → route-contract-Bq7SUX3K.mjs} +132 -118
  168. package/dist/server/{Block.shared-ClFI3qpX.mjs → Block.shared-wXr7Iwhs.mjs} +7 -4
  169. package/dist/server/{src-DsYPhTbs.mjs → ThemeScopeCore-BI2mld9R.mjs} +178 -2532
  170. package/dist/server/accessibleSurfaces-CuN8U_iU.mjs +2102 -0
  171. package/dist/server/{bindings-Bi8EoRZD.mjs → bindings-DjdUq9FR.mjs} +2 -3
  172. package/dist/server/{publicProducts-Bz8loTRn.mjs → client-07UeMDzA.mjs} +2483 -351
  173. package/dist/server/config-validation.mjs +1 -1
  174. package/dist/server/config.mjs +33 -2
  175. package/dist/server/data/dataLoaderContext.mjs +2 -0
  176. package/dist/server/data/resolveBlockData.mjs +2 -0
  177. package/dist/server/data/types.mjs +1 -0
  178. package/dist/server/dataLoaderContext-B3fXA54R.mjs +47 -0
  179. package/dist/server/identity-Bn9OQiT1.mjs +6 -0
  180. package/dist/server/index.mjs +3 -3
  181. package/dist/server/{loadContent-dEEhQxL7.mjs → loadContent-ClpaSlBb.mjs} +6 -5
  182. package/dist/server/{loadPage-DBFBad8A.mjs → loadPage-BwtVqpaA.mjs} +4 -2
  183. package/dist/server/manifest.mjs +1 -1
  184. package/dist/server/media-DnlczCMA.mjs +231 -0
  185. package/dist/server/mode-Cv_TG9gP.mjs +63 -0
  186. package/dist/server/next.mjs +11 -11
  187. package/dist/server/opaqueSurface-3YSDPtDe.mjs +54 -0
  188. package/dist/server/{overrideResolution-BIJbiXYc.mjs → overrideResolution-Du_w3LY4.mjs} +2 -1
  189. package/dist/server/overrides-CD4d-1w7.mjs +177 -0
  190. package/dist/server/page-converter.mjs +243 -91
  191. package/dist/server/pageRenderPlan-BShULdc2.mjs +4055 -0
  192. package/dist/server/{themeAdmission-CSknYpxk.mjs → pageRuntimeSupport-C4Dh5-mB.mjs} +13 -28
  193. package/dist/server/{overrides-DhF87Vsd.mjs → pageShared-HdKFBpaX.mjs} +3472 -1795
  194. package/dist/server/parseThemeForPersistence-CJMrEkze.mjs +52 -0
  195. package/dist/server/{prebuild-DaemmWQL.mjs → prebuild-Cl-bkaMA.mjs} +1 -1
  196. package/dist/server/prebuild.mjs +1 -1
  197. package/dist/server/prefetchBlockData-C4yUmz-r.mjs +786 -0
  198. package/dist/server/publicProducts-W9hDRwjz.mjs +64 -0
  199. package/dist/server/{registry-Cdvz1OtL.mjs → registry-TFPJdGQi.mjs} +20624 -640
  200. package/dist/server/rendering/components/pageShared.mjs +2 -0
  201. package/dist/server/rendering/helpers/loadPage.mjs +2 -0
  202. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +2 -0
  203. package/dist/server/rendering/server.mjs +5 -4
  204. package/dist/server/rendering/themeAdmission.mjs +2 -0
  205. package/dist/server/rendering.mjs +11 -10
  206. package/dist/server/repeaterFields-MIz7r1ez.mjs +9 -0
  207. package/dist/server/{resolveBlockData-CLpAJWWf.mjs → resolveBlockData-OHlOXlOE.mjs} +6 -48
  208. package/dist/server/resolveButtonColourStates-lry2ORwX.mjs +2672 -0
  209. package/dist/server/{richTextSchema-YYc85FX4.mjs → richTextSchema-Euhuj-7V.mjs} +26 -1
  210. package/dist/server/routing.mjs +1 -1
  211. package/dist/server/schema-C2PqHrMo.mjs +2523 -0
  212. package/dist/server/server.mjs +3 -3
  213. package/dist/server/theme-bridge.mjs +1031 -1
  214. package/dist/server/theme.mjs +2 -1
  215. package/dist/server/themeAdmission-DGSAlFUK.mjs +18 -0
  216. package/dist/server/{three-pass-converter-Chnb1XD-.mjs → three-pass-converter-_j2UE2tR.mjs} +1 -1
  217. package/dist/server/validation-CDd6m8Ry.mjs +140 -0
  218. package/dist/server/{validation-DYxhLzqQ.mjs → validation-DIBFZeMB.mjs} +419 -3
  219. package/dist/server/{version-Beu4q-Gv.mjs → version-DZWZM1H6.mjs} +1 -1
  220. package/dist/styles/index.css +14 -4
  221. package/package.json +39 -1
  222. package/dist/client/purchase-BV5xfaZH.mjs +0 -894
  223. package/dist/client/schema-BdSglH2X.mjs +0 -16084
  224. package/dist/client/site-styles-CWHmlVT5.mjs +0 -14503
  225. package/dist/client/src-VIsPY-kw.mjs +0 -62
  226. package/dist/preview-next/client/PreviewEditorSidebar-DEP3xD9K.mjs +0 -5810
  227. package/dist/preview-next/client/SdkPreviewModeRuntime-Cpe-XP8e.mjs +0 -3
  228. package/dist/preview-next/client/SdkPreviewModeRuntime-QDkMPASV.mjs +0 -8059
  229. package/dist/preview-next/client/SiteChromeCustomizeButton-1JaoGOKX.mjs +0 -9367
  230. package/dist/preview-next/client/previewSidebarNavigation-AXUj9-qQ.mjs +0 -224683
  231. package/dist/preview-next/client/result-BjJUoxUF.mjs +0 -16
  232. package/dist/preview-next/client/sdk-runtime-O-eA9-rV.mjs +0 -4
  233. package/dist/preview-next/refresh-contract-uQ6BXgLJ.mjs +0 -25
  234. package/dist/server/bindings-Dgt_0goJ.mjs +0 -17
  235. package/dist/server/client-DfMDbZ41.mjs +0 -2330
  236. package/dist/server/effectiveNavLinkStyle-BHIYPVG1.mjs +0 -13713
  237. package/dist/server/loadPage-CnVB-aeL.mjs +0 -2
  238. package/dist/server/prefetchBlockData-FwcsT5H2.mjs +0 -4359
  239. package/dist/server/schema-uSA_x1Zh.mjs +0 -16311
  240. package/dist/server/site-styles-CntHn2KI.mjs +0 -793
  241. package/dist/server/siteChromeOverlayClearance-DqP40Ka0.mjs +0 -802
@@ -1,15 +1,24 @@
1
1
  "use client";
2
+ import { c as parseCanonicalMediaIdentifier, d as unsafeAsStorageBucketName, f as unsafeAsStoragePath, h as ok$1, m as err, o as resolveManagedMediaReference, p as parseUuidBrand, u as unsafeAsMediaAssetId } from "./surfaceTransportMarker-BXepAVF6.mjs";
3
+ import { At as resolveBookingBusinessTimeZone, C as eventCalendarListLayoutValues, Dt as getLocalScheduleDate, Et as getBookingLocalDateKey, Ft as validateBookingPaymentOptionKinds, Lt as toNonNegativeCents, Mt as toBookingTimeZone, Nt as parseUtcIsoDateTimeString, Pt as toUtcIsoDateTimeString, Rt as formatCurrencyAmount, X as toBookingRequirementConsentField, Z as blockBookingPaymentTermsSchema, dt as formatDate$2, ft as formatDateRange, gt as formatTimeRange, ht as formatTime$2, jt as resolveBookingTimeZoneId, kt as parseLocalScheduleTime, mt as formatDateTimeRange, n as blockSiteTermsSchema, pt as formatDateTime, q as blockBookingConsentSchema, s as normalizeCurrencyCode, v as eventCalendarDefaultViewValues, vt as inferSiteDateLocale, wt as compareLocalScheduleDates, xt as toScheduledBookingDateTime, y as eventCalendarDisplayModeValues, yt as resolveBookingDisplayContext } from "./noop-D-RG9eR3.mjs";
4
+ import { c as addIntervalPreservingMonthAnchor, d as getBookingInstalmentDepositRefundability, f as getBookingInstalmentPlanIntervalCount, g as resolveFlexibleBalanceInitialPaymentCents, h as resolveFlexibleBalanceDueAt, l as clampConfiguredAmount, m as splitAmountWithRemainderInFirst, p as omitZeroAmountFutureRows, t as assertNever$2, v as assertNever$1 } from "./src-DjnxOjXG.mjs";
5
+ import { Ei as textColorStyle, Ta as runtimeMediaSchema, ai as parseResolvedSurface, d as arrangementSlotNames, ki as opaqueSurfaceDeclarations, r as selectItemSurfacePresentation, wi as mergeStyles, xi as backgroundColorStyle, ya as PUBLIC_BUTTON_ROLES } from "./site-styles-DELkUk9s.mjs";
2
6
  import { l as buildCalendarViewport$1, n as calendarLinks, r as groupItemsByDate } from "./src-1PJxc8KO.mjs";
3
- import { Mr as unsafeAsStoragePath, Nr as err, Or as unsafeAsMediaAssetId, Pr as ok$1, Zt as parseResolvedSurface, _n as opaqueSurfaceDeclarations, br as parseEventSeriesId, cn as backgroundColorStyle, cr as runtimeMediaSchema, dn as mergeStyles, er as PUBLIC_BUTTON_ROLES, fr as resolveManagedMediaReference, jr as unsafeAsStorageBucketName, mr as parseCanonicalMediaIdentifier, pn as textColorStyle, yr as parseEventOfferingId } from "./schema-BdSglH2X.mjs";
4
- import { _ as getBookingInstalmentPlanIntervalCount, a as checkoutCopy, b as formatCurrencyAmount, c as planCheckoutPaymentFlow, d as repriceBookingCollectionOptions, f as resolveAvailableBookingCollectionOptions, l as planFlexibleBalanceCreditFirst, m as getBookingLaterInstalments, o as getStripeMinimumChargeRequirement, p as resolveBookingCollectionOptionFacts, u as isBookingCollectionEquivalentToUpfront } from "./purchase-BV5xfaZH.mjs";
5
- import { c as assertNever, t as assertNever$1 } from "./src-VIsPY-kw.mjs";
6
- import { At as resolveBookingTimeZoneId, Dt as parseLocalScheduleTime, K as blockBookingConsentSchema, Mt as toScheduledBookingDateTime, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, S as eventCalendarListLayoutValues, Tt as getLocalScheduleDate, X as blockBookingPaymentTermsSchema, Y as toBookingRequirementConsentField, _ as eventCalendarDefaultViewValues, _t as inferSiteDateLocale, dt as formatDateRange, ft as formatDateTime, ht as formatTimeRange, jt as toBookingTimeZone, kt as resolveBookingBusinessTimeZone, mt as formatTime$2, n as blockSiteTermsSchema, pt as formatDateTimeRange, ut as formatDate$2, v as eventCalendarDisplayModeValues, vt as resolveBookingDisplayContext, wt as getBookingLocalDateKey, xt as compareLocalScheduleDates } from "./noop-CQU7tiMg.mjs";
7
- import { p as arrangementSlotNames } from "./site-styles-CWHmlVT5.mjs";
8
- import { C as clsx } from "./ThemedButton-Cfbo1bfh.mjs";
9
- import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-CwT6ZOm7.mjs";
7
+ import { C as clsx } from "./ThemedButton-8jUc02mZ.mjs";
8
+ import { a as getSupabaseUrl, i as getSiteId, n as getCurrentResolveImageUrlContext, r as getMediaAssetIndex } from "./mediaContext-BLo4NtjP.mjs";
10
9
  import React from "react";
11
10
  import { z } from "zod";
12
11
  import { Fragment, jsx } from "react/jsx-runtime";
12
+ //#region ../core/src/branded/events.ts
13
+ const unsafeAsEventOfferingId = (id) => id;
14
+ const unsafeAsEventSeriesId = (id) => id;
15
+ const parseEventOfferingId = (value) => parseUuidBrand(value, unsafeAsEventOfferingId);
16
+ const parseEventSeriesId = (value) => parseUuidBrand(value, unsafeAsEventSeriesId);
17
+ //#endregion
18
+ //#region ../core/src/branded/identity.ts
19
+ const unsafeAsSiteId = (id) => id;
20
+ const parseSiteId = (value) => parseUuidBrand(value, unsafeAsSiteId);
21
+ //#endregion
13
22
  //#region ../core/src/planner.ts
14
23
  /** Default clock for production callers that do not inject time explicitly. */
15
24
  const systemPlanningClock = { now: () => Date.now() };
@@ -32,7 +41,7 @@ function isPublicEventPricingOptionDisplayable(option) {
32
41
  case "not_on_sale_yet":
33
42
  case "sale_ended":
34
43
  case "attendance_mode_unavailable": return false;
35
- default: return assertNever(reason);
44
+ default: return assertNever$1(reason);
36
45
  }
37
46
  }
38
47
  function publicEventPricingDisplay(pricing) {
@@ -173,7 +182,7 @@ function canonicalEventPricingDisplay(pricing) {
173
182
  currency: pricing.currency,
174
183
  purpose: "configured"
175
184
  });
176
- default: return assertNever(pricing);
185
+ default: return assertNever$1(pricing);
177
186
  }
178
187
  }
179
188
  /**
@@ -192,7 +201,7 @@ function formatBookingPriceDisplay(display, options = {}) {
192
201
  case "mixed": return display.paidToAmount > display.paidFromAmount ? `Free / ${formatCurrencyAmount(display.paidFromAmount, display.currency, options)} - ${formatCurrencyAmount(display.paidToAmount, display.currency, options)}` : `Free / ${formatCurrencyAmount(display.paidFromAmount, display.currency, options)}`;
193
202
  case "unavailable": return "Pricing unavailable";
194
203
  case "external": return display.label;
195
- default: return assertNever(display);
204
+ default: return assertNever$1(display);
196
205
  }
197
206
  }
198
207
  /** Render an event's price directly from its pricing value. */
@@ -246,7 +255,7 @@ function parseEventPageSurfaceDestinationMode(value) {
246
255
  return value === "cms-managed" || value === "system-managed" ? value : void 0;
247
256
  }
248
257
  function parseEventPageSurfaceSubject(value) {
249
- if (!isRecord$7(value)) return err({ kind: "notObject" });
258
+ if (!isRecord$6(value)) return err({ kind: "notObject" });
250
259
  const parsed = value.kind === "eventSeries" ? parseEventSeriesPageSurfaceSubject(value) : value.kind === "eventOffering" ? parseEventOfferingPageSurfaceSubject(value) : err({
251
260
  kind: "unsupportedSubject",
252
261
  subjectKind: value.kind
@@ -304,7 +313,7 @@ function parseEventSeriesIdList(values) {
304
313
  }
305
314
  return ok$1(parsed);
306
315
  }
307
- function isRecord$7(value) {
316
+ function isRecord$6(value) {
308
317
  return typeof value === "object" && value !== null && !Array.isArray(value);
309
318
  }
310
319
  //#endregion
@@ -337,51 +346,23 @@ function parsePositiveInteger(value) {
337
346
  function parseNewsletterListId(value) {
338
347
  return parseTrimmedMatchingString(typeof value === "string" ? value.toLowerCase() : value, UUID_PATTERN);
339
348
  }
340
- function parseMailchimpAccountId(value) {
341
- return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
342
- }
343
349
  function parseMailchimpAudienceId(value) {
344
350
  return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
345
351
  }
346
352
  function parseMailchimpInterestId(value) {
347
353
  return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
348
354
  }
349
- function parseBrevoAccountId(value) {
350
- return parseTrimmedMatchingString(value, OPAQUE_ID_PATTERN);
351
- }
352
355
  function parseBrevoListId(value) {
353
356
  return parsePositiveInteger(value);
354
357
  }
355
358
  //#endregion
356
359
  //#region ../core/src/mailing-list-setup.ts
357
- function isRecord$6(value) {
358
- return typeof value === "object" && value !== null && !Array.isArray(value);
359
- }
360
360
  const DEFAULT_MAILING_LIST_SUCCESS_MESSAGE = "Thanks — you're on the list.";
361
361
  /**
362
362
  * Seeded into a new setup so every signup form carries a preferences/unsubscribe
363
363
  * reassurance out of the box. Administrators can edit or clear it.
364
364
  */
365
365
  const DEFAULT_MAILING_LIST_PRIVACY_NOTE = "Change your preferences or unsubscribe at any time.";
366
- function parseMailingListProviderScope(value) {
367
- if (!isRecord$6(value)) return err("invalid_mailing_list_provider_scope");
368
- if (value.provider === "native") return ok$1({ provider: "native" });
369
- if (value.provider === "brevo") {
370
- const accountId = parseBrevoAccountId(value.accountId);
371
- return accountId !== null ? ok$1({
372
- provider: "brevo",
373
- accountId
374
- }) : err("invalid_mailing_list_provider_scope");
375
- }
376
- if (value.provider === "mailchimp") {
377
- const accountId = parseMailchimpAccountId(value.accountId);
378
- return accountId !== null ? ok$1({
379
- provider: "mailchimp",
380
- accountId
381
- }) : err("invalid_mailing_list_provider_scope");
382
- }
383
- return err("invalid_mailing_list_provider_scope");
384
- }
385
366
  z.unknown().transform((value, ctx) => {
386
367
  const parsed = parseNewsletterAudience(value);
387
368
  if (parsed.ok) return parsed.value;
@@ -995,6 +976,59 @@ function rotateNormalizedPoint(point, rotation) {
995
976
  }
996
977
  }
997
978
  //#endregion
979
+ //#region ../blocks/src/primitives/content/utils/sanitizeHref.ts
980
+ const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
981
+ "http:",
982
+ "https:",
983
+ "mailto:",
984
+ "tel:"
985
+ ]);
986
+ const CONTROL_CHARS_PATTERN = /[\u0000-\u001F\u007F]+/g;
987
+ function normalizeInput(value) {
988
+ return value.replace(CONTROL_CHARS_PATTERN, "").trim();
989
+ }
990
+ function decodeForSchemeCheck(value) {
991
+ try {
992
+ return decodeURIComponent(value);
993
+ } catch {
994
+ return value;
995
+ }
996
+ }
997
+ /**
998
+ * Returns a safe href for rich-text anchors, or null when the value should not be rendered.
999
+ *
1000
+ * Policy:
1001
+ * - Allow absolute URLs with protocols: http, https, mailto, tel.
1002
+ * - Allow root-relative ("/path") and hash-only ("#section") links.
1003
+ * - Reject protocol-relative URLs ("//example.com"), bare domains ("example.com"),
1004
+ * backslashes, executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
1005
+ * - Preserve percent-encoding from the original normalized input.
1006
+ */
1007
+ function sanitizeHref(raw) {
1008
+ if (typeof raw !== "string") return null;
1009
+ const normalized = normalizeInput(raw);
1010
+ if (!normalized) return null;
1011
+ if (normalized.includes("\\") || normalized.startsWith("//")) return null;
1012
+ if (normalized.startsWith("/")) return normalized;
1013
+ if (normalized.startsWith("#")) return normalized;
1014
+ return sanitizeAbsoluteHref(normalized);
1015
+ }
1016
+ function sanitizeAbsoluteHref(normalized) {
1017
+ const schemeMatch = normalizeInput(decodeForSchemeCheck(normalized)).match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);
1018
+ if (!schemeMatch) return null;
1019
+ const rawScheme = schemeMatch[1];
1020
+ if (!rawScheme) return null;
1021
+ const protocol = `${rawScheme.toLowerCase()}:`;
1022
+ if (!SAFE_PROTOCOLS.has(protocol)) return null;
1023
+ try {
1024
+ const parsed = new URL(normalized);
1025
+ if (!SAFE_PROTOCOLS.has(parsed.protocol.toLowerCase())) return null;
1026
+ } catch {
1027
+ return null;
1028
+ }
1029
+ return normalized;
1030
+ }
1031
+ //#endregion
998
1032
  //#region ../blocks/src/pageRenderItemRoles.ts
999
1033
  /** Zero-based index; 1-based parity. Last > first > odd-count middle > parity.
1000
1034
  * The declared featured role takes precedence over every position.
@@ -1039,6 +1073,15 @@ const resolvedSurfaceSchema = z.unknown().transform((value, context) => {
1039
1073
  return z.NEVER;
1040
1074
  }
1041
1075
  });
1076
+ const slotPresentationSchema = z.object({
1077
+ slots: z.record(z.string(), resolvedSurfaceSchema),
1078
+ states: z.record(z.string(), z.record(z.string(), resolvedSurfaceSchema))
1079
+ });
1080
+ const surfacePresentationSchema = slotPresentationSchema.extend({ items: z.object({
1081
+ card: slotPresentationSchema,
1082
+ statement: slotPresentationSchema,
1083
+ highlight: slotPresentationSchema
1084
+ }) });
1042
1085
  const lookListPresentationSchemaShape = {
1043
1086
  sectionAction: z.object({
1044
1087
  label: z.string(),
@@ -1078,19 +1121,14 @@ const lookListPresentationSchemaShape = {
1078
1121
  "highlight"
1079
1122
  ])).optional()
1080
1123
  }).optional(),
1081
- roleSurfaces: z.record(z.enum([
1082
- "card",
1083
- "statement",
1084
- "highlight"
1085
- ]), resolvedSurfaceSchema).optional(),
1086
1124
  panelHeading: z.string().optional(),
1087
1125
  lookSlots: z.partialRecord(z.enum(arrangementSlotNames), z.enum(arrangementSlotNames)).optional(),
1088
- itemSurfaces: z.record(z.string(), resolvedSurfaceSchema).optional()
1126
+ surfacePresentation: surfacePresentationSchema.optional()
1089
1127
  };
1090
- function listLookSlot(presentation, slot) {
1128
+ function listLookSlot(presentation, slot, state) {
1091
1129
  const name = presentation.lookSlots?.[slot];
1092
1130
  if (name === void 0) return {};
1093
- const surface = presentation.itemSurfaces?.[slot];
1131
+ const surface = (state ? presentation.surfacePresentation?.states[slot]?.[state] : void 0) ?? presentation.surfacePresentation?.slots[slot];
1094
1132
  return {
1095
1133
  "data-slot": name,
1096
1134
  ...surface === void 0 ? { "data-surface": "section" } : resolvedItemSurfaceProps(surface, slot)
@@ -1108,15 +1146,9 @@ function resolvedSurfaceBackground(surface, token) {
1108
1146
  /** Pagination uses the displayed collection, just as declarative repeaters do. */
1109
1147
  function listItemPresentation(presentation, index, count, featured = false) {
1110
1148
  const role = presentation.itemRoles ? itemRole(index, count, presentation.itemRoles, featured) : void 0;
1111
- const surface = role ? presentation.roleSurfaces?.[role] : void 0;
1112
- return surface ? {
1149
+ return presentation.surfacePresentation ? {
1113
1150
  ...presentation,
1114
- itemSurfaces: {
1115
- ...presentation.itemSurfaces,
1116
- item: surface,
1117
- row: surface,
1118
- "row-continued": surface
1119
- }
1151
+ surfacePresentation: selectItemSurfacePresentation(presentation.surfacePresentation, role)
1120
1152
  } : presentation;
1121
1153
  }
1122
1154
  //#endregion
@@ -1161,6 +1193,320 @@ function defineProgressiveBlockRuntime(runtime) {
1161
1193
  function defineClientOwnedBlockRuntime(runtime) {
1162
1194
  return runtime;
1163
1195
  }
1196
+ //#endregion
1197
+ //#region ../commerce/src/utils/assertNever.ts
1198
+ function assertNever(value, message) {
1199
+ if (message) throw new Error(message);
1200
+ throw new Error(`Unexpected value: ${String(value)}`);
1201
+ }
1202
+ //#endregion
1203
+ //#region ../commerce/src/purchase/bookingInstalmentSchedule.ts
1204
+ function resolveBookingInitialInstalmentAmountCents(input) {
1205
+ const totalAmountCents = Math.max(0, input.totalAmountCents);
1206
+ switch (input.plan.kind) {
1207
+ case "deposit_plus_one_remainder":
1208
+ case "deposit_plus_scheduled_instalments": return clampConfiguredAmount(input.plan.depositAmountCents, totalAmountCents);
1209
+ case "equal_scheduled_instalments": return splitAmountWithRemainderInFirst(totalAmountCents, input.plan.instalmentCount)[0] ?? 0;
1210
+ default: return assertNever(input.plan);
1211
+ }
1212
+ }
1213
+ function buildBookingInstalmentSchedule(input) {
1214
+ const totalAmountCents = Math.max(0, input.totalAmountCents);
1215
+ switch (input.plan.kind) {
1216
+ case "deposit_plus_one_remainder": {
1217
+ const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
1218
+ const remainderAmountCents = Math.max(0, totalAmountCents - depositAmountCents);
1219
+ return omitZeroAmountFutureRows([createScheduleRow({
1220
+ sequence: 1,
1221
+ stateAtBooking: "paid_today",
1222
+ dueAt: input.anchorAt,
1223
+ amountCents: depositAmountCents
1224
+ }), createScheduleRow({
1225
+ sequence: 2,
1226
+ stateAtBooking: "scheduled",
1227
+ dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, input.plan.remainderDueCount, input.plan.intervalUnit),
1228
+ amountCents: remainderAmountCents
1229
+ })]);
1230
+ }
1231
+ case "deposit_plus_scheduled_instalments": {
1232
+ const plan = input.plan;
1233
+ const depositAmountCents = resolveBookingInitialInstalmentAmountCents(input);
1234
+ const instalmentAmounts = splitAmountWithRemainderInFirst(Math.max(0, totalAmountCents - depositAmountCents), plan.instalmentCount);
1235
+ return omitZeroAmountFutureRows([createScheduleRow({
1236
+ sequence: 1,
1237
+ stateAtBooking: "paid_today",
1238
+ dueAt: input.anchorAt,
1239
+ amountCents: depositAmountCents
1240
+ }), ...instalmentAmounts.map((amountCents, index) => createScheduleRow({
1241
+ sequence: index + 2,
1242
+ stateAtBooking: "scheduled",
1243
+ dueAt: addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * (index + 1), plan.intervalUnit),
1244
+ amountCents
1245
+ }))]);
1246
+ }
1247
+ case "equal_scheduled_instalments": {
1248
+ const plan = input.plan;
1249
+ return omitZeroAmountFutureRows(splitAmountWithRemainderInFirst(totalAmountCents, plan.instalmentCount).map((amountCents, index) => createScheduleRow({
1250
+ sequence: index + 1,
1251
+ stateAtBooking: index === 0 ? "paid_today" : "scheduled",
1252
+ dueAt: index === 0 ? input.anchorAt : addIntervalPreservingMonthAnchor(input.anchorAt, plan.intervalCount * index, plan.intervalUnit),
1253
+ amountCents
1254
+ })));
1255
+ }
1256
+ default: return assertNever(input.plan);
1257
+ }
1258
+ }
1259
+ function createScheduleRow(input) {
1260
+ return {
1261
+ id: `payment-${input.sequence}`,
1262
+ sequence: input.sequence,
1263
+ stateAtBooking: input.stateAtBooking,
1264
+ dueAt: input.dueAt,
1265
+ amountCents: input.amountCents
1266
+ };
1267
+ }
1268
+ /** Resolve real rows first: zero future payments do not extend the deadline. */
1269
+ function canInstalmentPlanCompleteBefore(input) {
1270
+ const deadline = Date.parse(input.deadline);
1271
+ if (!Number.isFinite(Date.parse(input.now)) || !Number.isFinite(deadline)) return false;
1272
+ return input.schedule.every((row) => Date.parse(row.dueAt) < deadline);
1273
+ }
1274
+ /** Later obligations are identified by their state, never their position. */
1275
+ function getBookingLaterInstalments(schedule) {
1276
+ return schedule.filter((row) => row.stateAtBooking === "scheduled");
1277
+ }
1278
+ //#endregion
1279
+ //#region ../commerce/src/purchase/bookingPaymentSelection.ts
1280
+ /** Identity is decided against the authoritative quote, before display repricing. */
1281
+ function resolveAvailableBookingCollectionOptions(input) {
1282
+ const deadline = input.instalmentCollectionDeadlineAt === void 0 ? input.bookingStartAt : input.instalmentCollectionDeadlineAt;
1283
+ const configured = input.paymentTerms.allowedOptions;
1284
+ if (!validateBookingPaymentOptionKinds(configured.map((option) => option.kind)).ok) return [];
1285
+ const available = configured.filter((option) => option.kind !== "instalment_plan" || Number.isFinite(Date.parse(input.now))).map((option) => resolveBookingCollectionOptionFacts({
1286
+ option,
1287
+ totalCents: input.totalCents,
1288
+ anchorAt: input.now,
1289
+ bookingStartAt: input.bookingStartAt
1290
+ })).filter((option) => option.kind !== "instalment_plan" || deadline !== null && canInstalmentPlanCompleteBefore({
1291
+ now: input.now,
1292
+ deadline,
1293
+ schedule: option.schedule
1294
+ }));
1295
+ const upfront = resolveBookingCollectionOptionFacts({
1296
+ option: { kind: "upfront" },
1297
+ totalCents: input.totalCents,
1298
+ anchorAt: input.now,
1299
+ bookingStartAt: input.bookingStartAt
1300
+ });
1301
+ const collapsed = available.map((option) => isBookingCollectionEquivalentToUpfront(option) ? upfront : option);
1302
+ const unique = collapsed.filter((option, index) => collapsed.findIndex((other) => other.kind === option.kind) === index);
1303
+ return unique.length > 0 ? unique : [upfront];
1304
+ }
1305
+ function isBookingCollectionEquivalentToUpfront(option) {
1306
+ switch (option.kind) {
1307
+ case "upfront": return true;
1308
+ case "deferred_manual": return false;
1309
+ case "flexible_balance": return option.config.depositRefundability === "refundable" && option.dueNowCents === option.totalCents;
1310
+ case "instalment_plan": return option.depositRefundability !== "non_refundable" && option.schedule.length === 1;
1311
+ default: return assertNever(option);
1312
+ }
1313
+ }
1314
+ function resolveBookingCollectionOptionFacts(input) {
1315
+ const money = {
1316
+ totalCents: input.totalCents,
1317
+ anchorAt: input.anchorAt,
1318
+ bookingStartAt: input.bookingStartAt
1319
+ };
1320
+ switch (input.option.kind) {
1321
+ case "upfront": return {
1322
+ ...money,
1323
+ kind: "upfront",
1324
+ dueNowCents: input.totalCents
1325
+ };
1326
+ case "deferred_manual": return {
1327
+ ...money,
1328
+ kind: "deferred_manual",
1329
+ dueNowCents: 0
1330
+ };
1331
+ case "instalment_plan": {
1332
+ const schedule = buildBookingInstalmentSchedule({
1333
+ anchorAt: input.anchorAt,
1334
+ totalAmountCents: input.totalCents,
1335
+ plan: input.option.plan
1336
+ });
1337
+ return {
1338
+ ...money,
1339
+ kind: "instalment_plan",
1340
+ plan: input.option.plan,
1341
+ schedule,
1342
+ dueNowCents: schedule[0]?.amountCents ?? 0,
1343
+ depositRefundability: getBookingInstalmentDepositRefundability(input.option.plan)
1344
+ };
1345
+ }
1346
+ case "flexible_balance": {
1347
+ const dueNowCents = resolveFlexibleBalanceInitialPaymentCents({
1348
+ totalAmountCents: input.totalCents,
1349
+ config: input.option.config
1350
+ });
1351
+ return {
1352
+ ...money,
1353
+ kind: "flexible_balance",
1354
+ config: input.option.config,
1355
+ dueNowCents,
1356
+ remainingBalanceCents: Math.max(0, input.totalCents - dueNowCents),
1357
+ balanceDueAt: resolveFlexibleBalanceDueAt({
1358
+ bookingStartAt: input.bookingStartAt ?? input.anchorAt,
1359
+ dueDateRule: input.option.config.dueDateRule
1360
+ })
1361
+ };
1362
+ }
1363
+ default: return assertNever(input.option);
1364
+ }
1365
+ }
1366
+ /** Discounts change preview money, never an already admitted collection identity. */
1367
+ function repriceBookingCollectionOptions(input) {
1368
+ return input.options.map((option) => option.totalCents === input.totalCents ? option : resolveBookingCollectionOptionFacts({
1369
+ option,
1370
+ totalCents: input.totalCents,
1371
+ anchorAt: option.anchorAt,
1372
+ bookingStartAt: option.bookingStartAt
1373
+ }));
1374
+ }
1375
+ //#endregion
1376
+ //#region ../commerce/src/purchase/checkoutPaymentFlow.ts
1377
+ function planCheckoutPaymentFlow(options) {
1378
+ const amountDueCents = toNonNegativeCents(options.amountDueCents);
1379
+ const discountCents = toNonNegativeCents(options.discountCents);
1380
+ const availableCreditCents = toNonNegativeCents(options.availableCreditCents);
1381
+ const minimumStripeChargeCents = toNonNegativeCents(options.minimumStripeChargeCents ?? 0);
1382
+ if (amountDueCents <= 0) return {
1383
+ kind: "bypass",
1384
+ bypassReason: discountCents > 0 ? "discount_free" : "free",
1385
+ reserveCreditCents: 0
1386
+ };
1387
+ if (!options.creditCurrencyMatches || availableCreditCents <= 0) return {
1388
+ kind: "stripe",
1389
+ reserveCreditCents: toNonNegativeCents(0)
1390
+ };
1391
+ if (availableCreditCents >= amountDueCents) return {
1392
+ kind: "store_credit_only",
1393
+ reserveCreditCents: amountDueCents
1394
+ };
1395
+ return {
1396
+ kind: "stripe",
1397
+ reserveCreditCents: planMixedPaymentCreditReservation({
1398
+ amountDueCents,
1399
+ availableCreditCents,
1400
+ minimumStripeChargeCents
1401
+ })
1402
+ };
1403
+ }
1404
+ function planMixedPaymentCreditReservation(input) {
1405
+ const chargeAfterFullCredit = input.amountDueCents - input.availableCreditCents;
1406
+ if (input.minimumStripeChargeCents <= 0 || chargeAfterFullCredit <= 0 || chargeAfterFullCredit >= input.minimumStripeChargeCents) return input.availableCreditCents;
1407
+ if (input.amountDueCents < input.minimumStripeChargeCents) return toNonNegativeCents(0);
1408
+ return toNonNegativeCents(input.amountDueCents - input.minimumStripeChargeCents);
1409
+ }
1410
+ /**
1411
+ * Apply site credit to a flexible-balance booking before card payment.
1412
+ *
1413
+ * Credit first reduces the configured payment due now. Once that payment is
1414
+ * covered, any remaining credit reduces the later balance. If a partial credit
1415
+ * application would leave a positive card charge below Stripe's minimum, less
1416
+ * credit is used so the configured payment can still be collected.
1417
+ */
1418
+ function planFlexibleBalanceCreditFirst(input) {
1419
+ const totalCents = toNonNegativeCents(input.totalAfterDiscountCents);
1420
+ const configuredDueNowCents = toNonNegativeCents(Math.min(input.configuredPaymentDueNowCents, totalCents));
1421
+ const availableCreditCents = toNonNegativeCents(input.creditCurrencyMatches ? input.availableCreditCents : 0);
1422
+ const minimumStripeChargeCents = toNonNegativeCents(input.minimumStripeChargeCents ?? 0);
1423
+ if (availableCreditCents >= totalCents && totalCents > 0) return {
1424
+ kind: "credit_only",
1425
+ reserveCreditCents: totalCents,
1426
+ cardDueNowCents: toNonNegativeCents(0),
1427
+ laterBalanceCents: toNonNegativeCents(0)
1428
+ };
1429
+ let reserveCreditCents = toNonNegativeCents(Math.min(availableCreditCents, totalCents));
1430
+ if (reserveCreditCents >= configuredDueNowCents) return {
1431
+ kind: "flexible_balance",
1432
+ reserveCreditCents,
1433
+ cardDueNowCents: toNonNegativeCents(0),
1434
+ laterBalanceCents: toNonNegativeCents(totalCents - reserveCreditCents)
1435
+ };
1436
+ const plannedCardDueNowCents = toNonNegativeCents(configuredDueNowCents - reserveCreditCents);
1437
+ if (plannedCardDueNowCents > 0 && plannedCardDueNowCents < minimumStripeChargeCents) {
1438
+ if (configuredDueNowCents < minimumStripeChargeCents) return {
1439
+ kind: "card_below_minimum",
1440
+ reserveCreditCents: toNonNegativeCents(0),
1441
+ cardDueNowCents: configuredDueNowCents,
1442
+ laterBalanceCents: toNonNegativeCents(totalCents - configuredDueNowCents)
1443
+ };
1444
+ reserveCreditCents = toNonNegativeCents(configuredDueNowCents - minimumStripeChargeCents);
1445
+ }
1446
+ const cardDueNowCents = toNonNegativeCents(configuredDueNowCents - reserveCreditCents);
1447
+ return {
1448
+ kind: "flexible_balance",
1449
+ reserveCreditCents,
1450
+ cardDueNowCents,
1451
+ laterBalanceCents: toNonNegativeCents(totalCents - reserveCreditCents - cardDueNowCents)
1452
+ };
1453
+ }
1454
+ //#endregion
1455
+ //#region ../commerce/src/purchase/stripeMinimumCharge.ts
1456
+ const STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY = {
1457
+ GBP: 30,
1458
+ USD: 50,
1459
+ EUR: 50,
1460
+ AED: 200,
1461
+ AUD: 50,
1462
+ BGN: 100,
1463
+ BRL: 50,
1464
+ CAD: 50,
1465
+ CHF: 50,
1466
+ CZK: 1500,
1467
+ DKK: 250,
1468
+ HKD: 400,
1469
+ HUF: 17500,
1470
+ JPY: 50,
1471
+ MXN: 1e3,
1472
+ MYR: 200,
1473
+ NOK: 300,
1474
+ NZD: 50,
1475
+ PLN: 200,
1476
+ RON: 200,
1477
+ SEK: 300,
1478
+ SGD: 50,
1479
+ THB: 1e3
1480
+ };
1481
+ function isStripeMinimumChargeCurrency(currency) {
1482
+ return currency in STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY;
1483
+ }
1484
+ function getStripeMinimumChargeRequirement(rawCurrency) {
1485
+ let currency;
1486
+ try {
1487
+ currency = normalizeCurrencyCode(rawCurrency);
1488
+ } catch {
1489
+ return null;
1490
+ }
1491
+ const currencyKey = currency;
1492
+ if (!isStripeMinimumChargeCurrency(currencyKey)) return null;
1493
+ return {
1494
+ currency,
1495
+ minimumAmountCents: STRIPE_MINIMUM_CHARGE_CENTS_BY_CURRENCY[currencyKey]
1496
+ };
1497
+ }
1498
+ //#endregion
1499
+ //#region ../commerce/src/purchase/checkoutCopy.ts
1500
+ /**
1501
+ * Customer copy shared by checkout surfaces, so one approved wording reaches
1502
+ * every place that shows it.
1503
+ */
1504
+ const checkoutCopy = {
1505
+ /** A payment is still being confirmed; checking again is safe. */
1506
+ checkoutStillConfirming: "We’re still confirming your payment. This can take a minute – you can check again, and you won’t be charged twice.",
1507
+ /** A previous attempt can't be confirmed automatically; the business needs to check it. */
1508
+ checkoutAssistanceRequired: "We can’t confirm your last payment attempt yet. Please don’t pay again – contact the business so they can check it."
1509
+ };
1164
1510
  const unsupportedEventRegistrationPageSurfaceSubjectSchema = z.object({
1165
1511
  kind: z.literal("unsupported"),
1166
1512
  reason: z.enum([
@@ -1556,7 +1902,7 @@ function deriveBookingFormViewState(input) {
1556
1902
  kind: "success",
1557
1903
  resourceName: input.verificationState.resourceName
1558
1904
  };
1559
- default: return assertNever$1(input.verificationState);
1905
+ default: return assertNever$2(input.verificationState);
1560
1906
  }
1561
1907
  }
1562
1908
  function resolveBookingSiteId(siteId, form) {
@@ -1922,7 +2268,7 @@ function formatBookingSubmissionPreparationError(error) {
1922
2268
  case "sliding-amount-out-of-range": return `Please choose an amount within the sliding scale for "${error.serviceTitle}".`;
1923
2269
  case "payment-option-unsupported": return `Service "${error.serviceTitle}" has a payment option that is not supported yet.`;
1924
2270
  case "service-missing-duration": return `Service "${error.serviceTitle}" is missing duration. Please update the service in the dashboard to include a duration (e.g., 30 minutes).`;
1925
- default: return assertNever$1(error);
2271
+ default: return assertNever$2(error);
1926
2272
  }
1927
2273
  }
1928
2274
  const DEFAULT_BOOKING_SUCCESS_COPY = {
@@ -2782,59 +3128,6 @@ function eventLocalDateKey(event) {
2782
3128
  }));
2783
3129
  }
2784
3130
  //#endregion
2785
- //#region ../blocks/src/primitives/content/utils/sanitizeHref.ts
2786
- const SAFE_PROTOCOLS = /* @__PURE__ */ new Set([
2787
- "http:",
2788
- "https:",
2789
- "mailto:",
2790
- "tel:"
2791
- ]);
2792
- const CONTROL_CHARS_PATTERN = /[\u0000-\u001F\u007F]+/g;
2793
- function normalizeInput(value) {
2794
- return value.replace(CONTROL_CHARS_PATTERN, "").trim();
2795
- }
2796
- function decodeForSchemeCheck(value) {
2797
- try {
2798
- return decodeURIComponent(value);
2799
- } catch {
2800
- return value;
2801
- }
2802
- }
2803
- /**
2804
- * Returns a safe href for rich-text anchors, or null when the value should not be rendered.
2805
- *
2806
- * Policy:
2807
- * - Allow absolute URLs with protocols: http, https, mailto, tel.
2808
- * - Allow root-relative ("/path") and hash-only ("#section") links.
2809
- * - Reject protocol-relative URLs ("//example.com"), bare domains ("example.com"),
2810
- * backslashes, executable schemes (javascript/data/vbscript), malformed URLs, and empty values.
2811
- * - Preserve percent-encoding from the original normalized input.
2812
- */
2813
- function sanitizeHref(raw) {
2814
- if (typeof raw !== "string") return null;
2815
- const normalized = normalizeInput(raw);
2816
- if (!normalized) return null;
2817
- if (normalized.includes("\\") || normalized.startsWith("//")) return null;
2818
- if (normalized.startsWith("/")) return normalized;
2819
- if (normalized.startsWith("#")) return normalized;
2820
- return sanitizeAbsoluteHref(normalized);
2821
- }
2822
- function sanitizeAbsoluteHref(normalized) {
2823
- const schemeMatch = normalizeInput(decodeForSchemeCheck(normalized)).match(/^([a-zA-Z][a-zA-Z0-9+.-]*):/);
2824
- if (!schemeMatch) return null;
2825
- const rawScheme = schemeMatch[1];
2826
- if (!rawScheme) return null;
2827
- const protocol = `${rawScheme.toLowerCase()}:`;
2828
- if (!SAFE_PROTOCOLS.has(protocol)) return null;
2829
- try {
2830
- const parsed = new URL(normalized);
2831
- if (!SAFE_PROTOCOLS.has(parsed.protocol.toLowerCase())) return null;
2832
- } catch {
2833
- return null;
2834
- }
2835
- return normalized;
2836
- }
2837
- //#endregion
2838
3131
  //#region ../blocks/src/system/media/slotContracts.ts
2839
3132
  const DEFAULT_MIN_SOURCE_WIDTH = 1200;
2840
3133
  const LARGE_MIN_SOURCE_WIDTH = 1400;
@@ -3947,6 +4240,8 @@ function renderMarks(text, marks, key, context) {
3947
4240
  case "strong": return /* @__PURE__ */ jsx("strong", { children: acc }, `${key}-b`);
3948
4241
  case "italic":
3949
4242
  case "em": return /* @__PURE__ */ jsx("em", { children: acc }, `${key}-i`);
4243
+ case "strike": return /* @__PURE__ */ jsx("s", { children: acc }, `${key}-s`);
4244
+ case "code": return /* @__PURE__ */ jsx("code", { children: acc }, `${key}-c`);
3950
4245
  case "link": return renderLinkMark(mark, acc, key, context);
3951
4246
  default: return acc;
3952
4247
  }
@@ -3995,10 +4290,21 @@ function renderHeading(node, key, children, context) {
3995
4290
  ...level === 2 ? listLookSlot(context, "heading") : {}
3996
4291
  }, children);
3997
4292
  }
4293
+ function orderedListStart(value) {
4294
+ return typeof value === "number" && Number.isInteger(value) && value > 0 ? value : void 0;
4295
+ }
4296
+ function orderedListType(value) {
4297
+ return value === "1" || value === "a" || value === "A" || value === "i" || value === "I" ? value : void 0;
4298
+ }
3998
4299
  function renderSimpleNode(node, key, children, context) {
3999
4300
  switch (node.type) {
4000
4301
  case "bulletList": return /* @__PURE__ */ jsx("ul", { children }, key);
4001
- case "orderedList": return /* @__PURE__ */ jsx("ol", { children }, key);
4302
+ case "orderedList": return /* @__PURE__ */ jsx("ol", {
4303
+ start: orderedListStart(node.attrs?.start),
4304
+ type: orderedListType(node.attrs?.type),
4305
+ children
4306
+ }, key);
4307
+ case "codeBlock": return /* @__PURE__ */ jsx("pre", { children: /* @__PURE__ */ jsx("code", { children }) }, key);
4002
4308
  case "listItem": return /* @__PURE__ */ jsx("li", { children }, key);
4003
4309
  case "horizontalRule": return /* @__PURE__ */ jsx("hr", {}, key);
4004
4310
  case "hardBreak": return /* @__PURE__ */ jsx("br", {}, key);
@@ -4119,7 +4425,7 @@ function capacityPlacesLabel(source, display, wording) {
4119
4425
  case "low": return formatRemainingPlaces(source, wording);
4120
4426
  case "unlimited": return wording.unlimited ?? null;
4121
4427
  case "open": return wording.open ?? null;
4122
- default: return assertNever(remaining);
4428
+ default: return assertNever$1(remaining);
4123
4429
  }
4124
4430
  }
4125
4431
  function hybridPlacesLabel(event, display, wording) {
@@ -4580,18 +4886,11 @@ function transformRegistrationOptionsResponse(response) {
4580
4886
  registration: response.registration,
4581
4887
  paymentOptions: response.paymentOptions,
4582
4888
  isFree: response.paymentOptions.some((option) => option.kind === "free"),
4583
- credit: response.customer.credit ? {
4584
- summary: {
4585
- currency: response.customer.credit.currency,
4586
- balanceCents: response.customer.credit.availableCents,
4587
- reservedCents: 0,
4588
- availableCents: response.customer.credit.availableCents
4589
- },
4590
- transactions: []
4591
- } : null,
4889
+ credit: customerCredit(response.customer.credit),
4592
4890
  requiresPayment: monetaryPaymentAvailable,
4593
4891
  pricingStrategy: response.pricing.strategy,
4594
4892
  paymentTerms: response.pricing.paymentTerms,
4893
+ instalmentCollectionDeadlineAt: response.pricing.instalmentCollectionDeadlineAt,
4595
4894
  selectedPricingOptionId: response.pricing.lines.length === 1 ? response.pricing.lines[0]?.pricingOptionId ?? null : null,
4596
4895
  ticketLines: response.pricing.lines.map((line) => ({
4597
4896
  pricingOptionId: line.pricingOptionId,
@@ -4615,6 +4914,18 @@ function transformRegistrationOptionsResponse(response) {
4615
4914
  availableMemberships: [...response.entitlements.availableForPurchase.memberships]
4616
4915
  };
4617
4916
  }
4917
+ function customerCredit(credit) {
4918
+ if (!credit) return null;
4919
+ return {
4920
+ summary: {
4921
+ currency: credit.currency,
4922
+ balanceCents: credit.availableCents,
4923
+ reservedCents: 0,
4924
+ availableCents: credit.availableCents
4925
+ },
4926
+ transactions: []
4927
+ };
4928
+ }
4618
4929
  function hasMonetaryPaymentOption(response) {
4619
4930
  return response.paymentOptions.some((option) => option.kind === "payInFull" || option.kind === "deferredManual" || option.kind === "instalmentPlan" || option.kind === "flexibleBalance");
4620
4931
  }
@@ -4690,7 +5001,7 @@ function confirmationPaymentRows(payment) {
4690
5001
  case "none": return [];
4691
5002
  case "settled": return payment.rows;
4692
5003
  case "due": return [...payment.paidRows, payment.amountDueRow];
4693
- default: return assertNever(payment);
5004
+ default: return assertNever$1(payment);
4694
5005
  }
4695
5006
  }
4696
5007
  function row(label, value) {
@@ -4738,7 +5049,7 @@ function presentConfirmationPayment(payment) {
4738
5049
  rows: paidRows
4739
5050
  } : duePayment(payment.balance, payment.currency, paidRows, payment.kind === "monetary" && payment.paymentMethod === "manual" ? OFFLINE_BOOKING_PAYMENT_INSTRUCTIONS : null);
4740
5051
  }
4741
- default: return assertNever(payment);
5052
+ default: return assertNever$1(payment);
4742
5053
  }
4743
5054
  }
4744
5055
  /** Places and payment, only when the outcome carries the booking's details. */
@@ -4757,7 +5068,7 @@ function outcomeFacts(outcome) {
4757
5068
  payment: presentConfirmationPayment(outcome.payment)
4758
5069
  };
4759
5070
  }
4760
- default: return assertNever(outcome);
5071
+ default: return assertNever$1(outcome);
4761
5072
  }
4762
5073
  }
4763
5074
  function scheduleRows(event, when, where, display) {
@@ -4844,7 +5155,7 @@ function resolveFinishedPresentation(presentation, context) {
4844
5155
  case "paymentStatus":
4845
5156
  case "paymentFailed":
4846
5157
  case "error": return presentation;
4847
- default: return assertNever(presentation);
5158
+ default: return assertNever$1(presentation);
4848
5159
  }
4849
5160
  }
4850
5161
  //#endregion
@@ -4976,7 +5287,7 @@ function editRegistrationDraft(draft, edit) {
4976
5287
  ...draft,
4977
5288
  selectedSlidingAmountInput: updated(draft.selectedSlidingAmountInput, edit.value)
4978
5289
  };
4979
- default: return assertNever$1(edit);
5290
+ default: return assertNever$2(edit);
4980
5291
  }
4981
5292
  }
4982
5293
  /** Ready invitations own their reserved selection; identity fields remain editable. */
@@ -5032,7 +5343,7 @@ function invitationSubmission(invitation) {
5032
5343
  kind: "blocked",
5033
5344
  message: invitation.message
5034
5345
  };
5035
- default: return assertNever$1(invitation);
5346
+ default: return assertNever$2(invitation);
5036
5347
  }
5037
5348
  }
5038
5349
  //#endregion
@@ -5121,7 +5432,7 @@ function findClaimEvent(subject, events) {
5121
5432
  switch (subject.kind) {
5122
5433
  case "event_occurrence": return findEventByOccurrenceId(events, subject.occurrenceId);
5123
5434
  case "whole_series": return events.find((event) => event.registrationSubject.kind === "wholeSeries" && event.registrationSubject.eventSeriesId === subject.eventSeriesId) ?? null;
5124
- default: return assertNever$1(subject);
5435
+ default: return assertNever$2(subject);
5125
5436
  }
5126
5437
  }
5127
5438
  /** Reserved quantities and amounts have one interpretation across restoration and submission. */
@@ -5140,7 +5451,7 @@ function claimedSelection(subject) {
5140
5451
  ticketsCount: subject.seatCount,
5141
5452
  slidingAmountInput: subject.selectedSlidingAmount === null ? null : formatCentsAsCurrencyInput(subject.selectedSlidingAmount)
5142
5453
  };
5143
- default: return assertNever$1(subject);
5454
+ default: return assertNever$2(subject);
5144
5455
  }
5145
5456
  }
5146
5457
  function resolveWaitlistClaimRestoration(input) {
@@ -5203,7 +5514,7 @@ function buildBookingPaymentOptionViewModel(input) {
5203
5514
  ...input,
5204
5515
  option: input.option
5205
5516
  });
5206
- default: return assertNever$1(input.option);
5517
+ default: return assertNever$2(input.option);
5207
5518
  }
5208
5519
  }
5209
5520
  function depositPolicy(refundability) {
@@ -5390,7 +5701,7 @@ function projectReviewedBookingCollectionMoney(facts, terms) {
5390
5701
  };
5391
5702
  case "upfront":
5392
5703
  case "deferred_manual": return money;
5393
- default: return assertNever$1(facts);
5704
+ default: return assertNever$2(facts);
5394
5705
  }
5395
5706
  }
5396
5707
  function requireReviewedLaterPaymentAmount(terms, index) {
@@ -5609,7 +5920,7 @@ function resolveHeadlessEventRegistrationStatus(wizard) {
5609
5920
  case "select-tickets":
5610
5921
  case "enter-details":
5611
5922
  case "select-payment": return { tag: "ready" };
5612
- default: return assertNever$1(wizard.flow);
5923
+ default: return assertNever$2(wizard.flow);
5613
5924
  }
5614
5925
  }
5615
5926
  function registrationSurfaceUnavailable(wizard) {
@@ -5654,7 +5965,7 @@ function resolveHeadlessEventRegistrationView(wizard) {
5654
5965
  case "select-payment":
5655
5966
  case "submitting":
5656
5967
  case "payment": return { kind: "form" };
5657
- default: return assertNever$1(wizard.flow);
5968
+ default: return assertNever$2(wizard.flow);
5658
5969
  }
5659
5970
  }
5660
5971
  function deriveEventRegistrationSteps(input) {
@@ -5964,6 +6275,7 @@ function buildEventRegistrationPaymentOptionsViewModel(input) {
5964
6275
  options: resolveAvailableBookingCollectionOptions({
5965
6276
  paymentTerms: { allowedOptions: approvedOptions },
5966
6277
  now: input.nowIso,
6278
+ instalmentCollectionDeadlineAt: input.instalmentCollectionDeadlineAt,
5967
6279
  bookingStartAt: input.startsAt ?? null,
5968
6280
  totalCents: input.quotedSubtotalCents
5969
6281
  }),
@@ -6290,7 +6602,7 @@ function reduceActiveRegistration(state, action) {
6290
6602
  step: "select-tickets"
6291
6603
  } : state;
6292
6604
  case "event-replaced": return replaceRegistrationEvent(state, action);
6293
- default: return assertNever$1(action);
6605
+ default: return assertNever$2(action);
6294
6606
  }
6295
6607
  }
6296
6608
  function isRegistrationLocked(step) {
@@ -6314,7 +6626,7 @@ function updateRegistrationDraft(state, action) {
6314
6626
  ...state,
6315
6627
  eligibility: action.eligibility
6316
6628
  };
6317
- default: return assertNever$1(action);
6629
+ default: return assertNever$2(action);
6318
6630
  }
6319
6631
  }
6320
6632
  /**
@@ -6402,7 +6714,7 @@ function reduceCompletedRegistration(state, action) {
6402
6714
  case "set-manual-payment-selection":
6403
6715
  case "use-card-instead-of-pass":
6404
6716
  case "use-pass": return state;
6405
- default: return assertNever$1(action);
6717
+ default: return assertNever$2(action);
6406
6718
  }
6407
6719
  }
6408
6720
  /** A lookup can restore only the active request, never a completed or replaced draft. */
@@ -6458,10 +6770,10 @@ function applyWaitlistClaimLookup(state, action) {
6458
6770
  action: "none"
6459
6771
  }
6460
6772
  };
6461
- default: return assertNever$1(restoration);
6773
+ default: return assertNever$2(restoration);
6462
6774
  }
6463
6775
  }
6464
- default: return assertNever$1(lookup);
6776
+ default: return assertNever$2(lookup);
6465
6777
  }
6466
6778
  }
6467
6779
  /** Completion remembers places; resetting the draft leaves this visit's outcomes intact. */
@@ -6556,7 +6868,7 @@ function registrationPresentation(state, route) {
6556
6868
  layout: "whole",
6557
6869
  screen: "paymentFailed"
6558
6870
  };
6559
- default: return assertNever$1(step);
6871
+ default: return assertNever$2(step);
6560
6872
  }
6561
6873
  }
6562
6874
  /**
@@ -6611,4 +6923,4 @@ function registrationStepLabel(step, context) {
6611
6923
  }
6612
6924
  }
6613
6925
  //#endregion
6614
- export { getEligibilityFlowFlags as $, resolveDefaultBookingServiceId as $n, parseNewsletterListId as $r, resolveImageSourceSetWithContext as $t, isEventRegistrationAvailable as A, isEventFull as An, defineProgressiveBlockRuntime as Ar, getTicketSelectionTotal as At, paymentChoiceDetails as B, getBookingRedirectStateFromLocation as Bn, CANCELLED_SESSION_STATUS as Br, registrationDisplaySchema as Bt, resolveGuestNextStepCheck as C, canJoinEventWaitlistOnAnyMode as Cn, createInteractiveIslandCodec as Cr, occurrenceTitleOverride as Ct, settledRemainingPlaces as D, getEventAvailability as Dn, resolveEventRegistrationScopedEvents as Dr, canRequestTicketOption as Dt, resolveRegistrationTicketContinuation as E, formatTotalCapacity as En, normalizeEventRegistrationPageSurfaceSubject as Er, formatPrice as Et, toHeadlessPaymentSelection as F, buildBookingFormInteractiveIslandProps as Fn, lookListPresentationSchemaShape as Fr, getRegistrationStartAt as Ft, resolveRegistrationTarget as G, isBookingServiceSlidingAmountInRange as Gn, parseMailingListRuntimeContext as Gr, getBlockApiReadStage as Gt, findPreSelectedEvent as H, getBookingSuccessCopy as Hn, orderedLiveRunSessions as Hr, shownVenue as Ht, toInternalPaymentSelection as I, readOverrideServiceCategories as In, resolvedItemSurfaceProps as Ir, toRegistrationEvents as It, beginWaitlistInvitation as J, parseBookingCurrencyInputToCents as Jn, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as Jr, MediaPlaceholder as Jt, resolveRouteRequiresPayment as K, normalizeBookingFormConfig as Kn, resolveBookingSignupOffer as Kr, RichText as Kt, calculateEventRegistrationPreviewTotal as L, deriveBookingFormViewState as Ln, itemRole as Lr, toWholeSeriesRegistrationEvent as Lt, resolveEventRegistrationSubmitPlan as M, selectMostOpenCapacitySource as Mn, listItemPresentation as Mr, hasValidPricingOptionSelection as Mt, resolveHeadlessEventRegistrationStatus as N, groupPublicEventsByRun as Nn, listLookControl as Nr, normalizeTicketSelectionLines as Nt, visitorHoldsOwnPlace as O, getEventAvailabilityStatus as On, createZodCodec as Or, getSingleSelectedPricingOptionId as Ot, resolveHeadlessEventRegistrationView as P, bookingFormInteractiveIslandPropsCodec as Pn, listLookSlot as Pr, setTicketLineQuantity as Pt, getCurrentTicketSelection as Q, resolveBookingSiteId as Qn, parseMailchimpInterestId as Qr, renderVideo as Qt, buildBookingPaymentSelectionViewModel as R, formatBookingCentsAsCurrencyInput as Rn, parseAspectRatioValue as Rr, toWholeSeriesRegistrationEvents as Rt, planRegistrationDetailsContinuation as S, canJoinEventWaitlist as Sn, buildInteractiveIslandProps as Sr, getVisibleTicketTypes as St, resolveRegistrationAvailabilityBlocker as T, formatRemainingPlaces as Tn, eventRegistrationPageSurfaceSubjectSchema as Tr, withOccurrenceTitle as Tt, resolveDiscountContext as U, getRegistrationSuccessCopy as Un, resolveWholeSeriesBookingPhase as Ur, browserReadAuthoritySchema as Ut, paymentChoicePrice as V, getBookingServiceSlidingScale as Vn, nextLiveRunSessionStartMs as Vr, resolveRegistrationDisplay as Vt, resolveEventRequiresPayment as W, getShopSuccessCopy as Wn, resolveWholeSeriesRunLifecycle as Wr, createHostedBlockApiConfig as Wt, invitationSubmission as X, resolveAppointmentCheckoutVerificationState as Xn, parseBrevoListId as Xr, mediaImageHostProps as Xt, createRegistrationDraftData as Y, prepareBookingSubmission as Yn, parseMailingListProviderScope as Yr, computeMediaTransformStyle as Yt, formatCentsAsCurrencyInput as Z, resolveBookingPaymentStep as Zn, parseMailchimpAudienceId as Zr, renderAudio as Zt, shouldPromptForLogin as _, formatEventTimeRange as _n, BLOCK_BUTTON_ROLE_OPTIONS as _r, formatRegistrationSchedule as _t, registrationPresentation as a, publicEventPricingStrategy as ai, buildCalendarViewport as an, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as ar, resolveHeldTicketPlaces as at, placeCountCeiling as b, resolveEventTimeZone as bn, readRuntimeNow as br, getPortalSubjectEmail as bt, registrationStepLabelContext as c, resolvePricingOptionsPriceDisplay as ci, eventDateOptions as cn, columnOptionSchema as cr, confirmationPaymentRows as ct, decideEventChoice as d, formatDate$1 as dn, eventCalendarDisplayModeSchema as dr, areEntitlementsDisabledForTicketCount as dt, formatBookingPriceDisplay as ei, resolveImageUrl as en, selectedBookingCollectionOptionKind as er, getRegistrationOccurrenceId as et, getDeclinedPass as f, formatEventClockLabel as fn, eventLayoutSchema as fr, findSelectedTicketType as ft, decideEventRegistrationPayment as g, formatEventNextDateFact as gn, weekStartSchema as gr, formatPassCreditUsageLabel as gt, buildEventRegistrationPaymentOptionsViewModel as h, formatEventHourLabel as hn, registrationButtonVariantSchema as hr, formatEventDateTime as ht, registrationPaymentRoute as i, publicEventPricingDisplay as ii, sanitizeHref as in, BOOKING_FORM_DATA_RESERVED_KEYS as ir, parseCurrencyInputToCents as it, normalizeEventRegistrationMaxTickets as j, selectEventCapacitySource as jn, isDecodeSuccess as jr, getTicketTypeLineMax as jt, deriveEventRegistrationSteps as k, getRemainingPlaces as kn, defineClientOwnedBlockRuntime as kr, getTicketLineQuantity as kt, areEventRegistrationPaymentSelectionsEqual as l, eventLocalDateKey as ln, eventButtonVariantSchema as lr, resolveFinishedPresentation as lt, registrationFlowReducer as m, formatEventDateParts as mn, previewStageSchema as mr, formatDate as mt, getEventSelectionMode as n, isPublicEventPricingOptionDisplayable as ni, resolveMediaNodeResponsiveImage as nn, projectSelectedAppointmentConsentIntoForm as nr, getSlidingScaleSelectionMessage as nt, registrationRoute as o, publicEventPricingType as oi, eventCalendarWeekStart as on, bookingNowSchema as or, shouldLoadRegistrationOptions as ot, isRegistrationLocked as p, formatEventCompactDateRail as pn, filterAutoShowSchema as pr, formatBookingWhen as pt, toRegistrationRequestSubject as q, normalizeBookingServices as qn, DEFAULT_MAILING_LIST_PRIVACY_NOTE as qr, ImagePresets as qt, panelShouldOpen as r, publicEventPricingCurrency as ri, resolvePublicMediaUrl as rn, resolveSelectedAppointmentConsent as rr, getTicketSelectionRemainingPlaces as rt, registrationStepLabel as s, resolveExactOrFreePriceDisplay as si, eventDateLocale as sn, calendarTabViewsSchema as sr, validateFormData as st, REGISTRATION_STEP_LABELS as t, formatEventPricing as ti, resolveImageUrlWithContext as tn, toSelectedCollectionOptionKind as tr, getSlidingScaleForEvent as tt, createInitialRegistrationFlowState as u, formatCalendarTitle as un, eventCalendarDefaultViewSchema as ur, ENTITLEMENT_SINGLE_TICKET_TOOLTIP as ut, fullyBookedLabel as v, formatTime$1 as vn, blockButtonRoleSchema as vr, formatTime as vt, resolveRegistrationAdmission as w, formatEventRemainingPlaces as wn, defineInteractiveIslandMetaKeys as wr, transformRegistrationOptionsResponse as wt, planRegistrationDetailsCheck as x, resolveRuntimeEventDestination as xn, resolveDateRuntimeContext as xr, getTicketTypeAvailabilityLabel as xt, getTicketSelectionPurpose as y, groupEventsByDate as yn, isBlockButtonRole as yr, getImplicitSingleTicketType as yt, buildReviewedBookingPaymentViewModel as z, formatBookingSubmissionPreparationError as zn, isRecord$3 as zr, placesLeftLabel as zt };
6926
+ export { getEligibilityFlowFlags as $, selectedBookingCollectionOptionKind as $n, formatBookingPriceDisplay as $r, resolveImageSourceSetWithContext as $t, isEventRegistrationAvailable as A, selectEventCapacitySource as An, isDecodeSuccess as Ar, getTicketSelectionTotal as At, paymentChoiceDetails as B, getBookingServiceSlidingScale as Bn, CANCELLED_SESSION_STATUS as Br, registrationDisplaySchema as Bt, resolveGuestNextStepCheck as C, formatEventRemainingPlaces as Cn, defineInteractiveIslandMetaKeys as Cr, occurrenceTitleOverride as Ct, settledRemainingPlaces as D, getEventAvailabilityStatus as Dn, createZodCodec as Dr, canRequestTicketOption as Dt, resolveRegistrationTicketContinuation as E, getEventAvailability as En, resolveEventRegistrationScopedEvents as Er, formatPrice as Et, toHeadlessPaymentSelection as F, readOverrideServiceCategories as Fn, resolvedItemSurfaceProps as Fr, getRegistrationStartAt as Ft, resolveRegistrationTarget as G, normalizeBookingFormConfig as Gn, parseMailingListRuntimeContext as Gr, getBlockApiReadStage as Gt, findPreSelectedEvent as H, getRegistrationSuccessCopy as Hn, orderedLiveRunSessions as Hr, shownVenue as Ht, toInternalPaymentSelection as I, deriveBookingFormViewState as In, itemRole as Ir, toRegistrationEvents as It, beginWaitlistInvitation as J, prepareBookingSubmission as Jn, DEFAULT_MAILING_LIST_SUCCESS_MESSAGE as Jr, MediaPlaceholder as Jt, resolveRouteRequiresPayment as K, normalizeBookingServices as Kn, resolveBookingSignupOffer as Kr, RichText as Kt, calculateEventRegistrationPreviewTotal as L, formatBookingCentsAsCurrencyInput as Ln, sanitizeHref as Lr, toWholeSeriesRegistrationEvent as Lt, resolveEventRegistrationSubmitPlan as M, groupPublicEventsByRun as Mn, listLookControl as Mr, hasValidPricingOptionSelection as Mt, resolveHeadlessEventRegistrationStatus as N, bookingFormInteractiveIslandPropsCodec as Nn, listLookSlot as Nr, normalizeTicketSelectionLines as Nt, visitorHoldsOwnPlace as O, getRemainingPlaces as On, defineClientOwnedBlockRuntime as Or, getSingleSelectedPricingOptionId as Ot, resolveHeadlessEventRegistrationView as P, buildBookingFormInteractiveIslandProps as Pn, lookListPresentationSchemaShape as Pr, setTicketLineQuantity as Pt, getCurrentTicketSelection as Q, resolveDefaultBookingServiceId as Qn, parseNewsletterListId as Qr, renderVideo as Qt, buildBookingPaymentSelectionViewModel as R, formatBookingSubmissionPreparationError as Rn, parseAspectRatioValue as Rr, toWholeSeriesRegistrationEvents as Rt, planRegistrationDetailsContinuation as S, canJoinEventWaitlistOnAnyMode as Sn, createInteractiveIslandCodec as Sr, getVisibleTicketTypes as St, resolveRegistrationAvailabilityBlocker as T, formatTotalCapacity as Tn, normalizeEventRegistrationPageSurfaceSubject as Tr, withOccurrenceTitle as Tt, resolveDiscountContext as U, getShopSuccessCopy as Un, resolveWholeSeriesBookingPhase as Ur, browserReadAuthoritySchema as Ut, paymentChoicePrice as V, getBookingSuccessCopy as Vn, nextLiveRunSessionStartMs as Vr, resolveRegistrationDisplay as Vt, resolveEventRequiresPayment as W, isBookingServiceSlidingAmountInRange as Wn, resolveWholeSeriesRunLifecycle as Wr, createHostedBlockApiConfig as Wt, invitationSubmission as X, resolveBookingPaymentStep as Xn, parseMailchimpAudienceId as Xr, mediaImageHostProps as Xt, createRegistrationDraftData as Y, resolveAppointmentCheckoutVerificationState as Yn, parseBrevoListId as Yr, computeMediaTransformStyle as Yt, formatCentsAsCurrencyInput as Z, resolveBookingSiteId as Zn, parseMailchimpInterestId as Zr, renderAudio as Zt, shouldPromptForLogin as _, formatTime$1 as _n, blockButtonRoleSchema as _r, formatRegistrationSchedule as _t, registrationPresentation as a, publicEventPricingType as ai, eventCalendarWeekStart as an, bookingNowSchema as ar, resolveHeldTicketPlaces as at, placeCountCeiling as b, resolveRuntimeEventDestination as bn, resolveDateRuntimeContext as br, getPortalSubjectEmail as bt, registrationStepLabelContext as c, parseSiteId as ci, eventLocalDateKey as cn, eventButtonVariantSchema as cr, confirmationPaymentRows as ct, decideEventChoice as d, formatEventClockLabel as dn, eventLayoutSchema as dr, areEntitlementsDisabledForTicketCount as dt, formatEventPricing as ei, resolveImageUrl as en, toSelectedCollectionOptionKind as er, getRegistrationOccurrenceId as et, getDeclinedPass as f, formatEventCompactDateRail as fn, filterAutoShowSchema as fr, findSelectedTicketType as ft, decideEventRegistrationPayment as g, formatEventTimeRange as gn, BLOCK_BUTTON_ROLE_OPTIONS as gr, formatPassCreditUsageLabel as gt, buildEventRegistrationPaymentOptionsViewModel as h, formatEventNextDateFact as hn, weekStartSchema as hr, formatEventDateTime as ht, registrationPaymentRoute as i, publicEventPricingStrategy as ii, buildCalendarViewport as in, BOOKING_FORM_DATA_RESERVED_KEY_VALUES as ir, parseCurrencyInputToCents as it, normalizeEventRegistrationMaxTickets as j, selectMostOpenCapacitySource as jn, listItemPresentation as jr, getTicketTypeLineMax as jt, deriveEventRegistrationSteps as k, isEventFull as kn, defineProgressiveBlockRuntime as kr, getTicketLineQuantity as kt, areEventRegistrationPaymentSelectionsEqual as l, unsafeAsSiteId as li, formatCalendarTitle as ln, eventCalendarDefaultViewSchema as lr, resolveFinishedPresentation as lt, registrationFlowReducer as m, formatEventHourLabel as mn, registrationButtonVariantSchema as mr, formatDate as mt, getEventSelectionMode as n, publicEventPricingCurrency as ni, resolveMediaNodeResponsiveImage as nn, resolveSelectedAppointmentConsent as nr, getSlidingScaleSelectionMessage as nt, registrationRoute as o, resolveExactOrFreePriceDisplay as oi, eventDateLocale as on, calendarTabViewsSchema as or, shouldLoadRegistrationOptions as ot, isRegistrationLocked as p, formatEventDateParts as pn, previewStageSchema as pr, formatBookingWhen as pt, toRegistrationRequestSubject as q, parseBookingCurrencyInputToCents as qn, DEFAULT_MAILING_LIST_PRIVACY_NOTE as qr, ImagePresets as qt, panelShouldOpen as r, publicEventPricingDisplay as ri, resolvePublicMediaUrl as rn, BOOKING_FORM_DATA_RESERVED_KEYS as rr, getTicketSelectionRemainingPlaces as rt, registrationStepLabel as s, resolvePricingOptionsPriceDisplay as si, eventDateOptions as sn, columnOptionSchema as sr, validateFormData as st, REGISTRATION_STEP_LABELS as t, isPublicEventPricingOptionDisplayable as ti, resolveImageUrlWithContext as tn, projectSelectedAppointmentConsentIntoForm as tr, getSlidingScaleForEvent as tt, createInitialRegistrationFlowState as u, parseEventSeriesId as ui, formatDate$1 as un, eventCalendarDisplayModeSchema as ur, ENTITLEMENT_SINGLE_TICKET_TOOLTIP as ut, fullyBookedLabel as v, groupEventsByDate as vn, isBlockButtonRole as vr, formatTime as vt, resolveRegistrationAdmission as w, formatRemainingPlaces as wn, eventRegistrationPageSurfaceSubjectSchema as wr, transformRegistrationOptionsResponse as wt, planRegistrationDetailsCheck as x, canJoinEventWaitlist as xn, buildInteractiveIslandProps as xr, getTicketTypeAvailabilityLabel as xt, getTicketSelectionPurpose as y, resolveEventTimeZone as yn, readRuntimeNow as yr, getImplicitSingleTicketType as yt, buildReviewedBookingPaymentViewModel as z, getBookingRedirectStateFromLocation as zn, isRecord$3 as zr, placesLeftLabel as zt };