@riverbankcms/sdk 0.183.0 → 0.184.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/README.md +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
- package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.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 +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- 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 +10 -2
- 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 +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +15 -7
- package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
- package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
- package/dist/client/bookings.mjs +4 -4
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
- package/dist/client/client.mjs +23 -35
- package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
- package/dist/client/portal/client.mjs +27 -15
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
- package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +150 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
- package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
- 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-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
- package/dist/styles/index.css +495 -50
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, Tn as formatEventPriceDisplay, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-
|
|
2
|
+
import { A as bookingPanelHeading, D as bookingCardEntry, E as bookingBarPlacement, M as cancelledDateCopy, N as hasCancelledRegistrationDate, O as bookingEntry, T as DEFAULT_BOOKING_BUTTON_TEXT, Tn as formatEventPriceDisplay, b as displayButtonText, j as courseTitleOf, k as bookingEntryProgress, v as buildEventRegistrationDisplayFromScopedEvents, w as offeringNounForEvent, y as buildEventRegistrationInteractiveIslandProps } from "./newsletter-form.interactive-D0iRg7p2.mjs";
|
|
3
3
|
import { An as formatCurrencyAmount, t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
4
|
-
import { An as selectionConfirmationHint, Ao as isEventFull, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as canJoinEventWaitlistOnAnyMode, Dn as runPricingChoice, Do as getEventAvailability, Dr as getTicketSelectionTotal, Ea as formatPrice, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Fn as selectionItemsLabel, In as selectionPlacesLabel, Is as INCOMPATIBLE_ATTENDANCE_MESSAGE, It as ADD_A_PLACE, Jt as confirmationPaymentRows, K as registrationStopsHere, Kn as combinationOfferLine, Ln as selectionPlacesNote, Mn as selectionEntitlementNote, Mo as selectMostOpenCapacitySource, Nn as selectionIncludes, On as runUnitPriceCents, Or as getTicketTypeLineMax, Rn as selectionRowAvailability, Rs as setRoomChoicePeople, So as canJoinEventWaitlist, Ta as formatCentsAsCurrencyInput, Tn as runChoiceUsable, U as placeCountCeiling, Ur as shownVenue, V as fullyBookedLabel, Vi as getRegistrationSuccessCopy, Y as resolveRegistrationAvailabilityBlocker, Yt as resolveFinishedPresentation, Z as settledRemainingPlaces, Zn as selectionItemName, _n as SEVERAL_BOOKINGS_ACCOUNT_NOTE, ar as formatRunScheduleLines,
|
|
5
|
-
import { i as portalPath } from "./portalRoutes-
|
|
6
|
-
import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
7
|
-
import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-
|
|
8
|
-
import { n as useBlockApi } from "./context-
|
|
9
|
-
import {
|
|
10
|
-
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-
|
|
11
|
-
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-
|
|
12
|
-
import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
4
|
+
import { An as selectionConfirmationHint, Ao as isEventFull, B as closedAdmissionLabel, Bn as severalConfirmationSentence, Br as placesLeftLabel, Co as canJoinEventWaitlistOnAnyMode, Dn as runPricingChoice, Do as getEventAvailability, Dr as getTicketSelectionTotal, Ea as formatPrice, En as runNeedsPricingChoice, Er as getTicketLineQuantity, Fn as selectionItemsLabel, In as selectionPlacesLabel, Is as INCOMPATIBLE_ATTENDANCE_MESSAGE, It as ADD_A_PLACE, Jt as confirmationPaymentRows, K as registrationStopsHere, Kn as combinationOfferLine, Ln as selectionPlacesNote, Mn as selectionEntitlementNote, Mo as selectMostOpenCapacitySource, Nn as selectionIncludes, On as runUnitPriceCents, Or as getTicketTypeLineMax, Rn as selectionRowAvailability, Rs as setRoomChoicePeople, Sc as publicEventPricingType, So as canJoinEventWaitlist, Ta as formatCentsAsCurrencyInput, Tn as runChoiceUsable, U as placeCountCeiling, Ur as shownVenue, V as fullyBookedLabel, Vi as getRegistrationSuccessCopy, Vs as eventRegistrationErrors, Y as resolveRegistrationAvailabilityBlocker, Yt as resolveFinishedPresentation, Z as settledRemainingPlaces, Zn as selectionItemName, _n as SEVERAL_BOOKINGS_ACCOUNT_NOTE, ar as formatRunScheduleLines, bi as resolveEventRegistrationScopedEvents, c as registrationStepLabelContext, dr as occurrenceTitleOverride, dt as paymentChoiceDetails, et as isEventRegistrationAvailable, ft as paymentChoicePrice, gn as SELECTION_LIMIT_NOTE, ir as formatRegistrationSchedule, jn as selectionConsentLabel, jo as selectEventCapacitySource, jr as setTicketLineQuantity, kn as selectionAtLimit, ko as getRemainingPlaces, l as areEventRegistrationPaymentSelectionsEqual, lo as bookingPresentation, lr as getTicketTypeAvailabilityLabel, n as getEventSelectionMode, nr as formatDate, or as formatTime, pr as withOccurrenceTitle, qn as combinationOffersOf, r as panelShouldOpen, rr as formatEventDateTime, s as registrationStepLabel, tr as formatBookingWhen, tt as normalizeEventRegistrationMaxTickets, ur as getVisibleTicketTypes, wr as canRequestTicketOption, xc as publicEventPricingStrategy, yc as publicEventPricingCurrency, yn as canToggleSelectionItem, yt as entryChoosesEvent, z as shouldPromptForLogin, zs as defaultEventRegistrationErrorAppearance } from "./wizardSteps-B3gsXNnb.mjs";
|
|
5
|
+
import { i as portalPath } from "./portalRoutes-DiGibcZI.mjs";
|
|
6
|
+
import { n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BDVP_HeK.mjs";
|
|
7
|
+
import { a as ONE_DATE_FUNDING_LOAD_FAILED, c as planEventRegistrationSurface, i as summaryExplainsMoreThanTheOption, l as registrationAdmissionSurface, o as SELECTION_FUNDING_LOAD_FAILED, r as useEventRegistrationWizard, s as useEventRegistrationRecoveryRequest, t as EventPaymentMount, u as resolveEventRegistrationClientSurface } from "./EventRegistrationPayment-Dth9L00x.mjs";
|
|
8
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
9
|
+
import { D as SpinnerNode, n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
10
|
+
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-DXV4KR7l.mjs";
|
|
11
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, n as BookingEntryBar, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-DRyZ8igu.mjs";
|
|
12
|
+
import { m as DiscountCodeDisclosure, p as NavigationHandOffPanel, t as BookingConfirmation } from "./DemoBookingPortalAccess-pzkGVkgG.mjs";
|
|
13
13
|
import { t as createBodyThemePortalRoot } from "./themePortalRoot-DeP49PT8.mjs";
|
|
14
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
14
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-CTMIII37.mjs";
|
|
15
15
|
import { t as CrossIcon } from "./CrossIcon-CpG9VRyW.mjs";
|
|
16
16
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
17
17
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
18
|
-
import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
19
|
-
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-
|
|
18
|
+
import { a as MagicLinkForm, n as OrganiserContactLine, o as BookingConsentAgreement, p as PaymentChoiceRows, r as BookingQuestionSections, t as BookingMailingListNote } from "./BookingMailingListNote-C4LcfwyA.mjs";
|
|
19
|
+
import { n as TerminalPanel, r as StateIcon } from "./useDiscountCodeUi-B_hfgdAP.mjs";
|
|
20
20
|
import { t as ModalShell } from "./ModalShell-B_fHWK71.mjs";
|
|
21
21
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
22
|
-
import { t as CalendarAction } from "./CalendarAction-
|
|
22
|
+
import { t as CalendarAction } from "./CalendarAction-DYGewmvh.mjs";
|
|
23
23
|
import React, { useCallback, useEffect, useId, useLayoutEffect, useRef, useState } from "react";
|
|
24
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
import { createPortal } from "react-dom";
|
|
@@ -1216,7 +1216,7 @@ function RoomChooserSummary(props) {
|
|
|
1216
1216
|
/**
|
|
1217
1217
|
* Error Step
|
|
1218
1218
|
*
|
|
1219
|
-
* Displays
|
|
1219
|
+
* Displays the catalogue’s refusal and the next step available to the booker.
|
|
1220
1220
|
*/
|
|
1221
1221
|
const labels = {
|
|
1222
1222
|
none: "",
|
|
@@ -1228,21 +1228,39 @@ const labels = {
|
|
|
1228
1228
|
portal: "View my bookings",
|
|
1229
1229
|
event: "View event"
|
|
1230
1230
|
};
|
|
1231
|
-
const ErrorStep = ({ message, onRetry, action = "retry", canJoinWaitlist = false }) => {
|
|
1231
|
+
const ErrorStep = ({ message, heading = defaultEventRegistrationErrorAppearance.heading, tone = defaultEventRegistrationErrorAppearance.tone, organiserContact, onRetry, action = "retry", canJoinWaitlist = false }) => {
|
|
1232
1232
|
const offerWaitlist = action === "places" && canJoinWaitlist;
|
|
1233
1233
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
1234
|
-
tone
|
|
1234
|
+
tone,
|
|
1235
1235
|
className: "er-center",
|
|
1236
1236
|
titleClassName: "er-title--lg er-message",
|
|
1237
1237
|
icon: /* @__PURE__ */ jsx(StateIcon, {
|
|
1238
|
-
variant:
|
|
1239
|
-
children: /* @__PURE__ */ jsx(CrossIcon, {})
|
|
1238
|
+
variant: tone,
|
|
1239
|
+
children: tone === "error" ? /* @__PURE__ */ jsx(CrossIcon, {}) : /* @__PURE__ */ jsx("svg", {
|
|
1240
|
+
fill: "none",
|
|
1241
|
+
stroke: "currentColor",
|
|
1242
|
+
viewBox: "0 0 24 24",
|
|
1243
|
+
"aria-hidden": "true",
|
|
1244
|
+
children: tone === "info" ? /* @__PURE__ */ jsx("path", {
|
|
1245
|
+
strokeLinecap: "round",
|
|
1246
|
+
strokeLinejoin: "round",
|
|
1247
|
+
strokeWidth: 2,
|
|
1248
|
+
d: "M12 8h.01M11 12h1v4h1"
|
|
1249
|
+
}) : /* @__PURE__ */ jsx("path", {
|
|
1250
|
+
strokeLinecap: "round",
|
|
1251
|
+
strokeLinejoin: "round",
|
|
1252
|
+
strokeWidth: 2,
|
|
1253
|
+
d: "M12 8v4m0 4h.01"
|
|
1254
|
+
})
|
|
1255
|
+
})
|
|
1240
1256
|
}),
|
|
1241
|
-
title:
|
|
1257
|
+
title: heading,
|
|
1242
1258
|
body: /* @__PURE__ */ jsx("p", {
|
|
1243
1259
|
className: "er-text--muted er-message",
|
|
1244
1260
|
children: offerWaitlist ? "Sorry, this event is now full. You can join the waiting list, and we’ll email you if a place becomes available." : message
|
|
1245
1261
|
}),
|
|
1262
|
+
secondaryBody: organiserContact && (organiserContact.email || organiserContact.phone) ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact: organiserContact }) : void 0,
|
|
1263
|
+
secondaryBodyClassName: action === "none" ? void 0 : "er-terminal-help",
|
|
1246
1264
|
actions: action === "none" ? void 0 : action === "portal" ? /* @__PURE__ */ jsx("a", {
|
|
1247
1265
|
href: portalPath({ page: "bookings" }),
|
|
1248
1266
|
className: "er-retry-btn",
|
|
@@ -3699,7 +3717,7 @@ const VerifyingPaymentStep = () => {
|
|
|
3699
3717
|
* Displays when the payment was definitively declined/failed.
|
|
3700
3718
|
* Provides a retry option that returns to payment selection with form state preserved.
|
|
3701
3719
|
*/
|
|
3702
|
-
const PaymentFailedStep = ({ onRetry }) => {
|
|
3720
|
+
const PaymentFailedStep = ({ onRetry, organiserContact }) => {
|
|
3703
3721
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
3704
3722
|
tone: "error",
|
|
3705
3723
|
className: "er-center",
|
|
@@ -3709,10 +3727,10 @@ const PaymentFailedStep = ({ onRetry }) => {
|
|
|
3709
3727
|
children: /* @__PURE__ */ jsx(CrossIcon, {})
|
|
3710
3728
|
}),
|
|
3711
3729
|
title: "Your payment didn’t go through",
|
|
3712
|
-
body: /* @__PURE__ */ jsx("p", {
|
|
3730
|
+
body: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
|
|
3713
3731
|
className: "er-text--muted er-message",
|
|
3714
3732
|
children: "Please try again or choose another payment option. If this keeps happening, contact the organiser for help."
|
|
3715
|
-
}),
|
|
3733
|
+
}), organiserContact && (organiserContact.email || organiserContact.phone) ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact: organiserContact }) : null] }),
|
|
3716
3734
|
actions: /* @__PURE__ */ jsx("button", {
|
|
3717
3735
|
type: "button",
|
|
3718
3736
|
onClick: onRetry,
|
|
@@ -3734,7 +3752,7 @@ const PaymentFailedStep = ({ onRetry }) => {
|
|
|
3734
3752
|
* - "Check Again" button to restart polling
|
|
3735
3753
|
* - Contact support option for user reassurance
|
|
3736
3754
|
*/
|
|
3737
|
-
const VerifyingTimeoutStep = ({ onCheckAgain, supportEmail, title = "We’re checking your payment", buttonVariant = "primary", message = "Your booking is not confirmed yet. Please don’t make another booking while we check. You can check your payment status again in a moment." }) => {
|
|
3755
|
+
const VerifyingTimeoutStep = ({ onCheckAgain, organiserContact, supportEmail, title = "We’re checking your payment", buttonVariant = "primary", message = "Your booking is not confirmed yet. Please don’t make another booking while we check. You can check your payment status again in a moment." }) => {
|
|
3738
3756
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
3739
3757
|
tone: "warning",
|
|
3740
3758
|
className: "er-center",
|
|
@@ -3744,10 +3762,10 @@ const VerifyingTimeoutStep = ({ onCheckAgain, supportEmail, title = "We’re che
|
|
|
3744
3762
|
children: /* @__PURE__ */ jsx(ClockIcon, {})
|
|
3745
3763
|
}),
|
|
3746
3764
|
title,
|
|
3747
|
-
body: /* @__PURE__ */ jsx("p", {
|
|
3765
|
+
body: /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
|
|
3748
3766
|
className: "er-text--muted er-message",
|
|
3749
|
-
children: onCheckAgain ? message :
|
|
3750
|
-
}),
|
|
3767
|
+
children: onCheckAgain ? message : eventRegistrationErrors.paymentInvestigationRequired.message
|
|
3768
|
+
}), organiserContact && (organiserContact.email || organiserContact.phone) ? /* @__PURE__ */ jsx(OrganiserContactLine, { contact: organiserContact }) : null] }),
|
|
3751
3769
|
actions: onCheckAgain ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
3752
3770
|
type: "button",
|
|
3753
3771
|
variant: buttonVariant,
|
|
@@ -3755,7 +3773,7 @@ const VerifyingTimeoutStep = ({ onCheckAgain, supportEmail, title = "We’re che
|
|
|
3755
3773
|
onClick: onCheckAgain,
|
|
3756
3774
|
label: "Check payment status"
|
|
3757
3775
|
}) : void 0,
|
|
3758
|
-
secondaryBody: supportEmail ? /* @__PURE__ */ jsxs("p", {
|
|
3776
|
+
secondaryBody: !organiserContact && supportEmail ? /* @__PURE__ */ jsxs("p", {
|
|
3759
3777
|
className: "er-text er-text--muted er-message",
|
|
3760
3778
|
children: [
|
|
3761
3779
|
"If you were charged but don't receive a confirmation email, please",
|
|
@@ -4351,6 +4369,7 @@ function EventRegistrationWholeScreen(props) {
|
|
|
4351
4369
|
buttonVariant: props.buttonVariant
|
|
4352
4370
|
});
|
|
4353
4371
|
case "paymentFailed": return /* @__PURE__ */ jsx(PaymentFailedStep, {
|
|
4372
|
+
organiserContact: wizard.organiserContact,
|
|
4354
4373
|
message: wizard.errorMessage,
|
|
4355
4374
|
onRetry: () => wizard.setStep("select-payment")
|
|
4356
4375
|
});
|
|
@@ -4552,6 +4571,7 @@ function RegistrationProcessing({ selection, takesPayment }) {
|
|
|
4552
4571
|
function RegistrationVerificationTimeout({ wizard, supportEmail, buttonVariant }) {
|
|
4553
4572
|
const timedOut = wizard.verification.status === "timeout";
|
|
4554
4573
|
return /* @__PURE__ */ jsx(VerifyingTimeoutStep, {
|
|
4574
|
+
organiserContact: wizard.organiserContact,
|
|
4555
4575
|
onCheckAgain: timedOut ? wizard.verification.retry : wizard.verification.retryReturn,
|
|
4556
4576
|
title: timedOut ? void 0 : "We’re checking your payment",
|
|
4557
4577
|
message: timedOut ? void 0 : wizard.errorMessage,
|
|
@@ -4573,6 +4593,9 @@ function RegistrationError({ wizard }) {
|
|
|
4573
4593
|
const admission = wizard.admission;
|
|
4574
4594
|
return /* @__PURE__ */ jsx(ErrorStep, {
|
|
4575
4595
|
message: wizard.errorMessage,
|
|
4596
|
+
heading: wizard.errorHeading,
|
|
4597
|
+
tone: wizard.errorTone,
|
|
4598
|
+
organiserContact: wizard.organiserContact,
|
|
4576
4599
|
action: wizard.errorAction,
|
|
4577
4600
|
canJoinWaitlist: admission.kind === "waitlist",
|
|
4578
4601
|
onRetry: wizard.handleRetry
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventCalendarClient } from "./EventCalendar.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
4
|
+
import { t as EventCalendarClient } from "./EventCalendar.client-Ct1B3xI4.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-ZSPcJWx1.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCalendar.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { n as EventCombinedIslandClient } from "./EventCombined.client-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
3
|
+
import { n as EventCombinedIslandClient } from "./EventCombined.client-DgfNtcgW.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-ZSPcJWx1.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventCombined.tsx
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
4
|
-
import { t as EventListingClient } from "./EventListing.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
4
|
+
import { t as EventListingClient } from "./EventListing.client-xFKRDLwC.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-ZSPcJWx1.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/eventListing.tsx
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as EventRegistrationIslandClient } from "./event-registration.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { n as EventRegistrationIslandClient } from "./event-registration.client-DlPfn4YG.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
5
|
+
import { t as resolveFormPortalToken } from "./portalSession-0XhXyTxT.mjs";
|
|
5
6
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
7
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-ZSPcJWx1.mjs";
|
|
7
8
|
import "react";
|
|
8
9
|
import { jsx } from "react/jsx-runtime";
|
|
9
10
|
//#region src/rendering/islands/enhancers/eventRegistration.tsx
|
|
10
11
|
const decode = defineIslandPropsDecoder("event-registration");
|
|
11
|
-
const enhance = (root, props) => {
|
|
12
|
+
const enhance = async (root, props) => {
|
|
12
13
|
const { siteId, apiBaseUrl, stage, portalToken, previewToken } = props;
|
|
13
14
|
if (!siteId) throw new Error("[sdk:islands] event-registration requires siteId");
|
|
14
15
|
if (!apiBaseUrl) throw new Error("[sdk:islands] event-registration requires apiBaseUrl");
|
|
@@ -17,7 +18,7 @@ const enhance = (root, props) => {
|
|
|
17
18
|
...buildRouteIslandApiConfig({
|
|
18
19
|
readAuthority: props.readAuthority,
|
|
19
20
|
apiBaseUrl,
|
|
20
|
-
portalToken,
|
|
21
|
+
portalToken: await resolveFormPortalToken(portalToken),
|
|
21
22
|
previewToken,
|
|
22
23
|
siteId,
|
|
23
24
|
stage
|
|
@@ -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 FormNodeClient } from "./form.client-
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
4
|
+
import { t as FormNodeClient } from "./form.client-DVDB7hY6.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";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { n as err, r as ok, t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { n as useBlockApi } from "./context-
|
|
4
|
-
import { d as listLookSlot } from "./islands-
|
|
5
|
-
import {
|
|
3
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
4
|
+
import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
|
|
5
|
+
import { O as clsx } from "./ThemedButton-C4rCsPCt.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
7
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
7
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-1q2rzSYt.mjs";
|
|
8
8
|
import { t as SpamProtectionWidget } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
9
9
|
import { t as useAltchaProtection } from "./altchaProtection-DjIV9A5n.mjs";
|
|
10
10
|
import { useReducer, useRef } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as listLookSlot, u as listLookControl } from "./islands-
|
|
3
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
4
|
-
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-
|
|
2
|
+
import { d as listLookSlot, u as listLookControl } from "./islands-dMh0Oxli.mjs";
|
|
3
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-CTMIII37.mjs";
|
|
4
|
+
import { t as ProtectedSubmitButton } from "./ProtectedSubmitButton-CY6u5sQa.mjs";
|
|
5
5
|
import "react";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
//#region ../blocks/src/system/runtime/nodes/form.fields.tsx
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
"use client";
|
|
3
3
|
import { Cn as toUtcIsoDateTimeString, Tn as resolveBookingTimeZoneId, jn as formatGiftCardAmountLabel, nn as formatDate } from "../src-Do_s2lqH.mjs";
|
|
4
|
-
import { i as portalPath } from "../portalRoutes-
|
|
5
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-
|
|
6
|
-
import { c as logger } from "../islands-
|
|
7
|
-
import { n as ThemedButton, r as ThemedButtonLink } from "../ThemedButton-
|
|
4
|
+
import { i as portalPath } from "../portalRoutes-DiGibcZI.mjs";
|
|
5
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "../context-lCPfX-xe.mjs";
|
|
6
|
+
import { c as logger } from "../islands-dMh0Oxli.mjs";
|
|
7
|
+
import { n as ThemedButton, r as ThemedButtonLink } from "../ThemedButton-C4rCsPCt.mjs";
|
|
8
8
|
import { t as CheckIcon } from "../CheckIcon-CVcKteXH.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-
|
|
11
|
-
import { t as GiftingClient } from "../gifting.client--
|
|
9
|
+
import { l as readChosenGiftAmounts } from "../gifting.parts-CcKdDaQq.mjs";
|
|
10
|
+
import { t as PORTAL_CALLBACK_PATH } from "../demoPortalMagicLink-Ce3Gyin_.mjs";
|
|
11
|
+
import { t as GiftingClient } from "../gifting.client--zAjnY5N.mjs";
|
|
12
12
|
import React from "react";
|
|
13
13
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
14
14
|
import { useRouter } from "next/navigation";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BlockApiProvider } from "./context-
|
|
3
|
-
import {
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
5
|
-
import { t as GiftingClient } from "./gifting.client--
|
|
2
|
+
import { t as BlockApiProvider } from "./context-lCPfX-xe.mjs";
|
|
3
|
+
import { l as readChosenGiftAmounts } from "./gifting.parts-CcKdDaQq.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
5
|
+
import { t as GiftingClient } from "./gifting.client--zAjnY5N.mjs";
|
|
6
6
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as assertNever } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
4
|
-
import { n as useBlockApi } from "./context-
|
|
5
|
-
import { n as ThemedButton } from "./ThemedButton-
|
|
6
|
-
import { t as buildGiftingDisplay } from "./gifting.interactive-
|
|
3
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-BDVP_HeK.mjs";
|
|
4
|
+
import { n as useBlockApi } from "./context-lCPfX-xe.mjs";
|
|
5
|
+
import { n as ThemedButton } from "./ThemedButton-C4rCsPCt.mjs";
|
|
6
|
+
import { t as buildGiftingDisplay } from "./gifting.interactive-CrwHpUJG.mjs";
|
|
7
7
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
8
|
-
import { a as
|
|
8
|
+
import { a as GiftingPanelHead, c as giftingSlot, i as GiftGroup, n as GIFTING_NOTHING_TO_SHOW, o as firstGiftAmountChoice, r as GiftCardAmounts, s as formatGiftAmount } from "./gifting.parts-CcKdDaQq.mjs";
|
|
9
9
|
import React, { startTransition, useEffect, useReducer, useRef, useState } from "react";
|
|
10
10
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
11
|
//#region ../blocks/src/system/runtime/nodes/gifting.client.state.ts
|
|
@@ -74,7 +74,6 @@ function toGiftingControllerProps(props) {
|
|
|
74
74
|
className: props.render.display.className,
|
|
75
75
|
heading: props.render.display.heading,
|
|
76
76
|
intro: props.render.display.intro,
|
|
77
|
-
emptyStateText: props.render.display.emptyStateText,
|
|
78
77
|
checkoutButtonText: props.render.hydration.checkoutButtonText,
|
|
79
78
|
successMessage: props.render.hydration.successMessage
|
|
80
79
|
};
|
|
@@ -291,7 +290,7 @@ function GiftingClient(props) {
|
|
|
291
290
|
}, group.kind))
|
|
292
291
|
}) : /* @__PURE__ */ jsx("p", {
|
|
293
292
|
className: "gifting-empty",
|
|
294
|
-
children:
|
|
293
|
+
children: GIFTING_NOTHING_TO_SHOW
|
|
295
294
|
})
|
|
296
295
|
]
|
|
297
296
|
})]
|
|
@@ -1,7 +1,54 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { c as blockSiteTermsSchema } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { a as defineClientOwnedBlockRuntime, f as lookListPresentationSchemaShape, i as createZodCodec, n as createInteractiveIslandCodec, r as defineInteractiveIslandMetaKeys, t as buildInteractiveIslandProps } from "./islands-
|
|
3
|
+
import { a as defineClientOwnedBlockRuntime, f as lookListPresentationSchemaShape, i as createZodCodec, n as createInteractiveIslandCodec, r as defineInteractiveIslandMetaKeys, t as buildInteractiveIslandProps } from "./islands-dMh0Oxli.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
|
+
//#region ../blocks/src/system/blocks/giftingOffer.ts
|
|
6
|
+
function decideGiftingOffer(onOffer) {
|
|
7
|
+
if (onOffer.giftCards === 0 && onOffer.vouchers === 0) return { kind: "nothing-on-offer" };
|
|
8
|
+
return {
|
|
9
|
+
kind: "shows",
|
|
10
|
+
giftCards: onOffer.giftCards > 0,
|
|
11
|
+
vouchers: onOffer.vouchers > 0
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
function giftingShowsKind(decision, kind) {
|
|
15
|
+
return decision.kind === "shows" && decision[kind];
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The form's condition for one kind's group heading, written out from the
|
|
19
|
+
* decision: it holds for each mix of offers where that kind's group shows.
|
|
20
|
+
* Offers that couldn't be read leave the facts unknown, so the field stays.
|
|
21
|
+
*/
|
|
22
|
+
const formOffers = [
|
|
23
|
+
{
|
|
24
|
+
giftCards: 0,
|
|
25
|
+
vouchers: 0
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
giftCards: 1,
|
|
29
|
+
vouchers: 0
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
giftCards: 0,
|
|
33
|
+
vouchers: 1
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
giftCards: 1,
|
|
37
|
+
vouchers: 1
|
|
38
|
+
}
|
|
39
|
+
];
|
|
40
|
+
function giftingKindCondition(kind) {
|
|
41
|
+
return { anyOf: formOffers.filter((offers) => giftingShowsKind(decideGiftingOffer(offers), kind)).map((offers) => ({ allOf: [{
|
|
42
|
+
fact: "gifting.giftCards",
|
|
43
|
+
is: offers.giftCards > 0 ? "some" : "none"
|
|
44
|
+
}, {
|
|
45
|
+
fact: "gifting.vouchers",
|
|
46
|
+
is: offers.vouchers > 0 ? "some" : "none"
|
|
47
|
+
}] })) };
|
|
48
|
+
}
|
|
49
|
+
const giftCardsShownCondition = giftingKindCondition("giftCards");
|
|
50
|
+
const vouchersShownCondition = giftingKindCondition("vouchers");
|
|
51
|
+
//#endregion
|
|
5
52
|
//#region ../blocks/src/system/runtime/nodes/gifting.interactive.ts
|
|
6
53
|
const publicGiftCardOfferSchema = z.object({
|
|
7
54
|
id: z.string(),
|
|
@@ -43,7 +90,6 @@ const giftingSourceSchema = z.object({
|
|
|
43
90
|
intro: z.string().nullable().optional(),
|
|
44
91
|
giftCardsHeading: z.string().nullable().optional(),
|
|
45
92
|
vouchersHeading: z.string().nullable().optional(),
|
|
46
|
-
emptyStateText: z.string().nullable().optional(),
|
|
47
93
|
checkoutButtonText: z.string().nullable().optional(),
|
|
48
94
|
successMessage: z.string().nullable().optional()
|
|
49
95
|
});
|
|
@@ -59,8 +105,7 @@ const giftingDisplaySchema = z.object({
|
|
|
59
105
|
kind: z.enum(["gift_card", "voucher"]),
|
|
60
106
|
heading: z.string(),
|
|
61
107
|
line: z.string()
|
|
62
|
-
}))
|
|
63
|
-
emptyStateText: z.string()
|
|
108
|
+
}))
|
|
64
109
|
});
|
|
65
110
|
const giftingHydrationSchema = z.object({
|
|
66
111
|
groupHeadings: z.object({
|
|
@@ -88,11 +133,17 @@ function giftingLookPresentation({ lookSlots, surfacePresentation }) {
|
|
|
88
133
|
...surfacePresentation ? { surfacePresentation } : {}
|
|
89
134
|
};
|
|
90
135
|
}
|
|
136
|
+
/** A group for each kind the decision shows; none while the offers couldn't be read. */
|
|
91
137
|
function giftingGroups(source) {
|
|
92
|
-
|
|
138
|
+
const offers = source.offers;
|
|
139
|
+
if (!offers) return [];
|
|
140
|
+
const decision = decideGiftingOffer({
|
|
141
|
+
giftCards: offers.giftCards.length,
|
|
142
|
+
vouchers: offers.vouchers.length
|
|
143
|
+
});
|
|
144
|
+
return [...giftingShowsKind(decision, "giftCards") ? [giftingGroup("gift_card", offers.giftCards.length, source.giftCardsHeading)] : [], ...giftingShowsKind(decision, "vouchers") ? [giftingGroup("voucher", offers.vouchers.length, source.vouchersHeading)] : []];
|
|
93
145
|
}
|
|
94
146
|
function giftingGroup(kind, count, heading) {
|
|
95
|
-
if (count === 0) return null;
|
|
96
147
|
const singular = kind === "gift_card" ? "Gift card" : "Voucher";
|
|
97
148
|
return {
|
|
98
149
|
kind,
|
|
@@ -108,8 +159,7 @@ function buildGiftingDisplay(source) {
|
|
|
108
159
|
className: source.className ?? null,
|
|
109
160
|
heading: source.heading?.trim() || "Gift cards & vouchers",
|
|
110
161
|
intro: source.intro?.trim() || null,
|
|
111
|
-
groups: giftingGroups(source)
|
|
112
|
-
emptyStateText: source.emptyStateText?.trim() || "Nothing is available right now."
|
|
162
|
+
groups: giftingGroups(source)
|
|
113
163
|
};
|
|
114
164
|
}
|
|
115
165
|
const giftingBlockRuntime = defineClientOwnedBlockRuntime({
|
|
@@ -154,4 +204,4 @@ function buildGiftingInteractiveIslandProps(props) {
|
|
|
154
204
|
});
|
|
155
205
|
}
|
|
156
206
|
//#endregion
|
|
157
|
-
export { publicGiftingOffersResponseSchema as a, giftingInteractiveIslandPropsCodec as i, buildGiftingInteractiveIslandProps as n, giftingBlockRuntime as r, buildGiftingDisplay as t };
|
|
207
|
+
export { publicGiftingOffersResponseSchema as a, vouchersShownCondition as c, giftingInteractiveIslandPropsCodec as i, buildGiftingInteractiveIslandProps as n, decideGiftingOffer as o, giftingBlockRuntime as r, giftCardsShownCondition as s, buildGiftingDisplay as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { An as formatCurrencyAmount } from "./src-Do_s2lqH.mjs";
|
|
3
|
-
import { d as listLookSlot } from "./islands-
|
|
3
|
+
import { d as listLookSlot } from "./islands-dMh0Oxli.mjs";
|
|
4
4
|
import "react";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
//#region ../blocks/src/system/runtime/shared/components/ChoiceGroup.tsx
|
|
@@ -44,6 +44,11 @@ function ChoiceGroup(props) {
|
|
|
44
44
|
//#endregion
|
|
45
45
|
//#region ../blocks/src/system/runtime/nodes/gifting.parts.tsx
|
|
46
46
|
const CUSTOM_GIFT_AMOUNT = "custom";
|
|
47
|
+
/**
|
|
48
|
+
* What the panel says with no offers to show. Visitors only see it if the
|
|
49
|
+
* offers couldn't be read: with nothing on offer the block stays hidden.
|
|
50
|
+
*/
|
|
51
|
+
const GIFTING_NOTHING_TO_SHOW = "Nothing is available right now.";
|
|
47
52
|
/** A Look's hook (and, for the panel, its surface) on one part of the gifting panel; nothing outside a Look. */
|
|
48
53
|
function giftingSlot(look, slot) {
|
|
49
54
|
return listLookSlot(look ?? {}, slot);
|
|
@@ -116,4 +121,4 @@ function GiftGroup(props) {
|
|
|
116
121
|
});
|
|
117
122
|
}
|
|
118
123
|
//#endregion
|
|
119
|
-
export {
|
|
124
|
+
export { GiftingPanelHead as a, giftingSlot as c, GiftGroup as i, readChosenGiftAmounts as l, GIFTING_NOTHING_TO_SHOW as n, firstGiftAmountChoice as o, GiftCardAmounts as r, formatGiftAmount as s, CUSTOM_GIFT_AMOUNT as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-B8lrKGPw.mjs";
|
|
3
|
+
import { t as mountHeaderChromeRuntime } from "./enhanceHeaderSection-CGcDE9aE.mjs";
|
|
4
4
|
//#region src/rendering/islands/enhancers/headerSection.ts
|
|
5
5
|
const decode = defineIslandPropsDecoder("headerSection");
|
|
6
6
|
const enhance = (root, props) => {
|