@riverbankcms/sdk 0.181.0 → 0.183.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/CHANGELOG.md +79 -0
- package/README.md +49 -3
- package/dist/_dts/{BlocksIslandsHydrator-CVCasDPz.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
- package/dist/_dts/{Page-Dtj2Ui3S.d.ts → Page-CEqZJZEE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D1f_60WW.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
- package/dist/_dts/{client-Chr9pNVW.d.ts → client-B_B_amKD.d.ts} +2 -3
- package/dist/_dts/{content-types-kjccgopX.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
- package/dist/_dts/{contracts-BodaiS00.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-BS6kaJFp.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
- package/dist/_dts/{index-Brl6_I2j.d.ts → index-BOpUh8kO.d.ts} +1 -1
- package/dist/_dts/{index-CJkefwYh.d.ts → index-Bizdaxji.d.ts} +2 -2
- package/dist/_dts/{index-Diqt0PvG.d.ts → index-BxCmCit0.d.ts} +1 -1
- package/dist/_dts/{index-DG0OvBs0.d.ts → index-CjAkEWAp.d.ts} +4 -4
- package/dist/_dts/{index-D1WpKwQe.d.ts → index-iuFrbIjt.d.ts} +1 -1
- package/dist/_dts/{index-Dy50xUMK.d.ts → index-liuhlOX7.d.ts} +2 -2
- package/dist/_dts/{loadContent-BgxshKrA.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
- package/dist/_dts/{request-CA0izds5.d.ts → request-Gn0O1blj.d.ts} +25042 -23761
- package/dist/_dts/{resolveBlockData-ChQmwEd3.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BvGyvblj.d.ts → resolvePageContent-xzJ3c9Na.d.ts} +1 -1
- 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 +7 -7
- 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/gifting/client.d.ts +1 -1
- 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 +3 -3
- 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/portal/index.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 -4
- 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 +6 -6
- 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 +91 -2
- package/dist/_dts/{serviceBookingOutline-BgFbJQhU.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
- package/dist/_dts/{types-CgS3xLk8.d.ts → types-BoITy0rA.d.ts} +41 -4
- package/dist/_dts/{types-CQrsP1x_.d.ts → types-DBNuMtSk.d.ts} +16 -5
- package/dist/_dts/{types-R65DKjPn.d.ts → types-DHMcuoeQ.d.ts} +7 -7
- package/dist/_dts/{validation-6LTIbuBA.d.ts → validation-BIPO-XlE.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DqZPz6oW.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-uWfR2kaG.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-CyNIKw6k.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-BGCX3zwG.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +27 -10
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-DFLPyuqe.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
- package/dist/client/{EventCalendar.client-zDL4-t-B.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
- package/dist/client/{EventCombined.client-uciDKLID.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
- package/dist/client/{EventItem-CwzrjcRw.mjs → EventItem-Fr2qi2C2.mjs} +33 -186
- package/dist/client/{EventListWeekNavigation-ChvcnPma.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
- package/dist/client/{EventListing.client-DA57Qoyx.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
- package/dist/client/{EventListing.view-DZ0qMFF4.mjs → EventListing.view-COuEJzbO.mjs} +8 -8
- package/dist/client/{EventRegistrationPayment-DSqCJL8E.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +41 -195
- package/dist/client/{Page-C7mygH_f.mjs → Page-CgbQZP5g.mjs} +2947 -1018
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-B4z-e4Wq.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
- package/dist/client/{StepIndicator-Dn_DY4oY.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
- package/dist/client/{StepIndicator-atfDU82W.mjs → StepIndicator-DyXoI3ob.mjs} +221 -20
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
- package/dist/client/{accessibleSurfaces-n6kS6Hct.mjs → accessibleSurfaces-wj4Rloo5.mjs} +1214 -724
- package/dist/client/{accordion-CsW8U3ff.mjs → accordion-BVXfjnh-.mjs} +1 -1
- package/dist/client/{booking-form.client-cBWM392H.mjs → booking-form.client-DycPGtke.mjs} +191 -71
- package/dist/client/{bookingForm-DgySpp6C.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BpGVdLFD.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
- package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
- package/dist/client/{carousel-DJoleFV3.mjs → carousel-DyCLMP8s.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
- package/dist/client/{cart-EO5o6uPH.mjs → cart-BuEp_cj4.mjs} +3 -3
- package/dist/client/{cart.client-D_gPw45z.mjs → cart.client-CAO39uDG.mjs} +1 -1
- package/dist/client/{checkout-NVfZW0kR.mjs → checkout-BoxzT64s.mjs} +3 -3
- package/dist/client/{checkout.client-DD3JuqOy.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
- package/dist/client/{checkoutUrls-z2gXvlGw.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
- package/dist/client/client.mjs +466 -94
- package/dist/client/{constants-CoOkvw__.mjs → constants-C_8AxMdm.mjs} +1 -1
- package/dist/client/{context-CRhn9qzS.mjs → context-D1L0pe__.mjs} +23 -5
- package/dist/client/{dateFormatting-BnWB4L1s.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CWDGSTBu.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-tdP_-Z9o.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
- package/dist/client/{event-registration.client-D7YYKySQ.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
- package/dist/client/{eventCalendar-CsAfu5d0.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
- package/dist/client/{eventCombined-VXJB5CoS.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
- package/dist/client/{eventListing-B3KIZNfY.mjs → eventListing-aTLifOX7.mjs} +4 -4
- package/dist/client/{eventRegistration-BP-dEk1c.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
- package/dist/client/{form-DM8Zbxbv.mjs → form-Dikmc2AO.mjs} +3 -3
- package/dist/client/{form.client-e2z_Tlgk.mjs → form.client-zHaQK5I9.mjs} +5 -5
- package/dist/client/{form.parts-Ctljy1a3.mjs → form.parts-BLl9n8TH.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-DWIsqQru.mjs → gifting-CufPM38H.mjs} +4 -4
- package/dist/client/{gifting.client-QsSWF0uA.mjs → gifting.client--N1GaSY8.mjs} +155 -84
- package/dist/client/gifting.interactive-D9MK4HkV.mjs +157 -0
- package/dist/client/gifting.parts-CRtiRzo-.mjs +119 -0
- package/dist/client/{headerSection-DAkRkwb-.mjs → headerSection-BIaBpmk3.mjs} +2 -2
- package/dist/client/{noop-Dl4mZ-rr.mjs → islands-DJDLGQEm.mjs} +16008 -8676
- package/dist/client/{newsletter-form.client-WYja9-WN.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-RuM86VAv.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +384 -326
- package/dist/client/{newsletter-form.parts-2petDnWv.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
- package/dist/client/{newsletterForm-BUbXdA_e.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
- package/dist/client/portal/client.mjs +291 -101
- package/dist/client/{portalOrders-COGn4BKG.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-D72yvtDh.mjs → portalRoutes-DTHlWg_F.mjs} +33 -7
- package/dist/client/{product-detail.client-pOAryevt.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
- package/dist/client/{product-list.client-CcUpUiud.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
- package/dist/client/{productDetail-BZJCfqat.mjs → productDetail-DhZAwo60.mjs} +3 -3
- package/dist/client/{productList-CiRs3mNb.mjs → productList-BiVpbZK2.mjs} +3 -3
- package/dist/client/{propsDecoder--uHW4tFM.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
- package/dist/client/{registry.server-CDNNd8wC.mjs → registry.server-C3OBRg7x.mjs} +2305 -873
- package/dist/client/rendering/client.mjs +29 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-CQGE_wHV.mjs → richText-coerce-ms477Z08.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BtCg87-N.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
- package/dist/client/{runtimeResponse-Ds9cmBUf.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
- package/dist/client/{shop-commerce-D8evQnMT.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
- package/dist/client/{shop-commerce-store-C9PcsSTj.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-D5CtGfJI.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
- package/dist/client/{shop-Rx_gEMK8.mjs → shop-xt4dQ3HH.mjs} +3 -3
- package/dist/client/{shop.client-D4lzQ9oY.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
- package/dist/client/{shopShared-BVbq7Nm-.mjs → shopShared-DS8t6749.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-ZSqRK3dD.mjs → src-Do_s2lqH.mjs} +16 -19
- package/dist/client/{timetableModel-BQJrSK0K.mjs → timetableModel-Dy3nNfTG.mjs} +13 -17
- package/dist/client/{useAvailableSlots-Dm3lKJKR.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-klgfGn7f.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
- package/dist/client/{useEventPagination-Jnjt7_ly.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
- package/dist/client/{view-CC_yQLSA.mjs → view-4gnPcpWJ.mjs} +24 -9
- package/dist/client/{wizardSteps-BliJOzEX.mjs → wizardSteps-DDvL3iza.mjs} +375 -186
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-aRJjq4x8.mjs → EventEmbeddedCheckoutStep-CLqSRUpt.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-BW3dRFIv.mjs → LocationPickerEnvironment-CIdAg-Tm.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Db9BHyXh.mjs → MapLibreEditMap-Bm85jX35.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-BhL0uADo.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
- package/dist/preview-next/client/{PreviewEditorSidebar-Ct8eIm0i.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3871 -1947
- package/dist/preview-next/client/{PreviewEditorUI-BS32G4V9.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
- package/dist/preview-next/client/{PreviewShell-RL0WfZXD.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
- package/dist/preview-next/client/{SdkPreviewModeRuntime-MK_gHeGy.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +51 -20
- package/dist/preview-next/client/{ThemedButton-CVYz7h68.mjs → ThemedButton-ORNN4x-3.mjs} +782 -16
- package/dist/preview-next/client/{lucide-react-00FF_oar.mjs → lucide-react-eAi3tDAr.mjs} +11 -1
- package/dist/preview-next/client/{previewAssistantSlot-CQyS8pcq.mjs → previewAssistantSlot-CqH91EwA.mjs} +20687 -8562
- package/dist/preview-next/client/{previewChromeRoot-BSxp3Mfu.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DKnTzy74.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlmbvbLN.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
- package/dist/preview-next/client/{useAutosaveStatus-D-7GwZOQ.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BNZtGM5g.mjs → useOpenBlockForSetup-BaWUF9D7.mjs} +2007 -448
- package/dist/preview-next/container-responsive.css +320 -0
- package/dist/preview-next/editor-chrome.css +23 -2
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-R3PcMmax.mjs → route-contract-Ch0X99vE.mjs} +183 -18
- package/dist/server/{Block.shared-CniF9tSu.mjs → Block.shared-B2FmczLO.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BQWsnGT6.mjs → ThemeScopeCore-DtAyv9qA.mjs} +51 -29
- package/dist/server/{accessibleSurfaces-WPzUAHp4.mjs → accessibleSurfaces-BtPqb76u.mjs} +509 -389
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
- package/dist/server/{bindings-DxojjtK3.mjs → bindings-B_9JuU66.mjs} +7 -7
- package/dist/server/{client-CDndhbYO.mjs → client-DC7cjiSw.mjs} +489 -93
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-VyF5nEhL.mjs → constants-d6nPNJpe.mjs} +33 -6
- package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{resolveButtonColourStates-B0O1IM16.mjs → expandPalette-DxPrNOAB.mjs} +950 -316
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-BKstMBmX.mjs → loadContent-hb27HYic.mjs} +11 -10
- package/dist/server/{loadPage-IgNnZaqr.mjs → loadPage-JToD8wDD.mjs} +3 -3
- package/dist/server/{lookMediaFrame-TFjgNG61.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-quBYlSKD.mjs → navigation-B2WhGofA.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-CCaAPpIa.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-B7iULvKe.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +242 -336
- package/dist/server/{pageRuntimeSupport-BytMroxn.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
- package/dist/server/{pageShared-Dcs_XTIO.mjs → pageShared-m80Xu2pd.mjs} +1292 -877
- package/dist/server/{parseThemeForPersistence-Bihl4W5K.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
- package/dist/server/{portal-CMW_b9mG.mjs → portal-B2wCQno_.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-agaH-vZV.mjs → prebuild-BWIkFaXq.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-DwpRjqw4.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
- package/dist/server/{registry-DM9dHfDC.mjs → registry-KtsOsAzY.mjs} +21703 -10936
- 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 +4 -4
- package/dist/server/rendering.mjs +9 -9
- package/dist/server/{resolveBlockData-CinHGf8l.mjs → resolveBlockData-sjIDJYl7.mjs} +1 -1
- package/dist/server/{schema-CwfxQjc4.mjs → schema-BBEqquBM.mjs} +44 -28
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-BBBhOtdE.mjs → servicePageContent-ChEZDRwU.mjs} +38 -15
- package/dist/server/theme-bridge.mjs +34 -9
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DPaUPTfl.mjs → three-pass-converter-DKCIBeb1.mjs} +2 -2
- package/dist/server/{titleSourceSchema-NhK6azFS.mjs → titleSourceSchema-DybHErxH.mjs} +4 -4
- package/dist/server/{typeGuards-CTW_9AXq.mjs → typeGuards-DZOaGTEv.mjs} +126 -126
- package/dist/server/{types-BKaBZFjD.mjs → types-vyz09w64.mjs} +479 -8
- package/dist/server/{validation-DG5jX3jH.mjs → validation-Cvi-1TZZ.mjs} +13 -9
- package/dist/server/{version-CipbxPHL.mjs → version-B-icAIV1.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2568 -154
- package/package.json +1 -1
- package/dist/client/gifting.parts-CedLgwa_.mjs +0 -86
- package/dist/client/runtimeResponse-DL_ARBpa.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { f as parseUuidBrand, m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
3
|
-
import { A as eventCalendarListGroupingDecision, At as publicMembershipProductSchema, Bn as parseEventSeriesId, Bt as publicEventLoaderQuerySchemaShape, Cn as toUtcIsoDateTimeString,
|
|
4
|
-
import { $
|
|
3
|
+
import { A as eventCalendarListGroupingDecision, At as publicMembershipProductSchema, Bn as parseEventSeriesId, Bt as publicEventLoaderQuerySchemaShape, Cn as toUtcIsoDateTimeString, L as isEventCalendarListLayout, Lt as eventScheduleScopeValues, M as eventCalendarLookViews, Mt as publicProductSchema, N as eventCalendarVariantMeaning, Nt as purchasablePublicMembershipProductSchema, P as eventListArrangementValues, Pt as purchasablePublicPassProductSchema, Rt as eventSurfacePresetValues, S as publicEventSchema, Sn as parseUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, Ut as WHOLE_SERIES_EVENT_PRESET_VALUES, b as publicEventDestinationSchema, bn as parseBookingLocalDate, c as blockSiteTermsSchema, cn as formatTime, dn as inferSiteDateLocale, en as buildBookingUtcDateWindow, jt as publicPassProductSchema, m as calendarWindowPageSchema, nn as formatDate, rn as formatDateRange, t as assertNever, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as resolveEventCalendarReadPlan, zt as eventSurfaceScopeValues } from "./src-Do_s2lqH.mjs";
|
|
4
|
+
import { $a as weekStartSchema, $t as toWholeSeriesRegistrationEvents, At as resolveEventRequiresPayment, Bo as eventDateOptions, Br as placesLeftLabel, Ga as columnOptionSchema, Go as formatEventCompactDateRail, Gr as buildCartDisplay, Hr as resolveRegistrationDisplay, Io as RichText, Ja as eventCalendarDisplayModeSchema, Ka as eventButtonVariantSchema, Kr as buildCheckoutDisplay, Ms as resolveDateRuntimeContext, Ni as groupPublicEventsByRun, Ot as findPreSelectedEvent, Po as blockButtonRoleSchema, Qa as registrationButtonVariantSchema, Qs as nextLiveRunSessionStartMs, Qt as toWholeSeriesRegistrationEvent, Ro as eventCalendarWeekStart, To as formatRemainingPlaces, Ua as bookingNowSchema, Ur as shownVenue, Vo as eventLocalDateKey, Vr as registrationDisplaySchema, Wa as calendarTabViewsSchema, Xa as filterAutoShowSchema, Xr as buildProductListDisplay, Ya as eventLayoutSchema, Yr as buildProductDetailDisplay, Za as previewStageSchema, Zt as toRegistrationEvents, _i as eventRegistrationPageSurfaceSubjectSchema, ac as DEFAULT_MAILING_LIST_PRIVACY_NOTE, as as renderAudio, bi as resolveEventRegistrationScopedEvents, bt as entryPageEvent, c as registrationStepLabelContext, cc as parseMailchimpAudienceId, co as bookingPageKindSchema, ec as resolveWholeSeriesBookingPhase, eo as browserReadAuthoritySchema, f as isRegistrationLocked, gc as formatEventPricing, hc as formatBookingPriceDisplay, ir as formatRegistrationSchedule, is as mediaImageHostProps, jo as selectEventCapacitySource, ko as getRemainingPlaces, lc as parseMailchimpInterestId, lo as bookingPresentation, mc as EVENT_PRESET_VOCABULARY, n as getEventSelectionMode, nc as resolveWholeSeriesRunLifecycle, ns as MediaPlaceholder, o as registrationRoute, oc as DEFAULT_MAILING_LIST_SUCCESS_MESSAGE, oi as deriveCommerceCheckoutState, oo as pageNavigationSchema, os as renderVideo, pi as closedRunCopy, pr as withOccurrenceTitle, qa as eventCalendarDefaultViewSchema, qr as buildPassesMembershipsDisplay, rc as parseMailingListRuntimeContext, rs as computeMediaTransformStyle, s as registrationStepLabel, sc as parseBrevoListId, t as REGISTRATION_STEP_LABELS, tr as formatBookingWhen, ts as ImagePresets, uc as parseNewsletterListId, ui as resolveSelectedProduct, us as resolveMediaNodeResponsiveImage, vt as decideRegistrationEntry, yc as publicEventPricingDisplay, yi as resolveEventRegistrationChoices, yo as resolveRuntimeEventDestination, yt as entryChoosesEvent, zo as eventDateLocale } from "./wizardSteps-DDvL3iza.mjs";
|
|
5
5
|
import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
6
|
-
import {
|
|
7
|
-
import { p as ExternalLinkIcon, r as ThemedButtonLink, t as ThemedAuthoredButton, x as clsx } from "./ThemedButton-
|
|
6
|
+
import { A as resolveModeArrangement, Ht as assertNever$2, a as defineClientOwnedBlockRuntime, bn as cardRoleSchema, d as listLookSlot, en as toNonEmptyReadonlyArray, f as lookListPresentationSchemaShape, i as createZodCodec, l as listItemPresentation, n as createInteractiveIslandCodec, o as defineProgressiveBlockRuntime, r as defineInteractiveIslandMetaKeys, s as isDecodeSuccess, t as buildInteractiveIslandProps, u as listLookControl } from "./islands-DJDLGQEm.mjs";
|
|
7
|
+
import { p as ExternalLinkIcon, r as ThemedButtonLink, t as ThemedAuthoredButton, x as clsx } from "./ThemedButton-Bc9DBbVp.mjs";
|
|
8
8
|
import { n as getCurrentResolveImageUrlContext } from "./mediaContext-DzvnjYXm.mjs";
|
|
9
9
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, l as buildCalendarViewport, r as groupItemsByDate, s as addDays } from "./src-uwCpbHXG.mjs";
|
|
10
10
|
import "react";
|
|
@@ -702,6 +702,14 @@ function recurrenceKey(event) {
|
|
|
702
702
|
if (!recurrence) return "none";
|
|
703
703
|
return recurrence.kind === "other" ? recurrence.kind : `${recurrence.kind}:${recurrence.interval}:${recurrence.weekdays.join(",")}`;
|
|
704
704
|
}
|
|
705
|
+
/**
|
|
706
|
+
* Whether a series' recurrence rule fits the weekly schedule: every week,
|
|
707
|
+
* not every other week or monthly. A series with no rule can still be
|
|
708
|
+
* projected from the spacing of its dates.
|
|
709
|
+
*/
|
|
710
|
+
function isWeeklyScheduleRecurrence(recurrence) {
|
|
711
|
+
return recurrence.kind === "weekly" && recurrence.interval === 1;
|
|
712
|
+
}
|
|
705
713
|
function recurrenceRuleEvidence(seriesId, events, schedule) {
|
|
706
714
|
if (new Set(events.map(recurrenceKey)).size > 1) return {
|
|
707
715
|
seriesId,
|
|
@@ -709,7 +717,7 @@ function recurrenceRuleEvidence(seriesId, events, schedule) {
|
|
|
709
717
|
};
|
|
710
718
|
const recurrence = events[0]?.recurrence;
|
|
711
719
|
if (!recurrence) return null;
|
|
712
|
-
if (recurrence.kind !== "weekly" || recurrence
|
|
720
|
+
if (recurrence.kind !== "weekly" || !isWeeklyScheduleRecurrence(recurrence)) return {
|
|
713
721
|
seriesId,
|
|
714
722
|
reason: "unsupported_weekly_cadence"
|
|
715
723
|
};
|
|
@@ -817,131 +825,6 @@ function projectRecurringSchedule(events) {
|
|
|
817
825
|
};
|
|
818
826
|
}
|
|
819
827
|
//#endregion
|
|
820
|
-
//#region ../blocks/src/system/helpers/normalizeIds.ts
|
|
821
|
-
function normalizeIdList(parts) {
|
|
822
|
-
const seen = /* @__PURE__ */ new Set();
|
|
823
|
-
const normalized = [];
|
|
824
|
-
for (const part of parts) {
|
|
825
|
-
const trimmed = part.trim();
|
|
826
|
-
if (!trimmed || seen.has(trimmed)) continue;
|
|
827
|
-
seen.add(trimmed);
|
|
828
|
-
normalized.push(trimmed);
|
|
829
|
-
}
|
|
830
|
-
return normalized.sort();
|
|
831
|
-
}
|
|
832
|
-
//#endregion
|
|
833
|
-
//#region ../blocks/src/system/runtime/hooks/utils/normalize.ts
|
|
834
|
-
function normalizeOptionalId(value) {
|
|
835
|
-
const trimmed = typeof value === "string" ? value.trim() : void 0;
|
|
836
|
-
return trimmed ? trimmed : void 0;
|
|
837
|
-
}
|
|
838
|
-
function normalizeCsvIds(value) {
|
|
839
|
-
if (!value) return [];
|
|
840
|
-
return normalizeIdList(Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : typeof value === "string" ? value.split(",") : []);
|
|
841
|
-
}
|
|
842
|
-
function normalizeCsvString(value) {
|
|
843
|
-
const ids = normalizeCsvIds(value);
|
|
844
|
-
return ids.length > 0 ? ids.join(",") : void 0;
|
|
845
|
-
}
|
|
846
|
-
const eventPageSizeValues = [
|
|
847
|
-
1,
|
|
848
|
-
2,
|
|
849
|
-
3,
|
|
850
|
-
4,
|
|
851
|
-
5,
|
|
852
|
-
6,
|
|
853
|
-
10,
|
|
854
|
-
12,
|
|
855
|
-
20,
|
|
856
|
-
24,
|
|
857
|
-
30,
|
|
858
|
-
100
|
|
859
|
-
];
|
|
860
|
-
const eventPageSizeSchema = z.union([
|
|
861
|
-
z.literal(1),
|
|
862
|
-
z.literal(2),
|
|
863
|
-
z.literal(3),
|
|
864
|
-
z.literal(4),
|
|
865
|
-
z.literal(5),
|
|
866
|
-
z.literal(6),
|
|
867
|
-
z.literal(10),
|
|
868
|
-
z.literal(12),
|
|
869
|
-
z.literal(20),
|
|
870
|
-
z.literal(24),
|
|
871
|
-
z.literal(30),
|
|
872
|
-
z.literal(100)
|
|
873
|
-
]);
|
|
874
|
-
const eventPageSizeSet = new Set(eventPageSizeValues);
|
|
875
|
-
function resolveEventPageSize(value, fallback = 12) {
|
|
876
|
-
const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
|
|
877
|
-
return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
|
|
878
|
-
}
|
|
879
|
-
function resolveEventCalendarListPageSize(input) {
|
|
880
|
-
return resolveEventPageSize(input.eventsPerPage);
|
|
881
|
-
}
|
|
882
|
-
const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
|
|
883
|
-
z.object({ kind: z.literal("none") }),
|
|
884
|
-
z.object({
|
|
885
|
-
kind: z.literal("loadMore"),
|
|
886
|
-
label: z.string()
|
|
887
|
-
}),
|
|
888
|
-
z.object({
|
|
889
|
-
kind: z.literal("seeAllLink"),
|
|
890
|
-
label: z.string(),
|
|
891
|
-
href: z.string()
|
|
892
|
-
})
|
|
893
|
-
]);
|
|
894
|
-
function resolveEventListPaginationAction(input) {
|
|
895
|
-
if (input.paginationMode === "none") return { kind: "none" };
|
|
896
|
-
const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
|
|
897
|
-
const href = input.seeAllUrl?.trim();
|
|
898
|
-
if (input.paginationMode === "seeAllLink" && href) return {
|
|
899
|
-
kind: "seeAllLink",
|
|
900
|
-
label,
|
|
901
|
-
href
|
|
902
|
-
};
|
|
903
|
-
return {
|
|
904
|
-
kind: "loadMore",
|
|
905
|
-
label
|
|
906
|
-
};
|
|
907
|
-
}
|
|
908
|
-
function normalizeFilterId(value) {
|
|
909
|
-
const id = normalizeOptionalId(value);
|
|
910
|
-
return id === "all" ? void 0 : id;
|
|
911
|
-
}
|
|
912
|
-
function buildEventRuntimeFilters(input) {
|
|
913
|
-
if (input.seriesIds != null) return { seriesIds: input.seriesIds };
|
|
914
|
-
const params = {};
|
|
915
|
-
if (input.eventSurface && input.eventSurface !== "all") params.eventSurface = input.eventSurface;
|
|
916
|
-
const eventPresets = normalizeCsvString(input.filterEventPresets);
|
|
917
|
-
if (eventPresets) params.eventPresets = eventPresets;
|
|
918
|
-
if (input.scheduleScope && input.scheduleScope !== "any") params.scheduleScope = input.scheduleScope;
|
|
919
|
-
const venueId = normalizeFilterId(input.filterVenueId);
|
|
920
|
-
const staffMemberId = normalizeFilterId(input.filterStaffMemberId);
|
|
921
|
-
const categoryIds = normalizeCsvString(input.filterCategoryIds);
|
|
922
|
-
if (categoryIds) params.categoryIds = categoryIds;
|
|
923
|
-
if (venueId) params.venueId = venueId;
|
|
924
|
-
if (staffMemberId) params.staffMemberId = staffMemberId;
|
|
925
|
-
return params;
|
|
926
|
-
}
|
|
927
|
-
function getEventRuntimeFiltersKey(filters) {
|
|
928
|
-
const scope = filters ?? {};
|
|
929
|
-
return JSON.stringify({
|
|
930
|
-
...scope.from === void 0 ? {} : { from: scope.from },
|
|
931
|
-
...scope.to === void 0 ? {} : { to: scope.to },
|
|
932
|
-
seriesIds: canonicalEventSeriesScope(scope.seriesIds),
|
|
933
|
-
categoryIds: normalizeCsvString(scope.categoryIds),
|
|
934
|
-
staffMemberId: normalizeOptionalId(scope.staffMemberId),
|
|
935
|
-
venueId: normalizeOptionalId(scope.venueId),
|
|
936
|
-
eventSurface: scope.eventSurface ?? null,
|
|
937
|
-
eventPresets: normalizeCsvString(scope.eventPresets),
|
|
938
|
-
scheduleScope: scope.scheduleScope ?? null
|
|
939
|
-
});
|
|
940
|
-
}
|
|
941
|
-
function canonicalEventSeriesScope(seriesIds) {
|
|
942
|
-
return seriesIds == null ? null : [...new Set(seriesIds.split(",").filter(Boolean))].sort().join(",");
|
|
943
|
-
}
|
|
944
|
-
//#endregion
|
|
945
828
|
//#region ../blocks/src/system/blocks/events/shared/eventSelection.ts
|
|
946
829
|
/** Invalid saved selections fail closed rather than widening discovery. */
|
|
947
830
|
function resolveEventSelection(mode, value) {
|
|
@@ -1426,6 +1309,10 @@ const partRenderers = {
|
|
|
1426
1309
|
}),
|
|
1427
1310
|
"date-stamp": (props) => CardListLeadDate(props)
|
|
1428
1311
|
};
|
|
1312
|
+
/** Each link says it opens a new tab from its own target, never from another link on the card. */
|
|
1313
|
+
function opensNewTab(link) {
|
|
1314
|
+
return link.target === "_blank";
|
|
1315
|
+
}
|
|
1429
1316
|
/** Title and photo share the same destination and external-link behavior. */
|
|
1430
1317
|
function cardListItemLink(item) {
|
|
1431
1318
|
return item.titleLink ?? (item.href ? { href: item.href } : null);
|
|
@@ -1444,7 +1331,7 @@ function CardListTitle({ item, presentation, Title = "h3" }) {
|
|
|
1444
1331
|
...link,
|
|
1445
1332
|
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
1446
1333
|
label: item.title,
|
|
1447
|
-
newTabHint:
|
|
1334
|
+
newTabHint: opensNewTab(link)
|
|
1448
1335
|
})
|
|
1449
1336
|
}) : item.title
|
|
1450
1337
|
}),
|
|
@@ -1472,7 +1359,7 @@ function CardListMedia({ item, presentation }) {
|
|
|
1472
1359
|
children: link ? /* @__PURE__ */ jsx("a", {
|
|
1473
1360
|
...link,
|
|
1474
1361
|
className: "rb-block rb-h-full",
|
|
1475
|
-
"aria-label": `${item.title}${
|
|
1362
|
+
"aria-label": `${item.title}${opensNewTab(link) ? " (opens in a new tab)" : ""}`,
|
|
1476
1363
|
children: photo
|
|
1477
1364
|
}) : photo
|
|
1478
1365
|
});
|
|
@@ -1509,14 +1396,17 @@ function CardListAction({ item, presentation }) {
|
|
|
1509
1396
|
const link = cardListActionLink(action);
|
|
1510
1397
|
return /* @__PURE__ */ jsx("div", {
|
|
1511
1398
|
...listLookSlot(presentation, "item-actions"),
|
|
1512
|
-
children: !action.href ? /* @__PURE__ */ jsx("span", {
|
|
1399
|
+
children: !action.href ? /* @__PURE__ */ jsx("span", {
|
|
1400
|
+
...listLookControl(presentation, "status"),
|
|
1401
|
+
children: action.label
|
|
1402
|
+
}) : presentation.itemActionStyle === "link" ? /* @__PURE__ */ jsx("a", {
|
|
1513
1403
|
...link,
|
|
1514
1404
|
className: "rb-item-text-link",
|
|
1515
1405
|
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
1516
1406
|
label: action.label,
|
|
1517
|
-
newTabHint:
|
|
1407
|
+
newTabHint: action.external
|
|
1518
1408
|
})
|
|
1519
|
-
}) :
|
|
1409
|
+
}) : action.external ? /* @__PURE__ */ jsx(ThemedAuthoredButton, {
|
|
1520
1410
|
...link,
|
|
1521
1411
|
variant: presentation.buttonVariant ?? "primary",
|
|
1522
1412
|
size: presentation.actionSize ?? "sm",
|
|
@@ -1772,6 +1662,19 @@ function hasMoreEventPages(events, pageSize) {
|
|
|
1772
1662
|
return events.length >= pageSize;
|
|
1773
1663
|
}
|
|
1774
1664
|
//#endregion
|
|
1665
|
+
//#region ../blocks/src/system/helpers/normalizeIds.ts
|
|
1666
|
+
function normalizeIdList(parts) {
|
|
1667
|
+
const seen = /* @__PURE__ */ new Set();
|
|
1668
|
+
const normalized = [];
|
|
1669
|
+
for (const part of parts) {
|
|
1670
|
+
const trimmed = part.trim();
|
|
1671
|
+
if (!trimmed || seen.has(trimmed)) continue;
|
|
1672
|
+
seen.add(trimmed);
|
|
1673
|
+
normalized.push(trimmed);
|
|
1674
|
+
}
|
|
1675
|
+
return normalized.sort();
|
|
1676
|
+
}
|
|
1677
|
+
//#endregion
|
|
1775
1678
|
//#region ../blocks/src/system/blocks/events/shared/filtering.ts
|
|
1776
1679
|
const unsafeAsEventCategoryId = (value) => value;
|
|
1777
1680
|
const unsafeAsVenueId = (value) => value;
|
|
@@ -1812,6 +1715,118 @@ function normalizeEventStaffMemberId(value) {
|
|
|
1812
1715
|
return trimmed ? trimmed : null;
|
|
1813
1716
|
}
|
|
1814
1717
|
//#endregion
|
|
1718
|
+
//#region ../blocks/src/system/runtime/hooks/utils/normalize.ts
|
|
1719
|
+
function normalizeOptionalId(value) {
|
|
1720
|
+
const trimmed = typeof value === "string" ? value.trim() : void 0;
|
|
1721
|
+
return trimmed ? trimmed : void 0;
|
|
1722
|
+
}
|
|
1723
|
+
function normalizeCsvIds(value) {
|
|
1724
|
+
if (!value) return [];
|
|
1725
|
+
return normalizeIdList(Array.isArray(value) ? value.filter((entry) => typeof entry === "string") : typeof value === "string" ? value.split(",") : []);
|
|
1726
|
+
}
|
|
1727
|
+
function normalizeCsvString(value) {
|
|
1728
|
+
const ids = normalizeCsvIds(value);
|
|
1729
|
+
return ids.length > 0 ? ids.join(",") : void 0;
|
|
1730
|
+
}
|
|
1731
|
+
const eventPageSizeValues = [
|
|
1732
|
+
1,
|
|
1733
|
+
2,
|
|
1734
|
+
3,
|
|
1735
|
+
4,
|
|
1736
|
+
5,
|
|
1737
|
+
6,
|
|
1738
|
+
10,
|
|
1739
|
+
12,
|
|
1740
|
+
20,
|
|
1741
|
+
24,
|
|
1742
|
+
30,
|
|
1743
|
+
100
|
|
1744
|
+
];
|
|
1745
|
+
const eventPageSizeSchema = z.union([
|
|
1746
|
+
z.literal(1),
|
|
1747
|
+
z.literal(2),
|
|
1748
|
+
z.literal(3),
|
|
1749
|
+
z.literal(4),
|
|
1750
|
+
z.literal(5),
|
|
1751
|
+
z.literal(6),
|
|
1752
|
+
z.literal(10),
|
|
1753
|
+
z.literal(12),
|
|
1754
|
+
z.literal(20),
|
|
1755
|
+
z.literal(24),
|
|
1756
|
+
z.literal(30),
|
|
1757
|
+
z.literal(100)
|
|
1758
|
+
]);
|
|
1759
|
+
const eventPageSizeSet = new Set(eventPageSizeValues);
|
|
1760
|
+
function resolveEventPageSize(value, fallback = 12) {
|
|
1761
|
+
const candidate = typeof value === "number" ? value : typeof value === "string" && value.trim() !== "" ? Number(value.trim()) : null;
|
|
1762
|
+
return candidate != null && Number.isInteger(candidate) && eventPageSizeSet.has(candidate) ? candidate : fallback;
|
|
1763
|
+
}
|
|
1764
|
+
function resolveEventCalendarListPageSize(input) {
|
|
1765
|
+
return resolveEventPageSize(input.eventsPerPage);
|
|
1766
|
+
}
|
|
1767
|
+
const eventListPaginationActionSchema = z.discriminatedUnion("kind", [
|
|
1768
|
+
z.object({ kind: z.literal("none") }),
|
|
1769
|
+
z.object({
|
|
1770
|
+
kind: z.literal("loadMore"),
|
|
1771
|
+
label: z.string()
|
|
1772
|
+
}),
|
|
1773
|
+
z.object({
|
|
1774
|
+
kind: z.literal("seeAllLink"),
|
|
1775
|
+
label: z.string(),
|
|
1776
|
+
href: z.string()
|
|
1777
|
+
})
|
|
1778
|
+
]);
|
|
1779
|
+
function resolveEventListPaginationAction(input) {
|
|
1780
|
+
if (input.paginationMode === "none") return { kind: "none" };
|
|
1781
|
+
const label = input.loadMoreText?.trim() || input.defaultLabel || "Load more events";
|
|
1782
|
+
const href = input.seeAllUrl?.trim();
|
|
1783
|
+
if (input.paginationMode === "seeAllLink" && href) return {
|
|
1784
|
+
kind: "seeAllLink",
|
|
1785
|
+
label,
|
|
1786
|
+
href
|
|
1787
|
+
};
|
|
1788
|
+
return {
|
|
1789
|
+
kind: "loadMore",
|
|
1790
|
+
label
|
|
1791
|
+
};
|
|
1792
|
+
}
|
|
1793
|
+
function normalizeFilterId(value) {
|
|
1794
|
+
const id = normalizeOptionalId(value);
|
|
1795
|
+
return id === "all" ? void 0 : id;
|
|
1796
|
+
}
|
|
1797
|
+
function buildEventRuntimeFilters(input) {
|
|
1798
|
+
if (input.seriesIds != null) return { seriesIds: input.seriesIds };
|
|
1799
|
+
const params = {};
|
|
1800
|
+
if (input.eventSurface && input.eventSurface !== "all") params.eventSurface = input.eventSurface;
|
|
1801
|
+
const eventPresets = normalizeCsvString(input.filterEventPresets);
|
|
1802
|
+
if (eventPresets) params.eventPresets = eventPresets;
|
|
1803
|
+
if (input.scheduleScope && input.scheduleScope !== "any") params.scheduleScope = input.scheduleScope;
|
|
1804
|
+
const venueId = normalizeFilterId(input.filterVenueId);
|
|
1805
|
+
const staffMemberId = normalizeFilterId(input.filterStaffMemberId);
|
|
1806
|
+
const categoryIds = normalizeCsvString(input.filterCategoryIds);
|
|
1807
|
+
if (categoryIds) params.categoryIds = categoryIds;
|
|
1808
|
+
if (venueId) params.venueId = venueId;
|
|
1809
|
+
if (staffMemberId) params.staffMemberId = staffMemberId;
|
|
1810
|
+
return params;
|
|
1811
|
+
}
|
|
1812
|
+
function getEventRuntimeFiltersKey(filters) {
|
|
1813
|
+
const scope = filters ?? {};
|
|
1814
|
+
return JSON.stringify({
|
|
1815
|
+
...scope.from === void 0 ? {} : { from: scope.from },
|
|
1816
|
+
...scope.to === void 0 ? {} : { to: scope.to },
|
|
1817
|
+
seriesIds: canonicalEventSeriesScope(scope.seriesIds),
|
|
1818
|
+
categoryIds: normalizeCsvString(scope.categoryIds),
|
|
1819
|
+
staffMemberId: normalizeOptionalId(scope.staffMemberId),
|
|
1820
|
+
venueId: normalizeOptionalId(scope.venueId),
|
|
1821
|
+
eventSurface: scope.eventSurface ?? null,
|
|
1822
|
+
eventPresets: normalizeCsvString(scope.eventPresets),
|
|
1823
|
+
scheduleScope: scope.scheduleScope ?? null
|
|
1824
|
+
});
|
|
1825
|
+
}
|
|
1826
|
+
function canonicalEventSeriesScope(seriesIds) {
|
|
1827
|
+
return seriesIds == null ? null : [...new Set(seriesIds.split(",").filter(Boolean))].sort().join(",");
|
|
1828
|
+
}
|
|
1829
|
+
//#endregion
|
|
1815
1830
|
//#region ../blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.ts
|
|
1816
1831
|
const eventSurfaceScopeSchema$1 = z.enum(eventSurfaceScopeValues);
|
|
1817
1832
|
const eventScheduleScopeSchema$1 = z.enum(eventScheduleScopeValues);
|
|
@@ -2168,6 +2183,21 @@ Object.fromEntries(OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS.map((definition) =
|
|
|
2168
2183
|
function isOfferingsPreviewSourceKey(value) {
|
|
2169
2184
|
return typeof value === "string" && OFFERINGS_PREVIEW_SOURCE_KEYS.includes(value);
|
|
2170
2185
|
}
|
|
2186
|
+
/** The groups a preview shows; an author can hide one. */
|
|
2187
|
+
function visibleOfferingsPreviewGroups(groups) {
|
|
2188
|
+
return groups.filter((group) => !group.hidden);
|
|
2189
|
+
}
|
|
2190
|
+
/**
|
|
2191
|
+
* The public event query a preview group's loader sends. Both whole-series
|
|
2192
|
+
* presets share one read, since the block shows them as a single run group.
|
|
2193
|
+
*/
|
|
2194
|
+
function offeringsPreviewGroupQuery(source) {
|
|
2195
|
+
switch (source.kind) {
|
|
2196
|
+
case "eventPreset": return { eventPresets: source.preset };
|
|
2197
|
+
case "wholeSeries": return { eventPresets: WHOLE_SERIES_EVENT_PRESET_VALUES.join(",") };
|
|
2198
|
+
default: return assertNever$1(source);
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2171
2201
|
function sourceKeyForEventPreset(preset) {
|
|
2172
2202
|
return `eventPreset:${preset}`;
|
|
2173
2203
|
}
|
|
@@ -2302,7 +2332,7 @@ function resolveOfferingsPreviewGroupCta(input) {
|
|
|
2302
2332
|
}
|
|
2303
2333
|
function buildOfferingsPreviewRenderStates(input) {
|
|
2304
2334
|
const now = input.now;
|
|
2305
|
-
return input.groups
|
|
2335
|
+
return visibleOfferingsPreviewGroups(input.groups).map((group) => {
|
|
2306
2336
|
const data = input.itemsBySourceKey.get(group.sourceKey);
|
|
2307
2337
|
if (!data || data.kind === "failed") return {
|
|
2308
2338
|
kind: "failed",
|
|
@@ -2546,6 +2576,142 @@ const passCardDisplaySchema = z.object({
|
|
|
2546
2576
|
})])
|
|
2547
2577
|
});
|
|
2548
2578
|
//#endregion
|
|
2579
|
+
//#region ../blocks/src/system/blocks/shopCatalogue.ts
|
|
2580
|
+
function storedShopShow(content) {
|
|
2581
|
+
const passes = content.showPasses !== false;
|
|
2582
|
+
const memberships = content.showMemberships !== false;
|
|
2583
|
+
if (passes && memberships) return "both";
|
|
2584
|
+
if (passes) return "passes";
|
|
2585
|
+
return memberships ? "memberships" : "nothing";
|
|
2586
|
+
}
|
|
2587
|
+
/**
|
|
2588
|
+
* With one kind on sale and the other confirmed absent, the block shows that
|
|
2589
|
+
* kind, whatever is stored, since there's nothing to choose between. With
|
|
2590
|
+
* both on sale it follows what's stored, and so it does when either kind
|
|
2591
|
+
* couldn't be read: a failed read must never show a kind the owner switched
|
|
2592
|
+
* off. With nothing on sale, or nothing chosen, it has nothing to show.
|
|
2593
|
+
*/
|
|
2594
|
+
function decideShopCatalogue(stored, onSale) {
|
|
2595
|
+
const passes = onSaleState(onSale.passes);
|
|
2596
|
+
const memberships = onSaleState(onSale.memberships);
|
|
2597
|
+
if (passes === "none" && memberships === "none") return {
|
|
2598
|
+
kind: "nothing-on-sale",
|
|
2599
|
+
stored
|
|
2600
|
+
};
|
|
2601
|
+
if (passes === "some" && memberships === "none") return {
|
|
2602
|
+
kind: "shows",
|
|
2603
|
+
stored,
|
|
2604
|
+
shows: "passes",
|
|
2605
|
+
choice: "one-kind-on-sale"
|
|
2606
|
+
};
|
|
2607
|
+
if (passes === "none" && memberships === "some") return {
|
|
2608
|
+
kind: "shows",
|
|
2609
|
+
stored,
|
|
2610
|
+
shows: "memberships",
|
|
2611
|
+
choice: "one-kind-on-sale"
|
|
2612
|
+
};
|
|
2613
|
+
return stored === "nothing" ? {
|
|
2614
|
+
kind: "nothing-chosen",
|
|
2615
|
+
stored
|
|
2616
|
+
} : {
|
|
2617
|
+
kind: "shows",
|
|
2618
|
+
stored,
|
|
2619
|
+
shows: stored,
|
|
2620
|
+
choice: "offered"
|
|
2621
|
+
};
|
|
2622
|
+
}
|
|
2623
|
+
function onSaleState(count) {
|
|
2624
|
+
if (count === "unknown") return "unknown";
|
|
2625
|
+
return count > 0 ? "some" : "none";
|
|
2626
|
+
}
|
|
2627
|
+
/** Whether the decided selection includes one kind. */
|
|
2628
|
+
function shopShowsKind(decision, kind) {
|
|
2629
|
+
return decision.kind === "shows" && (decision.shows === "both" || decision.shows === kind);
|
|
2630
|
+
}
|
|
2631
|
+
/**
|
|
2632
|
+
* What the page shows: the decision applied to the products on sale. A kind
|
|
2633
|
+
* whose read failed (`null` or missing) is unknown, not none.
|
|
2634
|
+
*/
|
|
2635
|
+
function shownShopProducts(stored, onSale) {
|
|
2636
|
+
const decision = decideShopCatalogue(stored, {
|
|
2637
|
+
passes: onSale.passes?.length ?? "unknown",
|
|
2638
|
+
memberships: onSale.memberships?.length ?? "unknown"
|
|
2639
|
+
});
|
|
2640
|
+
return {
|
|
2641
|
+
passes: shopShowsKind(decision, "passes") ? [...onSale.passes ?? []] : [],
|
|
2642
|
+
memberships: shopShowsKind(decision, "memberships") ? [...onSale.memberships ?? []] : []
|
|
2643
|
+
};
|
|
2644
|
+
}
|
|
2645
|
+
function shopFormOffer(decision) {
|
|
2646
|
+
return {
|
|
2647
|
+
showChoice: decision.kind === "nothing-chosen" || decision.kind === "shows" && decision.choice === "offered",
|
|
2648
|
+
passes: shopShowsKind(decision, "passes"),
|
|
2649
|
+
memberships: shopShowsKind(decision, "memberships")
|
|
2650
|
+
};
|
|
2651
|
+
}
|
|
2652
|
+
/**
|
|
2653
|
+
* The form's conditions, written out from the decision rather than restating
|
|
2654
|
+
* it: for each catalogue the form can see and each stored choice, they hold
|
|
2655
|
+
* where `shopFormOffer` says so. A catalogue that couldn't be read leaves the
|
|
2656
|
+
* fact parts unknown, so every one of these fields stays showing.
|
|
2657
|
+
*/
|
|
2658
|
+
const formCatalogues = [
|
|
2659
|
+
{
|
|
2660
|
+
passes: 0,
|
|
2661
|
+
memberships: 0
|
|
2662
|
+
},
|
|
2663
|
+
{
|
|
2664
|
+
passes: 1,
|
|
2665
|
+
memberships: 0
|
|
2666
|
+
},
|
|
2667
|
+
{
|
|
2668
|
+
passes: 0,
|
|
2669
|
+
memberships: 1
|
|
2670
|
+
},
|
|
2671
|
+
{
|
|
2672
|
+
passes: 1,
|
|
2673
|
+
memberships: 1
|
|
2674
|
+
}
|
|
2675
|
+
];
|
|
2676
|
+
const storedChoices = [
|
|
2677
|
+
"both",
|
|
2678
|
+
"passes",
|
|
2679
|
+
"memberships",
|
|
2680
|
+
"nothing"
|
|
2681
|
+
];
|
|
2682
|
+
function storedCondition(stored) {
|
|
2683
|
+
return { allOf: [stored === "both" || stored === "passes" ? {
|
|
2684
|
+
field: "showPasses",
|
|
2685
|
+
notEquals: false
|
|
2686
|
+
} : {
|
|
2687
|
+
field: "showPasses",
|
|
2688
|
+
equals: false
|
|
2689
|
+
}, stored === "both" || stored === "memberships" ? {
|
|
2690
|
+
field: "showMemberships",
|
|
2691
|
+
notEquals: false
|
|
2692
|
+
} : {
|
|
2693
|
+
field: "showMemberships",
|
|
2694
|
+
equals: false
|
|
2695
|
+
}] };
|
|
2696
|
+
}
|
|
2697
|
+
function shopFormCondition(offered) {
|
|
2698
|
+
return { anyOf: formCatalogues.flatMap((catalogue) => {
|
|
2699
|
+
const stored = storedChoices.filter((choice) => offered(shopFormOffer(decideShopCatalogue(choice, catalogue))));
|
|
2700
|
+
if (stored.length === 0) return [];
|
|
2701
|
+
const facts = [{
|
|
2702
|
+
fact: "catalogue.passes",
|
|
2703
|
+
is: catalogue.passes > 0 ? "some" : "none"
|
|
2704
|
+
}, {
|
|
2705
|
+
fact: "catalogue.memberships",
|
|
2706
|
+
is: catalogue.memberships > 0 ? "some" : "none"
|
|
2707
|
+
}];
|
|
2708
|
+
return [{ allOf: stored.length === storedChoices.length ? facts : [...facts, { anyOf: stored.map(storedCondition) }] }];
|
|
2709
|
+
}) };
|
|
2710
|
+
}
|
|
2711
|
+
const shopShowChoiceCondition = shopFormCondition((offer) => offer.showChoice);
|
|
2712
|
+
const shopPassesShownCondition = shopFormCondition((offer) => offer.passes);
|
|
2713
|
+
const shopMembershipsShownCondition = shopFormCondition((offer) => offer.memberships);
|
|
2714
|
+
//#endregion
|
|
2549
2715
|
//#region ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
2550
2716
|
const shopModeSchema = z.enum([
|
|
2551
2717
|
"passes-memberships",
|
|
@@ -2806,7 +2972,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2806
2972
|
},
|
|
2807
2973
|
buildRender: (source) => {
|
|
2808
2974
|
const subscribeButtonText = source.subscribeButtonText ?? "Subscribe";
|
|
2809
|
-
const products =
|
|
2975
|
+
const products = shopDisplayedCatalogue(source);
|
|
2810
2976
|
const dateContext = source.dateContext ?? resolveDateRuntimeContext(void 0);
|
|
2811
2977
|
return {
|
|
2812
2978
|
display: buildPassesMembershipsDisplay({
|
|
@@ -2814,7 +2980,6 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2814
2980
|
className: source.className,
|
|
2815
2981
|
layout: source.layout,
|
|
2816
2982
|
columns: source.columns,
|
|
2817
|
-
emptyMessage: source.emptyStateText,
|
|
2818
2983
|
passesHeading: source.passesHeading,
|
|
2819
2984
|
membershipsHeading: source.membershipsHeading,
|
|
2820
2985
|
passActionLabel: resolvePassBuyButtonText(source.buyButtonText),
|
|
@@ -2846,24 +3011,27 @@ const productListBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2846
3011
|
source: createZodCodec(shopSourceSchema),
|
|
2847
3012
|
render: createZodCodec(productListRenderSchema)
|
|
2848
3013
|
},
|
|
2849
|
-
buildRender: (source) =>
|
|
2850
|
-
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
2857
|
-
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
3014
|
+
buildRender: (source) => {
|
|
3015
|
+
const addButtonText = ourWordingIfEmpty(source.addButtonText, "Add to cart");
|
|
3016
|
+
return {
|
|
3017
|
+
display: buildProductListDisplay(source.products ?? [], {
|
|
3018
|
+
heading: source.heading,
|
|
3019
|
+
className: source.className,
|
|
3020
|
+
layout: source.layout === "register" ? "list" : source.layout,
|
|
3021
|
+
columns: source.columns,
|
|
3022
|
+
emptyMessage: ourWordingIfEmpty(source.emptyStateText, "No products available right now."),
|
|
3023
|
+
showSummary: source.showSummary !== false,
|
|
3024
|
+
showPrices: source.showPrices !== false,
|
|
3025
|
+
addButtonText
|
|
3026
|
+
}),
|
|
3027
|
+
hydration: {
|
|
3028
|
+
products: source.products ?? [],
|
|
3029
|
+
showSummary: source.showSummary !== false,
|
|
3030
|
+
showPrices: source.showPrices !== false,
|
|
3031
|
+
addButtonText
|
|
3032
|
+
}
|
|
3033
|
+
};
|
|
3034
|
+
}
|
|
2867
3035
|
});
|
|
2868
3036
|
const productDetailBlockRuntime = defineProgressiveBlockRuntime({
|
|
2869
3037
|
kind: "progressive",
|
|
@@ -2877,20 +3045,22 @@ const productDetailBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2877
3045
|
contentEntry: source.contentEntry ?? null,
|
|
2878
3046
|
productSlug: source.productSlug ?? null
|
|
2879
3047
|
});
|
|
3048
|
+
const addButtonText = ourWordingIfEmpty(source.addButtonText, "Add to cart");
|
|
2880
3049
|
return {
|
|
2881
3050
|
display: buildProductDetailDisplay(product, {
|
|
2882
3051
|
heading: source.heading,
|
|
2883
3052
|
className: source.className,
|
|
2884
3053
|
emptyMessage: source.emptyStateText,
|
|
2885
3054
|
showSummary: source.showSummary !== false,
|
|
2886
|
-
|
|
3055
|
+
showBody: source.showBody !== false,
|
|
3056
|
+
addButtonText
|
|
2887
3057
|
}),
|
|
2888
3058
|
hydration: {
|
|
2889
3059
|
products: source.products ?? [],
|
|
2890
3060
|
productId: product?.id ?? null,
|
|
2891
3061
|
showSummary: source.showSummary !== false,
|
|
2892
3062
|
showBody: source.showBody !== false,
|
|
2893
|
-
addButtonText
|
|
3063
|
+
addButtonText
|
|
2894
3064
|
}
|
|
2895
3065
|
};
|
|
2896
3066
|
}
|
|
@@ -2901,21 +3071,24 @@ const cartBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
2901
3071
|
source: createZodCodec(shopSourceSchema),
|
|
2902
3072
|
render: createZodCodec(cartRenderSchema)
|
|
2903
3073
|
},
|
|
2904
|
-
buildRender: (source) =>
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
3074
|
+
buildRender: (source) => {
|
|
3075
|
+
const wording = {
|
|
3076
|
+
emptyStateText: ourWordingIfEmpty(source.emptyStateText, "Your cart is empty."),
|
|
3077
|
+
checkoutButtonText: ourWordingIfEmpty(source.checkoutButtonText, "Go to checkout"),
|
|
3078
|
+
clearButtonText: ourWordingIfEmpty(source.clearButtonText, "Clear cart")
|
|
3079
|
+
};
|
|
3080
|
+
return {
|
|
3081
|
+
display: buildCartDisplay([], {
|
|
3082
|
+
heading: source.heading,
|
|
3083
|
+
className: source.className,
|
|
3084
|
+
emptyMessage: wording.emptyStateText,
|
|
3085
|
+
supportText: "Saved cart contents load after page hydration on this device.",
|
|
3086
|
+
checkoutButtonText: wording.checkoutButtonText,
|
|
3087
|
+
clearButtonText: wording.clearButtonText
|
|
3088
|
+
}),
|
|
3089
|
+
hydration: wording
|
|
3090
|
+
};
|
|
3091
|
+
}
|
|
2919
3092
|
});
|
|
2920
3093
|
const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
2921
3094
|
kind: "client-owned",
|
|
@@ -2923,20 +3096,24 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
2923
3096
|
source: createZodCodec(shopSourceSchema),
|
|
2924
3097
|
render: createZodCodec(checkoutRenderSchema)
|
|
2925
3098
|
},
|
|
2926
|
-
buildRender: (source) =>
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
3099
|
+
buildRender: (source) => {
|
|
3100
|
+
const emptyStateText = ourWordingIfEmpty(source.emptyStateText, "Add something to your cart to continue.");
|
|
3101
|
+
const submitButtonText = ourWordingIfEmpty(source.submitButtonText, "Checkout");
|
|
3102
|
+
return {
|
|
3103
|
+
display: buildCheckoutDisplay(deriveCommerceCheckoutState({ items: [] }), {
|
|
3104
|
+
heading: source.heading,
|
|
3105
|
+
className: source.className,
|
|
3106
|
+
emptyMessage: emptyStateText,
|
|
3107
|
+
submitButtonText
|
|
3108
|
+
}),
|
|
3109
|
+
hydration: {
|
|
3110
|
+
emptyStateText,
|
|
3111
|
+
submitButtonText,
|
|
3112
|
+
siteTerms: source.siteTerms,
|
|
3113
|
+
demoEmailSuppressed: source.demoEmailSuppressed
|
|
3114
|
+
}
|
|
3115
|
+
};
|
|
3116
|
+
}
|
|
2940
3117
|
});
|
|
2941
3118
|
const shopInteractiveIslandPropsCodec = createInteractiveIslandCodec({
|
|
2942
3119
|
runtime: shopBlockRuntime,
|
|
@@ -3057,6 +3234,10 @@ const DEFAULT_PASS_BUY_BUTTON_TEXT = "Buy pass";
|
|
|
3057
3234
|
function resolvePassBuyButtonText(buyButtonText) {
|
|
3058
3235
|
return buyButtonText?.trim() ? buyButtonText : DEFAULT_PASS_BUY_BUTTON_TEXT;
|
|
3059
3236
|
}
|
|
3237
|
+
/** Wording someone emptied falls back to ours, so an emptied button label never draws a blank button. */
|
|
3238
|
+
function ourWordingIfEmpty(text, ours) {
|
|
3239
|
+
return text?.trim() || ours;
|
|
3240
|
+
}
|
|
3060
3241
|
function getShopDisplayForItems(render, items) {
|
|
3061
3242
|
if (render.mode === "cart") return buildCartDisplay(items, {
|
|
3062
3243
|
heading: render.display.heading,
|
|
@@ -3078,9 +3259,11 @@ function shopCardListPresentation(source) {
|
|
|
3078
3259
|
[key]: source[key]
|
|
3079
3260
|
}), {});
|
|
3080
3261
|
}
|
|
3081
|
-
function
|
|
3082
|
-
const passes
|
|
3083
|
-
|
|
3262
|
+
function shopDisplayedCatalogue(source) {
|
|
3263
|
+
const { passes, memberships } = shownShopProducts(storedShopShow(source), {
|
|
3264
|
+
passes: source.passes,
|
|
3265
|
+
memberships: source.memberships
|
|
3266
|
+
});
|
|
3084
3267
|
return {
|
|
3085
3268
|
passes,
|
|
3086
3269
|
memberships,
|
|
@@ -3100,136 +3283,6 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
3100
3283
|
};
|
|
3101
3284
|
}
|
|
3102
3285
|
//#endregion
|
|
3103
|
-
//#region ../blocks/src/system/runtime/nodes/gifting.interactive.ts
|
|
3104
|
-
const publicGiftCardOfferSchema = z.object({
|
|
3105
|
-
id: z.string(),
|
|
3106
|
-
kind: z.literal("gift_card"),
|
|
3107
|
-
title: z.string(),
|
|
3108
|
-
description: z.string().nullable(),
|
|
3109
|
-
sortOrder: z.number().int(),
|
|
3110
|
-
giftCard: z.object({
|
|
3111
|
-
fixedDenominations: z.array(z.number().int().positive()),
|
|
3112
|
-
customAmountEnabled: z.boolean(),
|
|
3113
|
-
customAmountMinCents: z.number().int().positive(),
|
|
3114
|
-
customAmountMaxCents: z.number().int().positive()
|
|
3115
|
-
}),
|
|
3116
|
-
voucher: z.null()
|
|
3117
|
-
});
|
|
3118
|
-
const publicVoucherOfferSchema = z.object({
|
|
3119
|
-
id: z.string(),
|
|
3120
|
-
kind: z.literal("voucher"),
|
|
3121
|
-
title: z.string(),
|
|
3122
|
-
description: z.string().nullable(),
|
|
3123
|
-
sortOrder: z.number().int(),
|
|
3124
|
-
giftCard: z.null(),
|
|
3125
|
-
voucher: z.object({ purchaseAmountCents: z.number().int().positive() })
|
|
3126
|
-
});
|
|
3127
|
-
const publicGiftingOffersResponseSchema = z.object({
|
|
3128
|
-
currency: z.string(),
|
|
3129
|
-
giftCards: z.array(publicGiftCardOfferSchema),
|
|
3130
|
-
vouchers: z.array(publicVoucherOfferSchema)
|
|
3131
|
-
});
|
|
3132
|
-
const giftingSourceSchema = z.object({
|
|
3133
|
-
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
3134
|
-
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation,
|
|
3135
|
-
siteTerms: blockSiteTermsSchema.optional(),
|
|
3136
|
-
siteId: z.string().optional(),
|
|
3137
|
-
apiBaseUrl: z.string().optional(),
|
|
3138
|
-
offers: publicGiftingOffersResponseSchema.nullable().optional(),
|
|
3139
|
-
className: z.string().nullable().optional(),
|
|
3140
|
-
heading: z.string().nullable().optional(),
|
|
3141
|
-
intro: z.string().nullable().optional(),
|
|
3142
|
-
giftCardsHeading: z.string().nullable().optional(),
|
|
3143
|
-
vouchersHeading: z.string().nullable().optional(),
|
|
3144
|
-
emptyStateText: z.string().nullable().optional(),
|
|
3145
|
-
checkoutButtonText: z.string().nullable().optional(),
|
|
3146
|
-
successMessage: z.string().nullable().optional()
|
|
3147
|
-
});
|
|
3148
|
-
const giftingDisplaySchema = z.object({
|
|
3149
|
-
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
3150
|
-
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation,
|
|
3151
|
-
kind: z.literal("gifting"),
|
|
3152
|
-
state: z.literal("ready"),
|
|
3153
|
-
className: z.string().nullable(),
|
|
3154
|
-
heading: z.string(),
|
|
3155
|
-
intro: z.string().nullable(),
|
|
3156
|
-
giftCardsHeading: z.string(),
|
|
3157
|
-
vouchersHeading: z.string(),
|
|
3158
|
-
emptyStateText: z.string()
|
|
3159
|
-
});
|
|
3160
|
-
const giftingHydrationSchema = z.object({
|
|
3161
|
-
siteTerms: blockSiteTermsSchema.optional(),
|
|
3162
|
-
offers: publicGiftingOffersResponseSchema.nullable(),
|
|
3163
|
-
checkoutButtonText: z.string(),
|
|
3164
|
-
successMessage: z.string()
|
|
3165
|
-
});
|
|
3166
|
-
const giftingRenderSchema = z.object({
|
|
3167
|
-
display: giftingDisplaySchema,
|
|
3168
|
-
hydration: giftingHydrationSchema
|
|
3169
|
-
});
|
|
3170
|
-
const giftingIslandMetaCodec = createZodCodec(z.object({
|
|
3171
|
-
siteId: z.string().optional(),
|
|
3172
|
-
apiBaseUrl: z.string().optional()
|
|
3173
|
-
}));
|
|
3174
|
-
const giftingIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
|
|
3175
|
-
/** The Look's slot hooks and surfaces, carried only when the block has a Look. */
|
|
3176
|
-
function giftingLookPresentation({ lookSlots, surfacePresentation }) {
|
|
3177
|
-
return {
|
|
3178
|
-
...lookSlots ? { lookSlots } : {},
|
|
3179
|
-
...surfacePresentation ? { surfacePresentation } : {}
|
|
3180
|
-
};
|
|
3181
|
-
}
|
|
3182
|
-
function buildGiftingDisplay(source) {
|
|
3183
|
-
return {
|
|
3184
|
-
kind: "gifting",
|
|
3185
|
-
...giftingLookPresentation(source),
|
|
3186
|
-
state: "ready",
|
|
3187
|
-
className: source.className ?? null,
|
|
3188
|
-
heading: source.heading?.trim() || "Gift cards & vouchers",
|
|
3189
|
-
intro: source.intro?.trim() || null,
|
|
3190
|
-
giftCardsHeading: source.giftCardsHeading?.trim() || "Gift cards",
|
|
3191
|
-
vouchersHeading: source.vouchersHeading?.trim() || "Vouchers",
|
|
3192
|
-
emptyStateText: source.emptyStateText?.trim() || "Nothing is available right now."
|
|
3193
|
-
};
|
|
3194
|
-
}
|
|
3195
|
-
const giftingBlockRuntime = defineClientOwnedBlockRuntime({
|
|
3196
|
-
kind: "client-owned",
|
|
3197
|
-
contracts: {
|
|
3198
|
-
source: createZodCodec(giftingSourceSchema),
|
|
3199
|
-
render: createZodCodec(giftingRenderSchema)
|
|
3200
|
-
},
|
|
3201
|
-
buildRender: (source) => ({
|
|
3202
|
-
display: buildGiftingDisplay(source),
|
|
3203
|
-
hydration: {
|
|
3204
|
-
siteTerms: source.siteTerms,
|
|
3205
|
-
offers: source.offers ?? null,
|
|
3206
|
-
checkoutButtonText: source.checkoutButtonText?.trim() || "Continue",
|
|
3207
|
-
successMessage: source.successMessage?.trim() || "Thanks. Your purchase is complete and your gift will be sent shortly."
|
|
3208
|
-
}
|
|
3209
|
-
})
|
|
3210
|
-
});
|
|
3211
|
-
const giftingInteractiveIslandPropsCodec = createInteractiveIslandCodec({
|
|
3212
|
-
runtime: giftingBlockRuntime,
|
|
3213
|
-
mode: "gifting",
|
|
3214
|
-
meta: giftingIslandMetaCodec,
|
|
3215
|
-
metaKeys: giftingIslandMetaKeys,
|
|
3216
|
-
selectMeta: (value) => ({
|
|
3217
|
-
siteId: value.siteId,
|
|
3218
|
-
apiBaseUrl: value.apiBaseUrl
|
|
3219
|
-
})
|
|
3220
|
-
});
|
|
3221
|
-
function buildGiftingInteractiveIslandProps(props) {
|
|
3222
|
-
return buildInteractiveIslandProps({
|
|
3223
|
-
runtime: giftingBlockRuntime,
|
|
3224
|
-
mode: "gifting",
|
|
3225
|
-
meta: {
|
|
3226
|
-
siteId: props.siteId,
|
|
3227
|
-
apiBaseUrl: props.apiBaseUrl
|
|
3228
|
-
},
|
|
3229
|
-
source: props
|
|
3230
|
-
});
|
|
3231
|
-
}
|
|
3232
|
-
//#endregion
|
|
3233
3286
|
//#region ../blocks/src/system/blocks/event-registration.shared.ts
|
|
3234
3287
|
/**
|
|
3235
3288
|
* Flat occurrence context passed from `PageRenderer.$root.occurrenceContext`.
|
|
@@ -4031,9 +4084,15 @@ const formFieldSchema = z.object({
|
|
|
4031
4084
|
min: z.number().optional(),
|
|
4032
4085
|
max: z.number().optional()
|
|
4033
4086
|
});
|
|
4087
|
+
/** Only the form's own wording is read from its settings; the rest never reaches the page. */
|
|
4088
|
+
const formOwnWordingSchema = z.object({
|
|
4089
|
+
submitLabel: z.string().nullable().optional().catch(void 0),
|
|
4090
|
+
successMessage: z.string().nullable().optional().catch(void 0)
|
|
4091
|
+
}).optional().catch(void 0);
|
|
4034
4092
|
const formRecordSchema = z.object({
|
|
4035
4093
|
id: z.string(),
|
|
4036
|
-
schemaJson: z.object({ fields: z.array(formFieldSchema).optional() }).optional()
|
|
4094
|
+
schemaJson: z.object({ fields: z.array(formFieldSchema).optional() }).optional(),
|
|
4095
|
+
settingsJson: formOwnWordingSchema
|
|
4037
4096
|
});
|
|
4038
4097
|
const formFieldGroupSchema = z.discriminatedUnion("type", [z.object({
|
|
4039
4098
|
type: z.literal("single"),
|
|
@@ -4084,8 +4143,8 @@ function buildFormDisplay(source) {
|
|
|
4084
4143
|
state: fields.state,
|
|
4085
4144
|
className: source.className ?? null,
|
|
4086
4145
|
formId: fields.formId,
|
|
4087
|
-
submitLabel: source.submitLabel?.trim() || "Submit",
|
|
4088
|
-
successMessage: source.successMessage
|
|
4146
|
+
submitLabel: source.submitLabel?.trim() || form?.settingsJson?.submitLabel?.trim() || "Submit",
|
|
4147
|
+
successMessage: source.successMessage?.trim() || form?.settingsJson?.successMessage?.trim() || null,
|
|
4089
4148
|
form,
|
|
4090
4149
|
groups: fields.groups
|
|
4091
4150
|
};
|
|
@@ -4364,8 +4423,7 @@ function combinedCalendarPresentation(source, listLayout) {
|
|
|
4364
4423
|
...combinedLook.list,
|
|
4365
4424
|
combinedLook,
|
|
4366
4425
|
listLayout: combinedLook.list.arrangement,
|
|
4367
|
-
|
|
4368
|
-
defaultCalendarView: "month"
|
|
4426
|
+
...eventCalendarLookViews
|
|
4369
4427
|
} : { listLayout };
|
|
4370
4428
|
}
|
|
4371
4429
|
//#endregion
|
|
@@ -4907,4 +4965,4 @@ function newsletterPrivacyNote(source, privacyNote) {
|
|
|
4907
4965
|
return source !== "signed-hosted-booking" || /unsubscribe/i.test(privacyNote ?? "") ? privacyNote : [privacyNote, DEFAULT_MAILING_LIST_PRIVACY_NOTE].filter(Boolean).join(" ");
|
|
4908
4966
|
}
|
|
4909
4967
|
//#endregion
|
|
4910
|
-
export {
|
|
4968
|
+
export { decideShopCatalogue as $, cardListPresentationSchemaShape as $t, bookingPanelHeading as A, parseMailingListVisitorSelection as An, getEventRuntimeFiltersKey as At, buildShopInteractiveIslandProps as B, createInitialEventPaginationLoadState as Bt, resolveEventRegistrationEventSource as C, formatEventPrice as Cn, catalogueEventCardProps as Ct, bookingCardEntry as D, buildMailingListSignupBlockSourceRef as Dn, eventCombinedBlockRuntime as Dt, bookingBarPlacement as E, formatEventStartingPrice as En, buildEventCombinedListingDisplay as Et, DEFAULT_PASS_BUY_BUTTON_TEXT as F, normalizeEventScheduleScope as Ft, getShopDisplayForItems as G, planEventPageOperation as Gt, cartInteractiveIslandPropsCodec as H, eventPaginationLoadReducer as Ht, buildCartInteractiveIslandProps as I, normalizeEventStaffMemberId as It, productListBlockRuntime as J, getCardOrientation as Jt, productDetailBlockRuntime as K, toEventPaginationLoadError as Kt, buildCheckoutInteractiveIslandProps as L, normalizeEventSurfacePresets as Lt, cancelledDateCopy as M, sameMailingListPlacementTargeting as Mn, normalizeCsvString as Mt, hasCancelledRegistrationDate as N, parseContentVersionId as Nn, normalizeOptionalId as Nt, bookingEntry as O, assessMailingListTargeting as On, eventCombinedInteractiveIslandPropsCodec as Ot, occurrenceContextSchema as P, unsafeAsContentEntryId as Pn, normalizeEventCategoryIds as Pt, shopProductPresentation as Q, CardListLeadDate as Qt, buildProductDetailInteractiveIslandProps as R, normalizeEventSurfaceScope as Rt, eventRegistrationInteractiveIslandPropsCodec as S, formatEventDepositNote as Sn, resolveOfferingsRenderInput as St, DEFAULT_BOOKING_BUTTON_TEXT as T, formatEventPriceDisplay as Tn, buildEventCombinedInteractiveIslandProps as Tt, checkoutBlockRuntime as U, getEventIdentity as Ut, cartBlockRuntime as V, eventPageOperationQuery as Vt, checkoutInteractiveIslandPropsCodec as W, getEventPaginationView as Wt, shopBlockRuntime as X, formatBookingSchedulePresentation as Xt, productListInteractiveIslandPropsCodec as Y, getContainerClass as Yt, shopInteractiveIslandPropsCodec as Z, CardListContentPart as Zt, formInteractiveIslandPropsCodec as _, staticHeaderChromeRuntime as _n, offeringsListingFor as _t, newsletterFormInteractiveIslandPropsCodec as a, Grid as an, DEFAULT_GROUP_CTA as at, displayButtonText as b, splitSiteChromePlacementClasses as bn, resolveOfferingsPreviewGroupCta as bt, eventListingInteractiveIslandPropsCodec as c, eventWeekGroupingContext as cn, OFFERINGS_PREVIEW_DEFAULT_EMPTY_MESSAGE as ct, buildEventCalendarListingRender as d, resolveEventSelection as dn, buildOfferingsPreviewListing as dt, resolveCardListSchedule as en, shopMembershipsShownCondition as et, eventCalendarBlockRuntime as f, projectRecurringSchedule as fn, groupOfferingRunsByCourse as ft, formBlockRuntime as g, resolveHeaderChromeRuntimeContract as gn, offeringRunLifecycle as gt, buildFormInteractiveIslandProps as h, isHeaderScrollRuntimeEnabled as hn, normalizeOfferingsPreviewItemLimit as ht, newsletterFormBlockRuntime as i, MediaNodeServer as in, publicProductsResponseSchema as it, courseTitleOf as j, DEFAULT_MAILING_LIST_TARGETING as jn, normalizeCsvIds as jt, bookingEntryProgress as k, parseMailingListPlacementTargeting as kn, buildEventRuntimeFilters as kt, buildEventCalendarInteractiveIslandProps as l, groupEventsByWeek as ln, OFFERINGS_PREVIEW_DEFAULT_FAILED_MESSAGE as lt, combinedLookSchema as m, headerChromeRuntimeContractSchema as mn, normalizeOfferingsPreviewContentForWrite as mt, buildNewsletterFormInteractiveIslandProps as n, EventQuickFacts as nn, shopShowChoiceCondition as nt, buildEventListingInteractiveIslandProps as o, buildEventListWeek as on, OFFERINGS_PREVIEW_AUTHORABLE_SOURCE_KEYS as ot, eventCalendarInteractiveIslandPropsCodec as p, recurringScheduleProjectionSchema as pn, isOfferingsPreviewSourceKey as pt, productDetailInteractiveIslandPropsCodec as q, toError as qt, newsletterBlockSubmissionMessage as r, quickFactSlots as rn, storedShopShow as rt, eventListingBlockRuntime as s, eventListWeekDays as sn, OFFERINGS_PREVIEW_DEFAULT_BUTTON_TEXT as st, NEWSLETTER_SIGNUPS_PAUSED_MESSAGE as t, selectCardListPresentation as tn, shopPassesShownCondition as tt, buildEventCalendarListingDisplay as u, weekColumnDays as un, OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS as ut, buildEventRegistrationDisplayFromScopedEvents as v, parseHeaderPositioning as vn, offeringsPreviewGroupQuery as vt, offeringNounForEvent as w, formatEventPriceAmount as wn, listingEventCardProps as wt, eventRegistrationBlockRuntime as x, formatCoursePrice as xn, resolveOfferingsPreviewGroups as xt, buildEventRegistrationInteractiveIslandProps as y, planSiteChromePlacement as yn, readOfferingsGrouping as yt, buildProductListInteractiveIslandProps as z, normalizeEventVenueId as zt };
|