@riverbankcms/sdk 0.182.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-Bvw2bUif.d.ts → BlocksIslandsHydrator-X1_G96iN.d.ts} +1 -1
- package/dist/_dts/{Page-B2EAT-bE.d.ts → Page-CEqZJZEE.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-D0vww6rh.d.ts → SdkPreviewMode-DQejfbXL.d.ts} +2 -2
- package/dist/_dts/{client-D6T430bk.d.ts → client-B_B_amKD.d.ts} +2 -1
- package/dist/_dts/{content-types-wZVWccC6.d.ts → content-types-Dhx5Ocvx.d.ts} +9 -16
- package/dist/_dts/{contracts-B-vtOcr8.d.ts → contracts-FeOnfoa1.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-CxfwHE6z.d.ts → generatePageMetadata-m70J6tit.d.ts} +2 -2
- package/dist/_dts/{index-CEyYMhLJ.d.ts → index-BOpUh8kO.d.ts} +1 -1
- package/dist/_dts/{index-DIU-wL1M.d.ts → index-Bizdaxji.d.ts} +2 -2
- package/dist/_dts/{index-Cqxis-nv.d.ts → index-BxCmCit0.d.ts} +1 -1
- package/dist/_dts/{index-CQrb3Ccc.d.ts → index-CjAkEWAp.d.ts} +4 -4
- package/dist/_dts/{index-DqPKdeTk.d.ts → index-iuFrbIjt.d.ts} +1 -1
- package/dist/_dts/{index-CciRW_w1.d.ts → index-liuhlOX7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D0wrxiSp.d.ts → loadContent-D4wrTIIw.d.ts} +7 -7
- package/dist/_dts/{request-DEwxUSw8.d.ts → request-Gn0O1blj.d.ts} +24912 -23733
- package/dist/_dts/{resolveBlockData-VaG_MYbN.d.ts → resolveBlockData-D5duwuqS.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-DTwklC_v.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-DtQuFlID.d.ts → serviceBookingOutline-B1gyJon_.d.ts} +7 -7
- package/dist/_dts/{types-B3RjeBLV.d.ts → types-BoITy0rA.d.ts} +41 -4
- package/dist/_dts/{types-BvUSGQrw.d.ts → types-DBNuMtSk.d.ts} +16 -5
- package/dist/_dts/{types-CkRFtBqd.d.ts → types-DHMcuoeQ.d.ts} +7 -7
- package/dist/_dts/{validation-BZA3DhcV.d.ts → validation-BIPO-XlE.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CQMf0HdN.mjs → BlocksIslandsHydrator-Ct8slgRk.mjs} +22 -18
- package/dist/client/{BookingMailingListNote-7kdvuPow.mjs → BookingMailingListNote-qqTxGGS4.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-BJI7mZuV.mjs → BookingQuestionFields-DCh9MUIF.mjs} +2 -2
- package/dist/client/{CalendarAction-D_Glwvz2.mjs → CalendarAction-RcdaStG7.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-DPUD6wjy.mjs → CalendarNavigationChevron-D7Wt-Oaa.mjs} +25 -8
- package/dist/client/{CheckboxChoice-C8i4NraK.mjs → CheckboxChoice-BdGxZWeg.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-8kwNF9HN.mjs → DemoBookingPortalAccess-HFVkoOac.mjs} +5 -5
- package/dist/client/{EventCalendar.client-Dhb14bcC.mjs → EventCalendar.client-BtkJW8bA.mjs} +10 -10
- package/dist/client/{EventCombined.client-C1jEZBN9.mjs → EventCombined.client-DxaGjFFS.mjs} +9 -9
- package/dist/client/{EventEmbeddedCheckoutStep-BGkbUhuw.mjs → EventEmbeddedCheckoutStep-B2c5dR49.mjs} +1 -1
- package/dist/client/{EventItem-Bb0ppG2N.mjs → EventItem-Fr2qi2C2.mjs} +29 -14
- package/dist/client/{EventListWeekNavigation-DMryCaNV.mjs → EventListWeekNavigation-BRMaq0ky.mjs} +1 -1
- package/dist/client/{EventListing.client-BuH5kKA3.mjs → EventListing.client-BhGxfbjt.mjs} +3 -3
- package/dist/client/{EventListing.view-DsqvuulZ.mjs → EventListing.view-COuEJzbO.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-D4FvQSFF.mjs → EventRegistrationPayment-BTLYhVxD.mjs} +21 -42
- package/dist/client/{Page-sV6BJkXX.mjs → Page-CgbQZP5g.mjs} +2786 -927
- package/dist/client/{ProtectedSubmitButton-BNnKuir8.mjs → ProtectedSubmitButton-BG7my0Qf.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-VfSd6JU-.mjs → SiteTermsAgreementField-DQNkfNLA.mjs} +3 -3
- package/dist/client/{StepIndicator-B6o5B7g3.mjs → StepIndicator-DvPekKeM.mjs} +1 -1
- package/dist/client/{StepIndicator-BTqO7cJl.mjs → StepIndicator-DyXoI3ob.mjs} +7 -7
- package/dist/client/{ThemedButton-PFOhXktM.mjs → ThemedButton-Bc9DBbVp.mjs} +42 -9
- package/dist/client/{accessibleSurfaces-BogaGutk.mjs → accessibleSurfaces-wj4Rloo5.mjs} +336 -119
- package/dist/client/{accordion-6cuswD_s.mjs → accordion-BVXfjnh-.mjs} +1 -1
- package/dist/client/{booking-form.client-BOMe_SKi.mjs → booking-form.client-DycPGtke.mjs} +191 -71
- package/dist/client/{bookingForm-DSCH-VHo.mjs → bookingForm-DrWSUqL3.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-BFuqZCfz.mjs → boxStyleClassNames-CduDRcIk.mjs} +2 -2
- package/dist/client/buttonParts-CJEtVOUy.mjs +1511 -0
- package/dist/client/{carousel-CGyQVV1M.mjs → carousel-DyCLMP8s.mjs} +2 -2
- package/dist/client/{carousel.client-BtLwHefX.mjs → carousel.client-DffP_Nv0.mjs} +1 -1
- package/dist/client/{cart-BYOe7MCh.mjs → cart-BuEp_cj4.mjs} +3 -3
- package/dist/client/{cart.client-BKFkaXdV.mjs → cart.client-CAO39uDG.mjs} +1 -1
- package/dist/client/{checkout-Dwd7Di77.mjs → checkout-BoxzT64s.mjs} +3 -3
- package/dist/client/{checkout.client-C25hpi-z.mjs → checkout.client-IGUy7XOx.mjs} +1 -1
- package/dist/client/{checkoutUrls-tG788sw0.mjs → checkoutUrls-D0UsiFmm.mjs} +1 -1
- package/dist/client/client.mjs +446 -93
- package/dist/client/{constants-DdxFG3Ic.mjs → constants-C_8AxMdm.mjs} +1 -1
- package/dist/client/{context-Hi1RuYEM.mjs → context-D1L0pe__.mjs} +2 -2
- package/dist/client/{dateFormatting-C8vBCHuo.mjs → dateFormatting-HvfmS_cH.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BAL5UIDG.mjs → demoPortalMagicLink-BunFTnIq.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-Dv1Lr9kJ.mjs → enhanceHeaderSection-CtLAG651.mjs} +4 -4
- package/dist/client/{event-registration.client-dB_Z7bb-.mjs → event-registration.client-DiSxkBUP.mjs} +15 -15
- package/dist/client/{eventCalendar-CQnRA4Ww.mjs → eventCalendar-DUnhwZ1o.mjs} +4 -4
- package/dist/client/{eventCombined-BDOG1hVp.mjs → eventCombined-BvBQo0nF.mjs} +4 -4
- package/dist/client/{eventListing-DSVmhy9n.mjs → eventListing-aTLifOX7.mjs} +4 -4
- package/dist/client/{eventRegistration-CD5mRtEH.mjs → eventRegistration-DFd7pr09.mjs} +4 -4
- package/dist/client/{form-DWnlEVSK.mjs → form-Dikmc2AO.mjs} +3 -3
- package/dist/client/{form.client-D7zmeqNI.mjs → form.client-zHaQK5I9.mjs} +5 -5
- package/dist/client/{form.parts-C-G6N_MK.mjs → form.parts-BLl9n8TH.mjs} +3 -3
- package/dist/client/gifting/client.mjs +16 -9
- package/dist/client/{gifting-Cn0jidP5.mjs → gifting-CufPM38H.mjs} +4 -4
- package/dist/client/{gifting.client-DVo1YFLs.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-DjQuj_6v.mjs → headerSection-BIaBpmk3.mjs} +2 -2
- package/dist/client/{noop-jesvJXEE.mjs → islands-DJDLGQEm.mjs} +14007 -6685
- package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs} +6 -6
- package/dist/client/{newsletter-form.interactive-DVt3enLr.mjs → newsletter-form.interactive-hzpkW9NQ.mjs} +226 -195
- package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs} +2 -2
- package/dist/client/{newsletterForm-Cg8cBDHd.mjs → newsletterForm-CvxLiEBT.mjs} +3 -3
- package/dist/client/portal/client.mjs +31 -27
- package/dist/client/{portalOrders-oEoTvzkW.mjs → portalOrders-tCxS04g0.mjs} +3 -2
- package/dist/client/{portalRoutes-ByyVZfVq.mjs → portalRoutes-DTHlWg_F.mjs} +22 -7
- package/dist/client/{product-detail.client-5aHq-vuu.mjs → product-detail.client-22Q7zgjN.mjs} +1 -1
- package/dist/client/{product-list.client-CyAk5rnC.mjs → product-list.client-DFWYvK8z.mjs} +1 -1
- package/dist/client/{productDetail-B8aZ2mqY.mjs → productDetail-DhZAwo60.mjs} +3 -3
- package/dist/client/{productList-BuLemmod.mjs → productList-BiVpbZK2.mjs} +3 -3
- package/dist/client/{propsDecoder-0Unsqn3R.mjs → propsDecoder-DFYqKnLy.mjs} +4 -2
- package/dist/client/{registry.server-DzvtVVD0.mjs → registry.server-C3OBRg7x.mjs} +2027 -781
- 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-Bnng7JFA.mjs → richText-coerce-ms477Z08.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-BGfcc9sk.mjs → routeIslandApiConfig-B6nQeqvH.mjs} +1 -1
- package/dist/client/{runtimeResponse-DAPVRToN.mjs → runtimeResponse-BYqsV1Kb.mjs} +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +3 -0
- package/dist/client/{shop-commerce-D5bDY1o1.mjs → shop-commerce-DVsIcPaI.mjs} +16 -15
- package/dist/client/{shop-commerce-store-B7sHnLwI.mjs → shop-commerce-store-7mO6KY7_.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-Dos2zdC2.mjs → shop-discount-apply.state-L1Vge8tG.mjs} +2 -2
- package/dist/client/{shop-GuMqnDL-.mjs → shop-xt4dQ3HH.mjs} +3 -3
- package/dist/client/{shop.client-uvj5GDZb.mjs → shop.client-DNJfD3VQ.mjs} +28 -17
- package/dist/client/{shopShared-3giNWE3H.mjs → shopShared-DS8t6749.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-CmXh3JWs.mjs → src-Do_s2lqH.mjs} +11 -18
- package/dist/client/{timetableModel-GA-hn1qM.mjs → timetableModel-Dy3nNfTG.mjs} +11 -8
- package/dist/client/{useAvailableSlots-CBneCxbG.mjs → useAvailableSlots-DcjtDpUu.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-D0kGF0C7.mjs → useDiscountCodeUi-DvdFFWOT.mjs} +1 -1
- package/dist/client/{useEventPagination-xX8n_Tuu.mjs → useEventPagination-Cq-7sU5_.mjs} +8 -8
- package/dist/client/{view-DOyZc-DF.mjs → view-4gnPcpWJ.mjs} +24 -9
- package/dist/client/{wizardSteps-B952ify5.mjs → wizardSteps-DDvL3iza.mjs} +76 -159
- 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-BI3UCdpu.mjs → PageSectionToolbar-D8srnz9R.mjs} +445 -18
- package/dist/preview-next/client/{PreviewEditorSidebar-jkfLVOgY.mjs → PreviewEditorSidebar-DVpk5cqp.mjs} +3864 -1943
- package/dist/preview-next/client/{PreviewEditorUI-DwJQs4hM.mjs → PreviewEditorUI-XoTtHSFH.mjs} +11 -36
- package/dist/preview-next/client/{PreviewShell-BAxAkuz8.mjs → PreviewShell-VQHsRg2u.mjs} +40 -35
- package/dist/preview-next/client/{SdkPreviewModeRuntime-0UVB-39f.mjs → SdkPreviewModeRuntime-CLdF9f6o.mjs} +12 -8
- 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-BgiYk3PB.mjs → previewAssistantSlot-CqH91EwA.mjs} +17988 -6757
- package/dist/preview-next/client/{previewChromeRoot-tieNdF3E.mjs → previewChromeRoot-B3ySEu6p.mjs} +3 -90
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DXb_Evl0.mjs → sdk-runtime-CdpSupcr.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-BlN0jt2c.mjs → siteStyleAccess-C6eOP6QW.mjs} +35 -6
- package/dist/preview-next/client/{useAutosaveStatus-BUEPA4oL.mjs → useAutosaveStatus-BhPg4e-r.mjs} +49 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BVfr5P--.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-BHTBA48n.mjs → route-contract-Ch0X99vE.mjs} +163 -17
- package/dist/server/{Block.shared-hGoyEdjJ.mjs → Block.shared-B2FmczLO.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-BfUCTOwj.mjs → ThemeScopeCore-DtAyv9qA.mjs} +17 -7
- package/dist/server/{accessibleSurfaces-Dskni4Xj.mjs → accessibleSurfaces-BtPqb76u.mjs} +418 -31
- package/dist/server/{accordions-By_0Ykks.mjs → accordions-vzdZ2Wt1.mjs} +1 -1
- package/dist/server/{bindings-DMJH4bvo.mjs → bindings-B_9JuU66.mjs} +7 -7
- package/dist/server/{client-DrwlRNAH.mjs → client-DC7cjiSw.mjs} +469 -92
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-CeMywaiD.mjs → constants-d6nPNJpe.mjs} +22 -6
- package/dist/server/{customCss-C9kgPHvr.mjs → customCss-rtIfEYwQ.mjs} +1 -18
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{expandPalette-ehuW8r2g.mjs → expandPalette-DxPrNOAB.mjs} +182 -90
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D0prFflT.mjs → loadContent-hb27HYic.mjs} +11 -10
- package/dist/server/{loadPage-CBLke9pJ.mjs → loadPage-JToD8wDD.mjs} +3 -3
- package/dist/server/{lookMediaFrame-H0fi4bJk.mjs → lookMediaFrame-CTsycLLK.mjs} +94 -39
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-wrcuWmgp.mjs → navigation-B2WhGofA.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +8 -8
- package/dist/server/{overrideResolution-DUgCEH8z.mjs → overrideResolution-vD5KTClL.mjs} +1 -1
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/{pageRenderPlan-BHrmogsW.mjs → pageRenderPlan-CdqJ1NQZ.mjs} +86 -97
- package/dist/server/{pageRuntimeSupport-D2-YMRei.mjs → pageRuntimeSupport-CAhr4oOf.mjs} +3 -3
- package/dist/server/{pageShared-CG8O31Eo.mjs → pageShared-m80Xu2pd.mjs} +429 -247
- package/dist/server/{parseThemeForPersistence-CrPlbJEN.mjs → parseThemeForPersistence-CRwOZfpa.mjs} +3 -3
- package/dist/server/{portal-pG_uhsI2.mjs → portal-B2wCQno_.mjs} +1 -1
- package/dist/server/portal.mjs +2 -2
- package/dist/server/{prebuild-C8Amvzce.mjs → prebuild-BWIkFaXq.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BxUETRIZ.mjs → prefetchBlockData-D1PHU-K9.mjs} +3 -3
- package/dist/server/{registry-Cc88-23f.mjs → registry-KtsOsAzY.mjs} +20113 -9774
- 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-OG3KOkig.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-BcFuhhD7.mjs → servicePageContent-ChEZDRwU.mjs} +37 -14
- package/dist/server/theme-bridge.mjs +3 -3
- 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-BovmbS8N.mjs → validation-Cvi-1TZZ.mjs} +13 -9
- package/dist/server/{version-hws4hgyX.mjs → version-B-icAIV1.mjs} +1 -1
- package/dist/server/{video-Cdr3wh-q.mjs → video-DBaeSawZ.mjs} +1 -1
- package/dist/styles/index.css +2482 -108
- package/package.json +1 -1
- package/dist/client/gifting.parts-Bak93gD2.mjs +0 -86
- package/dist/client/runtimeResponse-nXT8VAMl.mjs +0 -3
- package/dist/client/types-BEaKfam_.mjs +0 -778
package/dist/client/{newsletter-form.client-rIYPziZC.mjs → newsletter-form.client-wg_JHTxm.mjs}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { t as assertNever } from "./src-
|
|
2
|
+
import { An as parseMailingListVisitorSelection, r as newsletterBlockSubmissionMessage, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE } from "./newsletter-form.interactive-hzpkW9NQ.mjs";
|
|
3
|
+
import { t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
4
4
|
import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
6
|
-
import {
|
|
7
|
-
import { x as clsx } from "./ThemedButton-
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-D1L0pe__.mjs";
|
|
6
|
+
import { d as listLookSlot } from "./islands-DJDLGQEm.mjs";
|
|
7
|
+
import { x as clsx } from "./ThemedButton-Bc9DBbVp.mjs";
|
|
8
8
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
9
|
-
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
9
|
+
import { a as partitionNewsletterFields, i as TOPIC_CHOICE_FIELD_ID, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-CgzpSv9p.mjs";
|
|
10
10
|
import { t as MAILING_LIST_CONFIRMATION_MESSAGE } from "./mailingListSignupCopy-CX4sDozG.mjs";
|
|
11
11
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
12
12
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
|
@@ -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 { $a as weekStartSchema, $
|
|
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";
|
|
@@ -1396,7 +1396,10 @@ function CardListAction({ item, presentation }) {
|
|
|
1396
1396
|
const link = cardListActionLink(action);
|
|
1397
1397
|
return /* @__PURE__ */ jsx("div", {
|
|
1398
1398
|
...listLookSlot(presentation, "item-actions"),
|
|
1399
|
-
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", {
|
|
1400
1403
|
...link,
|
|
1401
1404
|
className: "rb-item-text-link",
|
|
1402
1405
|
children: /* @__PURE__ */ jsx(LinkedLabel, {
|
|
@@ -2573,6 +2576,142 @@ const passCardDisplaySchema = z.object({
|
|
|
2573
2576
|
})])
|
|
2574
2577
|
});
|
|
2575
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
|
|
2576
2715
|
//#region ../blocks/src/system/runtime/nodes/shop.interactive.ts
|
|
2577
2716
|
const shopModeSchema = z.enum([
|
|
2578
2717
|
"passes-memberships",
|
|
@@ -2833,7 +2972,7 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2833
2972
|
},
|
|
2834
2973
|
buildRender: (source) => {
|
|
2835
2974
|
const subscribeButtonText = source.subscribeButtonText ?? "Subscribe";
|
|
2836
|
-
const products =
|
|
2975
|
+
const products = shopDisplayedCatalogue(source);
|
|
2837
2976
|
const dateContext = source.dateContext ?? resolveDateRuntimeContext(void 0);
|
|
2838
2977
|
return {
|
|
2839
2978
|
display: buildPassesMembershipsDisplay({
|
|
@@ -2841,7 +2980,6 @@ const shopBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2841
2980
|
className: source.className,
|
|
2842
2981
|
layout: source.layout,
|
|
2843
2982
|
columns: source.columns,
|
|
2844
|
-
emptyMessage: source.emptyStateText,
|
|
2845
2983
|
passesHeading: source.passesHeading,
|
|
2846
2984
|
membershipsHeading: source.membershipsHeading,
|
|
2847
2985
|
passActionLabel: resolvePassBuyButtonText(source.buyButtonText),
|
|
@@ -2873,24 +3011,27 @@ const productListBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2873
3011
|
source: createZodCodec(shopSourceSchema),
|
|
2874
3012
|
render: createZodCodec(productListRenderSchema)
|
|
2875
3013
|
},
|
|
2876
|
-
buildRender: (source) =>
|
|
2877
|
-
|
|
2878
|
-
|
|
2879
|
-
|
|
2880
|
-
|
|
2881
|
-
|
|
2882
|
-
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
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
|
+
}
|
|
2894
3035
|
});
|
|
2895
3036
|
const productDetailBlockRuntime = defineProgressiveBlockRuntime({
|
|
2896
3037
|
kind: "progressive",
|
|
@@ -2904,20 +3045,22 @@ const productDetailBlockRuntime = defineProgressiveBlockRuntime({
|
|
|
2904
3045
|
contentEntry: source.contentEntry ?? null,
|
|
2905
3046
|
productSlug: source.productSlug ?? null
|
|
2906
3047
|
});
|
|
3048
|
+
const addButtonText = ourWordingIfEmpty(source.addButtonText, "Add to cart");
|
|
2907
3049
|
return {
|
|
2908
3050
|
display: buildProductDetailDisplay(product, {
|
|
2909
3051
|
heading: source.heading,
|
|
2910
3052
|
className: source.className,
|
|
2911
3053
|
emptyMessage: source.emptyStateText,
|
|
2912
3054
|
showSummary: source.showSummary !== false,
|
|
2913
|
-
|
|
3055
|
+
showBody: source.showBody !== false,
|
|
3056
|
+
addButtonText
|
|
2914
3057
|
}),
|
|
2915
3058
|
hydration: {
|
|
2916
3059
|
products: source.products ?? [],
|
|
2917
3060
|
productId: product?.id ?? null,
|
|
2918
3061
|
showSummary: source.showSummary !== false,
|
|
2919
3062
|
showBody: source.showBody !== false,
|
|
2920
|
-
addButtonText
|
|
3063
|
+
addButtonText
|
|
2921
3064
|
}
|
|
2922
3065
|
};
|
|
2923
3066
|
}
|
|
@@ -2928,21 +3071,24 @@ const cartBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
2928
3071
|
source: createZodCodec(shopSourceSchema),
|
|
2929
3072
|
render: createZodCodec(cartRenderSchema)
|
|
2930
3073
|
},
|
|
2931
|
-
buildRender: (source) =>
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
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
|
+
}
|
|
2946
3092
|
});
|
|
2947
3093
|
const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
2948
3094
|
kind: "client-owned",
|
|
@@ -2950,20 +3096,24 @@ const checkoutBlockRuntime = defineClientOwnedBlockRuntime({
|
|
|
2950
3096
|
source: createZodCodec(shopSourceSchema),
|
|
2951
3097
|
render: createZodCodec(checkoutRenderSchema)
|
|
2952
3098
|
},
|
|
2953
|
-
buildRender: (source) =>
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2966
|
-
|
|
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
|
+
}
|
|
2967
3117
|
});
|
|
2968
3118
|
const shopInteractiveIslandPropsCodec = createInteractiveIslandCodec({
|
|
2969
3119
|
runtime: shopBlockRuntime,
|
|
@@ -3084,6 +3234,10 @@ const DEFAULT_PASS_BUY_BUTTON_TEXT = "Buy pass";
|
|
|
3084
3234
|
function resolvePassBuyButtonText(buyButtonText) {
|
|
3085
3235
|
return buyButtonText?.trim() ? buyButtonText : DEFAULT_PASS_BUY_BUTTON_TEXT;
|
|
3086
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
|
+
}
|
|
3087
3241
|
function getShopDisplayForItems(render, items) {
|
|
3088
3242
|
if (render.mode === "cart") return buildCartDisplay(items, {
|
|
3089
3243
|
heading: render.display.heading,
|
|
@@ -3105,9 +3259,11 @@ function shopCardListPresentation(source) {
|
|
|
3105
3259
|
[key]: source[key]
|
|
3106
3260
|
}), {});
|
|
3107
3261
|
}
|
|
3108
|
-
function
|
|
3109
|
-
const passes
|
|
3110
|
-
|
|
3262
|
+
function shopDisplayedCatalogue(source) {
|
|
3263
|
+
const { passes, memberships } = shownShopProducts(storedShopShow(source), {
|
|
3264
|
+
passes: source.passes,
|
|
3265
|
+
memberships: source.memberships
|
|
3266
|
+
});
|
|
3111
3267
|
return {
|
|
3112
3268
|
passes,
|
|
3113
3269
|
memberships,
|
|
@@ -3127,136 +3283,6 @@ function shopProductPresentation(hydration, productId, index, count) {
|
|
|
3127
3283
|
};
|
|
3128
3284
|
}
|
|
3129
3285
|
//#endregion
|
|
3130
|
-
//#region ../blocks/src/system/runtime/nodes/gifting.interactive.ts
|
|
3131
|
-
const publicGiftCardOfferSchema = z.object({
|
|
3132
|
-
id: z.string(),
|
|
3133
|
-
kind: z.literal("gift_card"),
|
|
3134
|
-
title: z.string(),
|
|
3135
|
-
description: z.string().nullable(),
|
|
3136
|
-
sortOrder: z.number().int(),
|
|
3137
|
-
giftCard: z.object({
|
|
3138
|
-
fixedDenominations: z.array(z.number().int().positive()),
|
|
3139
|
-
customAmountEnabled: z.boolean(),
|
|
3140
|
-
customAmountMinCents: z.number().int().positive(),
|
|
3141
|
-
customAmountMaxCents: z.number().int().positive()
|
|
3142
|
-
}),
|
|
3143
|
-
voucher: z.null()
|
|
3144
|
-
});
|
|
3145
|
-
const publicVoucherOfferSchema = z.object({
|
|
3146
|
-
id: z.string(),
|
|
3147
|
-
kind: z.literal("voucher"),
|
|
3148
|
-
title: z.string(),
|
|
3149
|
-
description: z.string().nullable(),
|
|
3150
|
-
sortOrder: z.number().int(),
|
|
3151
|
-
giftCard: z.null(),
|
|
3152
|
-
voucher: z.object({ purchaseAmountCents: z.number().int().positive() })
|
|
3153
|
-
});
|
|
3154
|
-
const publicGiftingOffersResponseSchema = z.object({
|
|
3155
|
-
currency: z.string(),
|
|
3156
|
-
giftCards: z.array(publicGiftCardOfferSchema),
|
|
3157
|
-
vouchers: z.array(publicVoucherOfferSchema)
|
|
3158
|
-
});
|
|
3159
|
-
const giftingSourceSchema = z.object({
|
|
3160
|
-
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
3161
|
-
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation,
|
|
3162
|
-
siteTerms: blockSiteTermsSchema.optional(),
|
|
3163
|
-
siteId: z.string().optional(),
|
|
3164
|
-
apiBaseUrl: z.string().optional(),
|
|
3165
|
-
offers: publicGiftingOffersResponseSchema.nullable().optional(),
|
|
3166
|
-
className: z.string().nullable().optional(),
|
|
3167
|
-
heading: z.string().nullable().optional(),
|
|
3168
|
-
intro: z.string().nullable().optional(),
|
|
3169
|
-
giftCardsHeading: z.string().nullable().optional(),
|
|
3170
|
-
vouchersHeading: z.string().nullable().optional(),
|
|
3171
|
-
emptyStateText: z.string().nullable().optional(),
|
|
3172
|
-
checkoutButtonText: z.string().nullable().optional(),
|
|
3173
|
-
successMessage: z.string().nullable().optional()
|
|
3174
|
-
});
|
|
3175
|
-
const giftingDisplaySchema = z.object({
|
|
3176
|
-
lookSlots: lookListPresentationSchemaShape.lookSlots,
|
|
3177
|
-
surfacePresentation: lookListPresentationSchemaShape.surfacePresentation,
|
|
3178
|
-
kind: z.literal("gifting"),
|
|
3179
|
-
state: z.literal("ready"),
|
|
3180
|
-
className: z.string().nullable(),
|
|
3181
|
-
heading: z.string(),
|
|
3182
|
-
intro: z.string().nullable(),
|
|
3183
|
-
giftCardsHeading: z.string(),
|
|
3184
|
-
vouchersHeading: z.string(),
|
|
3185
|
-
emptyStateText: z.string()
|
|
3186
|
-
});
|
|
3187
|
-
const giftingHydrationSchema = z.object({
|
|
3188
|
-
siteTerms: blockSiteTermsSchema.optional(),
|
|
3189
|
-
offers: publicGiftingOffersResponseSchema.nullable(),
|
|
3190
|
-
checkoutButtonText: z.string(),
|
|
3191
|
-
successMessage: z.string()
|
|
3192
|
-
});
|
|
3193
|
-
const giftingRenderSchema = z.object({
|
|
3194
|
-
display: giftingDisplaySchema,
|
|
3195
|
-
hydration: giftingHydrationSchema
|
|
3196
|
-
});
|
|
3197
|
-
const giftingIslandMetaCodec = createZodCodec(z.object({
|
|
3198
|
-
siteId: z.string().optional(),
|
|
3199
|
-
apiBaseUrl: z.string().optional()
|
|
3200
|
-
}));
|
|
3201
|
-
const giftingIslandMetaKeys = defineInteractiveIslandMetaKeys("siteId", "apiBaseUrl");
|
|
3202
|
-
/** The Look's slot hooks and surfaces, carried only when the block has a Look. */
|
|
3203
|
-
function giftingLookPresentation({ lookSlots, surfacePresentation }) {
|
|
3204
|
-
return {
|
|
3205
|
-
...lookSlots ? { lookSlots } : {},
|
|
3206
|
-
...surfacePresentation ? { surfacePresentation } : {}
|
|
3207
|
-
};
|
|
3208
|
-
}
|
|
3209
|
-
function buildGiftingDisplay(source) {
|
|
3210
|
-
return {
|
|
3211
|
-
kind: "gifting",
|
|
3212
|
-
...giftingLookPresentation(source),
|
|
3213
|
-
state: "ready",
|
|
3214
|
-
className: source.className ?? null,
|
|
3215
|
-
heading: source.heading?.trim() || "Gift cards & vouchers",
|
|
3216
|
-
intro: source.intro?.trim() || null,
|
|
3217
|
-
giftCardsHeading: source.giftCardsHeading?.trim() || "Gift cards",
|
|
3218
|
-
vouchersHeading: source.vouchersHeading?.trim() || "Vouchers",
|
|
3219
|
-
emptyStateText: source.emptyStateText?.trim() || "Nothing is available right now."
|
|
3220
|
-
};
|
|
3221
|
-
}
|
|
3222
|
-
const giftingBlockRuntime = defineClientOwnedBlockRuntime({
|
|
3223
|
-
kind: "client-owned",
|
|
3224
|
-
contracts: {
|
|
3225
|
-
source: createZodCodec(giftingSourceSchema),
|
|
3226
|
-
render: createZodCodec(giftingRenderSchema)
|
|
3227
|
-
},
|
|
3228
|
-
buildRender: (source) => ({
|
|
3229
|
-
display: buildGiftingDisplay(source),
|
|
3230
|
-
hydration: {
|
|
3231
|
-
siteTerms: source.siteTerms,
|
|
3232
|
-
offers: source.offers ?? null,
|
|
3233
|
-
checkoutButtonText: source.checkoutButtonText?.trim() || "Continue",
|
|
3234
|
-
successMessage: source.successMessage?.trim() || "Thanks. Your purchase is complete and your gift will be sent shortly."
|
|
3235
|
-
}
|
|
3236
|
-
})
|
|
3237
|
-
});
|
|
3238
|
-
const giftingInteractiveIslandPropsCodec = createInteractiveIslandCodec({
|
|
3239
|
-
runtime: giftingBlockRuntime,
|
|
3240
|
-
mode: "gifting",
|
|
3241
|
-
meta: giftingIslandMetaCodec,
|
|
3242
|
-
metaKeys: giftingIslandMetaKeys,
|
|
3243
|
-
selectMeta: (value) => ({
|
|
3244
|
-
siteId: value.siteId,
|
|
3245
|
-
apiBaseUrl: value.apiBaseUrl
|
|
3246
|
-
})
|
|
3247
|
-
});
|
|
3248
|
-
function buildGiftingInteractiveIslandProps(props) {
|
|
3249
|
-
return buildInteractiveIslandProps({
|
|
3250
|
-
runtime: giftingBlockRuntime,
|
|
3251
|
-
mode: "gifting",
|
|
3252
|
-
meta: {
|
|
3253
|
-
siteId: props.siteId,
|
|
3254
|
-
apiBaseUrl: props.apiBaseUrl
|
|
3255
|
-
},
|
|
3256
|
-
source: props
|
|
3257
|
-
});
|
|
3258
|
-
}
|
|
3259
|
-
//#endregion
|
|
3260
3286
|
//#region ../blocks/src/system/blocks/event-registration.shared.ts
|
|
3261
3287
|
/**
|
|
3262
3288
|
* Flat occurrence context passed from `PageRenderer.$root.occurrenceContext`.
|
|
@@ -4058,9 +4084,15 @@ const formFieldSchema = z.object({
|
|
|
4058
4084
|
min: z.number().optional(),
|
|
4059
4085
|
max: z.number().optional()
|
|
4060
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);
|
|
4061
4092
|
const formRecordSchema = z.object({
|
|
4062
4093
|
id: z.string(),
|
|
4063
|
-
schemaJson: z.object({ fields: z.array(formFieldSchema).optional() }).optional()
|
|
4094
|
+
schemaJson: z.object({ fields: z.array(formFieldSchema).optional() }).optional(),
|
|
4095
|
+
settingsJson: formOwnWordingSchema
|
|
4064
4096
|
});
|
|
4065
4097
|
const formFieldGroupSchema = z.discriminatedUnion("type", [z.object({
|
|
4066
4098
|
type: z.literal("single"),
|
|
@@ -4111,8 +4143,8 @@ function buildFormDisplay(source) {
|
|
|
4111
4143
|
state: fields.state,
|
|
4112
4144
|
className: source.className ?? null,
|
|
4113
4145
|
formId: fields.formId,
|
|
4114
|
-
submitLabel: source.submitLabel?.trim() || "Submit",
|
|
4115
|
-
successMessage: source.successMessage
|
|
4146
|
+
submitLabel: source.submitLabel?.trim() || form?.settingsJson?.submitLabel?.trim() || "Submit",
|
|
4147
|
+
successMessage: source.successMessage?.trim() || form?.settingsJson?.successMessage?.trim() || null,
|
|
4116
4148
|
form,
|
|
4117
4149
|
groups: fields.groups
|
|
4118
4150
|
};
|
|
@@ -4391,8 +4423,7 @@ function combinedCalendarPresentation(source, listLayout) {
|
|
|
4391
4423
|
...combinedLook.list,
|
|
4392
4424
|
combinedLook,
|
|
4393
4425
|
listLayout: combinedLook.list.arrangement,
|
|
4394
|
-
|
|
4395
|
-
defaultCalendarView: "month"
|
|
4426
|
+
...eventCalendarLookViews
|
|
4396
4427
|
} : { listLayout };
|
|
4397
4428
|
}
|
|
4398
4429
|
//#endregion
|
|
@@ -4934,4 +4965,4 @@ function newsletterPrivacyNote(source, privacyNote) {
|
|
|
4934
4965
|
return source !== "signed-hosted-booking" || /unsubscribe/i.test(privacyNote ?? "") ? privacyNote : [privacyNote, DEFAULT_MAILING_LIST_PRIVACY_NOTE].filter(Boolean).join(" ");
|
|
4935
4966
|
}
|
|
4936
4967
|
//#endregion
|
|
4937
|
-
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 };
|
package/dist/client/{newsletter-form.parts-CH6dGfdn.mjs → newsletter-form.parts-CgzpSv9p.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { d as listLookSlot } from "./islands-DJDLGQEm.mjs";
|
|
3
3
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
4
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
4
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-BG7my0Qf.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/newsletter-form.parts.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as NewsletterFormClient } from "./newsletter-form.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-D1L0pe__.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DFYqKnLy.mjs";
|
|
4
|
+
import { t as NewsletterFormClient } from "./newsletter-form.client-wg_JHTxm.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import { n as snapshotForm, t as restoreForm } from "./formSnapshot-Cy4abc0T.mjs";
|
|
7
7
|
import "react";
|