@riverbankcms/sdk 0.168.0 → 0.169.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 (192) hide show
  1. package/dist/_dts/{BlocksIslandsHydrator-CiD_VVGM.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
  2. package/dist/_dts/{Page-Bj6VJRS5.d.ts → Page-DHBBDRC_.d.ts} +7 -7
  3. package/dist/_dts/{SdkPreviewMode-ChpsnwDX.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
  4. package/dist/_dts/{client-C8mfUxrJ.d.ts → client-MURxFla9.d.ts} +39 -397
  5. package/dist/_dts/{content-types-_vXZyR4H.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
  6. package/dist/_dts/{contracts-CJFfrVKU.d.ts → contracts-CHNvzh0y.d.ts} +4 -3
  7. package/dist/_dts/{footerPageOutline-CMegb23G.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
  8. package/dist/_dts/{generatePageMetadata-D9YdAIMh.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
  9. package/dist/_dts/{index-BQXaZ7aY.d.ts → index-BaDqRekr.d.ts} +4 -4
  10. package/dist/_dts/{index-vR3p9Bu-.d.ts → index-CVB5wgbz.d.ts} +2 -2
  11. package/dist/_dts/{index-Cx2BQlHL.d.ts → index-CiR_oPYT.d.ts} +1 -1
  12. package/dist/_dts/{index-Bpr-wT5k.d.ts → index-CovKPftP.d.ts} +2 -2
  13. package/dist/_dts/{index-Dgz6yhsy.d.ts → index-DCw8LO4M.d.ts} +1 -1
  14. package/dist/_dts/{index-Vh8B9FSa.d.ts → index-DDaX-K2D.d.ts} +1 -1
  15. package/dist/_dts/{index-C7_Rz8EY.d.ts → index-rfAssXq0.d.ts} +3 -3
  16. package/dist/_dts/{loadContent-dhWSgLeS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
  17. package/dist/_dts/{request-BrYhNV9Z.d.ts → request-DeVetKBr.d.ts} +1840 -599
  18. package/dist/_dts/{resolveBlockData-BfSHm8Ms.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
  19. package/dist/_dts/{resolvePageContent-gZJ4i1wN.d.ts → resolvePageContent-D8MZWyNO.d.ts} +2 -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 +7 -7
  23. package/dist/_dts/sdk/src/config/index.d.ts +6 -6
  24. package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
  25. package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
  26. package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
  27. package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
  28. package/dist/_dts/sdk/src/data/types.d.ts +2 -2
  29. package/dist/_dts/sdk/src/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 +7 -7
  34. package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
  35. package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
  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 +1 -1
  43. package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
  44. package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
  45. package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
  46. package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
  47. package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
  48. package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
  49. package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
  50. package/dist/_dts/sdk/src/server.d.ts +5 -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-FOsJ-KYb.d.ts → types-B4MBlP_B.d.ts} +2 -2
  54. package/dist/_dts/{types-BVFXYtRg.d.ts → types-Fj31kIi2.d.ts} +7 -7
  55. package/dist/_dts/{types-BB33-Spd.d.ts → types-OwqfS8Gn.d.ts} +3 -3
  56. package/dist/_dts/{validation-DckTc6TQ.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
  57. package/dist/client/{BlocksIslandsHydrator-DcwEaliO.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +16 -16
  58. package/dist/client/{BookingMailingListNote-Dsugoe-n.mjs → BookingMailingListNote-y3qWjnOo.mjs} +17 -6
  59. package/dist/client/{BookingQuestionFields-Bhh0cvsl.mjs → BookingQuestionFields-DjLjd0vc.mjs} +3 -3
  60. package/dist/client/{CalendarNavigationChevron-CNe3ZjdC.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +7 -7
  61. package/dist/client/{DemoBookingPortalAccess-BeiZxEUJ.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +65 -9
  62. package/dist/client/{EventCalendar.client-BL943-tl.mjs → EventCalendar.client-DDjz7tuX.mjs} +9 -9
  63. package/dist/client/{EventCombined.client-BFVxECTp.mjs → EventCombined.client-CeYbNsch.mjs} +7 -7
  64. package/dist/client/{EventItem-BIc4gjiD.mjs → EventItem-B5J0IeF4.mjs} +3 -3
  65. package/dist/client/{EventListWeekNavigation-a0QEIEf0.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
  66. package/dist/client/{EventListing.client-CEFTC3jH.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
  67. package/dist/client/{EventListing.view-Bt2sBBms.mjs → EventListing.view-BYBaElec.mjs} +5 -5
  68. package/dist/client/{EventRegistrationPayment-D9YBNb_E.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +121 -59
  69. package/dist/client/{LocationMapActions-gqzt5gkW.mjs → LocationMapActions-BFp2uQQQ.mjs} +1 -1
  70. package/dist/client/{MapDrawingSvg-13JQI7_z.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
  71. package/dist/client/{Page-D_M2Vxz3.mjs → Page-Dv9eIOGr.mjs} +20 -15
  72. package/dist/client/{StepIndicator-CaN8snZ8.mjs → StepIndicator-BZNUd0-v.mjs} +2 -2
  73. package/dist/client/{accordion-DE7OG--d.mjs → accordion-BCtVxnDZ.mjs} +1 -1
  74. package/dist/client/{booking-form.client-CS1PPjw7.mjs → booking-form.client-Cr5G-HHO.mjs} +504 -216
  75. package/dist/client/{bookingForm-DE2CwIU9.mjs → bookingForm-B1Fc62Sl.mjs} +8 -5
  76. package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
  77. package/dist/client/bookings.mjs +16 -13
  78. package/dist/client/{carousel-DZyUdnFh.mjs → carousel-DW-HgjvT.mjs} +1 -1
  79. package/dist/client/{cart-D7HkkNwe.mjs → cart-D1zWe4R7.mjs} +3 -3
  80. package/dist/client/{cart.client-H4sv2TpD.mjs → cart.client-CIfbTLHS.mjs} +1 -1
  81. package/dist/client/{checkout-2qVyG-Sh.mjs → checkout-fDCNZ3IT.mjs} +3 -3
  82. package/dist/client/{checkout.client-DAjrBZ74.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
  83. package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
  84. package/dist/client/client.mjs +50 -3
  85. package/dist/client/{context-DXmIbXCK.mjs → context-DQnTyApV.mjs} +24 -2
  86. package/dist/client/{bookingQuestionValues-BjcyCru5.mjs → creditProducts-CMOmhWm2.mjs} +71 -11
  87. package/dist/client/{cta-DP_IBnq3.mjs → cta-Bj5WHgcv.mjs} +2 -2
  88. package/dist/client/{dateFormatting-CwrkFZTr.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
  89. package/dist/client/{demoPortalMagicLink-DQXK-Fh6.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
  90. package/dist/client/{wizardSteps-CFulHWnT.mjs → display-CT8KMSpH.mjs} +893 -68
  91. package/dist/client/{enhanceHeaderSection-DheQj7rg.mjs → enhanceHeaderSection-B27KFGDv.mjs} +3 -2
  92. package/dist/client/{event-details.client-C5UufcRp.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
  93. package/dist/client/{event-registration.client-CMGg63IU.mjs → event-registration.client-Dj3Kyp5X.mjs} +56 -16
  94. package/dist/client/{eventCalendar-DlD0GCEy.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
  95. package/dist/client/{eventCombined-DoSi8p_l.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
  96. package/dist/client/{eventDetails-DzuQYgmO.mjs → eventDetails-DzMskXYA.mjs} +2 -2
  97. package/dist/client/{eventListing-CkiMjl0g.mjs → eventListing-CpFFcAUr.mjs} +4 -4
  98. package/dist/client/{eventRegistration-CjS3Zpjp.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
  99. package/dist/client/{form-DgQqm7T2.mjs → form-57k2JQnm.mjs} +3 -3
  100. package/dist/client/{form.client-BI9Dcsq5.mjs → form.client-CCl6CpRJ.mjs} +4 -4
  101. package/dist/client/{form.parts-DevF0L_A.mjs → form.parts-BOJ1yDDf.mjs} +1 -1
  102. package/dist/client/{formatDate-DDyURjoe.mjs → formatDate-BGlhrmhF.mjs} +1 -1
  103. package/dist/client/gifting/client.mjs +2 -2
  104. package/dist/client/{headerSection-DYIG6Pwb.mjs → headerSection-q_bEzfhW.mjs} +2 -2
  105. package/dist/client/{newsletter-form.client-BWp7Y1e1.mjs → newsletter-form.client-CiqKAmPs.mjs} +5 -5
  106. package/dist/client/{newsletter-form.parts-Dg8s9NwJ.mjs → newsletter-form.parts-x1RzAMNO.mjs} +1 -1
  107. package/dist/client/{newsletterForm-DnPraMzx.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
  108. package/dist/client/{noop-ByFRHYQ2.mjs → noop-B_f7RqLD.mjs} +111 -2
  109. package/dist/client/portal/client.mjs +20 -12
  110. package/dist/client/{product-detail.client-BFAgHrdg.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
  111. package/dist/client/{product-list.client-DVrs_DyY.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
  112. package/dist/client/{productDetail-D4rvl6Xg.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
  113. package/dist/client/{productList-B8o5AOMX.mjs → productList-C0MLeh-v.mjs} +3 -3
  114. package/dist/client/{propsDecoder-hhotPP6P.mjs → propsDecoder-CAmEkJ6Y.mjs} +3 -3
  115. package/dist/client/{registry.server-Ch3EpupA.mjs → registry.server-Bf2YX_4v.mjs} +22 -19
  116. package/dist/client/rendering/client.mjs +25 -25
  117. package/dist/client/rendering/islands.mjs +1 -1
  118. package/dist/client/rendering.mjs +4 -4
  119. package/dist/client/{richText-coerce-C3LabQ1O.mjs → richText-coerce-BTurYEao.mjs} +1 -1
  120. package/dist/client/{routeIslandApiConfig-CQGlxId8.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
  121. package/dist/client/{shop-rRXplPGZ.mjs → shop-Dkn6EasY.mjs} +3 -3
  122. package/dist/client/{shop-commerce-VDbVaKY-.mjs → shop-commerce-bo0Z6kwf.mjs} +11 -11
  123. package/dist/client/{shop-commerce-store-DqdgJ8Zw.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
  124. package/dist/client/{shop.client-DdwvMvaK.mjs → shop.client-B_GqU6_U.mjs} +109 -30
  125. package/dist/client/{shop.interactive-C8OvFY06.mjs → shop.interactive-C6L_Ig5F.mjs} +7 -523
  126. package/dist/client/{shopShared-BeuJiGPU.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
  127. package/dist/client/src-BozhJ43Z.mjs +3 -0
  128. package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
  129. package/dist/client/{timetableModel-Cko9LRKy.mjs → timetableModel-D62jfOxZ.mjs} +10 -10
  130. package/dist/client/{useAvailableSlots-M6QIEiWf.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
  131. package/dist/client/{useDiscountApply-BJSnyO0f.mjs → useDiscountApply-Ca2pHUDu.mjs} +5 -3
  132. package/dist/client/{useDiscountCodeUi-D3XnOSCi.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
  133. package/dist/client/{useEventPagination-PhTIoFVX.mjs → useEventPagination-uxnUWI2v.mjs} +6 -6
  134. package/dist/client/{view-448wvvEY.mjs → view-B6KSxQMO.mjs} +7 -7
  135. package/dist/client/{view-L_mkgtnk.mjs → view-SVnWic7i.mjs} +2 -3
  136. package/dist/preview-next/client/{ArrangementLookControls-BpvnOGlN.mjs → ArrangementLookControls-kbdqYkWM.mjs} +3 -3
  137. package/dist/preview-next/client/{PreviewEditorSidebar-C0OtdWu_.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +89 -39
  138. package/dist/preview-next/client/{PreviewEditorUI-Csc5vH5k.mjs → PreviewEditorUI-yyD-ZREP.mjs} +5 -5
  139. package/dist/preview-next/client/{PreviewShell-BOLH_pm-.mjs → PreviewShell-YauP65Gi.mjs} +5 -5
  140. package/dist/preview-next/client/{SdkPreviewModeRuntime-CKodLReY.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +8 -7
  141. package/dist/preview-next/client/{SiteChromeCustomizeButton-BeEZpeKn.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +1057 -316
  142. package/dist/preview-next/client/{previewAssistantSlot-BBdN5kfY.mjs → previewAssistantSlot-DSR0IdAw.mjs} +417 -56
  143. package/dist/preview-next/client/{previewChromeSurface-VZtGwPuH.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
  144. package/dist/preview-next/client/runtime.mjs +3 -3
  145. package/dist/preview-next/client/{sdk-runtime-kiZkMcuR.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
  146. package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
  147. package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
  148. package/dist/preview-next/client/{useAutosaveStatus-BiIHEeE0.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +1 -1
  149. package/dist/preview-next/client/{useBlockCustomizeControls-BuFLIpmX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +1 -1
  150. package/dist/preview-next/client/{useOpenBlockForSetup-DlxYgmh_.mjs → useOpenBlockForSetup-CK-GWb9k.mjs} +1 -1
  151. package/dist/preview-next/keepAlive.mjs +1 -1
  152. package/dist/preview-next/middleware.mjs +1 -1
  153. package/dist/preview-next/{route-contract-C0sCvCYL.mjs → route-contract-BU1m9SV3.mjs} +47 -0
  154. package/dist/server/{Block.shared-Dnhc0Wu5.mjs → Block.shared-4vx7wzxj.mjs} +4 -4
  155. package/dist/server/{ThemeScopeCore-NAQ_zsFu.mjs → ThemeScopeCore-C3HLgqBF.mjs} +6 -3
  156. package/dist/server/{bindings-DLoZYUxG.mjs → bindings-TAQbo2P5.mjs} +1 -1
  157. package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
  158. package/dist/server/{client-Bc8jI8zN.mjs → client-DzCxEl3L.mjs} +48 -1
  159. package/dist/server/config-validation.mjs +1 -1
  160. package/dist/server/config.mjs +1 -1
  161. package/dist/server/data/resolveBlockData.mjs +1 -1
  162. package/dist/server/{headerVariant-BwR9NV4b.mjs → headerVariant-8O5MvxIU.mjs} +2 -1
  163. package/dist/server/index.mjs +2 -2
  164. package/dist/server/{loadContent-D61gpqHB.mjs → loadContent-BO1M9Hdf.mjs} +4 -4
  165. package/dist/server/{loadPage-B4ZYpIcd.mjs → loadPage-BvWzmZcD.mjs} +2 -2
  166. package/dist/server/next.mjs +6 -6
  167. package/dist/server/{overrideResolution-CDReKy2P.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
  168. package/dist/server/page-converter.mjs +1 -1
  169. package/dist/server/{pageRenderPlan-ByVTA7-4.mjs → pageRenderPlan-DzduDSqY.mjs} +2 -2
  170. package/dist/server/{pageRuntimeSupport-Dzz_Dze6.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +2 -2
  171. package/dist/server/{pageShared-Dk5Ku6hs.mjs → pageShared-CSOJ8p8E.mjs} +24 -16
  172. package/dist/server/{parseThemeForPersistence-pJPGfMrf.mjs → parseThemeForPersistence-BebSeE17.mjs} +1 -1
  173. package/dist/server/{prebuild-CW4M0WEZ.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
  174. package/dist/server/prebuild.mjs +1 -1
  175. package/dist/server/{prefetchBlockData-Bvx0SiIM.mjs → prefetchBlockData-BvbxqeKn.mjs} +2 -2
  176. package/dist/server/{registry-Bh0Y25zH.mjs → registry-Fv-7D8o2.mjs} +264 -48
  177. package/dist/server/rendering/components/pageShared.mjs +1 -1
  178. package/dist/server/rendering/helpers/loadPage.mjs +1 -1
  179. package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
  180. package/dist/server/rendering/server.mjs +3 -3
  181. package/dist/server/rendering.mjs +7 -7
  182. package/dist/server/{resolveBlockData-CnHHst9r.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
  183. package/dist/server/server.mjs +3 -3
  184. package/dist/server/theme-bridge.mjs +1 -1
  185. package/dist/server/theme.mjs +1 -1
  186. package/dist/server/{validation-D2bHWSxJ.mjs → validation-DddhgNdb.mjs} +4 -4
  187. package/dist/server/{version-DkM1eAxG.mjs → version-D_W2mt8w.mjs} +1 -1
  188. package/dist/styles/index.css +6 -3
  189. package/package.json +1 -1
  190. package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
  191. package/dist/client/src-CdRISvQp.mjs +0 -3
  192. package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { Cn as publicMembershipProductCollectionSchema, Dt as eventCalendarInteractiveIslandPropsCodec, G as formInteractiveIslandPropsCodec, Nt as eventListingInteractiveIslandPropsCodec, R as newsletterFormInteractiveIslandPropsCodec, St as eventCombinedInteractiveIslandPropsCodec, V as giftingInteractiveIslandPropsCodec, X as eventRegistrationInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, gn as headerChromeRuntimeContractSchema, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, wn as publicPassProductCollectionSchema } from "./shop.interactive-C8OvFY06.mjs";
3
- import { Un as bookingFormInteractiveIslandPropsCodec, Zr as eventRegistrationPageSurfaceSubjectSchema, ei as createZodCodec, ri as isDecodeSuccess, si as lookListPresentationSchemaShape } from "./wizardSteps-CFulHWnT.mjs";
4
- import { I as publicEventSchema, P as eventVenueDrawingSchema, a as eventAutoApplyDiscountPreviewSchema } from "./noop-ByFRHYQ2.mjs";
2
+ import { A as formInteractiveIslandPropsCodec, C as newsletterFormInteractiveIslandPropsCodec, E as giftingInteractiveIslandPropsCodec, F as eventRegistrationInteractiveIslandPropsCodec, f as productDetailInteractiveIslandPropsCodec, ft as eventCalendarInteractiveIslandPropsCodec, g as shopInteractiveIslandPropsCodec, l as checkoutInteractiveIslandPropsCodec, m as productListInteractiveIslandPropsCodec, s as cartInteractiveIslandPropsCodec, st as eventCombinedInteractiveIslandPropsCodec, tn as headerChromeRuntimeContractSchema, vt as eventListingInteractiveIslandPropsCodec } from "./shop.interactive-C6L_Ig5F.mjs";
3
+ import { Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, Ki as lookListPresentationSchemaShape, ur as bookingFormInteractiveIslandPropsCodec, zi as createZodCodec } from "./display-CT8KMSpH.mjs";
4
+ import { I as eventVenueDrawingSchema, R as publicEventSchema, a as eventAutoApplyDiscountPreviewSchema, o as publicMembershipProductCollectionSchema, s as publicPassProductCollectionSchema } from "./noop-B_f7RqLD.mjs";
5
5
  import { z } from "zod";
6
6
  //#region ../blocks/src/system/runtime/nodes/event-details/lookPresentation.ts
7
7
  const eventDetailsLookSchemaShape = {
@@ -1,32 +1,32 @@
1
1
  "use client";
2
- import { $t as MediaNodeServer, B as giftingBlockRuntime, Cn as publicMembershipProductCollectionSchema, Ct as buildEventCalendarInteractiveIslandProps, Dn as parseMailingListPlacementTargeting, En as assessMailingListTargeting, Et as eventCalendarBlockRuntime, F as buildNewsletterFormInteractiveIslandProps, H as publicGiftingOffersResponseSchema, I as newsletterBlockSubmissionMessage, Jt as listingEventCardProps, L as newsletterFormBlockRuntime, Mt as eventListingBlockRuntime, N as publicProductsResponseSchema, P as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, Sn as splitSiteChromePlacementClasses, U as buildFormInteractiveIslandProps, W as formBlockRuntime, Y as eventRegistrationBlockRuntime, _ as shopProductPresentation, a as buildShopInteractiveIslandProps, bt as buildEventCombinedListingDisplay, c as checkoutBlockRuntime, cn as formatEventPriceDisplay, ct as resolveOfferingsPreviewGroupCta, d as productDetailBlockRuntime, dn as normalizeEventStaffMemberId, en as getCardOrientation, fn as normalizeEventSurfacePresets, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, in as eventListWeekDays, jt as buildEventListingInteractiveIslandProps, kn as DEFAULT_MAILING_LIST_TARGETING, kt as recurringScheduleProjectionSchema, ln as normalizeEventCategoryIds, lt as resolveOfferingsPreviewGroups, mn as normalizeEventVenueId, n as buildCheckoutInteractiveIslandProps, nn as Grid, nt as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, o as cartBlockRuntime, on as formatEventPrice, ot as normalizeOfferingsPreviewItemLimit, p as productListBlockRuntime, pn as normalizeEventSurfaceScope, q as buildEventRegistrationInteractiveIslandProps, qt as catalogueEventCardProps, r as buildProductDetailInteractiveIslandProps, rn as buildEventListWeek, rt as buildOfferingsPreviewListing, st as offeringsListingFor, t as buildCartInteractiveIslandProps, tn as getContainerClass, un as normalizeEventScheduleScope, ut as resolveOfferingsRenderInput, vt as occurrenceContextSchema, wn as publicPassProductCollectionSchema, wt as buildEventCalendarListingDisplay, xt as eventCombinedBlockRuntime, yn as staticHeaderChromeRuntime, yt as buildEventCombinedInteractiveIslandProps, z as buildGiftingInteractiveIslandProps } from "./shop.interactive-C8OvFY06.mjs";
2
+ import { $t as normalizeEventVenueId, Bt as getContainerClass, D as publicGiftingOffersResponseSchema, G as normalizeOfferingsPreviewItemLimit, Gt as formatEventPrice, H as buildOfferingsPreviewListing, Ht as buildEventListWeek, J as resolveOfferingsPreviewGroups, Jt as normalizeEventCategoryIds, K as offeringsListingFor, M as buildEventRegistrationInteractiveIslandProps, Mt as catalogueEventCardProps, Nt as listingEventCardProps, O as buildFormInteractiveIslandProps, P as eventRegistrationBlockRuntime, Qt as normalizeEventSurfaceScope, Rt as MediaNodeServer, S as newsletterFormBlockRuntime, T as giftingBlockRuntime, Ut as eventListWeekDays, V as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Vt as Grid, Xt as normalizeEventStaffMemberId, Y as resolveOfferingsRenderInput, Yt as normalizeEventScheduleScope, Zt as normalizeEventSurfacePresets, _ as shopProductPresentation, _t as eventListingBlockRuntime, a as buildShopInteractiveIslandProps, at as buildEventCombinedListingDisplay, b as buildNewsletterFormInteractiveIslandProps, c as checkoutBlockRuntime, ct as buildEventCalendarInteractiveIslandProps, d as productDetailBlockRuntime, dt as eventCalendarBlockRuntime, fn as DEFAULT_MAILING_LIST_TARGETING, gt as buildEventListingInteractiveIslandProps, h as shopBlockRuntime, i as buildProductListInteractiveIslandProps, in as staticHeaderChromeRuntime, it as buildEventCombinedInteractiveIslandProps, k as formBlockRuntime, ln as assessMailingListTargeting, lt as buildEventCalendarListingDisplay, mt as recurringScheduleProjectionSchema, n as buildCheckoutInteractiveIslandProps, o as cartBlockRuntime, ot as eventCombinedBlockRuntime, p as productListBlockRuntime, q as resolveOfferingsPreviewGroupCta, qt as formatEventPriceDisplay, r as buildProductDetailInteractiveIslandProps, rt as occurrenceContextSchema, sn as splitSiteChromePlacementClasses, t as buildCartInteractiveIslandProps, un as parseMailingListPlacementTargeting, v as publicProductsResponseSchema, w as buildGiftingInteractiveIslandProps, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, zt as getCardOrientation } from "./shop.interactive-C6L_Ig5F.mjs";
3
3
  import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
4
- import { $r as resolveEventRegistrationScopedEvents, An as resolveRuntimeEventDestination, Br as BLOCK_BUTTON_ROLE_OPTIONS, Dn as formatTime, En as formatEventTimeRange, Hn as groupPublicEventsByRun, Hr as isBlockButtonRole, In as getEventAvailability, Ln as getEventAvailabilityStatus, Ma as nextLiveRunSessionStartMs, Mn as canJoinEventWaitlistOnAnyMode, Na as orderedLiveRunSessions, Oa as sanitizeHref, On as groupEventsByDate, Pa as resolveWholeSeriesBookingPhase, Qa as resolvePricingOptionsPriceDisplay, Qr as normalizeEventRegistrationPageSurfaceSubject, Si as compiledRuntimeStyleFieldNames, Sn as formatEventCompactDateRail, Wa as formatBookingPriceDisplay, Wn as buildBookingFormInteractiveIslandProps, Za as resolveExactOrFreePriceDisplay, _n as eventDateOptions, ii as listItemPresentation, ka as parseAspectRatioValue, mn as buildCalendarViewport, nn as RichText, oi as listLookSlot, pn as resolvePublicMediaUrl, rn as ImagePresets, si as lookListPresentationSchemaShape, ua as arrangementSlotNames, wn as formatEventHourLabel, ya as cardVariantRoleValues, yn as formatCalendarTitle, zn as isEventFull } from "./wizardSteps-CFulHWnT.mjs";
5
- import { Ct as trimmedStringOrNull, E as arrangementModes, G as RichTextDocSchema, Jt as toUtcIsoDateTimeString, L as publicEventsArraySchema, Q as runtimeMediaSchema, St as toLocationCoordinates, Tt as formatDate, Wt as resolveBookingBusinessTimeZone, b as isEventCalendarListLayout, bt as projectPublicLocation, d as calendarWindowPageSchema, et as PUBLIC_FILE_FIELD_KINDS, g as eventCalendarVariantMeaning, h as eventCalendarListLayoutOptions, nt as mediaTypeDiscriminants, tt as isDisplayMediaKind, v as isEventCalendarDefaultView, vt as normalizeLocationAddressText, x as normalizeEventCalendarDisplayMode$1, xt as publicLocationSchema$1, y as isEventCalendarDisplayMode, yt as parseLocationValue } from "./noop-ByFRHYQ2.mjs";
6
- import { O as assertNever$1 } from "./bookingQuestionValues-BjcyCru5.mjs";
4
+ import { $n as canJoinEventWaitlistOnAnyMode, Bn as formatCalendarTitle, Cn as RichText, Fn as buildCalendarViewport, Gi as listLookSlot, Gn as formatEventHourLabel, Io as resolveExactOrFreePriceDisplay, Jn as formatTime, Ki as lookListPresentationSchemaShape, Li as normalizeEventRegistrationPageSurfaceSubject, Lo as resolvePricingOptionsPriceDisplay, Pn as resolvePublicMediaUrl, Ri as resolveEventRegistrationScopedEvents, Rn as eventDateOptions, Si as isBlockButtonRole, Ui as listItemPresentation, Un as formatEventCompactDateRail, Ya as arrangementSlotNames, Yn as groupEventsByDate, Zn as resolveRuntimeEventDestination, _o as nextLiveRunSessionStartMs, bi as BLOCK_BUTTON_ROLE_OPTIONS, dr as buildBookingFormInteractiveIslandProps, io as cardVariantRoleValues, ir as getEventAvailabilityStatus, ko as formatBookingPriceDisplay, lr as groupPublicEventsByRun, mo as parseAspectRatioValue, or as isEventFull, po as sanitizeHref, qn as formatEventTimeRange, rr as getEventAvailability, sa as compiledRuntimeStyleFieldNames, vo as orderedLiveRunSessions, wn as ImagePresets, yo as resolveWholeSeriesBookingPhase } from "./display-CT8KMSpH.mjs";
5
+ import { At as trimmedStringOrNull, C as normalizeEventCalendarDisplayMode$1, Dt as projectPublicLocation, Et as parseLocationValue, Mt as formatDate, O as arrangementModes, Ot as publicLocationSchema$1, S as isEventCalendarListLayout, Tt as normalizeLocationAddressText, Zt as resolveBookingBusinessTimeZone, _ as eventCalendarListLayoutOptions, b as isEventCalendarDefaultView, et as runtimeMediaSchema, it as mediaTypeDiscriminants, kt as toLocationCoordinates, nt as PUBLIC_FILE_FIELD_KINDS, o as publicMembershipProductCollectionSchema, p as calendarWindowPageSchema, q as RichTextDocSchema, rt as isDisplayMediaKind, s as publicPassProductCollectionSchema, tn as toUtcIsoDateTimeString, v as eventCalendarVariantMeaning, x as isEventCalendarDisplayMode, z as publicEventsArraySchema } from "./noop-B_f7RqLD.mjs";
6
+ import { M as assertNever$1 } from "./creditProducts-CMOmhWm2.mjs";
7
7
  import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
8
8
  import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
9
- import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-Cko9LRKy.mjs";
10
- import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-1PJxc8KO.mjs";
9
+ import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-D62jfOxZ.mjs";
10
+ import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
11
11
  import { B as mergeStyles, F as resolveThemeColorReferenceValue, L as backgroundColorStyle, U as textColorStyle, V as rgbColorValue, o as serializeSurfaceTree } from "./accessibleSurfaces-chpD4C2c.mjs";
12
12
  import { h as SYSTEM_BLOCK_KINDS } from "./types-5fOsPIpL.mjs";
13
- import { C as asPartialObject, _ as DEFAULT_SECTION_SPACING, a as EventCard, c as boxStyleClassNames, d as normalizeBoxStylesBorder, f as resolveCardRoleForBoxStyles, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-Bt2sBBms.mjs";
13
+ import { C as asPartialObject, _ as DEFAULT_SECTION_SPACING, a as EventCard, c as boxStyleClassNames, d as normalizeBoxStylesBorder, f as resolveCardRoleForBoxStyles, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BYBaElec.mjs";
14
14
  import { S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, g as FileArchiveIcon, i as ThemedButtonLink, l as SpinnerNode, p as CirclePlusIcon, r as ThemedButton, s as getIconComponent, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-BdnEwA38.mjs";
15
- import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-448wvvEY.mjs";
16
- import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-DP_IBnq3.mjs";
17
- import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-13JQI7_z.mjs";
18
- import { n as CardListItems, r as EventItem } from "./EventItem-BIc4gjiD.mjs";
19
- import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-CNe3ZjdC.mjs";
20
- import { t as resolveDedicatedBookingHref } from "./bookingRoute-Bqlyu5Vb.mjs";
15
+ import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-B6KSxQMO.mjs";
16
+ import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-Bj5WHgcv.mjs";
17
+ import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-DDWfmgpA.mjs";
18
+ import { n as CardListItems, r as EventItem } from "./EventItem-B5J0IeF4.mjs";
19
+ import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-VM7C2fdh.mjs";
20
+ import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
21
21
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
22
22
  import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
23
23
  import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
24
- import { t as coerceRichTextDoc } from "./richText-coerce-C3LabQ1O.mjs";
25
- import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-L_mkgtnk.mjs";
26
- import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-a0QEIEf0.mjs";
27
- import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-CaN8snZ8.mjs";
28
- import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DevF0L_A.mjs";
29
- import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-Dg8s9NwJ.mjs";
24
+ import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
25
+ import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-SVnWic7i.mjs";
26
+ import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-eH04D8-V.mjs";
27
+ import { i as RegistrationClosedState, r as BookingEntryCard, t as StepIndicator } from "./StepIndicator-BZNUd0-v.mjs";
28
+ import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-BOJ1yDDf.mjs";
29
+ import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-x1RzAMNO.mjs";
30
30
  import React, { forwardRef } from "react";
31
31
  import { z } from "zod";
32
32
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -4630,6 +4630,7 @@ const eventRegistrationManifest = createBlockManifest({
4630
4630
  readAuthority: { $bind: { from: "$root.readAuthority" } },
4631
4631
  occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
4632
4632
  subject: { $bind: { from: "$root.subject" } },
4633
+ pageNavigation: { $bind: { from: "$root.pageNavigation" } },
4633
4634
  portalToken: { $bind: {
4634
4635
  from: "$root.portalToken",
4635
4636
  fallback: null
@@ -8476,6 +8477,7 @@ const publicAppointmentServiceSchema = z.object({
8476
8477
  pricing: publicPricingSchema.optional(),
8477
8478
  priceAmount: z.number().nullable(),
8478
8479
  priceCurrency: z.string().nullable(),
8480
+ onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
8479
8481
  location: publicLocationSchema,
8480
8482
  categoryId: z.string().nullable().optional().transform((value) => value ?? null)
8481
8483
  });
@@ -8532,6 +8534,7 @@ function formatVenue(venue) {
8532
8534
  return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
8533
8535
  }
8534
8536
  function formatAppointmentPrice(service) {
8537
+ if (service.onlinePaymentMode === "package_only") return "Book with a package";
8535
8538
  const pricing = service.pricing;
8536
8539
  if (pricing) {
8537
8540
  const display = (() => {
@@ -1,37 +1,37 @@
1
1
  "use client";
2
2
  "use client";
3
- import { yn as staticHeaderChromeRuntime } from "../shop.interactive-C8OvFY06.mjs";
3
+ import { in as staticHeaderChromeRuntime } from "../shop.interactive-C6L_Ig5F.mjs";
4
4
  import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BlfqYLJW.mjs";
5
- import { an as computeMediaTransformStyle, cn as renderVideo, fn as resolveMediaNodeResponsiveImage, in as MediaPlaceholder, nn as RichText, on as mediaImageHostProps, rn as ImagePresets, sn as renderAudio } from "../wizardSteps-CFulHWnT.mjs";
6
- import { n as BookingFormNodeClient } from "../booking-form.client-CS1PPjw7.mjs";
7
- import { $t as formatCurrencyAmount } from "../noop-ByFRHYQ2.mjs";
8
- import { o as getRuntimeTimeZone } from "../useAvailableSlots-M6QIEiWf.mjs";
9
- import { d as assertNever } from "../bookingQuestionValues-BjcyCru5.mjs";
10
- import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-BeiZxEUJ.mjs";
11
- import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, fn as ICON_CONFIG, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-Ch3EpupA.mjs";
12
- import { f as Text } from "../timetableModel-Cko9LRKy.mjs";
13
- import { t as EventRegistrationIslandClient } from "../event-registration.client-CMGg63IU.mjs";
14
- import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-DXmIbXCK.mjs";
5
+ import { Cn as RichText, Dn as mediaImageHostProps, En as computeMediaTransformStyle, Nn as resolveMediaNodeResponsiveImage, On as renderAudio, Tn as MediaPlaceholder, kn as renderVideo, wn as ImagePresets } from "../display-CT8KMSpH.mjs";
6
+ import { n as BookingFormNodeClient } from "../booking-form.client-Cr5G-HHO.mjs";
7
+ import { on as formatCurrencyAmount } from "../noop-B_f7RqLD.mjs";
8
+ import { o as getRuntimeTimeZone } from "../useAvailableSlots-CStfVmyY.mjs";
9
+ import { h as assertNever } from "../creditProducts-CMOmhWm2.mjs";
10
+ import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-C2QCj_Ta.mjs";
11
+ import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, fn as ICON_CONFIG, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-Bf2YX_4v.mjs";
12
+ import { f as Text } from "../timetableModel-D62jfOxZ.mjs";
13
+ import { t as EventRegistrationIslandClient } from "../event-registration.client-Dj3Kyp5X.mjs";
14
+ import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-DQnTyApV.mjs";
15
15
  import "../accessibleSurfaces-chpD4C2c.mjs";
16
16
  import { S as clsx } from "../ThemedButton-BdnEwA38.mjs";
17
- import { t as ShopClient } from "../shop.client-DdwvMvaK.mjs";
17
+ import { t as ShopClient } from "../shop.client-B_GqU6_U.mjs";
18
18
  import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
19
19
  import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
20
- import { t as coerceRichTextDoc } from "../richText-coerce-C3LabQ1O.mjs";
20
+ import { t as coerceRichTextDoc } from "../richText-coerce-BTurYEao.mjs";
21
21
  import { t as createLucideIcon } from "../createLucideIcon-CIbxe9em.mjs";
22
22
  import { t as CarouselNodeClient } from "../carousel.client-BD4DXMtI.mjs";
23
- import { t as EventDetailsIslandClient } from "../event-details.client-C5UufcRp.mjs";
24
- import { t as ProductListClient } from "../product-list.client-DVrs_DyY.mjs";
25
- import { t as ProductDetailClient } from "../product-detail.client-BFAgHrdg.mjs";
26
- import { t as CartClient } from "../cart.client-H4sv2TpD.mjs";
27
- import { t as CheckoutClient } from "../checkout.client-DAjrBZ74.mjs";
28
- import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-DheQj7rg.mjs";
29
- import { t as EventListingClient } from "../EventListing.client-CEFTC3jH.mjs";
30
- import { n as EventCombinedIslandClient } from "../EventCombined.client-BFVxECTp.mjs";
31
- import { t as EventCalendarClient } from "../EventCalendar.client-BL943-tl.mjs";
32
- import { t as FormNodeClient } from "../form.client-BI9Dcsq5.mjs";
33
- import { t as NewsletterFormClient } from "../newsletter-form.client-BWp7Y1e1.mjs";
34
- import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-DcwEaliO.mjs";
23
+ import { t as EventDetailsIslandClient } from "../event-details.client-CL4Lqz2c.mjs";
24
+ import { t as ProductListClient } from "../product-list.client-J0wDOmKv.mjs";
25
+ import { t as ProductDetailClient } from "../product-detail.client-rWUvpVvZ.mjs";
26
+ import { t as CartClient } from "../cart.client-CIfbTLHS.mjs";
27
+ import { t as CheckoutClient } from "../checkout.client-C4l2KjtV.mjs";
28
+ import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-B27KFGDv.mjs";
29
+ import { t as EventListingClient } from "../EventListing.client-slpvrTrM.mjs";
30
+ import { n as EventCombinedIslandClient } from "../EventCombined.client-CeYbNsch.mjs";
31
+ import { t as EventCalendarClient } from "../EventCalendar.client-DDjz7tuX.mjs";
32
+ import { t as FormNodeClient } from "../form.client-CCl6CpRJ.mjs";
33
+ import { t as NewsletterFormClient } from "../newsletter-form.client-CiqKAmPs.mjs";
34
+ import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-qq4Vhs7k.mjs";
35
35
  import * as React$1 from "react";
36
36
  import React, { createContext, createElement, startTransition, useContext, useEffect, useMemo, useReducer, useRef } from "react";
37
37
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,4 +1,4 @@
1
1
  "use client";
2
2
  "use client";
3
- import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-DcwEaliO.mjs";
3
+ import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-qq4Vhs7k.mjs";
4
4
  export { BlocksIslandsHydrator };
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import { a as mediaIdentifierSchema, i as resolveManagedMediaReference, n as renderableMediaAssetSchema, o as parseCanonicalMediaIdentifier, s as parseMediaIdentifier, t as buildRenderableMediaAssetIndex } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
3
- import { Oa as sanitizeHref, Ur as readRuntimeNow, Wr as resolveDateRuntimeContext, an as computeMediaTransformStyle, dn as resolveImageUrlWithContext$1, ln as resolveImageSourceSetWithContext$1, nn as RichText$2, un as resolveImageUrl$1 } from "./wizardSteps-CFulHWnT.mjs";
4
- import { Jt as toUtcIsoDateTimeString, Q as runtimeMediaSchema, X as mediaSchema, Z as persistableMediaSchema } from "./noop-ByFRHYQ2.mjs";
5
- import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-D_M2Vxz3.mjs";
6
- import { Nt as parseFieldDefinition } from "./registry.server-Ch3EpupA.mjs";
3
+ import { An as resolveImageSourceSetWithContext$1, Ci as readRuntimeNow, Cn as RichText$2, En as computeMediaTransformStyle, Mn as resolveImageUrlWithContext$1, jn as resolveImageUrl$1, po as sanitizeHref, wi as resolveDateRuntimeContext } from "./display-CT8KMSpH.mjs";
4
+ import { $ as persistableMediaSchema, Q as mediaSchema, et as runtimeMediaSchema, tn as toUtcIsoDateTimeString } from "./noop-B_f7RqLD.mjs";
5
+ import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as isRecord, H as deriveFieldValidationPlan, I as getBlockDefinition, J as readPublishedBlockPlacement, L as siteFooterManifest, M as resolveAuthoredLinkHref, N as isRouteVisibleInStage, P as normalizeRenderStage, R as siteHeaderManifest, S as siteLocationRenderContext, T as MissingSdkThemeError, U as projectRepeaterGridLayout$1, V as admitLayoutGridForPlan, W as projectRepeaterGridLayoutForRendering$1, _ as invalidRenderableBlock, a as solvedInksForThemeRuntime, b as resolveSdkBlockManifest, c as MissingBlockOverrideError, d as buildThemeRuntime, f as parseBlocksTheme, g as collectMediaAssetSidecar, h as buildSiteRenderSupport, i as renderWithSdkThemeRuntime, j as getDefaultComponentRegistry, k as makeDefaultBlockComponent, l as PageRenderer, m as buildRenderablePageOutline, n as planLayoutThemeRuntime, o as ThemeScope, p as applyBindingsToContent, r as renderWithOverrideOnlyRuntime, s as EditorPageRenderer, t as Page, u as toBlocksPageRendererDataContext, v as projectRenderablePageOutline, w as MISSING_SDK_THEME_ERROR_CODE, x as sanitizeSdkRuntimeBlockContent, y as readInvalidBlockAdmission, z as admitTransportedRenderableManifestContent } from "./Page-Dv9eIOGr.mjs";
6
+ import { Nt as parseFieldDefinition } from "./registry.server-Bf2YX_4v.mjs";
7
7
  import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
8
8
  import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
9
9
  import "react";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { G as RichTextDocSchema, t as logger } from "./noop-ByFRHYQ2.mjs";
2
+ import { q as RichTextDocSchema, t as logger } from "./noop-B_f7RqLD.mjs";
3
3
  //#region ../blocks/src/system/runtime/nodes/richText-coerce.ts
4
4
  function parseRichTextDoc(value) {
5
5
  const parsed = RichTextDocSchema.safeParse(value);
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { Kr as createHostedBlockApiConfig } from "./wizardSteps-CFulHWnT.mjs";
2
+ import { Ei as createHostedBlockApiConfig } from "./display-CT8KMSpH.mjs";
3
3
  //#region src/rendering/islands/enhancers/routeIslandApiConfig.ts
4
4
  function buildRouteIslandApiConfig({ apiBaseUrl, portalToken, previewToken, siteId, stage, readAuthority }) {
5
5
  if (readAuthority) return createHostedBlockApiConfig({
@@ -1,7 +1,7 @@
1
1
  "use client";
2
- import { t as defineIslandPropsDecoder } from "./propsDecoder-hhotPP6P.mjs";
3
- import { t as ShopClient } from "./shop.client-DdwvMvaK.mjs";
4
- import { t as mountShopBlockIsland } from "./shopShared-BeuJiGPU.mjs";
2
+ import { t as defineIslandPropsDecoder } from "./propsDecoder-CAmEkJ6Y.mjs";
3
+ import { t as ShopClient } from "./shop.client-B_GqU6_U.mjs";
4
+ import { t as mountShopBlockIsland } from "./shopShared-CO1Y8lFd.mjs";
5
5
  //#region src/rendering/islands/enhancers/shop.tsx
6
6
  const decode = defineIslandPropsDecoder("shop");
7
7
  const enhance = (root, props) => {
@@ -1,19 +1,19 @@
1
1
  "use client";
2
- import { O as buildProductCartItem, b as buildProductDetailDisplay, j as productItemKey, k as deriveCommerceCheckoutState, u as getShopDisplayForItems, x as formatCommercePrice, y as buildProductCardDisplay } from "./shop.interactive-C8OvFY06.mjs";
3
- import { nn as RichText } from "./wizardSteps-CFulHWnT.mjs";
4
- import { d as assertNever, g as reportWorkflowError, h as clearWorkflowFeedback } from "./bookingQuestionValues-BjcyCru5.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-BeiZxEUJ.mjs";
6
- import { n as useBlockApi } from "./context-DXmIbXCK.mjs";
2
+ import { u as getShopDisplayForItems } from "./shop.interactive-C6L_Ig5F.mjs";
3
+ import { Cn as RichText, a as buildProductDetailDisplay, g as deriveCommerceCheckoutState, h as buildProductCartItem, i as buildProductCardDisplay, s as formatCommercePrice, v as productItemKey } from "./display-CT8KMSpH.mjs";
4
+ import { b as reportWorkflowError, h as assertNever, y as clearWorkflowFeedback } from "./creditProducts-CMOmhWm2.mjs";
5
+ import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, n as DemoBookingPortalAccess, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "./DemoBookingPortalAccess-C2QCj_Ta.mjs";
6
+ import { n as useBlockApi } from "./context-DQnTyApV.mjs";
7
7
  import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
8
- import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
8
+ import { t as buildCheckoutReturnUrls } from "./checkoutUrls-cWL6I-Vz.mjs";
9
9
  import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
10
- import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-BJSnyO0f.mjs";
10
+ import { a as initialDiscountApplyState, c as checkoutFormForDiscountUiState, d as planUnifiedCheckoutRequest, f as ShopAddFeedback, i as getDiscountApplyFeedback, l as planCartDiscountAvailabilityRequests, m as consumeSearchParam, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, s as aggregateCartDiscountUiState, t as useDiscountApply } from "./useDiscountApply-Ca2pHUDu.mjs";
11
11
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
12
- import { t as coerceRichTextDoc } from "./richText-coerce-C3LabQ1O.mjs";
13
- import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-L_mkgtnk.mjs";
14
- import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQXK-Fh6.mjs";
12
+ import { t as coerceRichTextDoc } from "./richText-coerce-BTurYEao.mjs";
13
+ import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-SVnWic7i.mjs";
14
+ import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-3uVu3WgG.mjs";
15
15
  import { t as CarouselNodeClient } from "./carousel.client-BD4DXMtI.mjs";
16
- import { n as useCommerceCart } from "./shop-commerce-store-DqdgJ8Zw.mjs";
16
+ import { n as useCommerceCart } from "./shop-commerce-store-Ckxa4_jI.mjs";
17
17
  import * as React$1 from "react";
18
18
  import { useEffect, useState } from "react";
19
19
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { A as parseStoredCommerceCartState, D as buildPassCartItem, E as EMPTY_COMMERCE_CART_STATE, M as reduceCommerceCart } from "./shop.interactive-C8OvFY06.mjs";
2
+ import { _ as parseStoredCommerceCartState, m as buildPassCartItem, p as EMPTY_COMMERCE_CART_STATE, y as reduceCommerceCart } from "./display-CT8KMSpH.mjs";
3
3
  import * as React$1 from "react";
4
4
  //#region ../blocks/src/system/runtime/nodes/shop-commerce-store.ts
5
5
  const EMPTY_STATE = EMPTY_COMMERCE_CART_STATE;
@@ -1,23 +1,23 @@
1
1
  "use client";
2
- import { S as formatInterval, _ as shopProductPresentation, x as formatCommercePrice } from "./shop.interactive-C8OvFY06.mjs";
3
- import { $n as getShopSuccessCopy } from "./wizardSteps-CFulHWnT.mjs";
4
- import { O as assertNever$1, d as assertNever } from "./bookingQuestionValues-BjcyCru5.mjs";
5
- import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-BeiZxEUJ.mjs";
6
- import { n as useBlockApi } from "./context-DXmIbXCK.mjs";
2
+ import { _ as shopProductPresentation } from "./shop.interactive-C6L_Ig5F.mjs";
3
+ import { c as formatInterval, s as formatCommercePrice, yr as getShopSuccessCopy } from "./display-CT8KMSpH.mjs";
4
+ import { M as assertNever$1, h as assertNever } from "./creditProducts-CMOmhWm2.mjs";
5
+ import { f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-C2QCj_Ta.mjs";
6
+ import { n as useBlockApi } from "./context-DQnTyApV.mjs";
7
7
  import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
8
8
  import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
9
9
  import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
10
- import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-BJSnyO0f.mjs";
10
+ import { a as initialDiscountApplyState, f as ShopAddFeedback, h as consumeSearchParams, i as getDiscountApplyFeedback, n as discountApplyReducer, o as isDiscountApplyInFlight, p as useTransientShopAddFeedback, r as getAppliedDiscountCode, t as useDiscountApply, u as planDirectShopCheckoutRequest } from "./useDiscountApply-Ca2pHUDu.mjs";
11
11
  import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
12
12
  import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
13
13
  import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
14
- import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-D3XnOSCi.mjs";
14
+ import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-AEifktGO.mjs";
15
15
  import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
16
- import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-L_mkgtnk.mjs";
17
- import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-DQXK-Fh6.mjs";
16
+ import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-SVnWic7i.mjs";
17
+ import { a as storeDemoBookingCheckoutReturn, i as readDemoBookingCheckoutReturnEmail } from "./demoPortalMagicLink-3uVu3WgG.mjs";
18
18
  import { t as CarouselNodeClient } from "./carousel.client-BD4DXMtI.mjs";
19
- import { r as formatEntitlementEnd } from "./dateFormatting-CwrkFZTr.mjs";
20
- import { t as addPassToCommerceCart } from "./shop-commerce-store-DqdgJ8Zw.mjs";
19
+ import { r as formatEntitlementEnd } from "./dateFormatting-Bv6kjUW3.mjs";
20
+ import { t as addPassToCommerceCart } from "./shop-commerce-store-Ckxa4_jI.mjs";
21
21
  import React, { useCallback, useEffect, useRef, useState } from "react";
22
22
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
23
23
  //#region ../blocks/src/system/runtime/shared/components/ActionRow.tsx
@@ -64,7 +64,8 @@ function shopPassesMembershipsReducer(state, action) {
64
64
  ...state,
65
65
  checkout: createOpenCheckoutState({
66
66
  productType: "pass",
67
- product: action.pass
67
+ product: action.pass,
68
+ teamMember: action.teamMember
68
69
  })
69
70
  };
70
71
  case "openMembershipCheckout": return {
@@ -204,6 +205,7 @@ function buildDirectShopCheckoutPlan(input) {
204
205
  command: planDirectShopCheckoutRequest({
205
206
  productType: input.checkout.item.productType,
206
207
  productId: input.checkout.item.product.id,
208
+ ...input.checkout.item.productType === "pass" && input.checkout.item.teamMember ? { teamMemberId: input.checkout.item.teamMember.id } : {},
207
209
  form,
208
210
  successUrl: successUrl.toString(),
209
211
  cancelUrl: cancelUrl.toString(),
@@ -246,33 +248,113 @@ async function submitDirectShopCheckout(input) {
246
248
  function ShopClient(props) {
247
249
  return /* @__PURE__ */ jsx(PassesMembershipsController, { render: props.render });
248
250
  }
251
+ function initialPassTeamMember(selection) {
252
+ if (!selection || selection.kind === "any") return null;
253
+ if (selection.kind === "owner") return selection.teamMember;
254
+ return selection.teamMembers.length === 1 ? selection.teamMembers[0] ?? null : null;
255
+ }
256
+ function PassTeamMemberChoice(props) {
257
+ const selection = props.selection;
258
+ if (!selection || selection.kind === "any") return null;
259
+ if (selection.kind === "owner") return /* @__PURE__ */ jsxs("p", {
260
+ className: "shop__card-team-member",
261
+ children: ["With ", selection.teamMember.name]
262
+ });
263
+ const selectId = `shop-pass-team-member-${props.passId}`;
264
+ return /* @__PURE__ */ jsxs("div", {
265
+ className: "shop__card-team-member-choice rb-flex rb-flex-col rb-gap-1",
266
+ children: [
267
+ /* @__PURE__ */ jsx("label", {
268
+ className: "rb-label",
269
+ htmlFor: selectId,
270
+ children: "Choose your practitioner"
271
+ }),
272
+ /* @__PURE__ */ jsxs("select", {
273
+ id: selectId,
274
+ className: "form-input",
275
+ value: props.chosen?.id ?? "",
276
+ "aria-invalid": props.missing || void 0,
277
+ onChange: (event) => props.onChoose(selection.teamMembers.find((member) => member.id === event.target.value) ?? null),
278
+ children: [selection.teamMembers.length > 1 ? /* @__PURE__ */ jsx("option", {
279
+ value: "",
280
+ children: "Choose…"
281
+ }) : null, selection.teamMembers.map((member) => /* @__PURE__ */ jsx("option", {
282
+ value: member.id,
283
+ children: member.name
284
+ }, member.id))]
285
+ }),
286
+ props.chosen ? /* @__PURE__ */ jsxs("p", {
287
+ className: "rb-caption status-muted",
288
+ children: [
289
+ "You'll book these sessions with ",
290
+ props.chosen.name,
291
+ "."
292
+ ]
293
+ }) : props.missing ? /* @__PURE__ */ jsx("p", {
294
+ className: "rb-caption status-error",
295
+ role: "alert",
296
+ children: "Choose who you'd like to book these sessions with."
297
+ }) : null
298
+ ]
299
+ });
300
+ }
249
301
  function PassProductCard(props) {
250
302
  const action = props.display.action;
251
- if (action.kind === "unavailable") return /* @__PURE__ */ jsx(PassCardView, {
303
+ const nobodyToChoose = action.kind === "purchase" && action.product.teamMemberSelection?.kind === "choose" && action.product.teamMemberSelection.teamMembers.length === 0;
304
+ if (action.kind === "unavailable" || nobodyToChoose) return /* @__PURE__ */ jsx(PassCardView, {
252
305
  display: props.display,
253
306
  presentation: props.presentation,
254
307
  index: props.index,
255
- action: /* @__PURE__ */ jsx(PassPurchaseUnavailable, { label: action.label })
308
+ action: /* @__PURE__ */ jsx(PassPurchaseUnavailable, { label: action.kind === "unavailable" ? action.label : "Not available to buy online yet" })
256
309
  });
310
+ return /* @__PURE__ */ jsx(PurchasablePassCard, {
311
+ ...props,
312
+ action
313
+ });
314
+ }
315
+ function PurchasablePassCard(props) {
316
+ const { product } = props.action;
317
+ const selection = product.teamMemberSelection;
318
+ const [chosen, setChosen] = useState(() => initialPassTeamMember(selection));
319
+ const [missing, setMissing] = useState(false);
320
+ const buy = () => {
321
+ if (selection?.kind === "choose" && !chosen) {
322
+ setMissing(true);
323
+ return;
324
+ }
325
+ props.onBuy(product, chosen);
326
+ };
257
327
  return /* @__PURE__ */ jsx(PassCardView, {
258
328
  display: props.display,
259
329
  presentation: props.presentation,
260
330
  index: props.index,
261
- action: /* @__PURE__ */ jsx(ShopPurchaseAction, {
331
+ action: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(PassTeamMemberChoice, {
332
+ passId: product.id,
333
+ selection,
334
+ chosen,
335
+ missing,
336
+ onChoose: (teamMember) => {
337
+ setChosen(teamMember);
338
+ setMissing(false);
339
+ }
340
+ }), /* @__PURE__ */ jsx(ShopPurchaseAction, {
262
341
  presentation: props.presentation,
263
342
  type: "button",
264
343
  variant: props.buttonVariant,
265
344
  size: "md",
266
345
  extraClassName: "shop__cta",
267
- label: action.label,
268
- onClick: () => props.onBuy(action.product)
269
- }),
346
+ label: props.action.label,
347
+ onClick: buy
348
+ })] }),
270
349
  feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
271
350
  active: props.feedbackActive,
272
- itemLabel: action.product.name
351
+ itemLabel: chosen ? `${product.name} with ${chosen.name}` : product.name
273
352
  })
274
353
  });
275
354
  }
355
+ function checkoutProductLabel(checkout) {
356
+ return `${checkout.item.productType === "pass" && checkout.item.teamMember ? `${checkout.item.product.name} with ${checkout.item.teamMember.name}` : checkout.item.product.name} — ${formatCommercePrice(checkout.item.product.price, checkout.item.product.currency)}`;
357
+ }
276
358
  function getCheckoutModalTitle(checkout) {
277
359
  if (!checkout) return "";
278
360
  if (checkout.item.productType === "membership") return "Subscribe to Membership";
@@ -324,11 +406,12 @@ function PassesMembershipsController({ render }) {
324
406
  subtotalCents: checkout?.item.product.price
325
407
  });
326
408
  const discountApplyFeedback = getDiscountApplyFeedback(discountApply.status, formatCommercePrice);
327
- const handleBuyPass = useCallback((pass) => {
409
+ const handleBuyPass = useCallback((pass, teamMember) => {
328
410
  if (hydration.passPurchaseMode === "add_to_cart") {
329
411
  addPassToCommerceCart(api.config.siteId, {
330
412
  passId: pass.id,
331
413
  title: pass.name,
414
+ ...teamMember ? { teamMember } : {},
332
415
  unitPriceCents: pass.price,
333
416
  currency: pass.currency
334
417
  });
@@ -337,7 +420,8 @@ function PassesMembershipsController({ render }) {
337
420
  }
338
421
  dispatch({
339
422
  type: "openPassCheckout",
340
- pass
423
+ pass,
424
+ teamMember
341
425
  });
342
426
  }, [
343
427
  api.config.siteId,
@@ -512,15 +596,10 @@ function PassesMembershipsController({ render }) {
512
596
  children: [
513
597
  /* @__PURE__ */ jsxs("p", {
514
598
  className: "shop__modal-product",
515
- children: [
516
- checkout.item.product.name,
517
- " — ",
518
- formatCommercePrice(checkout.item.product.price, checkout.item.product.currency),
519
- checkout.item.productType === "membership" ? /* @__PURE__ */ jsx("span", {
520
- className: "shop__modal-interval",
521
- children: formatInterval(checkout.item.product.billingInterval)
522
- }) : null
523
- ]
599
+ children: [checkoutProductLabel(checkout), checkout.item.productType === "membership" ? /* @__PURE__ */ jsx("span", {
600
+ className: "shop__modal-interval",
601
+ children: formatInterval(checkout.item.product.billingInterval)
602
+ }) : null]
524
603
  }),
525
604
  /* @__PURE__ */ jsx(SiteTermsChangedNotice, { message: siteTerms.notice }),
526
605
  checkout.duplicateWarning ? /* @__PURE__ */ jsxs(FeedbackMessage, {