@riverbankcms/sdk 0.167.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.
- package/dist/_dts/{BlocksIslandsHydrator-Dgb-ptph.d.ts → BlocksIslandsHydrator-DpROiz12.d.ts} +1 -1
- package/dist/_dts/{Page-Bs3WxFgr.d.ts → Page-DHBBDRC_.d.ts} +7 -6
- package/dist/_dts/{SdkPreviewMode-DtUCsaHY.d.ts → SdkPreviewMode-CG7Qib7u.d.ts} +2 -2
- package/dist/_dts/{client-CwsI23pj.d.ts → client-MURxFla9.d.ts} +90 -418
- package/dist/_dts/{content-types-CAeP_-cV.d.ts → content-types-ClBGjxBV.d.ts} +2 -2
- package/dist/_dts/{contracts-BXHCiF-b.d.ts → contracts-CHNvzh0y.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-Bb2gbppW.d.ts → footerPageOutline-DQM934Fm.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DaBBDx7M.d.ts → generatePageMetadata-ConZaEqB.d.ts} +2 -2
- package/dist/_dts/{index-CS6b1B-c.d.ts → index-BaDqRekr.d.ts} +4 -4
- package/dist/_dts/{index-bDln38Hm.d.ts → index-CVB5wgbz.d.ts} +2 -2
- package/dist/_dts/{index-D7EbliE3.d.ts → index-CiR_oPYT.d.ts} +3 -3
- package/dist/_dts/{index-5_jf52sZ.d.ts → index-CovKPftP.d.ts} +2 -2
- package/dist/_dts/{index-C20yUyob.d.ts → index-DCw8LO4M.d.ts} +1 -1
- package/dist/_dts/index-DDaX-K2D.d.ts +14 -0
- package/dist/_dts/{index-DeHDwMfu.d.ts → index-rfAssXq0.d.ts} +3 -3
- package/dist/_dts/{loadContent-CTqcL7CS.d.ts → loadContent-CRLKVVDP.d.ts} +7 -7
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +1 -0
- package/dist/_dts/{index-ChpjHK0U.d.ts → request-DeVetKBr.d.ts} +81273 -46979
- package/dist/_dts/{resolveBlockData-C3s9WMPs.d.ts → resolveBlockData-C5KYFeig.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-JPwgRxwh.d.ts → resolvePageContent-D8MZWyNO.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -5
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BlaCuPLr.d.ts → types-B4MBlP_B.d.ts} +4 -2
- package/dist/_dts/{types-D-WElMCy.d.ts → types-Fj31kIi2.d.ts} +7 -7
- package/dist/_dts/{types-CwtTcaQP.d.ts → types-OwqfS8Gn.d.ts} +3 -3
- package/dist/_dts/{validation-Y5wD9fGK.d.ts → validation-B1Fa8o_b.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DFqkx158.mjs → BlocksIslandsHydrator-qq4Vhs7k.mjs} +21 -21
- package/dist/client/BookingMailingListNote-y3qWjnOo.mjs +957 -0
- package/dist/client/BookingQuestionFields-DjLjd0vc.mjs +359 -0
- package/dist/client/{CalendarNavigationChevron-DQwJ7BPx.mjs → CalendarNavigationChevron-VM7C2fdh.mjs} +8 -8
- package/dist/client/{CheckboxChoice-CZ-anOqV.mjs → CheckboxChoice-W_uiRgDK.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DdkY86qI.mjs → DemoBookingPortalAccess-C2QCj_Ta.mjs} +68 -12
- package/dist/client/{EventCalendar.client-DAeQPV76.mjs → EventCalendar.client-DDjz7tuX.mjs} +10 -10
- package/dist/client/{EventCombined.client-Bus9R0bj.mjs → EventCombined.client-CeYbNsch.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-D_14yqAU.mjs → EventEmbeddedCheckoutStep-Cf-HRHtb.mjs} +1 -1
- package/dist/client/{EventItem-DPBLjGwj.mjs → EventItem-B5J0IeF4.mjs} +37 -15
- package/dist/client/{EventListWeekNavigation-D6cwU82_.mjs → EventListWeekNavigation-eH04D8-V.mjs} +1 -1
- package/dist/client/{EventListing.client-Bogi_SnJ.mjs → EventListing.client-slpvrTrM.mjs} +3 -3
- package/dist/client/{EventListing.view-CEumpN7i.mjs → EventListing.view-BYBaElec.mjs} +34 -16
- package/dist/client/{EventRegistrationPayment-CIQw6vNy.mjs → EventRegistrationPayment-Do7Q0wRG.mjs} +362 -90
- package/dist/client/{LocationMapActions-BVO-qx4q.mjs → LocationMapActions-BFp2uQQQ.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-CcGaFawl.mjs → MapDrawingSvg-DDWfmgpA.mjs} +1 -1
- package/dist/client/{Page-D4_H_u9V.mjs → Page-Dv9eIOGr.mjs} +4475 -1600
- package/dist/client/{ProtectedSubmitButton-8DuDw2ag.mjs → ProtectedSubmitButton-C3H26pN9.mjs} +1 -1
- package/dist/client/{StepIndicator-Dptantmg.mjs → StepIndicator-BZNUd0-v.mjs} +3 -3
- package/dist/client/{TabBarFragment-BxEGsKUx.mjs → TabBarFragment-DkVKtK5a.mjs} +1 -1
- package/dist/client/{ThemedButton-8jUc02mZ.mjs → ThemedButton-BdnEwA38.mjs} +2 -5
- package/dist/client/accessibleSurfaces-chpD4C2c.mjs +4278 -0
- package/dist/client/{accordion--EUHmEGa.mjs → accordion-BCtVxnDZ.mjs} +1 -1
- package/dist/client/{booking-form.client-BCXwOnhc.mjs → booking-form.client-Cr5G-HHO.mjs} +1323 -567
- package/dist/client/{bookingForm-sHHcdism.mjs → bookingForm-B1Fc62Sl.mjs} +9 -5
- package/dist/client/bookingQuestions-BHq83mzS.mjs +13 -0
- package/dist/client/{bookingRoute-Bqlyu5Vb.mjs → bookingRoute-D6DlxYx6.mjs} +6 -2
- package/dist/client/bookings.mjs +28 -20
- package/dist/client/{carousel-Cp9xPBFZ.mjs → carousel-DW-HgjvT.mjs} +3 -3
- package/dist/client/{carousel.client-BO7sCEpH.mjs → carousel.client-BD4DXMtI.mjs} +62 -16
- package/dist/client/{carousel.shared-DBnWEJzo.mjs → carousel.shared-BFQ3kBEw.mjs} +6 -3
- package/dist/client/{cart-CCZZC-Lq.mjs → cart-D1zWe4R7.mjs} +3 -3
- package/dist/client/{cart.client-B7JfA19I.mjs → cart.client-CIfbTLHS.mjs} +1 -1
- package/dist/client/{checkout-CipmYL4A.mjs → checkout-fDCNZ3IT.mjs} +3 -3
- package/dist/client/{checkout.client-DraalWdH.mjs → checkout.client-C4l2KjtV.mjs} +1 -1
- package/dist/client/{checkoutUrls-CYj06rX1.mjs → checkoutUrls-cWL6I-Vz.mjs} +3 -2
- package/dist/client/client.mjs +287 -63
- package/dist/client/{context-Cv3QHjAF.mjs → context-DQnTyApV.mjs} +320 -4
- package/dist/client/creditProducts-CMOmhWm2.mjs +364 -0
- package/dist/client/{cta-P2vJVTEn.mjs → cta-Bj5WHgcv.mjs} +2 -2
- package/dist/client/{dateFormatting-D8D47VT4.mjs → dateFormatting-Bv6kjUW3.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CXWZoV-d.mjs → demoPortalMagicLink-3uVu3WgG.mjs} +1 -1
- package/dist/client/{site-styles-D56hT2u1.mjs → display-CT8KMSpH.mjs} +19832 -17912
- package/dist/client/{enhanceHeaderSection-BkAro1DJ.mjs → enhanceHeaderSection-B27KFGDv.mjs} +4 -3
- package/dist/client/{event-details.client-dLmyuPap.mjs → event-details.client-CL4Lqz2c.mjs} +1 -1
- package/dist/client/{event-registration.client-BEhC2_-Y.mjs → event-registration.client-Dj3Kyp5X.mjs} +118 -241
- package/dist/client/{eventCalendar-FBMS2Cpb.mjs → eventCalendar-DGsdSF8J.mjs} +4 -4
- package/dist/client/{eventCombined-BrBhUvGe.mjs → eventCombined-DFSVDJ3D.mjs} +4 -4
- package/dist/client/{eventDetails-C7WUrbZ2.mjs → eventDetails-DzMskXYA.mjs} +2 -2
- package/dist/client/{eventListing-Bih-BgQM.mjs → eventListing-CpFFcAUr.mjs} +4 -4
- package/dist/client/{eventRegistration-DfTlqGbl.mjs → eventRegistration-BipMUOCw.mjs} +8 -5
- package/dist/client/{form-Bw1uuiUs.mjs → form-57k2JQnm.mjs} +3 -3
- package/dist/client/{form.client-pZ-9gN33.mjs → form.client-CCl6CpRJ.mjs} +5 -5
- package/dist/client/{form.parts-PXlu6XQO.mjs → form.parts-BOJ1yDDf.mjs} +3 -3
- package/dist/client/{formatDate-DI3DP48e.mjs → formatDate-BGlhrmhF.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-BpJYUMd6.mjs → headerSection-q_bEzfhW.mjs} +2 -2
- package/dist/client/{mediaAssets-DpPauppt.mjs → mediaAssets-B99AP7ai.mjs} +1 -1
- package/dist/client/{mediaContext-BLo4NtjP.mjs → mediaContext-Fusweriw.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CSoP0cGR.mjs → newsletter-form.client-CiqKAmPs.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDbX_Sj0.mjs → newsletter-form.parts-x1RzAMNO.mjs} +2 -2
- package/dist/client/{newsletterForm-vCxYRar_.mjs → newsletterForm-Cn7h4zFe.mjs} +3 -3
- package/dist/client/{noop-ByVtIWf4.mjs → noop-B_f7RqLD.mjs} +544 -494
- package/dist/client/portal/client.mjs +86 -231
- package/dist/client/{product-detail.client-7Pi6avM-.mjs → product-detail.client-rWUvpVvZ.mjs} +1 -1
- package/dist/client/{product-list.client-DEad-Pma.mjs → product-list.client-J0wDOmKv.mjs} +1 -1
- package/dist/client/{productDetail-G1SMXG13.mjs → productDetail-LtCkMrJ0.mjs} +3 -3
- package/dist/client/{productList-B21TGdpT.mjs → productList-C0MLeh-v.mjs} +3 -3
- package/dist/client/{propsDecoder-B3vIBkex.mjs → propsDecoder-CAmEkJ6Y.mjs} +5 -4
- package/dist/client/{registry.server-B8aQhJpO.mjs → registry.server-Bf2YX_4v.mjs} +2218 -2435
- package/dist/client/{surfaceTransportMarker-BXepAVF6.mjs → renderableMediaAssetAdmission-BlfqYLJW.mjs} +1 -18
- package/dist/client/rendering/client.mjs +30 -30
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +10 -9
- package/dist/client/{richText-coerce-DHkBtO0G.mjs → richText-coerce-BTurYEao.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DbHX4JOS.mjs → routeIslandApiConfig-UdAlnZGQ.mjs} +1 -1
- package/dist/client/runtimeResponse-BP-L6exS.mjs +3 -0
- package/dist/client/runtimeResponse-Dg4XFsuM.mjs +9 -0
- package/dist/client/{shop-mqyoOvOK.mjs → shop-Dkn6EasY.mjs} +3 -3
- package/dist/client/{shop-commerce-B2UmrQg_.mjs → shop-commerce-bo0Z6kwf.mjs} +13 -13
- package/dist/client/{shop-commerce-store-B7n-Z7nY.mjs → shop-commerce-store-Ckxa4_jI.mjs} +1 -1
- package/dist/client/{shop.client-BH-BBnA9.mjs → shop.client-B_GqU6_U.mjs} +111 -32
- package/dist/client/{shop.interactive-mdM3UMWG.mjs → shop.interactive-C6L_Ig5F.mjs} +87 -528
- package/dist/client/{shopShared-CXF5wxdg.mjs → shopShared-CO1Y8lFd.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/src-BozhJ43Z.mjs +3 -0
- package/dist/client/{src-1PJxc8KO.mjs → src-xrjaKaCj.mjs} +6 -8
- package/dist/client/surfaceTransportMarker-BuwkYxsI.mjs +19 -0
- package/dist/client/{timetableModel-CrC80EOG.mjs → timetableModel-D62jfOxZ.mjs} +12 -12
- package/dist/client/{types-sF-IrGQr.mjs → types-5fOsPIpL.mjs} +248 -111
- package/dist/client/{useAvailableSlots-C4LOaI_Z.mjs → useAvailableSlots-CStfVmyY.mjs} +3 -3
- package/dist/client/{useDiscountApply-6Q0nToVA.mjs → useDiscountApply-Ca2pHUDu.mjs} +6 -4
- package/dist/client/{useDiscountCodeUi-CM-DTX5X.mjs → useDiscountCodeUi-AEifktGO.mjs} +1 -1
- package/dist/client/{useEventPagination-Bcs89BR5.mjs → useEventPagination-uxnUWI2v.mjs} +7 -7
- package/dist/client/{view-BN-fxyfq.mjs → view-B6KSxQMO.mjs} +11 -7
- package/dist/client/{view-Dh2tGoS0.mjs → view-SVnWic7i.mjs} +3 -4
- package/dist/preview-next/client/{ArrangementLookControls-D4VjPs-r.mjs → ArrangementLookControls-kbdqYkWM.mjs} +26 -17
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-C_h1cMYm.mjs → EventEmbeddedCheckoutStep-8-qtHjpb.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-D56RD3e_.mjs → LocationPickerEnvironment-CZQ4vkRe.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-DFnyCckr.mjs → MapLibreEditMap-CP4w7T_0.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-Ckr2zk_L.mjs → PreviewEditorSidebar-DI_LhsMQ.mjs} +212 -55
- package/dist/preview-next/client/{PreviewEditorUI-KOZgw_gS.mjs → PreviewEditorUI-yyD-ZREP.mjs} +6 -6
- package/dist/preview-next/client/{PreviewShell-CyO2V4kB.mjs → PreviewShell-YauP65Gi.mjs} +199 -155
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DW3uKvNF.mjs → SdkPreviewModeRuntime-Bl7jQMI1.mjs} +32 -32
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CU9VD-7O.mjs → SiteChromeCustomizeButton-CQFRP9aM.mjs} +4772 -3687
- package/dist/preview-next/client/{ThemedButton-C0dgGJ5k.mjs → ThemedButton-BQU45t-E.mjs} +260 -121
- package/dist/preview-next/client/{lucide-react-CPBCf6QT.mjs → lucide-react-DkZ8fO-G.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-DBi-WybM.mjs → previewAssistantSlot-DSR0IdAw.mjs} +16547 -13046
- package/dist/preview-next/client/{previewChromeSurface-BhkUJst9.mjs → previewChromeSurface-uSnVzeNs.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BjCb6lOn.mjs → sdk-runtime-6Q0RVJTQ.mjs} +2 -2
- package/dist/preview-next/client/{src-DY8JCJdE.mjs → src-DzXUmsyK.mjs} +6 -8
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-CKxTaC3j.mjs → useAutosaveStatus-Cdx3kAGm.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-B7MLTjBX.mjs → useBlockCustomizeControls-ZrWdhcB6.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BTUc0g9X.mjs → useOpenBlockForSetup-CK-GWb9k.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Bv3nkdpV.mjs → route-contract-BU1m9SV3.mjs} +212 -0
- package/dist/server/{Block.shared-4fMqzltx.mjs → Block.shared-4vx7wzxj.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-C72VC_lR.mjs → ThemeScopeCore-C3HLgqBF.mjs} +463 -127
- package/dist/server/{accessibleSurfaces-B_Y_dA20.mjs → accessibleSurfaces-108nxyGc.mjs} +319 -131
- package/dist/server/{bindings-ConMYJ2U.mjs → bindings-TAQbo2P5.mjs} +2 -2
- package/dist/server/{booking-form.reserved-fields-BWRF7509.mjs → booking-form.reserved-fields-Cqp13TKc.mjs} +1 -0
- package/dist/server/{client-Cot-H5fQ.mjs → client-DzCxEl3L.mjs} +308 -61
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +1 -1
- package/dist/server/{validation-CDd6m8Ry.mjs → customCss-QymcmOZ-.mjs} +12 -55
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/headerVariant-8O5MvxIU.mjs +464 -0
- package/dist/server/{identity-Bn9OQiT1.mjs → identity-20XHqyuO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BkaWYEwt.mjs → loadContent-BO1M9Hdf.mjs} +4 -5
- package/dist/server/{loadPage-kviUdH8c.mjs → loadPage-BvWzmZcD.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/{media-DnlczCMA.mjs → media-Brn9FW5s.mjs} +15 -1
- package/dist/server/{mode-Cv_TG9gP.mjs → mode-bkFS8glh.mjs} +4 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-BTnS09GS.mjs → opaqueSurface-BawlEAd_.mjs} +6 -6
- package/dist/server/{overrideResolution-itXZCXs7.mjs → overrideResolution-fxuB1zZg.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-CDyn7iLy.mjs → pageRenderPlan-DzduDSqY.mjs} +255 -158
- package/dist/server/{pageRuntimeSupport-DZ6cLxrM.mjs → pageRuntimeSupport-BU8pwTNx.mjs} +291 -5
- package/dist/server/{pageShared-Q_Vij87H.mjs → pageShared-CSOJ8p8E.mjs} +1303 -907
- package/dist/server/{schema-DEizlyi4.mjs → parseThemeForPersistence-BebSeE17.mjs} +593 -1592
- package/dist/server/{prebuild-DOG4MkOy.mjs → prebuild-C5ZYo7wA.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DlprLLsc.mjs → prefetchBlockData-BvbxqeKn.mjs} +5 -4
- package/dist/server/{registry-BPFcpn6k.mjs → registry-Fv-7D8o2.mjs} +4595 -4045
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BHvfGD4y.mjs → resolveBlockData-xPgkvoWS.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-OXFRGn5M.mjs → resolveButtonColourStates-Cn6j8Ee0.mjs} +399 -518
- package/dist/server/{responseMedia-D8J3VAFs.mjs → responseMedia-t6gs0cB7.mjs} +2 -2
- package/dist/server/{richTextSchema-Euhuj-7V.mjs → richTextSchema-DQ2NBP0n.mjs} +5 -16
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -3
- package/dist/server/theme.mjs +1 -2
- package/dist/server/{three-pass-converter-_j2UE2tR.mjs → three-pass-converter-CQWdnfjV.mjs} +1 -1
- package/dist/server/{validation-bl6WcAi_.mjs → validation-DddhgNdb.mjs} +58 -9
- package/dist/server/{version-BLXZ31S-.mjs → version-D_W2mt8w.mjs} +1 -1
- package/dist/styles/index.css +342 -67
- package/package.json +4 -3
- package/dist/_dts/index-CXsnaCGe.d.ts +0 -10
- package/dist/_dts/index-RugyUnqR.d.ts +0 -31535
- package/dist/client/BookingMailingListNote-CCVXX1LN.mjs +0 -331
- package/dist/client/DemoPortalSignInLink-B9YrzZt2.mjs +0 -19
- package/dist/client/creditProducts-BOWi1QLp.mjs +0 -62
- package/dist/client/site-styles-CMCUxsIM.mjs +0 -3
- package/dist/client/src-CdRISvQp.mjs +0 -3
- package/dist/client/src-DjnxOjXG.mjs +0 -217
- package/dist/client/useBookingNowIso-BDmWkYUW.mjs +0 -58
- package/dist/client/wizardSteps-DtkhwKXK.mjs +0 -6933
- package/dist/preview-next/client/src-BP8771hw.mjs +0 -3
- package/dist/server/parseThemeForPersistence-CDrF51tJ.mjs +0 -52
|
@@ -132,21 +132,4 @@ function buildRenderableMediaAssetIndex(assets) {
|
|
|
132
132
|
return indexRenderableMediaAssets(assets.map((asset) => renderableMediaAssetSchema.parse(asset)));
|
|
133
133
|
}
|
|
134
134
|
//#endregion
|
|
135
|
-
|
|
136
|
-
/**
|
|
137
|
-
* The envelope key `serializeSurfaceTree` writes and `parseSurfaceTree` reads.
|
|
138
|
-
*
|
|
139
|
-
* This module has no dependencies so browser code can check for transported
|
|
140
|
-
* surfaces without loading the surface resolver, then import it only when
|
|
141
|
-
* the payload needs it.
|
|
142
|
-
*/
|
|
143
|
-
const SURFACE_TRANSPORT_KEY = "$surfaceTransport";
|
|
144
|
-
/** Whether a JSON-shaped value holds a surface transport envelope anywhere. */
|
|
145
|
-
function containsSurfaceTransport(value) {
|
|
146
|
-
if (Array.isArray(value)) return value.some(containsSurfaceTransport);
|
|
147
|
-
if (typeof value !== "object" || value === null) return false;
|
|
148
|
-
if ("$surfaceTransport" in value) return true;
|
|
149
|
-
return Object.values(value).some(containsSurfaceTransport);
|
|
150
|
-
}
|
|
151
|
-
//#endregion
|
|
152
|
-
export { indexRenderableMediaAssets as a, parseCanonicalMediaIdentifier as c, unsafeAsStorageBucketName as d, unsafeAsStoragePath as f, ok as h, renderableMediaAssetSchema as i, parseMediaIdentifier as l, err as m, containsSurfaceTransport as n, resolveManagedMediaReference as o, parseUuidBrand as p, buildRenderableMediaAssetIndex as r, mediaIdentifierSchema as s, SURFACE_TRANSPORT_KEY as t, unsafeAsMediaAssetId as u };
|
|
135
|
+
export { mediaIdentifierSchema as a, unsafeAsMediaAssetId as c, parseUuidBrand as d, err as f, resolveManagedMediaReference as i, unsafeAsStorageBucketName as l, renderableMediaAssetSchema as n, parseCanonicalMediaIdentifier as o, ok as p, indexRenderableMediaAssets as r, parseMediaIdentifier as s, buildRenderableMediaAssetIndex as t, unsafeAsStoragePath as u };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { n as BookingFormNodeClient } from "../booking-form.client-
|
|
7
|
-
import {
|
|
8
|
-
import { o as getRuntimeTimeZone } from "../useAvailableSlots-
|
|
9
|
-
import {
|
|
10
|
-
import { i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField } from "../DemoBookingPortalAccess-
|
|
11
|
-
import { F as markEditableSurfaceForwarding, I as splitPositioningClasses, P as composeHeaderSectionWrapperClassName, c as HeaderSectionFrame, d as accordionIconColorStyle, f as resolveAccordionIconStyle, i as WeeklySlotAvailabilityView, l as accordionItemPartSlots, n as runtimeBackedBlockModes, o as LocationMapSSR, r as runtimeBackedBlockServerEntries, t as serverComponentRegistry, u as accordionLookAttributes } from "../registry.server-
|
|
12
|
-
import { f as Text } from "../timetableModel-
|
|
13
|
-
import { t as EventRegistrationIslandClient } from "../event-registration.client-
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
3
|
+
import { in as staticHeaderChromeRuntime } from "../shop.interactive-C6L_Ig5F.mjs";
|
|
4
|
+
import { r as indexRenderableMediaAssets } from "../renderableMediaAssetAdmission-BlfqYLJW.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
|
+
import "../accessibleSurfaces-chpD4C2c.mjs";
|
|
16
|
+
import { S as clsx } from "../ThemedButton-BdnEwA38.mjs";
|
|
17
|
+
import { t as ShopClient } from "../shop.client-B_GqU6_U.mjs";
|
|
17
18
|
import { t as FeedbackMessage } from "../FeedbackMessage-CSJrAuXH.mjs";
|
|
18
|
-
import { t as CarouselSlideContent } from "../carousel.shared-
|
|
19
|
-
import { t as coerceRichTextDoc } from "../richText-coerce-
|
|
20
|
-
import { n as useBlockApi, t as BlockApiProvider$1 } from "../context-Cv3QHjAF.mjs";
|
|
19
|
+
import { t as CarouselSlideContent } from "../carousel.shared-BFQ3kBEw.mjs";
|
|
20
|
+
import { t as coerceRichTextDoc } from "../richText-coerce-BTurYEao.mjs";
|
|
21
21
|
import { t as createLucideIcon } from "../createLucideIcon-CIbxe9em.mjs";
|
|
22
|
-
import { t as CarouselNodeClient } from "../carousel.client-
|
|
23
|
-
import { t as EventDetailsIslandClient } from "../event-details.client-
|
|
24
|
-
import { t as ProductListClient } from "../product-list.client-
|
|
25
|
-
import { t as ProductDetailClient } from "../product-detail.client-
|
|
26
|
-
import { t as CartClient } from "../cart.client-
|
|
27
|
-
import { t as CheckoutClient } from "../checkout.client-
|
|
28
|
-
import { t as mountHeaderChromeRuntime } from "../enhanceHeaderSection-
|
|
29
|
-
import { t as EventListingClient } from "../EventListing.client-
|
|
30
|
-
import { n as EventCombinedIslandClient } from "../EventCombined.client-
|
|
31
|
-
import { t as EventCalendarClient } from "../EventCalendar.client-
|
|
32
|
-
import { t as FormNodeClient } from "../form.client-
|
|
33
|
-
import { t as NewsletterFormClient } from "../newsletter-form.client-
|
|
34
|
-
import { t as BlocksIslandsHydrator } from "../BlocksIslandsHydrator-
|
|
22
|
+
import { t as CarouselNodeClient } from "../carousel.client-BD4DXMtI.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,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { A as renderBlock, B as compileManifestContentContract, C as resolveSiteCustomBlocks, D as prefetchBlockDataWithFailures, E as requireSdkTheme, F as resolveRouteHrefForStage, G as
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-DpPauppt.mjs";
|
|
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 { 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
|
+
import { o as setContextResolveImageUrlContext, t as buildResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
8
|
+
import { n as toBlocksImageResolveContextInput, r as toBlocksMediaAssets } from "./mediaAssets-B99AP7ai.mjs";
|
|
10
9
|
import "react";
|
|
11
10
|
import { z } from "zod";
|
|
12
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -22,13 +21,15 @@ const PORTAL_NAV_DEFAULT_LABELS = {
|
|
|
22
21
|
loggedIn: "My account"
|
|
23
22
|
};
|
|
24
23
|
//#endregion
|
|
25
|
-
//#region ../
|
|
24
|
+
//#region ../site-contracts/src/theme/footerMode.ts
|
|
26
25
|
const footerModeSchema = z.enum([
|
|
27
26
|
"default",
|
|
28
27
|
"blocks",
|
|
29
28
|
"default+blocks",
|
|
30
29
|
"none"
|
|
31
30
|
]);
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region ../theme-core/src/footer/mode.ts
|
|
32
33
|
/** Reads only SDK footer intent; unrelated config and theme fields are not authorities. */
|
|
33
34
|
function resolveSdkFooterMode(config) {
|
|
34
35
|
const parsed = z.object({ layout: z.object({ footerMode: footerModeSchema.optional() }).optional() }).safeParse(config);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
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 {
|
|
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({
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as parseSurfaceTree } from "./accessibleSurfaces-chpD4C2c.mjs";
|
|
3
|
+
//#region ../site-renderer/src/runtimeResponse.ts
|
|
4
|
+
/** Recreate owner-produced rendering values at a JSON boundary, never trust copied proofs. */
|
|
5
|
+
function restoreRuntimeResponse(serialized) {
|
|
6
|
+
return parseSurfaceTree(serialized);
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { restoreRuntimeResponse as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as ShopClient } from "./shop.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-cWL6I-Vz.mjs";
|
|
8
9
|
import { t as resolveDedicatedCheckoutPath } from "./checkoutRoute-DKlZRNZD.mjs";
|
|
9
|
-
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-
|
|
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";
|
|
10
11
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
11
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
12
|
-
import { c as ProductDetailView, f as VariantSelectView, l as ProductGalleryFrameView, n as CheckoutShellView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { n as useCommerceCart } from "./shop-commerce-store-B7n-Z7nY.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
|
+
import { t as CarouselNodeClient } from "./carousel.client-BD4DXMtI.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 {
|
|
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 {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
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
|
+
import { r as ThemedButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
7
8
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
8
9
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
9
|
-
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-
|
|
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";
|
|
10
11
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
11
12
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
12
13
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
13
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
14
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-AEifktGO.mjs";
|
|
14
15
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
15
|
-
import { a as PassPurchaseUnavailable, d as ShopPurchaseAction, i as PassCardView, o as PassesMembershipsSectionView, r as MembershipCardView } from "./view-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import { t as addPassToCommerceCart } from "./shop-commerce-store-B7n-Z7nY.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
|
+
import { t as CarouselNodeClient } from "./carousel.client-BD4DXMtI.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
|
-
|
|
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(
|
|
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:
|
|
269
|
-
}),
|
|
346
|
+
label: props.action.label,
|
|
347
|
+
onClick: buy
|
|
348
|
+
})] }),
|
|
270
349
|
feedback: /* @__PURE__ */ jsx(ShopAddFeedback, {
|
|
271
350
|
active: props.feedbackActive,
|
|
272
|
-
itemLabel:
|
|
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
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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, {
|