@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
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-BLo4NtjP.mjs";
|
|
10
|
-
import { n as getCreditProductCreditUnit, t as deriveCreditProductLabels } from "./creditProducts-BOWi1QLp.mjs";
|
|
2
|
+
import { d as parseUuidBrand, f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
3
|
+
import { Ao as formatEventPricing, Bi as defineClientOwnedBlockRuntime, Bo as parseEventSeriesId, Cn as RichText, Co as DEFAULT_MAILING_LIST_PRIVACY_NOTE, D as registrationStepLabel, Dn as mediaImageHostProps, Do as parseMailchimpInterestId, E as registrationRoute, En as computeMediaTransformStyle, Eo as parseMailchimpAudienceId, Fa as assertNever, Fi as defineInteractiveIslandMetaKeys, Ft as formatBookingWhen, Gi as listLookSlot, Ha as toNonEmptyReadonlyArray, Hi as isDecodeSuccess, Ii as eventRegistrationPageSurfaceSubjectSchema, In as eventCalendarWeekStart, Ki as lookListPresentationSchemaShape, Ln as eventDateLocale, N as isRegistrationLocked, Ni as buildInteractiveIslandProps, Nn as resolveMediaNodeResponsiveImage, No as publicEventPricingDisplay, O as registrationStepLabelContext, On as renderAudio, Oo as parseNewsletterListId, Pi as createInteractiveIslandCodec, Ri as resolveEventRegistrationScopedEvents, Rn as eventDateOptions, S as getEventSelectionMode, Sn as shownVenue, Ti as browserReadAuthoritySchema, Tn as MediaPlaceholder, To as parseBrevoListId, Ui as listItemPresentation, Un as formatEventCompactDateRail, Vi as defineProgressiveBlockRuntime, Zn as resolveRuntimeEventDestination, _i as previewStageSchema, _o as nextLiveRunSessionStartMs, a as buildProductDetailDisplay, an as toWholeSeriesRegistrationEvent, b as resolveSelectedProduct, bn as registrationDisplaySchema, bo as resolveWholeSeriesRunLifecycle, ct as findPreSelectedEvent, di as columnOptionSchema, fi as eventButtonVariantSchema, g as deriveCommerceCheckoutState, gi as filterAutoShowSchema, hi as eventLayoutSchema, in as toRegistrationEvents, ji as pageNavigationSchema, kn as renderVideo, ko as formatBookingPriceDisplay, li as bookingNowSchema, lr as groupPublicEventsByRun, mi as eventCalendarDisplayModeSchema, n as buildCheckoutDisplay, no as cardRoleSchema, o as buildProductListDisplay, on as toWholeSeriesRegistrationEvents, pi as eventCalendarDefaultViewSchema, qt as withOccurrenceTitle, r as buildPassesMembershipsDisplay, ra as resolveModeArrangement, sr as selectEventCapacitySource, t as buildCartDisplay, tr as formatRemainingPlaces, ui as calendarTabViewsSchema, ut as resolveEventRequiresPayment, vi as registrationButtonVariantSchema, wi as resolveDateRuntimeContext, wn as ImagePresets, wo as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, x as REGISTRATION_STEP_LABELS, xi as blockButtonRoleSchema, xn as resolveRegistrationDisplay, xo as parseMailingListRuntimeContext, yi as weekStartSchema, yn as placesLeftLabel, zi as createZodCodec, zn as eventLocalDateKey, zt as formatRegistrationSchedule } from "./display-CT8KMSpH.mjs";
|
|
4
|
+
import { It as formatTime, Jt as getLocalScheduleDate, L as publicEventDestinationSchema, Mt as formatDate, Nt as formatDateRange, Qt as resolveBookingTimeZoneId, R as publicEventSchema, S as isEventCalendarListLayout, Ut as buildBookingUtcDateWindow, Yt as parseBookingLocalDate, Zt as resolveBookingBusinessTimeZone, _t as eventScheduleScopeValues, bt as publicEventLoaderQuerySchemaShape, dt as publicPassProductSchema, en as parseUtcIsoDateTimeString, ft as publicProductSchema, g as eventCalendarListGroupingDecision, mt as purchasablePublicPassProductSchema, n as blockSiteTermsSchema, o as publicMembershipProductCollectionSchema, p as calendarWindowPageSchema, pt as purchasablePublicMembershipProductSchema, s as publicPassProductCollectionSchema, tn as toUtcIsoDateTimeString, ut as publicMembershipProductSchema, v as eventCalendarVariantMeaning, vt as eventSurfacePresetValues, w as resolveEventCalendarReadPlan, y as eventListArrangementValues, yt as eventSurfaceScopeValues, zt as inferSiteDateLocale } from "./noop-B_f7RqLD.mjs";
|
|
5
|
+
import { M as assertNever$2, h as assertNever$1 } from "./creditProducts-CMOmhWm2.mjs";
|
|
6
|
+
import { d as formatDateKey, l as buildCalendarViewport, r as groupItemsByDate } from "./src-xrjaKaCj.mjs";
|
|
7
|
+
import { S as clsx, h as ExternalLinkIcon, i as ThemedButtonLink, n as ThemedAuthoredButton } from "./ThemedButton-BdnEwA38.mjs";
|
|
8
|
+
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-Fusweriw.mjs";
|
|
11
9
|
import "react";
|
|
12
10
|
import { z } from "zod";
|
|
13
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -397,57 +395,6 @@ const EVENT_PRESET_VOCABULARY = {
|
|
|
397
395
|
}
|
|
398
396
|
};
|
|
399
397
|
//#endregion
|
|
400
|
-
//#region ../blocks/src/system/blocks/shop.shared.ts
|
|
401
|
-
/**
|
|
402
|
-
* Public pass product for shop display
|
|
403
|
-
*/
|
|
404
|
-
const publicPassProductFields = {
|
|
405
|
-
id: z.string(),
|
|
406
|
-
productUseCase: z.enum(["event_pass", "appointment_package"]).default("event_pass"),
|
|
407
|
-
name: z.string(),
|
|
408
|
-
description: z.string().nullable(),
|
|
409
|
-
price: z.number(),
|
|
410
|
-
currency: z.string(),
|
|
411
|
-
creditsTotal: z.number(),
|
|
412
|
-
pricePerCredit: z.number(),
|
|
413
|
-
validDays: z.number().nullable(),
|
|
414
|
-
eligibleCategoryIds: z.array(z.string()),
|
|
415
|
-
eligibleCategoryNames: z.array(z.string())
|
|
416
|
-
};
|
|
417
|
-
const purchasablePublicPassProductSchema = z.object({
|
|
418
|
-
...publicPassProductFields,
|
|
419
|
-
purchaseAvailability: z.literal("purchasable")
|
|
420
|
-
});
|
|
421
|
-
const publicPassProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicPassProductSchema, z.object({
|
|
422
|
-
...publicPassProductFields,
|
|
423
|
-
purchaseAvailability: z.literal("display_only"),
|
|
424
|
-
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
425
|
-
})]);
|
|
426
|
-
const publicPassProductCollectionSchema = z.object({ passes: z.array(publicPassProductSchema) });
|
|
427
|
-
/**
|
|
428
|
-
* Public membership product for shop display
|
|
429
|
-
*/
|
|
430
|
-
const publicMembershipProductFields = {
|
|
431
|
-
id: z.string(),
|
|
432
|
-
name: z.string(),
|
|
433
|
-
description: z.string().nullable(),
|
|
434
|
-
price: z.number(),
|
|
435
|
-
currency: z.string(),
|
|
436
|
-
billingInterval: z.enum(["month", "year"]),
|
|
437
|
-
eligibleCategoryIds: z.array(z.string()),
|
|
438
|
-
eligibleCategoryNames: z.array(z.string())
|
|
439
|
-
};
|
|
440
|
-
const purchasablePublicMembershipProductSchema = z.object({
|
|
441
|
-
...publicMembershipProductFields,
|
|
442
|
-
purchaseAvailability: z.literal("purchasable")
|
|
443
|
-
});
|
|
444
|
-
const publicMembershipProductSchema = z.discriminatedUnion("purchaseAvailability", [purchasablePublicMembershipProductSchema, z.object({
|
|
445
|
-
...publicMembershipProductFields,
|
|
446
|
-
purchaseAvailability: z.literal("display_only"),
|
|
447
|
-
unavailabilityReason: z.literal("online_payments_unavailable")
|
|
448
|
-
})]);
|
|
449
|
-
const publicMembershipProductCollectionSchema = z.object({ memberships: z.array(publicMembershipProductSchema) });
|
|
450
|
-
//#endregion
|
|
451
398
|
//#region ../theme-core/src/siteChromePlacement.ts
|
|
452
399
|
const SITE_CHROME_PLACEMENT_CLASSES = [
|
|
453
400
|
"rb-sticky",
|
|
@@ -489,7 +436,7 @@ function planSiteChromePlacement(positioning) {
|
|
|
489
436
|
headerRootClassName: "rb-fixed rb-top-0 rb-left-0 rb-right-0",
|
|
490
437
|
standaloneShellClassName: "fixed left-0 right-0 top-0 z-40 w-full"
|
|
491
438
|
};
|
|
492
|
-
default: return assertNever
|
|
439
|
+
default: return assertNever(positioning);
|
|
493
440
|
}
|
|
494
441
|
}
|
|
495
442
|
function splitSiteChromePlacementClasses(className) {
|
|
@@ -555,6 +502,59 @@ function eventSeriesScopeCsv(value) {
|
|
|
555
502
|
return typeof value === "string" ? value : value.join(",");
|
|
556
503
|
}
|
|
557
504
|
//#endregion
|
|
505
|
+
//#region ../blocks/src/system/helpers/normalizeIds.ts
|
|
506
|
+
function normalizeIdList(parts) {
|
|
507
|
+
const seen = /* @__PURE__ */ new Set();
|
|
508
|
+
const normalized = [];
|
|
509
|
+
for (const part of parts) {
|
|
510
|
+
const trimmed = part.trim();
|
|
511
|
+
if (!trimmed || seen.has(trimmed)) continue;
|
|
512
|
+
seen.add(trimmed);
|
|
513
|
+
normalized.push(trimmed);
|
|
514
|
+
}
|
|
515
|
+
return normalized.sort();
|
|
516
|
+
}
|
|
517
|
+
//#endregion
|
|
518
|
+
//#region ../blocks/src/system/blocks/events/shared/filtering.ts
|
|
519
|
+
const unsafeAsEventCategoryId = (value) => value;
|
|
520
|
+
const unsafeAsVenueId = (value) => value;
|
|
521
|
+
function normalizeEventSurfaceScope(value) {
|
|
522
|
+
return value === "regularClassSchedule" || value === "specialDatedEvents" || value === "custom" ? value : "all";
|
|
523
|
+
}
|
|
524
|
+
function normalizeEventScheduleScope(value) {
|
|
525
|
+
return value === "recurring" || value === "oneOff" ? value : "any";
|
|
526
|
+
}
|
|
527
|
+
function isEventSurfacePreset(value) {
|
|
528
|
+
return eventSurfacePresetValues.some((preset) => preset === value);
|
|
529
|
+
}
|
|
530
|
+
function normalizeEventSurfacePresets(value) {
|
|
531
|
+
const normalized = (Array.isArray(value) ? value : typeof value === "string" ? value.split(",") : []).filter((entry) => typeof entry === "string").map((entry) => entry.trim()).filter(isEventSurfacePreset);
|
|
532
|
+
return Array.from(new Set(normalized));
|
|
533
|
+
}
|
|
534
|
+
function normalizeEventSurfacePresetsCsv(value) {
|
|
535
|
+
const normalized = normalizeEventSurfacePresets(value);
|
|
536
|
+
return normalized.length > 0 ? normalized.join(",") : null;
|
|
537
|
+
}
|
|
538
|
+
function normalizeEventCategoryIds(value) {
|
|
539
|
+
if (Array.isArray(value)) return normalizeIdList(value.filter((entry) => typeof entry === "string")).map(unsafeAsEventCategoryId);
|
|
540
|
+
if (typeof value === "string") return normalizeIdList(value.split(",")).map(unsafeAsEventCategoryId);
|
|
541
|
+
return [];
|
|
542
|
+
}
|
|
543
|
+
function normalizeEventCategoryIdsCsv(value) {
|
|
544
|
+
const normalized = normalizeEventCategoryIds(value);
|
|
545
|
+
return normalized.length > 0 ? normalized.join(",") : null;
|
|
546
|
+
}
|
|
547
|
+
function normalizeEventVenueId(value) {
|
|
548
|
+
if (typeof value !== "string") return null;
|
|
549
|
+
const trimmed = value.trim();
|
|
550
|
+
return trimmed ? unsafeAsVenueId(trimmed) : null;
|
|
551
|
+
}
|
|
552
|
+
function normalizeEventStaffMemberId(value) {
|
|
553
|
+
if (typeof value !== "string") return null;
|
|
554
|
+
const trimmed = value.trim();
|
|
555
|
+
return trimmed ? trimmed : null;
|
|
556
|
+
}
|
|
557
|
+
//#endregion
|
|
558
558
|
//#region ../blocks/src/system/runtime/nodes/events/domain/pricing.ts
|
|
559
559
|
/**
|
|
560
560
|
* Format event price for display.
|
|
@@ -821,6 +821,7 @@ function getCardOrientation(layout) {
|
|
|
821
821
|
case "stack": return "horizontal";
|
|
822
822
|
case "grid": return "vertical";
|
|
823
823
|
case "ledger":
|
|
824
|
+
case "timetable-rows":
|
|
824
825
|
case "day-groups":
|
|
825
826
|
case "week-columns":
|
|
826
827
|
case "compact": return "vertical";
|
|
@@ -870,7 +871,8 @@ const cardListArrangements = [
|
|
|
870
871
|
"sequence",
|
|
871
872
|
"plates",
|
|
872
873
|
"slides",
|
|
873
|
-
"track"
|
|
874
|
+
"track",
|
|
875
|
+
"type-columns"
|
|
874
876
|
];
|
|
875
877
|
const cardListPresentationSchemaShape = {
|
|
876
878
|
...lookListPresentationSchemaShape,
|
|
@@ -1002,7 +1004,8 @@ const partRenderers = {
|
|
|
1002
1004
|
action: (props) => props.actionNode === void 0 ? /* @__PURE__ */ jsx(CardListAction, { ...props }) : /* @__PURE__ */ jsx("div", {
|
|
1003
1005
|
...listLookSlot(props.presentation, "item-actions"),
|
|
1004
1006
|
children: props.actionNode
|
|
1005
|
-
})
|
|
1007
|
+
}),
|
|
1008
|
+
"date-stamp": (props) => CardListLeadDate(props)
|
|
1006
1009
|
};
|
|
1007
1010
|
/** Title and photo share the same destination and external-link behavior. */
|
|
1008
1011
|
function cardListItemLink(item) {
|
|
@@ -1297,21 +1300,21 @@ function eventPaginationLoadReducer(state, action) {
|
|
|
1297
1300
|
...createInitialEventPaginationLoadState(action.events, action.scope),
|
|
1298
1301
|
requestId: state.requestId + 1
|
|
1299
1302
|
};
|
|
1300
|
-
default: return assertNever(action);
|
|
1303
|
+
default: return assertNever$1(action);
|
|
1301
1304
|
}
|
|
1302
1305
|
}
|
|
1303
1306
|
function eventPageOperationScope(operation) {
|
|
1304
1307
|
switch (operation.kind) {
|
|
1305
1308
|
case "replace": return operation.scope;
|
|
1306
1309
|
case "append": return operation.page.scope;
|
|
1307
|
-
default: return assertNever(operation);
|
|
1310
|
+
default: return assertNever$1(operation);
|
|
1308
1311
|
}
|
|
1309
1312
|
}
|
|
1310
1313
|
function eventPageOperationQuery(operation) {
|
|
1311
1314
|
switch (operation.kind) {
|
|
1312
1315
|
case "replace": return operation.scope.query;
|
|
1313
1316
|
case "append": return operation.query;
|
|
1314
|
-
default: return assertNever(operation);
|
|
1317
|
+
default: return assertNever$1(operation);
|
|
1315
1318
|
}
|
|
1316
1319
|
}
|
|
1317
1320
|
function acceptEventPage(operation, events) {
|
|
@@ -1328,7 +1331,7 @@ function acceptEventPage(operation, events) {
|
|
|
1328
1331
|
events: mergeEventPaginationEvents(operation.page.events, events),
|
|
1329
1332
|
hasMore
|
|
1330
1333
|
};
|
|
1331
|
-
default: return assertNever(operation);
|
|
1334
|
+
default: return assertNever$1(operation);
|
|
1332
1335
|
}
|
|
1333
1336
|
}
|
|
1334
1337
|
/** Retry consumes the recorded operation. Load more is possible only from an accepted page. */
|
|
@@ -1353,7 +1356,7 @@ function planEventPageOperation(state, scope, intent) {
|
|
|
1353
1356
|
}
|
|
1354
1357
|
};
|
|
1355
1358
|
}
|
|
1356
|
-
default: return assertNever(intent);
|
|
1359
|
+
default: return assertNever$1(intent);
|
|
1357
1360
|
}
|
|
1358
1361
|
}
|
|
1359
1362
|
/** A changed scope is pending even before the effect starts its replacement request. */
|
|
@@ -1380,7 +1383,7 @@ function getEventPaginationView(state, scope) {
|
|
|
1380
1383
|
loading: false,
|
|
1381
1384
|
error: state.error
|
|
1382
1385
|
};
|
|
1383
|
-
default: return assertNever(state);
|
|
1386
|
+
default: return assertNever$1(state);
|
|
1384
1387
|
}
|
|
1385
1388
|
}
|
|
1386
1389
|
function getOperationPage(operation) {
|
|
@@ -1390,7 +1393,7 @@ function getOperationPage(operation) {
|
|
|
1390
1393
|
hasMore: false
|
|
1391
1394
|
};
|
|
1392
1395
|
case "append": return operation.page;
|
|
1393
|
-
default: return assertNever(operation);
|
|
1396
|
+
default: return assertNever$1(operation);
|
|
1394
1397
|
}
|
|
1395
1398
|
}
|
|
1396
1399
|
function getEventIdentity(event) {
|
|
@@ -2592,7 +2595,7 @@ function bookingPanelHeading(entry, display) {
|
|
|
2592
2595
|
title,
|
|
2593
2596
|
subtitle: entry.when
|
|
2594
2597
|
};
|
|
2595
|
-
default: return assertNever$
|
|
2598
|
+
default: return assertNever$2(entry);
|
|
2596
2599
|
}
|
|
2597
2600
|
}
|
|
2598
2601
|
const HIDDEN_BAR = {
|
|
@@ -2680,8 +2683,9 @@ function offeringsListingFor(arrangement) {
|
|
|
2680
2683
|
case "index":
|
|
2681
2684
|
case "sequence":
|
|
2682
2685
|
case "plates":
|
|
2683
|
-
case "stack":
|
|
2684
|
-
|
|
2686
|
+
case "stack":
|
|
2687
|
+
case "type-columns": return "by-type";
|
|
2688
|
+
default: return assertNever$2(arrangement);
|
|
2685
2689
|
}
|
|
2686
2690
|
}
|
|
2687
2691
|
Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) => [definition.sourceKey, {
|
|
@@ -2853,7 +2857,7 @@ function buildOfferingsPreviewListing(input) {
|
|
|
2853
2857
|
...load,
|
|
2854
2858
|
items: [selectOffering(load.items[0], input.now), ...load.items.slice(1).map((item) => selectOffering(item, input.now))]
|
|
2855
2859
|
};
|
|
2856
|
-
default: return assertNever$
|
|
2860
|
+
default: return assertNever$2(load);
|
|
2857
2861
|
}
|
|
2858
2862
|
}));
|
|
2859
2863
|
if (!groups) return { kind: "no-groups" };
|
|
@@ -2870,7 +2874,7 @@ function buildOfferingsPreviewListing(input) {
|
|
|
2870
2874
|
}));
|
|
2871
2875
|
case "empty":
|
|
2872
2876
|
case "failed": return [];
|
|
2873
|
-
default: return assertNever$
|
|
2877
|
+
default: return assertNever$2(load);
|
|
2874
2878
|
}
|
|
2875
2879
|
}).sort((left, right) => (left.item.nextStartMs ?? Infinity) - (right.item.nextStartMs ?? Infinity) || left.groupIndex - right.groupIndex || offeringItemTitle(left.item).localeCompare(offeringItemTitle(right.item))));
|
|
2876
2880
|
return items ? {
|
|
@@ -2974,10 +2978,10 @@ function preferredPathsForSource(source) {
|
|
|
2974
2978
|
case "workshop": return ["/workshops", "/workshop"];
|
|
2975
2979
|
case "retreat": return ["/retreats", "/retreat"];
|
|
2976
2980
|
case "performance": return ["/performances", "/performance"];
|
|
2977
|
-
default: return assertNever$
|
|
2981
|
+
default: return assertNever$2(source.preset, "Unhandled offerings preview event preset");
|
|
2978
2982
|
}
|
|
2979
2983
|
case "wholeSeries": return ["/courses", "/course"];
|
|
2980
|
-
default: return assertNever$
|
|
2984
|
+
default: return assertNever$2(source, "Unhandled offerings preview source");
|
|
2981
2985
|
}
|
|
2982
2986
|
}
|
|
2983
2987
|
function normalizeRoutePath(value) {
|
|
@@ -3194,6 +3198,7 @@ const eventRegistrationCommonSchemaShape = {
|
|
|
3194
3198
|
return parsed.ok ? parsed.value : void 0;
|
|
3195
3199
|
}),
|
|
3196
3200
|
siteTerms: blockSiteTermsSchema.optional(),
|
|
3201
|
+
pageNavigation: pageNavigationSchema.optional(),
|
|
3197
3202
|
siteName: z.string().optional()
|
|
3198
3203
|
};
|
|
3199
3204
|
const eventRegistrationEventSourceSchema = z.discriminatedUnion("kind", [z.object({
|
|
@@ -3379,6 +3384,7 @@ const eventRegistrationBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
3379
3384
|
siteMemberships: source.siteMemberships ?? null,
|
|
3380
3385
|
mailingList: source.mailingList,
|
|
3381
3386
|
siteTerms: source.siteTerms,
|
|
3387
|
+
pageNavigation: source.pageNavigation,
|
|
3382
3388
|
siteName: source.siteName,
|
|
3383
3389
|
offeringNoun: resolveOfferingNoun(source, scopedSourceEvents)
|
|
3384
3390
|
}
|
|
@@ -3772,7 +3778,7 @@ function newsletterPresetFields(fields) {
|
|
|
3772
3778
|
placeholder: "Company name"
|
|
3773
3779
|
}
|
|
3774
3780
|
];
|
|
3775
|
-
default: return assertNever$
|
|
3781
|
+
default: return assertNever$2(fields);
|
|
3776
3782
|
}
|
|
3777
3783
|
}
|
|
3778
3784
|
function withOptionalPhone(fields, includePhone) {
|
|
@@ -3996,7 +4002,7 @@ function projectNewsletterFormHydrationTarget(source) {
|
|
|
3996
4002
|
tag: "block-source",
|
|
3997
4003
|
sourceRef: null
|
|
3998
4004
|
};
|
|
3999
|
-
default: return assertNever$
|
|
4005
|
+
default: return assertNever$2(source.newsletterBlockSubmission);
|
|
4000
4006
|
}
|
|
4001
4007
|
case "signed-hosted-booking":
|
|
4002
4008
|
case "signed-footer": return {
|
|
@@ -4004,7 +4010,7 @@ function projectNewsletterFormHydrationTarget(source) {
|
|
|
4004
4010
|
sourceRef: source.sourceRef
|
|
4005
4011
|
};
|
|
4006
4012
|
case "preview": return { tag: "preview" };
|
|
4007
|
-
default: return assertNever$
|
|
4013
|
+
default: return assertNever$2(source);
|
|
4008
4014
|
}
|
|
4009
4015
|
}
|
|
4010
4016
|
function resolveRuntimeChoices(assessment) {
|
|
@@ -4058,455 +4064,8 @@ function newsletterPrivacyNote(source, privacyNote) {
|
|
|
4058
4064
|
}
|
|
4059
4065
|
//#endregion
|
|
4060
4066
|
//#region ../blocks/src/system/blocks/products/shared.ts
|
|
4061
|
-
const publicProductVariantSchema = z.object({
|
|
4062
|
-
id: z.string(),
|
|
4063
|
-
title: z.string(),
|
|
4064
|
-
sku: z.string().nullable(),
|
|
4065
|
-
priceCents: z.number(),
|
|
4066
|
-
stockQuantity: z.number().nullable(),
|
|
4067
|
-
soldOut: z.boolean()
|
|
4068
|
-
});
|
|
4069
|
-
const publicProductSchema = z.object({
|
|
4070
|
-
id: z.string(),
|
|
4071
|
-
contentEntryId: z.string().nullable(),
|
|
4072
|
-
title: z.string(),
|
|
4073
|
-
slug: z.string(),
|
|
4074
|
-
path: z.string().nullable(),
|
|
4075
|
-
status: z.enum(["draft", "active"]),
|
|
4076
|
-
priceCents: z.number(),
|
|
4077
|
-
currency: z.string(),
|
|
4078
|
-
productType: z.enum(["physical", "digital"]),
|
|
4079
|
-
requiresShipping: z.boolean(),
|
|
4080
|
-
hasVariants: z.boolean(),
|
|
4081
|
-
trackInventory: z.boolean(),
|
|
4082
|
-
soldOut: z.boolean(),
|
|
4083
|
-
category: z.object({
|
|
4084
|
-
id: z.string(),
|
|
4085
|
-
name: z.string(),
|
|
4086
|
-
slug: z.string()
|
|
4087
|
-
}).nullable(),
|
|
4088
|
-
summary: z.string().nullable(),
|
|
4089
|
-
body: z.unknown().nullable(),
|
|
4090
|
-
gallery: z.array(z.object({
|
|
4091
|
-
url: z.string(),
|
|
4092
|
-
alt: z.string().nullable()
|
|
4093
|
-
})),
|
|
4094
|
-
variants: z.array(publicProductVariantSchema)
|
|
4095
|
-
});
|
|
4096
4067
|
const publicProductsResponseSchema = z.object({ products: z.array(publicProductSchema) });
|
|
4097
4068
|
//#endregion
|
|
4098
|
-
//#region ../blocks/src/system/runtime/nodes/shop-commerce.shared.ts
|
|
4099
|
-
const EMPTY_COMMERCE_CART_STATE = { items: [] };
|
|
4100
|
-
const storedProductCartItemSchema = z.object({
|
|
4101
|
-
kind: z.literal("product"),
|
|
4102
|
-
productId: z.string().min(1),
|
|
4103
|
-
productCategoryId: z.string().min(1).optional().nullable(),
|
|
4104
|
-
variantId: z.string().min(1).optional().nullable(),
|
|
4105
|
-
title: z.string().min(1),
|
|
4106
|
-
variantTitle: z.string().optional().nullable(),
|
|
4107
|
-
quantity: z.number().finite(),
|
|
4108
|
-
unitPriceCents: z.number().finite(),
|
|
4109
|
-
currency: z.string().min(1),
|
|
4110
|
-
imageUrl: z.string().optional().nullable(),
|
|
4111
|
-
soldOut: z.boolean().optional()
|
|
4112
|
-
});
|
|
4113
|
-
const storedPassCartItemSchema = z.object({
|
|
4114
|
-
kind: z.literal("pass"),
|
|
4115
|
-
passId: z.string().min(1),
|
|
4116
|
-
title: z.string().min(1),
|
|
4117
|
-
quantity: z.number().finite().optional(),
|
|
4118
|
-
unitPriceCents: z.number().finite(),
|
|
4119
|
-
currency: z.string().min(1)
|
|
4120
|
-
});
|
|
4121
|
-
function toPositiveInteger(value) {
|
|
4122
|
-
return Math.max(1, Math.floor(value));
|
|
4123
|
-
}
|
|
4124
|
-
function productItemKey(productId, variantId) {
|
|
4125
|
-
return `product:${productId}:${variantId ?? "base"}`;
|
|
4126
|
-
}
|
|
4127
|
-
function passItemKey(passId) {
|
|
4128
|
-
return `pass:${passId}`;
|
|
4129
|
-
}
|
|
4130
|
-
function parseStoredCartItem(value) {
|
|
4131
|
-
const productResult = storedProductCartItemSchema.safeParse(value);
|
|
4132
|
-
if (productResult.success) {
|
|
4133
|
-
const item = productResult.data;
|
|
4134
|
-
return {
|
|
4135
|
-
key: productItemKey(item.productId, item.variantId),
|
|
4136
|
-
kind: "product",
|
|
4137
|
-
productId: item.productId,
|
|
4138
|
-
productCategoryId: item.productCategoryId ?? null,
|
|
4139
|
-
...item.variantId ? { variantId: item.variantId } : {},
|
|
4140
|
-
title: item.title,
|
|
4141
|
-
variantTitle: item.variantTitle ?? null,
|
|
4142
|
-
quantity: toPositiveInteger(item.quantity),
|
|
4143
|
-
unitPriceCents: Math.max(0, Math.round(item.unitPriceCents)),
|
|
4144
|
-
currency: item.currency,
|
|
4145
|
-
imageUrl: item.imageUrl ?? null,
|
|
4146
|
-
soldOut: item.soldOut ?? false
|
|
4147
|
-
};
|
|
4148
|
-
}
|
|
4149
|
-
const passResult = storedPassCartItemSchema.safeParse(value);
|
|
4150
|
-
if (passResult.success) {
|
|
4151
|
-
const item = passResult.data;
|
|
4152
|
-
return {
|
|
4153
|
-
key: passItemKey(item.passId),
|
|
4154
|
-
kind: "pass",
|
|
4155
|
-
passId: item.passId,
|
|
4156
|
-
title: item.title,
|
|
4157
|
-
quantity: 1,
|
|
4158
|
-
unitPriceCents: Math.max(0, Math.round(item.unitPriceCents)),
|
|
4159
|
-
currency: item.currency
|
|
4160
|
-
};
|
|
4161
|
-
}
|
|
4162
|
-
return null;
|
|
4163
|
-
}
|
|
4164
|
-
function parseStoredCommerceCartState(raw) {
|
|
4165
|
-
if (!raw) return EMPTY_COMMERCE_CART_STATE;
|
|
4166
|
-
try {
|
|
4167
|
-
const parsed = JSON.parse(raw);
|
|
4168
|
-
if (!Array.isArray(parsed.items)) return EMPTY_COMMERCE_CART_STATE;
|
|
4169
|
-
return { items: parsed.items.map((item) => parseStoredCartItem(item)).filter((item) => item !== null) };
|
|
4170
|
-
} catch {
|
|
4171
|
-
return EMPTY_COMMERCE_CART_STATE;
|
|
4172
|
-
}
|
|
4173
|
-
}
|
|
4174
|
-
function buildProductCartItem(input) {
|
|
4175
|
-
const variant = input.variantId ? input.product.variants.find((candidate) => candidate.id === input.variantId) ?? null : null;
|
|
4176
|
-
return {
|
|
4177
|
-
key: productItemKey(input.product.id, variant?.id ?? null),
|
|
4178
|
-
kind: "product",
|
|
4179
|
-
productId: input.product.id,
|
|
4180
|
-
productCategoryId: input.product.category?.id ?? null,
|
|
4181
|
-
...variant?.id ? { variantId: variant.id } : {},
|
|
4182
|
-
title: input.product.title,
|
|
4183
|
-
variantTitle: variant?.title ?? null,
|
|
4184
|
-
quantity: toPositiveInteger(input.quantity ?? 1),
|
|
4185
|
-
unitPriceCents: variant?.priceCents ?? input.product.priceCents,
|
|
4186
|
-
currency: input.product.currency,
|
|
4187
|
-
imageUrl: input.product.gallery[0]?.url ?? null,
|
|
4188
|
-
soldOut: variant?.soldOut ?? input.product.soldOut
|
|
4189
|
-
};
|
|
4190
|
-
}
|
|
4191
|
-
function buildPassCartItem(input) {
|
|
4192
|
-
return {
|
|
4193
|
-
key: passItemKey(input.passId),
|
|
4194
|
-
kind: "pass",
|
|
4195
|
-
passId: input.passId,
|
|
4196
|
-
title: input.title,
|
|
4197
|
-
quantity: 1,
|
|
4198
|
-
unitPriceCents: Math.max(0, Math.round(input.unitPriceCents)),
|
|
4199
|
-
currency: input.currency
|
|
4200
|
-
};
|
|
4201
|
-
}
|
|
4202
|
-
function reduceCommerceCart(state, action) {
|
|
4203
|
-
switch (action.type) {
|
|
4204
|
-
case "add_product": {
|
|
4205
|
-
const existing = state.items.find((item) => item.key === action.item.key);
|
|
4206
|
-
if (!existing || existing.kind !== "product") return { items: [...state.items, action.item] };
|
|
4207
|
-
return { items: state.items.map((item) => item.key === action.item.key && item.kind === "product" ? {
|
|
4208
|
-
...item,
|
|
4209
|
-
quantity: item.quantity + action.item.quantity,
|
|
4210
|
-
soldOut: action.item.soldOut ?? item.soldOut
|
|
4211
|
-
} : item) };
|
|
4212
|
-
}
|
|
4213
|
-
case "add_pass":
|
|
4214
|
-
if (state.items.some((item) => item.key === action.item.key)) return state;
|
|
4215
|
-
return { items: [...state.items, action.item] };
|
|
4216
|
-
case "update_quantity": return { items: state.items.map((item) => item.key === action.itemKey && item.kind === "product" ? {
|
|
4217
|
-
...item,
|
|
4218
|
-
quantity: toPositiveInteger(action.quantity)
|
|
4219
|
-
} : item) };
|
|
4220
|
-
case "remove_item": return { items: state.items.filter((item) => item.key !== action.itemKey) };
|
|
4221
|
-
case "clear": return EMPTY_COMMERCE_CART_STATE;
|
|
4222
|
-
}
|
|
4223
|
-
}
|
|
4224
|
-
function deriveCommerceCheckoutState(state) {
|
|
4225
|
-
if (state.items.length === 0) return { kind: "empty" };
|
|
4226
|
-
const currencies = Array.from(new Set(state.items.map((item) => item.currency.toUpperCase())));
|
|
4227
|
-
if (currencies.length > 1) return {
|
|
4228
|
-
kind: "blocked",
|
|
4229
|
-
reason: "mixed_currency"
|
|
4230
|
-
};
|
|
4231
|
-
return {
|
|
4232
|
-
kind: "ready",
|
|
4233
|
-
currency: currencies[0] ?? "USD",
|
|
4234
|
-
subtotalCents: state.items.reduce((sum, item) => sum + item.unitPriceCents * item.quantity, 0),
|
|
4235
|
-
items: state.items
|
|
4236
|
-
};
|
|
4237
|
-
}
|
|
4238
|
-
function resolveSelectedProduct(products, selection) {
|
|
4239
|
-
const contentEntry = selection.template.kind === "product" ? selection.contentEntry : null;
|
|
4240
|
-
const explicitSlug = selection.productSlug?.trim() || null;
|
|
4241
|
-
if (contentEntry?.id) {
|
|
4242
|
-
const byEntryId = products.find((product) => product.contentEntryId === contentEntry.id);
|
|
4243
|
-
if (byEntryId) return byEntryId;
|
|
4244
|
-
}
|
|
4245
|
-
if (explicitSlug) {
|
|
4246
|
-
const byExplicitSlug = products.find((product) => product.slug === explicitSlug);
|
|
4247
|
-
if (byExplicitSlug) return byExplicitSlug;
|
|
4248
|
-
}
|
|
4249
|
-
if (contentEntry?.slug) {
|
|
4250
|
-
const byEntrySlug = products.find((product) => product.slug === contentEntry.slug);
|
|
4251
|
-
if (byEntrySlug) return byEntrySlug;
|
|
4252
|
-
}
|
|
4253
|
-
return null;
|
|
4254
|
-
}
|
|
4255
|
-
//#endregion
|
|
4256
|
-
//#region ../blocks/src/system/runtime/nodes/commerce/shared/display.ts
|
|
4257
|
-
function formatCommercePrice(cents, currency) {
|
|
4258
|
-
return formatCurrencyAmount(cents, currency);
|
|
4259
|
-
}
|
|
4260
|
-
function getPassesHeading(passes, explicitHeading) {
|
|
4261
|
-
if (explicitHeading) return explicitHeading;
|
|
4262
|
-
return deriveCreditProductLabels(passes, { style: "class" }).heading;
|
|
4263
|
-
}
|
|
4264
|
-
function resolveSelectedVariant(product, selectedVariantId) {
|
|
4265
|
-
if (!selectedVariantId) return product.variants[0] ?? null;
|
|
4266
|
-
return product.variants.find((candidate) => candidate.id === selectedVariantId) ?? product.variants[0] ?? null;
|
|
4267
|
-
}
|
|
4268
|
-
function buildProductCardDisplay(product, options, selectedVariantId) {
|
|
4269
|
-
const selectedVariant = resolveSelectedVariant(product, selectedVariantId);
|
|
4270
|
-
const soldOut = selectedVariant?.soldOut ?? product.soldOut;
|
|
4271
|
-
const priceLabel = options.showPrices ? formatCommercePrice(selectedVariant?.priceCents ?? product.priceCents, product.currency) : null;
|
|
4272
|
-
const selectionLabel = selectedVariant ? `${product.title} – ${selectedVariant.title}` : product.title;
|
|
4273
|
-
return {
|
|
4274
|
-
productId: product.id,
|
|
4275
|
-
title: product.title,
|
|
4276
|
-
path: product.path ?? null,
|
|
4277
|
-
summary: options.showSummary ? product.summary : null,
|
|
4278
|
-
priceLabel,
|
|
4279
|
-
image: product.gallery[0] ? {
|
|
4280
|
-
url: product.gallery[0].url,
|
|
4281
|
-
alt: product.gallery[0].alt ?? null
|
|
4282
|
-
} : null,
|
|
4283
|
-
variantOptions: product.variants.map((variant) => ({
|
|
4284
|
-
id: variant.id,
|
|
4285
|
-
label: variant.title,
|
|
4286
|
-
soldOut: variant.soldOut
|
|
4287
|
-
})),
|
|
4288
|
-
selectedVariantId: selectedVariant?.id ?? null,
|
|
4289
|
-
selectionLabel,
|
|
4290
|
-
actionLabel: options.addButtonText,
|
|
4291
|
-
soldOut
|
|
4292
|
-
};
|
|
4293
|
-
}
|
|
4294
|
-
function buildProductListDisplay(products, options) {
|
|
4295
|
-
const cards = products.map((product) => buildProductCardDisplay(product, options));
|
|
4296
|
-
return {
|
|
4297
|
-
kind: "product-list",
|
|
4298
|
-
state: cards.length === 0 ? "empty" : "ready",
|
|
4299
|
-
heading: options.heading ?? null,
|
|
4300
|
-
className: options.className ?? null,
|
|
4301
|
-
layout: options.layout ?? "grid",
|
|
4302
|
-
columns: options.columns ?? "3",
|
|
4303
|
-
emptyMessage: options.emptyMessage ?? "No products available right now.",
|
|
4304
|
-
cards
|
|
4305
|
-
};
|
|
4306
|
-
}
|
|
4307
|
-
function buildProductDetailDisplay(product, options, selectedVariantId) {
|
|
4308
|
-
if (!product) return {
|
|
4309
|
-
kind: "product-detail",
|
|
4310
|
-
state: "empty",
|
|
4311
|
-
heading: options.heading ?? null,
|
|
4312
|
-
className: options.className ?? null,
|
|
4313
|
-
emptyMessage: options.emptyMessage ?? "Product unavailable."
|
|
4314
|
-
};
|
|
4315
|
-
const selectedVariant = resolveSelectedVariant(product, selectedVariantId);
|
|
4316
|
-
const soldOut = selectedVariant?.soldOut ?? product.soldOut;
|
|
4317
|
-
return {
|
|
4318
|
-
kind: "product-detail",
|
|
4319
|
-
state: "ready",
|
|
4320
|
-
heading: options.heading ?? null,
|
|
4321
|
-
className: options.className ?? null,
|
|
4322
|
-
title: product.title,
|
|
4323
|
-
priceLabel: formatCommercePrice(selectedVariant?.priceCents ?? product.priceCents, product.currency),
|
|
4324
|
-
summary: options.showSummary ? product.summary : null,
|
|
4325
|
-
categoryLabel: product.category?.name ?? null,
|
|
4326
|
-
gallery: product.gallery.map((image) => ({
|
|
4327
|
-
url: image.url,
|
|
4328
|
-
alt: image.alt ?? null
|
|
4329
|
-
})),
|
|
4330
|
-
variantOptions: product.variants.map((variant) => ({
|
|
4331
|
-
id: variant.id,
|
|
4332
|
-
label: variant.title,
|
|
4333
|
-
soldOut: variant.soldOut
|
|
4334
|
-
})),
|
|
4335
|
-
selectedVariantId: selectedVariant?.id ?? null,
|
|
4336
|
-
selectionLabel: selectedVariant ? `${product.title} – ${selectedVariant.title}` : product.title,
|
|
4337
|
-
actionLabel: options.addButtonText,
|
|
4338
|
-
soldOut,
|
|
4339
|
-
body: product.body
|
|
4340
|
-
};
|
|
4341
|
-
}
|
|
4342
|
-
function passCardDisplay(pass, options) {
|
|
4343
|
-
const creditUnit = getCreditProductCreditUnit(pass.productUseCase);
|
|
4344
|
-
return {
|
|
4345
|
-
id: pass.id,
|
|
4346
|
-
title: pass.name,
|
|
4347
|
-
description: options.showDescriptions ? pass.description : null,
|
|
4348
|
-
priceLabel: formatCommercePrice(pass.price, pass.currency),
|
|
4349
|
-
...options.cardList ? {
|
|
4350
|
-
priceAmountLabel: formatCurrencyAmount(pass.price, pass.currency, { decimals: "auto" }),
|
|
4351
|
-
perCreditAmountLabel: options.showPricePerCredit ? `${formatCurrencyAmount(pass.pricePerCredit, pass.currency, { decimals: "auto" })} a ${creditUnit.perCreditSuffix}` : null
|
|
4352
|
-
} : {},
|
|
4353
|
-
creditsLabel: `${pass.creditsTotal} ${pass.creditsTotal === 1 ? creditUnit.singular : creditUnit.plural}`,
|
|
4354
|
-
perCreditLabel: options.showPricePerCredit ? `${formatCommercePrice(pass.pricePerCredit, pass.currency)}/${creditUnit.perCreditSuffix}` : null,
|
|
4355
|
-
validityLabel: options.showValidityPeriod && pass.validDays ? formatValidity(pass.validDays) : null,
|
|
4356
|
-
action: pass.purchaseAvailability === "purchasable" ? {
|
|
4357
|
-
kind: "purchase",
|
|
4358
|
-
label: options.passActionLabel,
|
|
4359
|
-
product: pass
|
|
4360
|
-
} : {
|
|
4361
|
-
kind: "unavailable",
|
|
4362
|
-
label: "Online purchasing is unavailable."
|
|
4363
|
-
}
|
|
4364
|
-
};
|
|
4365
|
-
}
|
|
4366
|
-
function membershipCardDisplay(membership, options) {
|
|
4367
|
-
return {
|
|
4368
|
-
id: membership.id,
|
|
4369
|
-
title: membership.name,
|
|
4370
|
-
description: options.showDescriptions ? membership.description : null,
|
|
4371
|
-
priceLabel: formatCommercePrice(membership.price, membership.currency),
|
|
4372
|
-
...options.cardList ? {
|
|
4373
|
-
priceAmountLabel: formatCurrencyAmount(membership.price, membership.currency, { decimals: "auto" }),
|
|
4374
|
-
priceUnitLabel: `a ${membership.billingInterval}`
|
|
4375
|
-
} : {},
|
|
4376
|
-
intervalLabel: formatInterval(membership.billingInterval),
|
|
4377
|
-
action: membership.purchaseAvailability === "purchasable" ? {
|
|
4378
|
-
kind: "purchase",
|
|
4379
|
-
label: options.membershipActionLabel,
|
|
4380
|
-
product: membership
|
|
4381
|
-
} : {
|
|
4382
|
-
kind: "unavailable",
|
|
4383
|
-
label: "Online purchasing is unavailable."
|
|
4384
|
-
}
|
|
4385
|
-
};
|
|
4386
|
-
}
|
|
4387
|
-
function buildPassesMembershipsDisplay(options) {
|
|
4388
|
-
const passes = options.passes.map((pass) => passCardDisplay(pass, options));
|
|
4389
|
-
const memberships = options.memberships.map((membership) => membershipCardDisplay(membership, options));
|
|
4390
|
-
return {
|
|
4391
|
-
kind: "passes-memberships",
|
|
4392
|
-
state: passes.length === 0 && memberships.length === 0 ? "empty" : "ready",
|
|
4393
|
-
className: options.className ?? null,
|
|
4394
|
-
layout: options.layout ?? "grid",
|
|
4395
|
-
columns: options.columns ?? "2",
|
|
4396
|
-
emptyMessage: options.emptyMessage ?? "No products available at this time.",
|
|
4397
|
-
passesHeading: getPassesHeading(options.passes, options.passesHeading),
|
|
4398
|
-
membershipsHeading: options.membershipsHeading ?? "Memberships",
|
|
4399
|
-
passes,
|
|
4400
|
-
memberships
|
|
4401
|
-
};
|
|
4402
|
-
}
|
|
4403
|
-
function buildCartDisplay(items, options) {
|
|
4404
|
-
if (items.length === 0) return {
|
|
4405
|
-
kind: "cart",
|
|
4406
|
-
state: "empty",
|
|
4407
|
-
heading: options.heading ?? null,
|
|
4408
|
-
className: options.className ?? null,
|
|
4409
|
-
emptyMessage: options.emptyMessage ?? "Your cart is empty.",
|
|
4410
|
-
supportText: options.supportText ?? null,
|
|
4411
|
-
items: [],
|
|
4412
|
-
subtotalLabel: null,
|
|
4413
|
-
checkoutButtonText: options.checkoutButtonText ?? "Go to checkout",
|
|
4414
|
-
clearButtonText: options.clearButtonText ?? "Clear cart"
|
|
4415
|
-
};
|
|
4416
|
-
const itemsDisplay = items.map((item) => ({
|
|
4417
|
-
key: item.key,
|
|
4418
|
-
title: item.kind === "product" && item.variantTitle ? `${item.title} – ${item.variantTitle}` : item.title,
|
|
4419
|
-
priceLabel: `${formatCommercePrice(item.unitPriceCents, item.currency)} each`,
|
|
4420
|
-
quantity: item.quantity,
|
|
4421
|
-
quantityEditable: item.kind === "product"
|
|
4422
|
-
}));
|
|
4423
|
-
const checkoutState = deriveCommerceCheckoutState({ items: [...items] });
|
|
4424
|
-
return {
|
|
4425
|
-
kind: "cart",
|
|
4426
|
-
state: "ready",
|
|
4427
|
-
heading: options.heading ?? null,
|
|
4428
|
-
className: options.className ?? null,
|
|
4429
|
-
emptyMessage: options.emptyMessage ?? "Your cart is empty.",
|
|
4430
|
-
supportText: null,
|
|
4431
|
-
items: itemsDisplay,
|
|
4432
|
-
subtotalLabel: checkoutState.kind === "ready" ? formatCommercePrice(checkoutState.subtotalCents, checkoutState.currency) : null,
|
|
4433
|
-
checkoutButtonText: options.checkoutButtonText ?? "Go to checkout",
|
|
4434
|
-
clearButtonText: options.clearButtonText ?? "Clear cart"
|
|
4435
|
-
};
|
|
4436
|
-
}
|
|
4437
|
-
function buildCheckoutDisplay(checkoutState, options) {
|
|
4438
|
-
if (checkoutState.kind === "empty") return {
|
|
4439
|
-
kind: "checkout",
|
|
4440
|
-
state: "empty",
|
|
4441
|
-
heading: options.heading ?? null,
|
|
4442
|
-
className: options.className ?? null,
|
|
4443
|
-
message: options.emptyMessage ?? "Add something to your cart to continue.",
|
|
4444
|
-
submitButtonText: options.submitButtonText ?? "Checkout"
|
|
4445
|
-
};
|
|
4446
|
-
if (checkoutState.kind === "blocked") return {
|
|
4447
|
-
kind: "checkout",
|
|
4448
|
-
state: "blocked",
|
|
4449
|
-
heading: options.heading ?? null,
|
|
4450
|
-
className: options.className ?? null,
|
|
4451
|
-
message: checkoutState.reason === "mixed_currency" ? "Mixed-currency carts are not supported." : "Checkout is unavailable for this cart.",
|
|
4452
|
-
submitButtonText: options.submitButtonText ?? "Checkout"
|
|
4453
|
-
};
|
|
4454
|
-
return {
|
|
4455
|
-
kind: "checkout",
|
|
4456
|
-
state: "ready",
|
|
4457
|
-
heading: options.heading ?? null,
|
|
4458
|
-
className: options.className ?? null,
|
|
4459
|
-
message: null,
|
|
4460
|
-
submitButtonText: options.submitButtonText ?? "Checkout"
|
|
4461
|
-
};
|
|
4462
|
-
}
|
|
4463
|
-
function formatInterval(interval) {
|
|
4464
|
-
return interval === "month" ? "/month" : "/year";
|
|
4465
|
-
}
|
|
4466
|
-
function formatValidity(days) {
|
|
4467
|
-
if (days === 1) return "Valid for 1 day";
|
|
4468
|
-
if (days < 30) return `Valid for ${days} days`;
|
|
4469
|
-
if (days === 30) return "Valid for 1 month";
|
|
4470
|
-
if (days === 365) return "Valid for 1 year";
|
|
4471
|
-
return `Valid for ${Math.round(days / 30)} months`;
|
|
4472
|
-
}
|
|
4473
|
-
const membershipClassesLabel = "Unlimited classes";
|
|
4474
|
-
function passCardListContent(display) {
|
|
4475
|
-
return {
|
|
4476
|
-
id: display.id,
|
|
4477
|
-
title: display.title,
|
|
4478
|
-
text: display.description,
|
|
4479
|
-
price: {
|
|
4480
|
-
amount: display.priceAmountLabel ?? display.priceLabel,
|
|
4481
|
-
unit: display.creditsLabel
|
|
4482
|
-
},
|
|
4483
|
-
facts: [...display.validityLabel ? [{
|
|
4484
|
-
label: "Validity",
|
|
4485
|
-
value: display.validityLabel
|
|
4486
|
-
}] : [], ...display.perCreditLabel ? [{
|
|
4487
|
-
label: "Price per credit",
|
|
4488
|
-
value: display.perCreditAmountLabel ?? display.perCreditLabel
|
|
4489
|
-
}] : []],
|
|
4490
|
-
action: { label: display.action.label }
|
|
4491
|
-
};
|
|
4492
|
-
}
|
|
4493
|
-
function membershipCardListContent(display) {
|
|
4494
|
-
return {
|
|
4495
|
-
id: display.id,
|
|
4496
|
-
title: display.title,
|
|
4497
|
-
text: display.description,
|
|
4498
|
-
price: {
|
|
4499
|
-
amount: display.priceAmountLabel ?? display.priceLabel,
|
|
4500
|
-
unit: display.priceUnitLabel ?? display.intervalLabel
|
|
4501
|
-
},
|
|
4502
|
-
facts: [{
|
|
4503
|
-
label: "Classes",
|
|
4504
|
-
value: membershipClassesLabel
|
|
4505
|
-
}],
|
|
4506
|
-
action: { label: display.action.label }
|
|
4507
|
-
};
|
|
4508
|
-
}
|
|
4509
|
-
//#endregion
|
|
4510
4069
|
//#region ../blocks/src/system/runtime/nodes/shop.pass-contract.ts
|
|
4511
4070
|
const passCardDisplaySchema = z.object({
|
|
4512
4071
|
id: z.string(),
|
|
@@ -5086,4 +4645,4 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
5086
4645
|
};
|
|
5087
4646
|
}
|
|
5088
4647
|
//#endregion
|
|
5089
|
-
export {
|
|
4648
|
+
export { bookingEntry as $, normalizeEventVenueId as $t, formInteractiveIslandPropsCodec as A, normalizeCsvString as At, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as B, getContainerClass as Bt, newsletterFormInteractiveIslandPropsCodec as C, getEventPaginationView as Ct, publicGiftingOffersResponseSchema as D, buildEventRuntimeFilters as Dt, giftingInteractiveIslandPropsCodec as E, toError as Et, eventRegistrationInteractiveIslandPropsCodec as F, CardListLeadDate as Ft, normalizeOfferingsPreviewItemLimit as G, formatEventPrice as Gt, buildOfferingsPreviewListing as H, buildEventListWeek as Ht, offeringNounForEvent as I, resolveCardListSchedule as It, resolveOfferingsPreviewGroups as J, normalizeEventCategoryIds as Jt, offeringsListingFor as K, formatEventPriceAmount as Kt, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as L, selectCardListPresentation as Lt, buildEventRegistrationInteractiveIslandProps as M, catalogueEventCardProps as Mt, displayButtonText as N, listingEventCardProps as Nt, buildFormInteractiveIslandProps as O, getEventRuntimeFiltersKey as Ot, eventRegistrationBlockRuntime as P, CardListContentPart as Pt, bookingCardEntry as Q, normalizeEventSurfaceScope as Qt, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as R, MediaNodeServer as Rt, newsletterFormBlockRuntime as S, getEventIdentity as St, giftingBlockRuntime as T, toEventPaginationLoadError as Tt, isOfferingsPreviewSourceKey as U, eventListWeekDays as Ut, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as V, Grid as Vt, normalizeOfferingsPreviewContentForWrite as W, weekColumnDays as Wt, DEFAULT_BOOKING_BUTTON_TEXT as X, normalizeEventStaffMemberId as Xt, resolveOfferingsRenderInput as Y, normalizeEventScheduleScope as Yt, bookingBarPlacement as Z, normalizeEventSurfacePresets as Zt, shopProductPresentation as _, eventListingBlockRuntime as _t, buildShopInteractiveIslandProps as a, parseHeaderPositioning as an, buildEventCombinedListingDisplay as at, buildNewsletterFormInteractiveIslandProps as b, eventPageOperationQuery as bt, checkoutBlockRuntime as c, buildMailingListSignupBlockSourceRef as cn, buildEventCalendarInteractiveIslandProps as ct, productDetailBlockRuntime as d, parseMailingListVisitorSelection as dn, eventCalendarBlockRuntime as dt, resolveEventSelection as en, bookingEntryProgress as et, productDetailInteractiveIslandPropsCodec as f, DEFAULT_MAILING_LIST_TARGETING as fn, eventCalendarInteractiveIslandPropsCodec as ft, shopInteractiveIslandPropsCodec as g, buildEventListingInteractiveIslandProps as gt, shopBlockRuntime as h, combinedLookSchema as ht, buildProductListInteractiveIslandProps as i, staticHeaderChromeRuntime as in, buildEventCombinedInteractiveIslandProps as it, buildEventRegistrationDisplayFromScopedEvents as j, normalizeOptionalId as jt, formBlockRuntime as k, normalizeCsvIds as kt, checkoutInteractiveIslandPropsCodec as l, assessMailingListTargeting as ln, buildEventCalendarListingDisplay as lt, productListInteractiveIslandPropsCodec as m, parseContentVersionId as mn, recurringScheduleProjectionSchema as mt, buildCheckoutInteractiveIslandProps as n, isHeaderScrollRuntimeEnabled as nn, formatBookingSchedulePresentation as nt, cartBlockRuntime as o, planSiteChromePlacement as on, eventCombinedBlockRuntime as ot, productListBlockRuntime as p, sameMailingListPlacementTargeting as pn, projectRecurringSchedule as pt, resolveOfferingsPreviewGroupCta as q, formatEventPriceDisplay as qt, buildProductDetailInteractiveIslandProps as r, resolveHeaderChromeRuntimeContract as rn, occurrenceContextSchema as rt, cartInteractiveIslandPropsCodec as s, splitSiteChromePlacementClasses as sn, eventCombinedInteractiveIslandPropsCodec as st, buildCartInteractiveIslandProps as t, headerChromeRuntimeContractSchema as tn, bookingPanelHeading as tt, getShopDisplayForItems as u, parseMailingListPlacementTargeting as un, buildEventCalendarListingRender as ut, publicProductsResponseSchema as v, eventListingInteractiveIslandPropsCodec as vt, buildGiftingInteractiveIslandProps as w, planEventPageOperation as wt, newsletterBlockSubmissionMessage as x, eventPaginationLoadReducer as xt, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as y, createInitialEventPaginationLoadState as yt, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as z, getCardOrientation as zt };
|