@riverbankcms/sdk 0.183.0 → 0.185.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-Bu0O7l4p.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-DYoL0IWL.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-DgFAiR8r.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-BKdjJ7A0.d.ts} +35 -4
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-6K7zlJuF.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-CUR8ccnX.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-CveWSMew.d.ts} +2 -2
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-6WypKfbu.d.ts} +4 -4
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-BMwrFX_K.d.ts} +1 -1
- package/dist/_dts/{index-BxCmCit0.d.ts → index-Bp5lk6I8.d.ts} +1 -1
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-DTKn1H8g.d.ts} +3 -3
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DX-Xe54X.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-SD1fTP_7.d.ts} +2 -2
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BN8GtRsL.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-BwYvMqLf.d.ts} +78461 -77905
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-CYy0VlSK.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BwUDLi_W.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-CMNev0gz.d.ts} +19 -8
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-BBazdRQf.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-BwngWRQ8.d.ts} +13 -15
- package/dist/_dts/{types-BoITy0rA.d.ts → types-C9_amrul.d.ts} +6 -2
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-B58kUTuV.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CooOPhs3.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-D_khdttF.mjs} +61 -62
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-Bia1E7Cj.mjs} +49 -36
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-C-AbMmct.mjs} +2 -2
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-oaHxRbUO.mjs} +7 -7
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-M2xKYQjX.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-By7e9nyF.mjs} +11 -11
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-BdRZXB14.mjs} +10 -10
- package/dist/client/EventEmbeddedCheckoutStep-CJoxbx2Y.mjs +147 -0
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-CDMa9zOX.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-B8WKaCrN.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-BEGiiFnO.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-B6LOK-z4.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-CARdr15t.mjs} +140 -68
- package/dist/client/{Page-CgbQZP5g.mjs → Page-uP7AKSyp.mjs} +1762 -521
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/SiteChoiceGroup-BZ5I0Vhy.mjs +96 -0
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDqRo2C5.mjs} +3 -3
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-BWrXAKvs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-Cb3NMw-Y.mjs} +30 -18
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-q-dDOwsW.mjs} +750 -560
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BYW2YSUN.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-DAlWWWjV.mjs} +110 -72
- package/dist/client/{bookingCalendar--aWnqFDn.mjs → bookingCalendar-9nFa_do4.mjs} +6 -2
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-DtVk9p5l.mjs} +7 -6
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CaSq3-r-.mjs} +2 -2
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → browserStripe-Dh-LcDoW.mjs} +36 -142
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-msur7fxW.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-Bx-JuY2n.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-hB_9MimN.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-BVWZn5Qu.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-Bt_GtHW9.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CP-rQOZV.mjs} +1 -1
- package/dist/client/client.mjs +61 -48
- package/dist/client/{constants-C_8AxMdm.mjs → constants-yA1RJGXD.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-CG77Keax.mjs} +43 -6
- package/dist/client/{dateFormatting-HvfmS_cH.mjs → dateFormatting-DIRIgfYr.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-CgzNiOQ0.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-DgzZNM2M.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-Ckb4aDE9.mjs} +118 -74
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-lqqQSzBQ.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-BIMyHrd-.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-CBYxfvNf.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-BhAqvkCb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CkOfk-Eb.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-Whi43oio.mjs} +5 -5
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-BgsWo2Me.mjs} +3 -3
- package/dist/client/gifting/client.mjs +8 -8
- package/dist/client/{gifting-CufPM38H.mjs → gifting-XtNpLcFI.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client-CraWj4I4.mjs} +174 -73
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-DiPDObN0.mjs} +61 -10
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-_mgGOcbA.mjs} +17 -43
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-CPIN3VSU.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-C95FyxUF.mjs} +1996 -1178
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BgVJdKVe.mjs} +7 -7
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-DpcfRbI_.mjs} +39 -18
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-poPgHrUh.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-Dt6wFjTe.mjs} +3 -3
- package/dist/client/portal/client.mjs +999 -81
- package/dist/client/{portalOrders-tCxS04g0.mjs → portalOrders-CAfjTyV9.mjs} +1 -1
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-D3Ttfv5x.mjs} +54 -12
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/presentation-CudSUZ6Q.mjs +169 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-BrBNT7Mq.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-CftTl7n6.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-b1tpt585.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-DRT5sabi.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-Co1VXFaW.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-0UDNY7dO.mjs} +796 -715
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +5 -5
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-BFDEPZZA.mjs} +2 -2
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-DtqRutuX.mjs} +1 -1
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-DBVXbcuz.mjs} +1 -1
- package/dist/client/runtimeResponse-LQnQdtNI.mjs +3 -0
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-DL3CYR7i.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-CDth2_qq.mjs} +45 -27
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-CE0aaSHJ.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-p4aXtVsF.mjs} +2 -2
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-BI2iw6Z3.mjs} +83 -29
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-BNWzgWAC.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{src-Do_s2lqH.mjs → src-CJf3u16T.mjs} +1 -1
- package/dist/{preview-next/client/src-lX6heoDA.mjs → client/src-CMuv8vSO.mjs} +5 -1
- package/dist/client/src-CXOxpNtj.mjs +3 -0
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DZzGD6rS.mjs} +9 -9
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CJDylOUe.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-nD6nuvSW.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-DMtTHqex.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-CM-DCokc.mjs} +14 -16
- package/dist/client/{view-4gnPcpWJ.mjs → view-CHOhliHv.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-BbroaNkT.mjs} +277 -87
- 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-CR99z8BL.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-BaKS6H8F.mjs} +1096 -283
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-D6IG119o.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-CKjkFOZS.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-BexDQWGj.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-DcEwU9l_.mjs} +7192 -3039
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-VqseF0yf.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DcoVpKUf.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-BL1fZnUD.mjs} +16 -10
- package/dist/{client/src-uwCpbHXG.mjs → preview-next/client/src-B5x3r4cg.mjs} +5 -1
- package/dist/preview-next/client/src-CrT7h--V.mjs +3 -0
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-CdFnzKac.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-B62h7dhR.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +158 -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-CQfEvfbg.mjs} +54 -41
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-CbGnxkWX.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-BjxlpVaV.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CZ7pLuJ7.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-C_C52VkS.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-D-n66Oqc.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-BGGlrkft.mjs} +64 -47
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-TkO9Uxma.mjs} +51 -9
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-8H1hHdXo.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BZyqF_g3.mjs} +3 -3
- package/dist/server/lookMediaFrame-Dw6R9B0L.mjs +31837 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-9TOyY5Zf.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-CuduOS6V.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DmP0HVMu.mjs} +618 -209
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-BQ1dWs1V.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-ALu7y5Dq.mjs} +836 -516
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-D_8I28BB.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-P4oHSRho.mjs} +23 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-BLL6RhjS.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-aR5W1dVF.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-DD_s7l3Y.mjs} +1575 -28658
- 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-DnQ2N0lI.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-ChlP4NJ9.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-D6F1tvIm.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-ClDfFtz2.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CsUerbJ1.mjs} +15 -12
- 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-CLJrZb7s.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-DA_iErtG.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-CcKy8_tj.mjs} +14 -5
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-BbImAsVs.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-BY48jPoe.mjs} +1 -1
- package/dist/styles/index.css +684 -181
- package/package.json +1 -1
- package/dist/client/appointment-service-categories-Cl2pqw-z.mjs +0 -70
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/client/src-DqMbCjI1.mjs +0 -3
- package/dist/preview-next/client/src-EO5QoRlU.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,33 +1,33 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as decideShopCatalogue, B as buildShopInteractiveIslandProps, Cn as formatEventPrice, Ct as catalogueEventCardProps, Dt as eventCombinedBlockRuntime, En as formatEventStartingPrice, Et as buildEventCombinedListingDisplay, F as DEFAULT_PASS_BUY_BUTTON_TEXT, Ft as normalizeEventScheduleScope, I as buildCartInteractiveIslandProps, It as normalizeEventStaffMemberId, J as productListBlockRuntime, Jt as getCardOrientation, K as productDetailBlockRuntime, L as buildCheckoutInteractiveIslandProps, Lt as normalizeEventSurfacePresets, On as assessMailingListTargeting, P as occurrenceContextSchema, Pt as normalizeEventCategoryIds, Q as shopProductPresentation, R as buildProductDetailInteractiveIslandProps, Rt as normalizeEventSurfaceScope, Sn as formatEventDepositNote, St as resolveOfferingsRenderInput, Tn as formatEventPriceDisplay, Tt as buildEventCombinedInteractiveIslandProps, U as checkoutBlockRuntime, V as cartBlockRuntime, X as shopBlockRuntime, Xt as formatBookingSchedulePresentation, Yt as getContainerClass, Zt as CardListContentPart, _n as staticHeaderChromeRuntime, _t as offeringsListingFor, an as Grid, at as DEFAULT_GROUP_CTA, bn as splitSiteChromePlacementClasses, bt as resolveOfferingsPreviewGroupCta, cn as eventWeekGroupingContext, dn as resolveEventSelection, dt as buildOfferingsPreviewListing, et as shopMembershipsShownCondition, f as eventCalendarBlockRuntime, ft as groupOfferingRunsByCourse, g as formBlockRuntime, gt as offeringRunLifecycle, h as buildFormInteractiveIslandProps, ht as normalizeOfferingsPreviewItemLimit, i as newsletterFormBlockRuntime, in as MediaNodeServer, it as publicProductsResponseSchema, jn as DEFAULT_MAILING_LIST_TARGETING, kn as parseMailingListPlacementTargeting, l as buildEventCalendarInteractiveIslandProps, n as buildNewsletterFormInteractiveIslandProps, nn as EventQuickFacts, nt as shopShowChoiceCondition, o as buildEventListingInteractiveIslandProps, on as buildEventListWeek, pn as recurringScheduleProjectionSchema, r as newsletterBlockSubmissionMessage, rt as storedShopShow, s as eventListingBlockRuntime, sn as eventListWeekDays, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tt as shopPassesShownCondition, u as buildEventCalendarListingDisplay, ut as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, wn as formatEventPriceAmount, wt as listingEventCardProps, x as eventRegistrationBlockRuntime, xn as formatCoursePrice, xt as resolveOfferingsPreviewGroups, y as buildEventRegistrationInteractiveIslandProps, yt as readOfferingsGrouping, z as buildProductListInteractiveIslandProps, zt as normalizeEventVenueId } from "./newsletter-form.interactive-
|
|
2
|
+
import { $ as decideShopCatalogue, B as buildShopInteractiveIslandProps, Cn as formatEventPrice, Ct as catalogueEventCardProps, Dt as eventCombinedBlockRuntime, En as formatEventStartingPrice, Et as buildEventCombinedListingDisplay, F as DEFAULT_PASS_BUY_BUTTON_TEXT, Ft as normalizeEventScheduleScope, I as buildCartInteractiveIslandProps, It as normalizeEventStaffMemberId, J as productListBlockRuntime, Jt as getCardOrientation, K as productDetailBlockRuntime, L as buildCheckoutInteractiveIslandProps, Lt as normalizeEventSurfacePresets, On as assessMailingListTargeting, P as occurrenceContextSchema, Pt as normalizeEventCategoryIds, Q as shopProductPresentation, R as buildProductDetailInteractiveIslandProps, Rt as normalizeEventSurfaceScope, Sn as formatEventDepositNote, St as resolveOfferingsRenderInput, Tn as formatEventPriceDisplay, Tt as buildEventCombinedInteractiveIslandProps, U as checkoutBlockRuntime, V as cartBlockRuntime, X as shopBlockRuntime, Xt as formatBookingSchedulePresentation, Yt as getContainerClass, Zt as CardListContentPart, _n as staticHeaderChromeRuntime, _t as offeringsListingFor, an as Grid, at as DEFAULT_GROUP_CTA, bn as splitSiteChromePlacementClasses, bt as resolveOfferingsPreviewGroupCta, cn as eventWeekGroupingContext, dn as resolveEventSelection, dt as buildOfferingsPreviewListing, et as shopMembershipsShownCondition, f as eventCalendarBlockRuntime, ft as groupOfferingRunsByCourse, g as formBlockRuntime, gt as offeringRunLifecycle, h as buildFormInteractiveIslandProps, ht as normalizeOfferingsPreviewItemLimit, i as newsletterFormBlockRuntime, in as MediaNodeServer, it as publicProductsResponseSchema, jn as DEFAULT_MAILING_LIST_TARGETING, kn as parseMailingListPlacementTargeting, l as buildEventCalendarInteractiveIslandProps, n as buildNewsletterFormInteractiveIslandProps, nn as EventQuickFacts, nt as shopShowChoiceCondition, o as buildEventListingInteractiveIslandProps, on as buildEventListWeek, pn as recurringScheduleProjectionSchema, r as newsletterBlockSubmissionMessage, rt as storedShopShow, s as eventListingBlockRuntime, sn as eventListWeekDays, t as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, tt as shopPassesShownCondition, u as buildEventCalendarListingDisplay, ut as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, wn as formatEventPriceAmount, wt as listingEventCardProps, x as eventRegistrationBlockRuntime, xn as formatCoursePrice, xt as resolveOfferingsPreviewGroups, y as buildEventRegistrationInteractiveIslandProps, yt as readOfferingsGrouping, z as buildProductListInteractiveIslandProps, zt as normalizeEventVenueId } from "./newsletter-form.interactive-DpcfRbI_.mjs";
|
|
3
3
|
import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
4
|
-
import { $ as mediaTypeDiscriminants, A as eventCalendarListGroupingDecision, B as RichTextDocSchema, C as publicEventsArraySchema, Cn as toUtcIsoDateTimeString, Dt as eventCalendarDisplayModeValues, En as toBookingTimeZone, F as isEventCalendarDefaultView, Gt as normalizeLocationAddressText, I as isEventCalendarDisplayMode, Jt as publicLocationSchema, Kt as parseLocationValue, L as isEventCalendarListLayout, M as eventCalendarLookViews, N as eventCalendarVariantMeaning, Q as isDisplayMediaKind, Qt as trimmedStringOrNull, R as normalizeEventCalendarDisplayMode$1, Y as runtimeMediaSchema, Yt as toLocationCoordinates, Z as PUBLIC_FILE_FIELD_KINDS, _ as publicMembershipProductCollectionSchema, an as formatDateTimeRange, gn as compareLocalScheduleDates, j as eventCalendarListLayoutOptions, m as calendarWindowPageSchema, mn as toScheduledBookingDateTime, nn as formatDate, qt as projectPublicLocation, rn as formatDateRange, rt as arrangementModes, v as publicPassProductCollectionSchema, vn as getBookingLocalDateKey, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as resolveEventCalendarReadPlan } from "./src-
|
|
5
|
-
import {
|
|
6
|
-
import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, p as formatEventDuration, u as CalendarDayHeaders } from "./CalendarNavigationChevron-
|
|
7
|
-
import { h as assertNever$1 } from "./bookingCalendar
|
|
8
|
-
import { n as selectCategoryView } from "./
|
|
9
|
-
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as MapDrawingSvg, i as buildWeekBoardViewProps, l as RichTextNode, m as LocationMapActions, n as WeekBoardView, o as RecurringSchedule, p as SvgNode, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-
|
|
10
|
-
import { G as compiledRuntimeStyleFieldNames,
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-
|
|
14
|
-
import { _ as
|
|
4
|
+
import { $ as mediaTypeDiscriminants, A as eventCalendarListGroupingDecision, B as RichTextDocSchema, C as publicEventsArraySchema, Cn as toUtcIsoDateTimeString, Dt as eventCalendarDisplayModeValues, En as toBookingTimeZone, F as isEventCalendarDefaultView, Gt as normalizeLocationAddressText, I as isEventCalendarDisplayMode, Jt as publicLocationSchema, Kt as parseLocationValue, L as isEventCalendarListLayout, M as eventCalendarLookViews, N as eventCalendarVariantMeaning, Q as isDisplayMediaKind, Qt as trimmedStringOrNull, R as normalizeEventCalendarDisplayMode$1, Y as runtimeMediaSchema, Yt as toLocationCoordinates, Z as PUBLIC_FILE_FIELD_KINDS, _ as publicMembershipProductCollectionSchema, an as formatDateTimeRange, gn as compareLocalScheduleDates, j as eventCalendarListLayoutOptions, m as calendarWindowPageSchema, mn as toScheduledBookingDateTime, nn as formatDate, qt as projectPublicLocation, rn as formatDateRange, rt as arrangementModes, v as publicPassProductCollectionSchema, vn as getBookingLocalDateKey, wn as resolveBookingBusinessTimeZone, yn as getLocalScheduleDate, z as resolveEventCalendarReadPlan } from "./src-CJf3u16T.mjs";
|
|
5
|
+
import { Ao as getEventAvailabilityStatus, Cc as publicEventPricingDisplay, Cs as asPartialObject, Ec as resolveExactOrFreePriceDisplay, Eo as formatEventRemainingPlaces, Fo as BLOCK_BUTTON_ROLE_OPTIONS, Fs as sanitizeHref, Ho as eventDateOptions, Ii as buildBookingFormInteractiveIslandProps, Is as parseAspectRatioValue, Jo as formatEventDateParts, Lo as isBlockButtonRole, Mo as isEventFull, Oo as formatTotalCapacity, Pi as groupPublicEventsByRun, Qo as formatEventTimeRange, Ro as RichText, Sc as publicEventPricingCurrency, So as isBookableEvent, Tc as publicEventPricingType, Wo as formatCalendarTitle, Yo as formatEventHourLabel, Zo as formatEventRunDates, _o as eventDestinationPagePath, bo as resolveEventPageLink, do as eventOnlinePlace, es as formatTime, hc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, ho as publicEventCancellation, ic as resolveWholeSeriesBookingPhase, ko as getEventAvailability, mi as closedRunCopy, mo as formatEventLocation, nc as nextLiveRunSessionStartMs, po as eventVenuePlace, ps as resolvePublicMediaUrl, qo as formatEventCompactDateRail, rc as orderedLiveRunSessions, rs as ImagePresets, tc as CANCELLED_SESSION_STATUS, ts as groupEventsByDate, uo as bookingPresentation, vo as resolveEventCardBooking, wi as isDropInPublicEvent, xc as isPublicEventPricingOptionDisplayable, xi as resolveEventRegistrationScopedEvents, xo as resolveRuntimeEventDestination, yc as formatBookingPriceDisplay, yi as normalizeEventRegistrationPageSurfaceSubject, yo as resolveEventCta, zo as buildCalendarViewport } from "./wizardSteps-BbroaNkT.mjs";
|
|
6
|
+
import { c as MonthLookView, d as buildMonthDay, f as resolveMonthSelectedDay, i as WeekAgendaView, o as CombinedLookFrame, p as formatEventDuration, u as CalendarDayHeaders } from "./CalendarNavigationChevron-oaHxRbUO.mjs";
|
|
7
|
+
import { h as assertNever$1 } from "./bookingCalendar-9nFa_do4.mjs";
|
|
8
|
+
import { a as publicAppointmentPricingSchema, i as publicAppointmentLocationSchema, n as formatAppointmentLocation, r as formatAppointmentPrice, s as selectCategoryView, t as formatAppointmentDuration } from "./presentation-CudSUZ6Q.mjs";
|
|
9
|
+
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, f as MapDrawingSvg, i as buildWeekBoardViewProps, l as RichTextNode, m as LocationMapActions, n as WeekBoardView, o as RecurringSchedule, p as SvgNode, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-DZzGD6rS.mjs";
|
|
10
|
+
import { G as compiledRuntimeStyleFieldNames, In as parseGradientPresetId, Mn as cardVariantRoleValues, X as gradientToCss, Z as getGradientPreset, d as listLookSlot, f as lookListPresentationSchemaShape, l as listItemPresentation, mn as arrangementSlotNames, vn as lookKnobBlocks } from "./islands-C95FyxUF.mjs";
|
|
11
|
+
import { L as parseThemeColorToken, z as SYSTEM_BLOCK_KINDS } from "./buttonParts-C39GC0kz.mjs";
|
|
12
|
+
import { H as rgbColorValue, I as resolveThemeColorReferenceValue, R as backgroundColorStyle, U as textColorStyle, V as mergeStyles, c as serializeSurfaceTree } from "./accessibleSurfaces-q-dDOwsW.mjs";
|
|
13
|
+
import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-CaSq3-r-.mjs";
|
|
14
|
+
import { C as PlusIcon, D as SpinnerNode, E as UsersIcon, O as clsx, S as MinusIcon, T as UserIcon, _ as FileSpreadsheetIcon, b as InfoIcon, c as ArrowDownIcon, d as CircleMinusIcon, f as CirclePlusIcon, g as FileAudioIcon, h as FileArchiveIcon, i as ThemedDownloadLink, l as CalendarIcon, n as ThemedButton, o as getIconComponent, r as ThemedButtonLink, s as isSemanticIconId, u as ChevronDownIcon, v as FileTextIcon, w as TicketIcon, x as MapPinIcon, y as GlobeIcon } from "./ThemedButton-C4rCsPCt.mjs";
|
|
15
15
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, r as carouselContents, t as CarouselSlideContent, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
16
|
-
import {
|
|
17
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
18
|
-
import { f as formatCourseSessions, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-
|
|
19
|
-
import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-
|
|
16
|
+
import { f as formatDateKey, g as getWeekCalendarDayTuple, h as getOrderedDayNames } from "./src-CMuv8vSO.mjs";
|
|
17
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-BFDEPZZA.mjs";
|
|
18
|
+
import { f as formatCourseSessions, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-CDMa9zOX.mjs";
|
|
19
|
+
import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-yA1RJGXD.mjs";
|
|
20
20
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
21
|
-
import { n as BookingPanelArrangement } from "./StepIndicator-
|
|
22
|
-
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, l as decideBookedElsewhereDatesPage, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-
|
|
23
|
-
import {
|
|
24
|
-
import { a as publicGiftingOffersResponseSchema, n as buildGiftingInteractiveIslandProps, r as giftingBlockRuntime } from "./gifting.interactive-
|
|
21
|
+
import { n as BookingPanelArrangement } from "./StepIndicator-BWrXAKvs.mjs";
|
|
22
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, l as decideBookedElsewhereDatesPage, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-Cb3NMw-Y.mjs";
|
|
23
|
+
import { c as EventCompactRow, i as eventFilterConditions, l as EventCard, s as EmptyState, t as EventListingFrameView } from "./EventListing.view-B6LOK-z4.mjs";
|
|
24
|
+
import { a as publicGiftingOffersResponseSchema, c as vouchersShownCondition, n as buildGiftingInteractiveIslandProps, o as decideGiftingOffer, r as giftingBlockRuntime, s as giftCardsShownCondition } from "./gifting.interactive-DiPDObN0.mjs";
|
|
25
25
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
26
|
-
import { i as
|
|
27
|
-
import { a as
|
|
28
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
29
|
-
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-
|
|
30
|
-
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-
|
|
26
|
+
import { a as PassPurchaseUnavailable, c as ProductDetailView, d as ShopPurchaseAction, f as VariantSelectView, i as PassCardView, l as ProductGalleryFrameView, n as CheckoutShellView, o as PassesMembershipsSectionView, r as MembershipCardView, s as ProductCardView, t as CartShellView, u as ProductListSectionView } from "./view-CHOhliHv.mjs";
|
|
27
|
+
import { a as GiftingExpiry, c as formatGiftAmount, i as GiftGroup, l as giftingSlot, n as GIFTING_NOTHING_TO_SHOW, o as GiftingPanelHead, r as GiftCardAmounts } from "./gifting.parts-_mgGOcbA.mjs";
|
|
28
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-B8WKaCrN.mjs";
|
|
29
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-BgsWo2Me.mjs";
|
|
30
|
+
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-poPgHrUh.mjs";
|
|
31
31
|
import React, { forwardRef } from "react";
|
|
32
32
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
33
33
|
import { z } from "zod";
|
|
@@ -313,9 +313,26 @@ const ICON_PICKER_PRESETS = ["cta", "feature"];
|
|
|
313
313
|
//#endregion
|
|
314
314
|
//#region ../site-contracts/src/blocks/editorData.ts
|
|
315
315
|
/** The values each fact can take, as data: the manifest schema and the condition check both read it. */
|
|
316
|
+
const EVENT_FILTER_SPREADS = [
|
|
317
|
+
"none",
|
|
318
|
+
"one-for-all",
|
|
319
|
+
"one-for-some",
|
|
320
|
+
"several"
|
|
321
|
+
];
|
|
316
322
|
const CONDITION_FACT_VALUES = {
|
|
317
323
|
"catalogue.passes": ["none", "some"],
|
|
318
|
-
"catalogue.memberships": ["none", "some"]
|
|
324
|
+
"catalogue.memberships": ["none", "some"],
|
|
325
|
+
"gifting.giftCards": ["none", "some"],
|
|
326
|
+
"gifting.vouchers": ["none", "some"],
|
|
327
|
+
"eventFilters.hosts": EVENT_FILTER_SPREADS,
|
|
328
|
+
"eventFilters.venues": EVENT_FILTER_SPREADS,
|
|
329
|
+
"eventFilters.categories": EVENT_FILTER_SPREADS,
|
|
330
|
+
"appointments.resources": [
|
|
331
|
+
"none",
|
|
332
|
+
"one",
|
|
333
|
+
"several"
|
|
334
|
+
],
|
|
335
|
+
"appointments.serviceCategories": ["none", "some"]
|
|
319
336
|
};
|
|
320
337
|
function mapReadinessFact(fact, project) {
|
|
321
338
|
return fact.kind === "Loaded" ? {
|
|
@@ -381,7 +398,18 @@ const visibleWhenPredicateSchema = z.object({
|
|
|
381
398
|
maxItems: z.number().int().nonnegative().optional(),
|
|
382
399
|
hasValue: z.boolean().optional()
|
|
383
400
|
});
|
|
384
|
-
const
|
|
401
|
+
const factPredicateSchemas = [
|
|
402
|
+
factPredicateSchema("catalogue.passes"),
|
|
403
|
+
factPredicateSchema("catalogue.memberships"),
|
|
404
|
+
factPredicateSchema("gifting.giftCards"),
|
|
405
|
+
factPredicateSchema("gifting.vouchers"),
|
|
406
|
+
factPredicateSchema("eventFilters.hosts"),
|
|
407
|
+
factPredicateSchema("eventFilters.venues"),
|
|
408
|
+
factPredicateSchema("eventFilters.categories"),
|
|
409
|
+
factPredicateSchema("appointments.resources"),
|
|
410
|
+
factPredicateSchema("appointments.serviceCategories")
|
|
411
|
+
];
|
|
412
|
+
const visibleWhenFactSchema = z.union(factPredicateSchemas);
|
|
385
413
|
function factPredicateSchema(fact) {
|
|
386
414
|
return z.strictObject({
|
|
387
415
|
fact: z.literal(fact),
|
|
@@ -560,7 +588,12 @@ const uiSchema = z.object({
|
|
|
560
588
|
* as primary or secondary on a button they added.
|
|
561
589
|
*/
|
|
562
590
|
underLooks: z.literal("owner").optional(),
|
|
563
|
-
valueContract: z.enum([
|
|
591
|
+
valueContract: z.enum([
|
|
592
|
+
"boxBackground",
|
|
593
|
+
"location",
|
|
594
|
+
"sectionGround",
|
|
595
|
+
"sectionTreatment"
|
|
596
|
+
]).optional()
|
|
564
597
|
}).partial().superRefine((ui, ctx) => {
|
|
565
598
|
if (ui.layoutGridColumns !== void 0 && ui.layoutGridColumnsFields !== void 0) ctx.addIssue({
|
|
566
599
|
code: "custom",
|
|
@@ -838,7 +871,16 @@ const repeaterFieldSchema = baseFieldSchema.extend({
|
|
|
838
871
|
});
|
|
839
872
|
const groupFieldSchema = baseFieldSchema.extend({
|
|
840
873
|
type: z.literal("group"),
|
|
841
|
-
schema: z.object({ fields: z.lazy(() => getFieldSchemaInternal().array()
|
|
874
|
+
schema: z.object({ fields: z.lazy(() => getFieldSchemaInternal().array()) })
|
|
875
|
+
}).superRefine((field, ctx) => {
|
|
876
|
+
if (field.schema.fields.length === 0 && field.ui?.valueContract !== "sectionGround" && field.ui?.valueContract !== "sectionTreatment") ctx.addIssue({
|
|
877
|
+
code: "too_small",
|
|
878
|
+
origin: "array",
|
|
879
|
+
minimum: 1,
|
|
880
|
+
inclusive: true,
|
|
881
|
+
path: ["schema", "fields"],
|
|
882
|
+
message: "Group requires at least one field"
|
|
883
|
+
});
|
|
842
884
|
});
|
|
843
885
|
const modalFieldSchema = baseFieldSchema.extend({
|
|
844
886
|
type: z.literal("modal"),
|
|
@@ -1161,6 +1203,24 @@ const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
|
|
|
1161
1203
|
const NodeSchema = nodeSchema;
|
|
1162
1204
|
const NodeTreeSchema = nodeTreeSchema;
|
|
1163
1205
|
//#endregion
|
|
1206
|
+
//#region ../theme-core/src/site-styles/sectionPhoto.ts
|
|
1207
|
+
/**
|
|
1208
|
+
* A section photo, decided once. The block declares that it keeps one
|
|
1209
|
+
* (`sectionPhoto` on its manifest: the hero does); the authoring Look says how
|
|
1210
|
+
* it uses it; the current draft says whether there is one. Field visibility,
|
|
1211
|
+
* the Background row and the rich-background check all read these decisions
|
|
1212
|
+
* rather than guessing.
|
|
1213
|
+
*/
|
|
1214
|
+
/** Where a section photo is stored: the image tab of the section's Background. */
|
|
1215
|
+
const sectionPhotoPath = "_sectionStyles.background.image";
|
|
1216
|
+
/** The photo a section keeps, wherever its background `type` points. */
|
|
1217
|
+
function storedSectionPhoto(content) {
|
|
1218
|
+
return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
|
|
1219
|
+
}
|
|
1220
|
+
function readRecord(value) {
|
|
1221
|
+
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
1222
|
+
}
|
|
1223
|
+
//#endregion
|
|
1164
1224
|
//#region ../theme-core/src/site-styles/sectionGround.ts
|
|
1165
1225
|
/** A section that declares no ground of its own sits on the page background. */
|
|
1166
1226
|
const pageGround = { fallback: requireGroundToken("background") };
|
|
@@ -1220,24 +1280,6 @@ function requireGroundToken(value) {
|
|
|
1220
1280
|
return token;
|
|
1221
1281
|
}
|
|
1222
1282
|
//#endregion
|
|
1223
|
-
//#region ../theme-core/src/site-styles/sectionPhoto.ts
|
|
1224
|
-
/**
|
|
1225
|
-
* A section photo, decided once. The block declares that it keeps one
|
|
1226
|
-
* (`sectionPhoto` on its manifest: the hero does); the authoring Look says how
|
|
1227
|
-
* it uses it; the current draft says whether there is one. Field visibility,
|
|
1228
|
-
* the Background row and the rich-background check all read these decisions
|
|
1229
|
-
* rather than guessing.
|
|
1230
|
-
*/
|
|
1231
|
-
/** Where a section photo is stored: the image tab of the section's Background. */
|
|
1232
|
-
const sectionPhotoPath = "_sectionStyles.background.image";
|
|
1233
|
-
/** The photo a section keeps, wherever its background `type` points. */
|
|
1234
|
-
function storedSectionPhoto(content) {
|
|
1235
|
-
return readRecord(readRecord(readRecord(content._sectionStyles)?.background)?.image);
|
|
1236
|
-
}
|
|
1237
|
-
function readRecord(value) {
|
|
1238
|
-
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : null;
|
|
1239
|
-
}
|
|
1240
|
-
//#endregion
|
|
1241
1283
|
//#region ../theme-core/src/accordions/types.ts
|
|
1242
1284
|
/**
|
|
1243
1285
|
* Icon configuration mapping icon styles to Lucide icons and behavior
|
|
@@ -1707,102 +1749,6 @@ function toBiography(source) {
|
|
|
1707
1749
|
} : null;
|
|
1708
1750
|
}
|
|
1709
1751
|
//#endregion
|
|
1710
|
-
//#region ../blocks/src/system/blocks/appointments/presentation.ts
|
|
1711
|
-
const publicVenueSchema = z.object({
|
|
1712
|
-
name: z.string(),
|
|
1713
|
-
area: z.string().nullable()
|
|
1714
|
-
});
|
|
1715
|
-
const publicAppointmentLocationSchema = z.discriminatedUnion("mode", [
|
|
1716
|
-
z.object({ mode: z.literal("online") }),
|
|
1717
|
-
z.object({
|
|
1718
|
-
mode: z.literal("in_person"),
|
|
1719
|
-
venue: publicVenueSchema.nullable()
|
|
1720
|
-
}),
|
|
1721
|
-
z.object({
|
|
1722
|
-
mode: z.literal("either"),
|
|
1723
|
-
venue: publicVenueSchema.nullable()
|
|
1724
|
-
})
|
|
1725
|
-
]);
|
|
1726
|
-
const publicPricingOptionSchema = z.object({
|
|
1727
|
-
priceAmount: z.number().finite(),
|
|
1728
|
-
isActive: z.boolean(),
|
|
1729
|
-
saleStartsAt: z.string().nullable(),
|
|
1730
|
-
saleEndsAt: z.string().nullable()
|
|
1731
|
-
});
|
|
1732
|
-
const publicAppointmentPricingSchema = z.object({
|
|
1733
|
-
pricingStrategy: z.enum([
|
|
1734
|
-
"free",
|
|
1735
|
-
"single",
|
|
1736
|
-
"tiered",
|
|
1737
|
-
"sliding_scale"
|
|
1738
|
-
]),
|
|
1739
|
-
currency: z.string().min(1),
|
|
1740
|
-
singlePriceAmount: z.number().nullable(),
|
|
1741
|
-
slidingMinAmount: z.number().nullable(),
|
|
1742
|
-
slidingMaxAmount: z.number().nullable(),
|
|
1743
|
-
options: z.array(publicPricingOptionSchema).readonly()
|
|
1744
|
-
});
|
|
1745
|
-
function formatAppointmentDuration(durationMinutes) {
|
|
1746
|
-
return `${durationMinutes} ${durationMinutes === 1 ? "minute" : "minutes"}`;
|
|
1747
|
-
}
|
|
1748
|
-
function formatAppointmentLocation(location) {
|
|
1749
|
-
switch (location.mode) {
|
|
1750
|
-
case "online": return "Online";
|
|
1751
|
-
case "in_person": return formatVenue(location.venue);
|
|
1752
|
-
case "either": {
|
|
1753
|
-
const venue = formatVenue(location.venue);
|
|
1754
|
-
return venue ? `${venue} or online` : "In person or online";
|
|
1755
|
-
}
|
|
1756
|
-
default: return assertNever$1(location);
|
|
1757
|
-
}
|
|
1758
|
-
}
|
|
1759
|
-
function formatVenue(venue) {
|
|
1760
|
-
if (!venue) return null;
|
|
1761
|
-
return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
|
|
1762
|
-
}
|
|
1763
|
-
function formatAppointmentPrice(service) {
|
|
1764
|
-
if (service.onlinePaymentMode === "package_only") return "Book with a package";
|
|
1765
|
-
const pricing = service.pricing;
|
|
1766
|
-
if (pricing) {
|
|
1767
|
-
const display = appointmentPricingDisplay(pricing);
|
|
1768
|
-
return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
|
|
1769
|
-
}
|
|
1770
|
-
return formatAmountOrFree(service.priceAmount, service.priceCurrency);
|
|
1771
|
-
}
|
|
1772
|
-
function formatAmountOrFree(amount, currency) {
|
|
1773
|
-
if (amount === null || currency === null) return null;
|
|
1774
|
-
if (amount === 0) return "Free";
|
|
1775
|
-
return formatBookingPriceDisplay({
|
|
1776
|
-
kind: "exact",
|
|
1777
|
-
amount,
|
|
1778
|
-
currency
|
|
1779
|
-
}, { decimals: "auto" });
|
|
1780
|
-
}
|
|
1781
|
-
function appointmentPricingDisplay(pricing) {
|
|
1782
|
-
switch (pricing.pricingStrategy) {
|
|
1783
|
-
case "free": return {
|
|
1784
|
-
kind: "free",
|
|
1785
|
-
currency: pricing.currency
|
|
1786
|
-
};
|
|
1787
|
-
case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
|
|
1788
|
-
case "tiered": return resolvePricingOptionsPriceDisplay({
|
|
1789
|
-
options: pricing.options,
|
|
1790
|
-
currency: pricing.currency,
|
|
1791
|
-
purpose: "available_now"
|
|
1792
|
-
});
|
|
1793
|
-
case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
|
|
1794
|
-
kind: "unavailable",
|
|
1795
|
-
currency: pricing.currency
|
|
1796
|
-
} : {
|
|
1797
|
-
kind: "range",
|
|
1798
|
-
minAmount: pricing.slidingMinAmount,
|
|
1799
|
-
maxAmount: pricing.slidingMaxAmount,
|
|
1800
|
-
currency: pricing.currency
|
|
1801
|
-
};
|
|
1802
|
-
default: return assertNever$1(pricing.pricingStrategy);
|
|
1803
|
-
}
|
|
1804
|
-
}
|
|
1805
|
-
//#endregion
|
|
1806
1752
|
//#region ../blocks/src/system/blocks/events/shared/eventScope.ts
|
|
1807
1753
|
/** Content fields that narrow a discovery (not hand-picked) event section. */
|
|
1808
1754
|
const eventDiscoveryFilterKeys = [
|
|
@@ -3996,15 +3942,27 @@ function selectEventDetails(args) {
|
|
|
3996
3942
|
otherDates: otherDates.filter(isOrdinaryEvent),
|
|
3997
3943
|
timeZone,
|
|
3998
3944
|
depositOffer: resolvePublicEventDepositOffer(selected, { nowIso: args.nowIso }),
|
|
3999
|
-
bookedElsewhere: pageBookedElsewhere(all, occurrenceContext, args.nowIso)
|
|
3945
|
+
bookedElsewhere: pageBookedElsewhere(all, occurrenceContext, args.nowIso),
|
|
3946
|
+
cancelledEventDates: cancelledEventDates(selected, mode, all, args.nowIso)
|
|
4000
3947
|
};
|
|
4001
3948
|
}
|
|
3949
|
+
/** Only the overview speaks for the whole cancelled event; a chosen date keeps its own. */
|
|
3950
|
+
function cancelledEventDates(selected, mode, events, nowIso) {
|
|
3951
|
+
if (mode === "selected" || publicEventCancellation(selected) !== "event") return null;
|
|
3952
|
+
const dates = [selected, ...events.filter(isOrdinaryEvent).filter((event) => event.seriesId === selected.seriesId && event.occurrenceId !== selected.occurrenceId && isFutureOrNow(event.startsAt, nowIso))].sort((left, right) => Date.parse(left.startsAt) - Date.parse(right.startsAt));
|
|
3953
|
+
const first = dates[0];
|
|
3954
|
+
const last = dates.at(-1);
|
|
3955
|
+
return first && last ? {
|
|
3956
|
+
first,
|
|
3957
|
+
last
|
|
3958
|
+
} : null;
|
|
3959
|
+
}
|
|
4002
3960
|
//#endregion
|
|
4003
3961
|
//#region ../blocks/src/system/runtime/nodes/event-details/presentation.ts
|
|
4004
3962
|
function resolveSelection(input) {
|
|
4005
3963
|
return selectEventDetails({
|
|
4006
3964
|
events: input.events ?? null,
|
|
4007
|
-
occurrenceContext: input.occurrenceContext ?? null,
|
|
3965
|
+
occurrenceContext: input.eventOverview ? null : input.occurrenceContext ?? null,
|
|
4008
3966
|
subject: input.subject,
|
|
4009
3967
|
nowIso: input.now,
|
|
4010
3968
|
otherDatesLimit: input.otherDatesLimit
|
|
@@ -4413,12 +4371,34 @@ function headerDateFact(selection) {
|
|
|
4413
4371
|
endsAt: event.endsAt,
|
|
4414
4372
|
...eventDateOptions(event)
|
|
4415
4373
|
});
|
|
4416
|
-
return {
|
|
4374
|
+
return cancelledEventDatesFact(selection) ?? {
|
|
4417
4375
|
label: selection.mode === "next" ? "Next date" : "Date",
|
|
4418
4376
|
value: date
|
|
4419
4377
|
};
|
|
4420
4378
|
}
|
|
4421
4379
|
/**
|
|
4380
|
+
* A cancelled event's dates, as its own page names them: the span of its
|
|
4381
|
+
* remaining dates, or the one date it was due on. A cancelled event has no
|
|
4382
|
+
* next date. Null for anything still on, or a date's own page.
|
|
4383
|
+
*/
|
|
4384
|
+
function cancelledEventDatesFact(selection) {
|
|
4385
|
+
const cancelled = selection.kind === "ordinary" ? selection.cancelledEventDates : null;
|
|
4386
|
+
if (!cancelled) return null;
|
|
4387
|
+
if (cancelled.first !== cancelled.last) return {
|
|
4388
|
+
label: "Dates",
|
|
4389
|
+
value: formatEventRunDates(cancelled.first, cancelled.last, eventDateOptions(cancelled.first))
|
|
4390
|
+
};
|
|
4391
|
+
const { date } = formatEventDateParts({
|
|
4392
|
+
startsAt: cancelled.first.startsAt,
|
|
4393
|
+
endsAt: cancelled.first.endsAt,
|
|
4394
|
+
...eventDateOptions(cancelled.first)
|
|
4395
|
+
});
|
|
4396
|
+
return {
|
|
4397
|
+
label: "Date",
|
|
4398
|
+
value: date
|
|
4399
|
+
};
|
|
4400
|
+
}
|
|
4401
|
+
/**
|
|
4422
4402
|
* Dates booked elsewhere take the page's shared booking decision, the one the
|
|
4423
4403
|
* registration panel shows. A later booking date is named by
|
|
4424
4404
|
* `laterBookingFact`, not in the button.
|
|
@@ -4635,57 +4615,111 @@ function DateTimeTile(props) {
|
|
|
4635
4615
|
});
|
|
4636
4616
|
}
|
|
4637
4617
|
//#endregion
|
|
4638
|
-
//#region ../blocks/src/system/runtime/nodes/event-details/
|
|
4618
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/eventPriceSummary.ts
|
|
4619
|
+
function decideEventPriceSummary(input) {
|
|
4620
|
+
if (input.options.length < 2) return {
|
|
4621
|
+
kind: "price",
|
|
4622
|
+
price: input.price,
|
|
4623
|
+
depositNote: input.depositNote
|
|
4624
|
+
};
|
|
4625
|
+
return {
|
|
4626
|
+
kind: "options",
|
|
4627
|
+
range: input.optionsCoverEveryPrice ? null : input.price,
|
|
4628
|
+
options: input.options,
|
|
4629
|
+
depositNote: input.depositNote
|
|
4630
|
+
};
|
|
4631
|
+
}
|
|
4639
4632
|
/** A course lists every active option, whether or not its sale window is open. */
|
|
4640
4633
|
function wholeSeriesPriceOptions(pricing) {
|
|
4641
4634
|
return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
|
|
4642
4635
|
}
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4636
|
+
function wholeSeriesPriceSummary(pricing, depositNote) {
|
|
4637
|
+
return decideEventPriceSummary({
|
|
4638
|
+
price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
|
|
4639
|
+
options: wholeSeriesPriceOptions(pricing).map((option) => ({
|
|
4640
|
+
id: option.id,
|
|
4641
|
+
name: option.name,
|
|
4642
|
+
description: option.description,
|
|
4643
|
+
price: formatEventPriceAmount(option.priceAmount, pricing.currency)
|
|
4644
|
+
})),
|
|
4645
|
+
depositNote,
|
|
4646
|
+
optionsCoverEveryPrice: true
|
|
4647
|
+
});
|
|
4648
|
+
}
|
|
4649
|
+
//#endregion
|
|
4650
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/EventFactRows.tsx
|
|
4651
|
+
/**
|
|
4652
|
+
* An event's facts as a short list: one row per fact, a small icon where a
|
|
4653
|
+
* label would be. The labels stay for screen readers. Each row is a direct
|
|
4654
|
+
* child of the list, so a site style's `facts > *` rules still reach it.
|
|
4655
|
+
*/
|
|
4656
|
+
function EventFactList({ slot, children }) {
|
|
4657
|
+
return /* @__PURE__ */ jsx("dl", {
|
|
4658
|
+
...slot,
|
|
4659
|
+
className: "rb-event-facts",
|
|
4660
|
+
children
|
|
4648
4661
|
});
|
|
4649
4662
|
}
|
|
4650
|
-
function
|
|
4651
|
-
const options = wholeSeriesPriceOptions(pricing);
|
|
4663
|
+
function EventFactRow({ fact, label, icon: Icon, slots, wide = false, children }) {
|
|
4652
4664
|
return /* @__PURE__ */ jsxs("div", {
|
|
4653
4665
|
...slots.detail,
|
|
4654
|
-
|
|
4655
|
-
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4666
|
+
"data-fact": fact,
|
|
4667
|
+
"data-fact-wide": wide ? "" : void 0,
|
|
4668
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
4669
|
+
...slots.label,
|
|
4670
|
+
className: "rb-sr-only",
|
|
4671
|
+
children: label
|
|
4672
|
+
}), /* @__PURE__ */ jsxs("dd", {
|
|
4673
|
+
className: "rb-event-fact",
|
|
4674
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
4675
|
+
className: "rb-event-fact-icon",
|
|
4676
|
+
strokeWidth: 1.75
|
|
4677
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
4662
4678
|
...slots.value,
|
|
4663
|
-
className: "rb-
|
|
4664
|
-
children
|
|
4665
|
-
|
|
4666
|
-
|
|
4667
|
-
" ",
|
|
4668
|
-
formatEventPriceAmount(option.priceAmount, pricing.currency)
|
|
4669
|
-
] }), option.description ? /* @__PURE__ */ jsx("p", {
|
|
4670
|
-
className: "rb-caption status-muted",
|
|
4671
|
-
children: option.description
|
|
4672
|
-
}) : null] }, option.id))
|
|
4673
|
-
}) : /* @__PURE__ */ jsx(PriceLine, {
|
|
4674
|
-
price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
|
|
4675
|
-
depositNote,
|
|
4676
|
-
valueSlot: slots.value
|
|
4677
|
-
}),
|
|
4678
|
-
depositNote && options.length > 1 ? /* @__PURE__ */ jsxs("p", {
|
|
4679
|
-
className: "rb-caption rb-mt-1",
|
|
4680
|
-
children: [depositNote.charAt(0).toUpperCase(), depositNote.slice(1)]
|
|
4681
|
-
}) : null,
|
|
4682
|
-
acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
|
|
4683
|
-
className: "rb-caption rb-mt-1",
|
|
4684
|
-
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
4685
|
-
}) : null
|
|
4686
|
-
]
|
|
4679
|
+
className: "rb-event-fact-text",
|
|
4680
|
+
children
|
|
4681
|
+
})]
|
|
4682
|
+
})]
|
|
4687
4683
|
});
|
|
4688
4684
|
}
|
|
4685
|
+
/** The price, with any deposit option said beside it. */
|
|
4686
|
+
function PriceLine({ price, depositNote }) {
|
|
4687
|
+
return /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null] });
|
|
4688
|
+
}
|
|
4689
|
+
/** Each price sits next to its name. Descriptions put one option on each line. */
|
|
4690
|
+
function PriceOptionList({ options }) {
|
|
4691
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
4692
|
+
className: "rb-event-price-options",
|
|
4693
|
+
"data-described": options.some((option) => option.description) ? "" : void 0,
|
|
4694
|
+
children: options.map((option) => /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
4695
|
+
/* @__PURE__ */ jsx("strong", { children: option.price }),
|
|
4696
|
+
" ",
|
|
4697
|
+
option.name
|
|
4698
|
+
] }), option.description ? /* @__PURE__ */ jsx("span", {
|
|
4699
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4700
|
+
children: option.description
|
|
4701
|
+
}) : null] }, option.id))
|
|
4702
|
+
});
|
|
4703
|
+
}
|
|
4704
|
+
/** Prices with descriptions read as sentences, so they need the width of the row. */
|
|
4705
|
+
function priceSummaryIsWide(summary) {
|
|
4706
|
+
return summary.kind !== "price" && summary.options.some((option) => option.description);
|
|
4707
|
+
}
|
|
4708
|
+
const sentence = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
|
|
4709
|
+
function EventPriceSummaryLines({ summary }) {
|
|
4710
|
+
if (summary.kind === "price") return /* @__PURE__ */ jsx(PriceLine, {
|
|
4711
|
+
price: summary.price,
|
|
4712
|
+
depositNote: summary.depositNote
|
|
4713
|
+
});
|
|
4714
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4715
|
+
summary.range ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: summary.range }) }) : null,
|
|
4716
|
+
/* @__PURE__ */ jsx(PriceOptionList, { options: summary.options }),
|
|
4717
|
+
summary.depositNote ? /* @__PURE__ */ jsxs("p", {
|
|
4718
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4719
|
+
children: [sentence(summary.depositNote), "."]
|
|
4720
|
+
}) : null
|
|
4721
|
+
] });
|
|
4722
|
+
}
|
|
4689
4723
|
//#endregion
|
|
4690
4724
|
//#region ../blocks/src/system/runtime/nodes/event-details/view.tsx
|
|
4691
4725
|
function formatAutoApplyDiscountLine(preview, currency) {
|
|
@@ -4703,79 +4737,79 @@ function TeamMemberName({ name, profilePath }) {
|
|
|
4703
4737
|
function formatTicketTypePrice(ticketType, currency) {
|
|
4704
4738
|
return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
|
|
4705
4739
|
}
|
|
4740
|
+
/** A room's prices depend on the room, so the booking form shows them with it, not the price list. */
|
|
4741
|
+
const roomPriceIdsOf = (event) => event.rooms?.linkedOptionIds ?? [];
|
|
4742
|
+
/** With a room's prices left out of the list, the range line stays to say how far prices go. */
|
|
4743
|
+
const hasRoomPrices = (event) => event.pricing.kind === "tiered" && event.pricing.options.some((option) => roomPriceIdsOf(event).includes(option.id));
|
|
4706
4744
|
function getDisplayablePricingOptions(event) {
|
|
4707
|
-
const roomPriceIds = event
|
|
4745
|
+
const roomPriceIds = roomPriceIdsOf(event);
|
|
4708
4746
|
return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).filter((option) => !roomPriceIds.includes(option.id)).sort((left, right) => left.sortOrder - right.sortOrder) : [];
|
|
4709
4747
|
}
|
|
4710
|
-
function
|
|
4711
|
-
|
|
4712
|
-
return
|
|
4713
|
-
|
|
4714
|
-
|
|
4715
|
-
|
|
4716
|
-
|
|
4717
|
-
|
|
4718
|
-
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
}
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
|
|
4726
|
-
className: "rb-
|
|
4727
|
-
children: [
|
|
4728
|
-
|
|
4729
|
-
|
|
4730
|
-
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
|
|
4734
|
-
|
|
4735
|
-
|
|
4736
|
-
|
|
4737
|
-
|
|
4738
|
-
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4746
|
-
|
|
4747
|
-
|
|
4748
|
-
|
|
4749
|
-
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
|
|
4753
|
-
|
|
4754
|
-
|
|
4755
|
-
|
|
4756
|
-
|
|
4757
|
-
|
|
4758
|
-
|
|
4759
|
-
|
|
4760
|
-
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
|
|
4769
|
-
|
|
4770
|
-
|
|
4771
|
-
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
children: /* @__PURE__ */
|
|
4775
|
-
...slots.value,
|
|
4776
|
-
className: "rb-caption",
|
|
4777
|
-
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
4778
|
-
})
|
|
4748
|
+
function ticketPriceSummary(pricing, price) {
|
|
4749
|
+
const currency = pricing.eventPricingCurrency;
|
|
4750
|
+
return decideEventPriceSummary({
|
|
4751
|
+
price,
|
|
4752
|
+
options: currency ? pricing.ticketTypes.map((ticketType) => ({
|
|
4753
|
+
id: ticketType.id,
|
|
4754
|
+
name: ticketType.name,
|
|
4755
|
+
description: ticketType.description,
|
|
4756
|
+
price: formatTicketTypePrice(ticketType, currency)
|
|
4757
|
+
})) : [],
|
|
4758
|
+
depositNote: pricing.depositNote,
|
|
4759
|
+
optionsCoverEveryPrice: pricing.ticketsCoverEveryPrice
|
|
4760
|
+
});
|
|
4761
|
+
}
|
|
4762
|
+
function AcceptedItemsLine({ acceptedItems }) {
|
|
4763
|
+
return acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
|
|
4764
|
+
className: "rb-caption",
|
|
4765
|
+
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
4766
|
+
}) : null;
|
|
4767
|
+
}
|
|
4768
|
+
/** The price row, in whichever form this event's pricing takes. */
|
|
4769
|
+
function EventPricingDetails(props) {
|
|
4770
|
+
const { acceptedItems, slots } = props;
|
|
4771
|
+
if (props.isDropIn) return /* @__PURE__ */ jsx(EventFactRow, {
|
|
4772
|
+
slots,
|
|
4773
|
+
fact: "registration",
|
|
4774
|
+
label: "Registration",
|
|
4775
|
+
icon: TicketIcon,
|
|
4776
|
+
children: /* @__PURE__ */ jsx("p", { children: "No registration required - just show up" })
|
|
4777
|
+
});
|
|
4778
|
+
if (props.wholeSeriesPricingDisplay) {
|
|
4779
|
+
const summary = wholeSeriesPriceSummary(props.wholeSeriesPricingDisplay, props.depositNote);
|
|
4780
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4781
|
+
slots,
|
|
4782
|
+
fact: "price",
|
|
4783
|
+
label: "Cost",
|
|
4784
|
+
icon: TicketIcon,
|
|
4785
|
+
wide: priceSummaryIsWide(summary),
|
|
4786
|
+
children: [/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary }), /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })]
|
|
4787
|
+
});
|
|
4788
|
+
}
|
|
4789
|
+
if (props.eventCostLabel) {
|
|
4790
|
+
const summary = ticketPriceSummary(props, props.eventCostLabel);
|
|
4791
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4792
|
+
slots,
|
|
4793
|
+
fact: "price",
|
|
4794
|
+
label: "Cost",
|
|
4795
|
+
icon: TicketIcon,
|
|
4796
|
+
wide: priceSummaryIsWide(summary),
|
|
4797
|
+
children: [
|
|
4798
|
+
/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary }),
|
|
4799
|
+
props.autoApplyDiscount && props.eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
|
|
4800
|
+
className: "rb-caption",
|
|
4801
|
+
children: formatAutoApplyDiscountLine(props.autoApplyDiscount, props.eventPricingCurrency)
|
|
4802
|
+
}) : null,
|
|
4803
|
+
/* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
|
|
4804
|
+
]
|
|
4805
|
+
});
|
|
4806
|
+
}
|
|
4807
|
+
return acceptedItems.length > 0 ? /* @__PURE__ */ jsx(EventFactRow, {
|
|
4808
|
+
slots,
|
|
4809
|
+
fact: "accepted",
|
|
4810
|
+
label: "Passes and memberships",
|
|
4811
|
+
icon: TicketIcon,
|
|
4812
|
+
children: /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
|
|
4779
4813
|
}) : null;
|
|
4780
4814
|
}
|
|
4781
4815
|
function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots, slots }) {
|
|
@@ -4784,28 +4818,22 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
|
|
|
4784
4818
|
endsAt: selected.endsAt,
|
|
4785
4819
|
...eventDateOptions(selected)
|
|
4786
4820
|
});
|
|
4787
|
-
const
|
|
4788
|
-
|
|
4789
|
-
|
|
4790
|
-
|
|
4821
|
+
const dateFact = cancelledEventDatesFact(selection) ?? {
|
|
4822
|
+
label: ordinaryDateHeading(selection),
|
|
4823
|
+
value: date
|
|
4824
|
+
};
|
|
4825
|
+
return /* @__PURE__ */ jsxs(EventFactList, {
|
|
4826
|
+
slot: listLookSlot({ lookSlots }, "facts"),
|
|
4791
4827
|
children: [
|
|
4792
|
-
/* @__PURE__ */ jsxs(
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4797
|
-
|
|
4798
|
-
|
|
4799
|
-
|
|
4800
|
-
|
|
4801
|
-
...slots.value,
|
|
4802
|
-
children: /* @__PURE__ */ jsx("strong", { children: date })
|
|
4803
|
-
}),
|
|
4804
|
-
/* @__PURE__ */ jsx("p", {
|
|
4805
|
-
className: "rb-caption",
|
|
4806
|
-
children: timeRange
|
|
4807
|
-
})
|
|
4808
|
-
]
|
|
4828
|
+
/* @__PURE__ */ jsxs(EventFactRow, {
|
|
4829
|
+
slots,
|
|
4830
|
+
fact: "date",
|
|
4831
|
+
label: dateFact.label,
|
|
4832
|
+
icon: CalendarIcon,
|
|
4833
|
+
children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: dateFact.value }) }), /* @__PURE__ */ jsx("p", {
|
|
4834
|
+
className: "rb-event-fact-muted",
|
|
4835
|
+
children: timeRange
|
|
4836
|
+
})]
|
|
4809
4837
|
}),
|
|
4810
4838
|
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
4811
4839
|
venue,
|
|
@@ -4817,17 +4845,12 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
|
|
|
4817
4845
|
teamMembers,
|
|
4818
4846
|
slots
|
|
4819
4847
|
}),
|
|
4820
|
-
showCapacity && selected.capacity != null ? /* @__PURE__ */
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
|
|
4826
|
-
children: "Places"
|
|
4827
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
4828
|
-
...slots.value,
|
|
4829
|
-
children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity)
|
|
4830
|
-
})]
|
|
4848
|
+
showCapacity && selected.capacity != null ? /* @__PURE__ */ jsx(EventFactRow, {
|
|
4849
|
+
slots,
|
|
4850
|
+
fact: "places",
|
|
4851
|
+
label: "Places",
|
|
4852
|
+
icon: UsersIcon,
|
|
4853
|
+
children: /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })
|
|
4831
4854
|
}) : null,
|
|
4832
4855
|
pricing,
|
|
4833
4856
|
selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
|
|
@@ -4838,43 +4861,34 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
|
|
|
4838
4861
|
]
|
|
4839
4862
|
});
|
|
4840
4863
|
}
|
|
4864
|
+
const ordinaryDateHeading = (selection) => selection.kind === "wholeSeries" ? runLifecycleLabel(selection.lifecycle) : selection.mode === "next" ? "Next date" : "Date";
|
|
4841
4865
|
const eventOnlinePlaceShown = (event, showVenue) => showVenue ? eventOnlinePlace(event) : null;
|
|
4842
4866
|
const hasEventPlaceFact = (event, showVenue) => showVenue && (Boolean(event.venue) || eventOnlinePlace(event) !== null || event.addressAfterBooking === true);
|
|
4843
4867
|
const addressAfterBookingShown = (event, showVenue) => showVenue && event.addressAfterBooking === true;
|
|
4844
4868
|
/** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
|
|
4845
4869
|
function EventPlaceWithoutVenue({ online, addressAfterBooking, slots }) {
|
|
4846
4870
|
if (!online && !addressAfterBooking) return null;
|
|
4847
|
-
if (!online) return /* @__PURE__ */
|
|
4848
|
-
|
|
4849
|
-
|
|
4850
|
-
|
|
4851
|
-
|
|
4852
|
-
|
|
4853
|
-
children: "Venue"
|
|
4854
|
-
}), /* @__PURE__ */ jsx("p", {
|
|
4855
|
-
...slots.value,
|
|
4856
|
-
children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL })
|
|
4857
|
-
})]
|
|
4871
|
+
if (!online) return /* @__PURE__ */ jsx(EventFactRow, {
|
|
4872
|
+
slots,
|
|
4873
|
+
fact: "venue",
|
|
4874
|
+
label: "Venue",
|
|
4875
|
+
icon: MapPinIcon,
|
|
4876
|
+
children: /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL }) })
|
|
4858
4877
|
});
|
|
4859
|
-
return /* @__PURE__ */ jsxs(
|
|
4860
|
-
|
|
4861
|
-
|
|
4878
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4879
|
+
slots,
|
|
4880
|
+
fact: "venue",
|
|
4881
|
+
label: "Venue",
|
|
4882
|
+
icon: GlobeIcon,
|
|
4883
|
+
wide: addressAfterBooking || Boolean(online.note),
|
|
4862
4884
|
children: [
|
|
4863
|
-
/* @__PURE__ */ jsx("
|
|
4864
|
-
...slots.label,
|
|
4865
|
-
className: "rb-label rb-mb-2",
|
|
4866
|
-
children: "Venue"
|
|
4867
|
-
}),
|
|
4868
|
-
/* @__PURE__ */ jsx("p", {
|
|
4869
|
-
...slots.value,
|
|
4870
|
-
children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" })
|
|
4871
|
-
}),
|
|
4885
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
|
|
4872
4886
|
addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
|
|
4873
|
-
className: "rb-caption",
|
|
4887
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4874
4888
|
children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
|
|
4875
4889
|
}) : null,
|
|
4876
4890
|
online.note ? /* @__PURE__ */ jsx("p", {
|
|
4877
|
-
className: "rb-caption",
|
|
4891
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4878
4892
|
children: online.note
|
|
4879
4893
|
}) : null
|
|
4880
4894
|
]
|
|
@@ -4888,57 +4902,46 @@ function EventVenueFact({ venue, online, addressAfterBooking, slots }) {
|
|
|
4888
4902
|
slots
|
|
4889
4903
|
});
|
|
4890
4904
|
const { place, addressWithBooking } = eventVenuePlace(venue);
|
|
4891
|
-
return /* @__PURE__ */ jsxs(
|
|
4892
|
-
|
|
4893
|
-
|
|
4905
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4906
|
+
slots,
|
|
4907
|
+
fact: "venue",
|
|
4908
|
+
label: "Venue",
|
|
4909
|
+
icon: MapPinIcon,
|
|
4910
|
+
wide: addressWithBooking || online !== null,
|
|
4894
4911
|
children: [
|
|
4895
|
-
/* @__PURE__ */ jsx("
|
|
4896
|
-
...slots.label,
|
|
4897
|
-
className: "rb-label rb-mb-2",
|
|
4898
|
-
children: "Venue"
|
|
4899
|
-
}),
|
|
4900
|
-
/* @__PURE__ */ jsx("p", {
|
|
4901
|
-
...slots.value,
|
|
4902
|
-
children: /* @__PURE__ */ jsx("strong", { children: venue.name })
|
|
4903
|
-
}),
|
|
4904
|
-
place ? /* @__PURE__ */ jsx("p", {
|
|
4905
|
-
className: "rb-caption",
|
|
4906
|
-
children: place
|
|
4907
|
-
}) : null,
|
|
4912
|
+
/* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? `, ${place}` : null] }),
|
|
4908
4913
|
addressWithBooking ? /* @__PURE__ */ jsx("p", {
|
|
4909
|
-
className: "rb-caption rb-
|
|
4914
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4910
4915
|
children: "The full address and directions come with your booking confirmation."
|
|
4911
4916
|
}) : /* @__PURE__ */ jsx(LocationMapActions, {
|
|
4912
4917
|
location: venue.location,
|
|
4913
4918
|
addressText: venue.address
|
|
4914
4919
|
}),
|
|
4915
4920
|
online ? /* @__PURE__ */ jsxs("p", {
|
|
4916
|
-
className: "rb-caption rb-
|
|
4921
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4917
4922
|
children: ["You can also join online.", online.note ? ` ${online.note}` : ""]
|
|
4918
4923
|
}) : null
|
|
4919
4924
|
]
|
|
4920
4925
|
});
|
|
4921
4926
|
}
|
|
4927
|
+
/** "With Alice", "With Alice and Ben", "With Alice, Ben and Cara". */
|
|
4928
|
+
const nameSeparator = (index, count) => index === 0 ? "" : index === count - 1 ? " and " : ", ";
|
|
4922
4929
|
function EventTeacherFacts({ teamMembers, slots }) {
|
|
4923
|
-
|
|
4924
|
-
|
|
4925
|
-
|
|
4926
|
-
|
|
4927
|
-
|
|
4928
|
-
|
|
4929
|
-
|
|
4930
|
-
|
|
4931
|
-
|
|
4932
|
-
|
|
4933
|
-
|
|
4934
|
-
|
|
4935
|
-
|
|
4936
|
-
|
|
4937
|
-
|
|
4938
|
-
children: member.summary
|
|
4939
|
-
}) : null] }, member.id))
|
|
4940
|
-
})]
|
|
4941
|
-
}) : null;
|
|
4930
|
+
if (teamMembers.length === 0) return null;
|
|
4931
|
+
const described = teamMembers.filter((member) => member.summary);
|
|
4932
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4933
|
+
slots,
|
|
4934
|
+
fact: "team",
|
|
4935
|
+
label: "With",
|
|
4936
|
+
icon: UserIcon,
|
|
4937
|
+
children: [/* @__PURE__ */ jsxs("p", { children: ["With ", teamMembers.map((member, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [nameSeparator(index, teamMembers.length), /* @__PURE__ */ jsx(TeamMemberName, {
|
|
4938
|
+
name: member.name,
|
|
4939
|
+
profilePath: member.profilePath
|
|
4940
|
+
})] }, member.id))] }), described.map((member) => /* @__PURE__ */ jsxs("p", {
|
|
4941
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4942
|
+
children: [teamMembers.length > 1 ? `${member.name}: ` : null, member.summary]
|
|
4943
|
+
}, member.id))]
|
|
4944
|
+
});
|
|
4942
4945
|
}
|
|
4943
4946
|
/**
|
|
4944
4947
|
* Where the run has got to, in the words a visitor would use.
|
|
@@ -4963,24 +4966,15 @@ function runLifecycleLabel(lifecycle) {
|
|
|
4963
4966
|
* actually notices.
|
|
4964
4967
|
*/
|
|
4965
4968
|
function BookingState({ phase, event, slots }) {
|
|
4966
|
-
return /* @__PURE__ */ jsxs(
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
/* @__PURE__ */ jsx("p", {
|
|
4976
|
-
...slots.value,
|
|
4977
|
-
children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" })
|
|
4978
|
-
}),
|
|
4979
|
-
phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
|
|
4980
|
-
className: "rb-caption",
|
|
4981
|
-
children: bookingClosedReason(phase.reason)
|
|
4982
|
-
}) : null
|
|
4983
|
-
]
|
|
4969
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4970
|
+
slots,
|
|
4971
|
+
fact: "booking",
|
|
4972
|
+
label: "Booking",
|
|
4973
|
+
icon: InfoIcon,
|
|
4974
|
+
children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }), phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
|
|
4975
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4976
|
+
children: bookingClosedReason(phase.reason)
|
|
4977
|
+
}) : null]
|
|
4984
4978
|
});
|
|
4985
4979
|
}
|
|
4986
4980
|
function bookingClosedReason(reason) {
|
|
@@ -5093,7 +5087,8 @@ function selectedEventPricing(selection, showCost) {
|
|
|
5093
5087
|
eventCostLabel: showEventCost ? formatEventPrice(event) : null,
|
|
5094
5088
|
depositNote: showCost && !isDropIn && isPaid(event) ? formatEventDepositNote(selection.depositOffer) : null,
|
|
5095
5089
|
eventPricingCurrency: publicEventPricingCurrency(event.pricing),
|
|
5096
|
-
ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
|
|
5090
|
+
ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : [],
|
|
5091
|
+
ticketsCoverEveryPrice: !hasRoomPrices(event)
|
|
5097
5092
|
};
|
|
5098
5093
|
}
|
|
5099
5094
|
const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
|
|
@@ -5229,25 +5224,22 @@ function EventHeaderPanel(props) {
|
|
|
5229
5224
|
});
|
|
5230
5225
|
}
|
|
5231
5226
|
function HeaderPanelFacts({ venue, online, addressAfterBooking, teamMembers, pricing, slots }) {
|
|
5232
|
-
return /* @__PURE__ */ jsxs(
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
}) : null
|
|
5249
|
-
]
|
|
5250
|
-
});
|
|
5227
|
+
return /* @__PURE__ */ jsxs(EventFactList, { children: [
|
|
5228
|
+
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
5229
|
+
venue,
|
|
5230
|
+
online,
|
|
5231
|
+
addressAfterBooking,
|
|
5232
|
+
slots
|
|
5233
|
+
}),
|
|
5234
|
+
/* @__PURE__ */ jsx(EventTeacherFacts, {
|
|
5235
|
+
teamMembers,
|
|
5236
|
+
slots
|
|
5237
|
+
}),
|
|
5238
|
+
pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
|
|
5239
|
+
...pricing,
|
|
5240
|
+
slots
|
|
5241
|
+
}) : null
|
|
5242
|
+
] });
|
|
5251
5243
|
}
|
|
5252
5244
|
/** What the panel has to add to the header, decided once. */
|
|
5253
5245
|
function headerPanelContent(props) {
|
|
@@ -6365,9 +6357,72 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
|
|
|
6365
6357
|
}
|
|
6366
6358
|
};
|
|
6367
6359
|
}
|
|
6360
|
+
/**
|
|
6361
|
+
* Creates a modal field group for styling full-width sections.
|
|
6362
|
+
*
|
|
6363
|
+
* Section styles include:
|
|
6364
|
+
* - Background (color/gradient/image with advanced options)
|
|
6365
|
+
* - Inner spacing (vertical padding)
|
|
6366
|
+
*
|
|
6367
|
+
* Sections are full-width wrappers that span the entire viewport, so they don't
|
|
6368
|
+
* support rounded corners or elevation shadows (unlike containers and cards).
|
|
6369
|
+
*
|
|
6370
|
+
* Use with the `backgroundLayer()` helper to render backgrounds in the block layout.
|
|
6371
|
+
*
|
|
6372
|
+
* @param options - Customization options for the field
|
|
6373
|
+
* @param options.id - Field ID (default: '_sectionStyles')
|
|
6374
|
+
* @param options.label - Field label (default: 'Section styles')
|
|
6375
|
+
* @param options.includeBackground - Whether to include background field (default: true)
|
|
6376
|
+
* @returns A modal FieldDefinition that can be added to a block's fields array
|
|
6377
|
+
*
|
|
6378
|
+
* @example
|
|
6379
|
+
* // Basic usage in a block
|
|
6380
|
+
* const fields = [
|
|
6381
|
+
* // ... other fields
|
|
6382
|
+
* sectionStylesField({
|
|
6383
|
+
* id: '_sectionStyles',
|
|
6384
|
+
* label: 'Section styles',
|
|
6385
|
+
* }),
|
|
6386
|
+
* ]
|
|
6387
|
+
*
|
|
6388
|
+
* @example
|
|
6389
|
+
* // In the layout, use backgroundLayer() to render
|
|
6390
|
+
* const layout = section(
|
|
6391
|
+
* { background: 'background' },
|
|
6392
|
+
* [
|
|
6393
|
+
* ...backgroundLayer('_sectionStyles.background'),
|
|
6394
|
+
* sectionContainer([])
|
|
6395
|
+
* ]
|
|
6396
|
+
* )
|
|
6397
|
+
*
|
|
6398
|
+
* @see {@link containerStylesField} for constrained-width containers with elevation
|
|
6399
|
+
* @see {@link cardStylesField} for repeater items with elevation
|
|
6400
|
+
* @see {@link backgroundLayer} for rendering backgrounds in layouts
|
|
6401
|
+
*/
|
|
6402
|
+
const sectionOwnerChoiceFields = [{
|
|
6403
|
+
id: "ground",
|
|
6404
|
+
type: "group",
|
|
6405
|
+
label: "Background",
|
|
6406
|
+
required: false,
|
|
6407
|
+
schema: { fields: [] },
|
|
6408
|
+
ui: {
|
|
6409
|
+
valueContract: "sectionGround",
|
|
6410
|
+
hidden: true
|
|
6411
|
+
}
|
|
6412
|
+
}, {
|
|
6413
|
+
id: "treatment",
|
|
6414
|
+
type: "group",
|
|
6415
|
+
label: "Treatment",
|
|
6416
|
+
required: false,
|
|
6417
|
+
schema: { fields: [] },
|
|
6418
|
+
ui: {
|
|
6419
|
+
valueContract: "sectionTreatment",
|
|
6420
|
+
hidden: true
|
|
6421
|
+
}
|
|
6422
|
+
}];
|
|
6368
6423
|
function sectionStylesField(options = {}) {
|
|
6369
6424
|
const { id = "_sectionStyles", label = "Section styles", includeBackground = true, allowBackgroundColor = true, allowBackgroundGradient = true, allowBackgroundImage = true, includeAdvancedBackground = true, renderInHeader = true } = options;
|
|
6370
|
-
const fields = [];
|
|
6425
|
+
const fields = [...sectionOwnerChoiceFields];
|
|
6371
6426
|
if (includeBackground) fields.push(createBackgroundField({
|
|
6372
6427
|
id: "background",
|
|
6373
6428
|
label: "Background",
|
|
@@ -8012,7 +8067,10 @@ function backgroundLayer(path, options = {}) {
|
|
|
8012
8067
|
from: path,
|
|
8013
8068
|
transforms: [{
|
|
8014
8069
|
id: "background.resolveStyle",
|
|
8015
|
-
|
|
8070
|
+
options: {
|
|
8071
|
+
...path === "_sectionStyles.background" ? { sectionGround: true } : {},
|
|
8072
|
+
...typeof fallbackToken === "string" && fallbackToken.trim().length > 0 ? { fallbackToken: fallbackToken.trim() } : {}
|
|
8073
|
+
}
|
|
8016
8074
|
}]
|
|
8017
8075
|
} }
|
|
8018
8076
|
});
|
|
@@ -9401,23 +9459,243 @@ const checkoutBlockDefinition = {
|
|
|
9401
9459
|
}),
|
|
9402
9460
|
runtime: checkoutBlockRuntime
|
|
9403
9461
|
};
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9462
|
+
//#endregion
|
|
9463
|
+
//#region ../blocks/src/system/readiness.ts
|
|
9464
|
+
const ready = { kind: "Ready" };
|
|
9465
|
+
const unknownReadiness = { kind: "Unknown" };
|
|
9466
|
+
const loadedReadinessFact = (value) => ({
|
|
9467
|
+
kind: "Loaded",
|
|
9468
|
+
value
|
|
9469
|
+
});
|
|
9470
|
+
const unavailableReadinessFact = { kind: "Unavailable" };
|
|
9471
|
+
function needsSetup(reason, repair) {
|
|
9472
|
+
return {
|
|
9473
|
+
kind: "NeedsSetup",
|
|
9474
|
+
reason,
|
|
9475
|
+
repair
|
|
9476
|
+
};
|
|
9477
|
+
}
|
|
9478
|
+
function hiddenByChoice(reason, repair) {
|
|
9479
|
+
return {
|
|
9480
|
+
kind: "Hidden",
|
|
9481
|
+
reason,
|
|
9482
|
+
repair
|
|
9483
|
+
};
|
|
9484
|
+
}
|
|
9485
|
+
/** Visitors don't see a block that needs setting up, or one its editor has chosen to hide for now. */
|
|
9486
|
+
function hiddenFromVisitors(readiness) {
|
|
9487
|
+
return readiness.kind === "NeedsSetup" || readiness.kind === "Hidden";
|
|
9488
|
+
}
|
|
9489
|
+
/** One boundary owns runtime stage checking and the resulting phantom proof. */
|
|
9490
|
+
function admitReadinessFacts(stage, input) {
|
|
9491
|
+
return input.stage === stage ? input.facts : unavailableReadinessFacts();
|
|
9492
|
+
}
|
|
9493
|
+
function unavailableReadinessFacts() {
|
|
9494
|
+
return {
|
|
9495
|
+
catalogue: unavailableReadinessFact,
|
|
9496
|
+
gifting: unavailableReadinessFact,
|
|
9497
|
+
eventFilters: unavailableReadinessFact,
|
|
9498
|
+
appointments: unavailableReadinessFact,
|
|
9499
|
+
mailingList: unavailableReadinessFact,
|
|
9500
|
+
testimonials: unavailableReadinessFact,
|
|
9501
|
+
team: unavailableReadinessFact,
|
|
9502
|
+
events: /* @__PURE__ */ new Map(),
|
|
9503
|
+
forms: /* @__PURE__ */ new Map(),
|
|
9504
|
+
products: /* @__PURE__ */ new Map(),
|
|
9505
|
+
template: unavailableReadinessFact
|
|
9506
|
+
};
|
|
9507
|
+
}
|
|
9508
|
+
function pageTemplateFromEntry(entry) {
|
|
9509
|
+
return entry?._contentTypeSlug === "product" ? { kind: "product" } : { kind: "page" };
|
|
9510
|
+
}
|
|
9511
|
+
//#endregion
|
|
9512
|
+
//#region ../blocks/src/system/blocks/readiness.ts
|
|
9513
|
+
const newsletterReadiness = {
|
|
9514
|
+
needs: ["mailingList", "events"],
|
|
9515
|
+
assess: (content, facts, { interaction, blockId }) => {
|
|
9516
|
+
if (interaction?.kind === "demo") return ready;
|
|
9517
|
+
if (facts.mailingList.kind === "Unavailable") return unknownReadiness;
|
|
9518
|
+
const targeting = parseMailingListPlacementTargeting(content.targeting ?? { mode: "default" });
|
|
9519
|
+
if (!targeting.ok) return unknownReadiness;
|
|
9520
|
+
const assessment = assessMailingListTargeting(facts.mailingList.value, targeting.value);
|
|
9521
|
+
return assessment.tag === "available" ? signupStandInReadiness(content, facts.events, blockId) : assessment.reason === "setup_missing" ? needsSetup("mailing_setup", {
|
|
9522
|
+
kind: "manage",
|
|
9523
|
+
target: "mailingLists"
|
|
9524
|
+
}) : needsSetup("mailing_destination", {
|
|
9525
|
+
kind: "field",
|
|
9526
|
+
path: "targeting"
|
|
9527
|
+
});
|
|
9528
|
+
}
|
|
9529
|
+
};
|
|
9530
|
+
/** Once its events have dates, a stand-in signup steps aside. If the check can't run, showing the signup is the safe side. */
|
|
9531
|
+
function signupStandInReadiness(content, events, blockId) {
|
|
9532
|
+
if (content.showWhen !== "nothing-coming-up") return ready;
|
|
9533
|
+
const fact = blockId === null ? void 0 : events.get(blockId);
|
|
9534
|
+
if (!fact || fact.kind === "Unavailable") return unknownReadiness;
|
|
9535
|
+
return fact.value ? hiddenByChoice("events_coming_up", {
|
|
9536
|
+
kind: "field",
|
|
9537
|
+
path: "showWhen"
|
|
9538
|
+
}) : ready;
|
|
9539
|
+
}
|
|
9540
|
+
const formReadiness = {
|
|
9541
|
+
needs: ["forms"],
|
|
9542
|
+
assess: (content, facts) => {
|
|
9543
|
+
const selection = chosenString(content.formSlug);
|
|
9544
|
+
if (!selection) return needsSetup("form_not_chosen", {
|
|
9545
|
+
kind: "field",
|
|
9546
|
+
path: "formSlug"
|
|
9547
|
+
});
|
|
9548
|
+
const form = facts.forms.get(selection);
|
|
9549
|
+
if (!form || form.kind === "Unavailable") return unknownReadiness;
|
|
9550
|
+
return form.value ? ready : needsSetup("form_deleted", {
|
|
9551
|
+
kind: "field",
|
|
9552
|
+
path: "formSlug"
|
|
9553
|
+
});
|
|
9554
|
+
}
|
|
9555
|
+
};
|
|
9556
|
+
const testimonialsReadiness = {
|
|
9557
|
+
needs: ["testimonials"],
|
|
9558
|
+
assess: (_content, facts) => {
|
|
9559
|
+
if (facts.testimonials.kind === "Unavailable") return unknownReadiness;
|
|
9560
|
+
const { count, total } = facts.testimonials.value;
|
|
9561
|
+
if (count > 0) return ready;
|
|
9562
|
+
return needsSetup(total === "unknown" ? "testimonials_empty" : total > 0 ? "testimonials_unpublished" : "testimonials_none", {
|
|
9563
|
+
kind: "manage",
|
|
9564
|
+
target: "testimonials"
|
|
9565
|
+
});
|
|
9566
|
+
}
|
|
9567
|
+
};
|
|
9568
|
+
const teamReadiness = {
|
|
9569
|
+
needs: ["team"],
|
|
9570
|
+
assess: (content, facts) => {
|
|
9571
|
+
if (content.source !== "site_staff") return Array.isArray(content.members) && content.members.length > 0 ? ready : needsSetup("members_empty", {
|
|
9572
|
+
kind: "field",
|
|
9573
|
+
path: "members"
|
|
9574
|
+
});
|
|
9575
|
+
if (facts.team.kind === "Unavailable") return unknownReadiness;
|
|
9576
|
+
return facts.team.value > 0 ? ready : needsSetup("team_empty", {
|
|
9577
|
+
kind: "manage",
|
|
9578
|
+
target: "team"
|
|
9579
|
+
});
|
|
9580
|
+
}
|
|
9581
|
+
};
|
|
9582
|
+
const productReadiness = {
|
|
9583
|
+
needs: ["template", "products"],
|
|
9584
|
+
assess: (content, facts) => {
|
|
9585
|
+
if (facts.template.kind === "Unavailable") return unknownReadiness;
|
|
9586
|
+
if (facts.template.value.kind === "product") return ready;
|
|
9587
|
+
const selection = chosenString(content.productSlug);
|
|
9588
|
+
if (!selection) return needsSetup("product_not_chosen", {
|
|
9589
|
+
kind: "field",
|
|
9590
|
+
path: "productSlug"
|
|
9591
|
+
});
|
|
9592
|
+
const product = facts.products.get(selection);
|
|
9593
|
+
if (!product || product.kind === "Unavailable") return unknownReadiness;
|
|
9594
|
+
return product.value ? ready : needsSetup("product_gone", {
|
|
9595
|
+
kind: "field",
|
|
9596
|
+
path: "productSlug"
|
|
9597
|
+
});
|
|
9598
|
+
}
|
|
9599
|
+
};
|
|
9600
|
+
const galleryReadiness = {
|
|
9601
|
+
needs: [],
|
|
9602
|
+
assess: (content) => Array.isArray(content.images) && content.images.length > 0 ? ready : needsSetup("gallery_empty", {
|
|
9603
|
+
kind: "field",
|
|
9604
|
+
path: "images"
|
|
9605
|
+
})
|
|
9606
|
+
};
|
|
9607
|
+
/** A video grid with no video, an audio player with no track and a download with no file have nothing for visitors, so they stay hidden until one's chosen. */
|
|
9608
|
+
const videoGridReadiness = {
|
|
9609
|
+
needs: [],
|
|
9610
|
+
assess: (content) => Array.isArray(content.videos) && content.videos.some(hasVideoLink) ? ready : needsSetup("video_grid_empty", {
|
|
9611
|
+
kind: "field",
|
|
9612
|
+
path: "videos"
|
|
9613
|
+
})
|
|
9614
|
+
};
|
|
9615
|
+
const audioPlayerReadiness = {
|
|
9616
|
+
needs: [],
|
|
9617
|
+
assess: (content) => isChosen(content.audio) ? ready : needsSetup("audio_not_chosen", {
|
|
9618
|
+
kind: "field",
|
|
9619
|
+
path: "audio"
|
|
9620
|
+
})
|
|
9621
|
+
};
|
|
9622
|
+
const fileDownloadReadiness = {
|
|
9623
|
+
needs: [],
|
|
9624
|
+
assess: (content) => isChosen(content.file) ? ready : needsSetup("file_not_chosen", {
|
|
9625
|
+
kind: "field",
|
|
9626
|
+
path: "file"
|
|
9627
|
+
})
|
|
9628
|
+
};
|
|
9629
|
+
function hasVideoLink(item) {
|
|
9630
|
+
return typeof item === "object" && item !== null && "url" in item && chosenString(item.url) !== null;
|
|
9631
|
+
}
|
|
9632
|
+
/** A media or file field holds an object once something is chosen. */
|
|
9633
|
+
function isChosen(value) {
|
|
9634
|
+
return typeof value === "object" && value !== null;
|
|
9635
|
+
}
|
|
9636
|
+
/** Passes & memberships with nothing to show is hidden from visitors, by the same decision its cards are drawn from. */
|
|
9637
|
+
const shopReadiness = {
|
|
9638
|
+
needs: ["catalogue"],
|
|
9639
|
+
assess: (content, facts) => {
|
|
9640
|
+
if (facts.catalogue.kind === "Unavailable") return unknownReadiness;
|
|
9641
|
+
const decision = decideShopCatalogue(storedShopShow(content), facts.catalogue.value);
|
|
9642
|
+
switch (decision.kind) {
|
|
9643
|
+
case "shows": return ready;
|
|
9644
|
+
case "nothing-on-sale": return needsSetup("shop_nothing_on_sale", {
|
|
9645
|
+
kind: "manage",
|
|
9646
|
+
target: "passesAndMemberships"
|
|
9647
|
+
});
|
|
9648
|
+
case "nothing-chosen": return needsSetup("shop_nothing_chosen", {
|
|
9649
|
+
kind: "field",
|
|
9650
|
+
path: "showPasses"
|
|
9651
|
+
});
|
|
9652
|
+
default: return assertNever$1(decision);
|
|
9653
|
+
}
|
|
9654
|
+
}
|
|
9655
|
+
};
|
|
9656
|
+
/** Gift cards & vouchers with nothing on offer is hidden from visitors, by the same decision its groups are drawn from. */
|
|
9657
|
+
const giftingReadiness = {
|
|
9658
|
+
needs: ["gifting"],
|
|
9659
|
+
assess: (_content, facts) => {
|
|
9660
|
+
if (facts.gifting.kind === "Unavailable") return unknownReadiness;
|
|
9661
|
+
return decideGiftingOffer(facts.gifting.value).kind === "nothing-on-offer" ? needsSetup("gifting_nothing_on_offer", {
|
|
9662
|
+
kind: "manage",
|
|
9663
|
+
target: "giftCardsAndVouchers"
|
|
9664
|
+
}) : ready;
|
|
9665
|
+
}
|
|
9666
|
+
};
|
|
9667
|
+
function chosenString(value) {
|
|
9668
|
+
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
9669
|
+
}
|
|
9670
|
+
/** Absent settings retain the published behavior of existing blocks. */
|
|
9671
|
+
const eventsReadiness = {
|
|
9672
|
+
needs: ["events"],
|
|
9673
|
+
assess: (content, facts, { blockId }) => {
|
|
9674
|
+
if (content.emptyBehavior !== "hide") return ready;
|
|
9675
|
+
const fact = blockId === null ? void 0 : facts.events.get(blockId);
|
|
9676
|
+
if (!fact || fact.kind === "Unavailable") return unknownReadiness;
|
|
9677
|
+
return fact.value ? ready : hiddenByChoice("events_empty", {
|
|
9678
|
+
kind: "field",
|
|
9679
|
+
path: "emptyBehavior"
|
|
9680
|
+
});
|
|
9681
|
+
}
|
|
9682
|
+
};
|
|
9683
|
+
const giftingBlockDefinition = {
|
|
9684
|
+
manifest: createBlockManifest({
|
|
9685
|
+
variantMeaning: { kind: "arrangement" },
|
|
9686
|
+
id: "block.gifting",
|
|
9687
|
+
version: "1.0.0",
|
|
9688
|
+
title: "Gift cards & vouchers",
|
|
9689
|
+
titleSource: "heading",
|
|
9690
|
+
description: "Lets people buy gift cards and vouchers for someone else.",
|
|
9691
|
+
skipSectionStyles: true,
|
|
9413
9692
|
editing: {
|
|
9414
9693
|
content: ["heading", "intro"],
|
|
9415
9694
|
settings: [
|
|
9416
9695
|
"giftCardsHeading",
|
|
9417
9696
|
"vouchersHeading",
|
|
9418
9697
|
"checkoutButtonText",
|
|
9419
|
-
"successMessage"
|
|
9420
|
-
"emptyStateText"
|
|
9698
|
+
"successMessage"
|
|
9421
9699
|
]
|
|
9422
9700
|
},
|
|
9423
9701
|
additionalFields: [
|
|
@@ -9445,7 +9723,8 @@ const giftingBlockDefinition = {
|
|
|
9445
9723
|
description: "Labels the gift card group, including when you also offer vouchers. Leave it empty to use Gift card or Gift cards, depending on how many you offer.",
|
|
9446
9724
|
required: false,
|
|
9447
9725
|
multiline: false,
|
|
9448
|
-
defaultValue: "Gift cards"
|
|
9726
|
+
defaultValue: "Gift cards",
|
|
9727
|
+
ui: { visibleWhen: giftCardsShownCondition }
|
|
9449
9728
|
},
|
|
9450
9729
|
{
|
|
9451
9730
|
id: "vouchersHeading",
|
|
@@ -9454,15 +9733,8 @@ const giftingBlockDefinition = {
|
|
|
9454
9733
|
description: "Labels the voucher group, including when you also offer gift cards. Leave it empty to use Voucher or Vouchers, depending on how many you offer.",
|
|
9455
9734
|
required: false,
|
|
9456
9735
|
multiline: false,
|
|
9457
|
-
defaultValue: "Vouchers"
|
|
9458
|
-
|
|
9459
|
-
{
|
|
9460
|
-
id: "emptyStateText",
|
|
9461
|
-
type: "text",
|
|
9462
|
-
label: "When nothing's on offer",
|
|
9463
|
-
required: false,
|
|
9464
|
-
multiline: false,
|
|
9465
|
-
defaultValue: "Nothing is available right now."
|
|
9736
|
+
defaultValue: "Vouchers",
|
|
9737
|
+
ui: { visibleWhen: vouchersShownCondition }
|
|
9466
9738
|
},
|
|
9467
9739
|
{
|
|
9468
9740
|
id: "checkoutButtonText",
|
|
@@ -9519,10 +9791,6 @@ const giftingBlockDefinition = {
|
|
|
9519
9791
|
} },
|
|
9520
9792
|
giftCardsHeading: { $bind: { from: "content.giftCardsHeading" } },
|
|
9521
9793
|
vouchersHeading: { $bind: { from: "content.vouchersHeading" } },
|
|
9522
|
-
emptyStateText: { $bind: {
|
|
9523
|
-
from: "content.emptyStateText",
|
|
9524
|
-
fallback: "Nothing is available right now."
|
|
9525
|
-
} },
|
|
9526
9794
|
checkoutButtonText: { $bind: {
|
|
9527
9795
|
from: "content.checkoutButtonText",
|
|
9528
9796
|
fallback: "Continue to payment"
|
|
@@ -9539,6 +9807,7 @@ const giftingBlockDefinition = {
|
|
|
9539
9807
|
})]
|
|
9540
9808
|
}),
|
|
9541
9809
|
runtime: giftingBlockRuntime,
|
|
9810
|
+
readiness: giftingReadiness,
|
|
9542
9811
|
dataSchemas: { offers: publicGiftingOffersResponseSchema.optional() },
|
|
9543
9812
|
dataLoaders: { offers: {
|
|
9544
9813
|
endpoint: "listPublicGiftingOffers",
|
|
@@ -9865,213 +10134,6 @@ const eventRegistrationBlockDefinition = {
|
|
|
9865
10134
|
}
|
|
9866
10135
|
};
|
|
9867
10136
|
//#endregion
|
|
9868
|
-
//#region ../blocks/src/system/readiness.ts
|
|
9869
|
-
const ready = { kind: "Ready" };
|
|
9870
|
-
const unknownReadiness = { kind: "Unknown" };
|
|
9871
|
-
const loadedReadinessFact = (value) => ({
|
|
9872
|
-
kind: "Loaded",
|
|
9873
|
-
value
|
|
9874
|
-
});
|
|
9875
|
-
const unavailableReadinessFact = { kind: "Unavailable" };
|
|
9876
|
-
function needsSetup(reason, repair) {
|
|
9877
|
-
return {
|
|
9878
|
-
kind: "NeedsSetup",
|
|
9879
|
-
reason,
|
|
9880
|
-
repair
|
|
9881
|
-
};
|
|
9882
|
-
}
|
|
9883
|
-
function hiddenByChoice(reason, repair) {
|
|
9884
|
-
return {
|
|
9885
|
-
kind: "Hidden",
|
|
9886
|
-
reason,
|
|
9887
|
-
repair
|
|
9888
|
-
};
|
|
9889
|
-
}
|
|
9890
|
-
/** Visitors don't see a block that needs setting up, or one its editor has chosen to hide for now. */
|
|
9891
|
-
function hiddenFromVisitors(readiness) {
|
|
9892
|
-
return readiness.kind === "NeedsSetup" || readiness.kind === "Hidden";
|
|
9893
|
-
}
|
|
9894
|
-
/** One boundary owns runtime stage checking and the resulting phantom proof. */
|
|
9895
|
-
function admitReadinessFacts(stage, input) {
|
|
9896
|
-
return input.stage === stage ? input.facts : unavailableReadinessFacts();
|
|
9897
|
-
}
|
|
9898
|
-
function unavailableReadinessFacts() {
|
|
9899
|
-
return {
|
|
9900
|
-
catalogue: unavailableReadinessFact,
|
|
9901
|
-
mailingList: unavailableReadinessFact,
|
|
9902
|
-
testimonials: unavailableReadinessFact,
|
|
9903
|
-
team: unavailableReadinessFact,
|
|
9904
|
-
events: /* @__PURE__ */ new Map(),
|
|
9905
|
-
forms: /* @__PURE__ */ new Map(),
|
|
9906
|
-
products: /* @__PURE__ */ new Map(),
|
|
9907
|
-
template: unavailableReadinessFact
|
|
9908
|
-
};
|
|
9909
|
-
}
|
|
9910
|
-
function pageTemplateFromEntry(entry) {
|
|
9911
|
-
return entry?._contentTypeSlug === "product" ? { kind: "product" } : { kind: "page" };
|
|
9912
|
-
}
|
|
9913
|
-
//#endregion
|
|
9914
|
-
//#region ../blocks/src/system/blocks/readiness.ts
|
|
9915
|
-
const newsletterReadiness = {
|
|
9916
|
-
needs: ["mailingList", "events"],
|
|
9917
|
-
assess: (content, facts, { interaction, blockId }) => {
|
|
9918
|
-
if (interaction?.kind === "demo") return ready;
|
|
9919
|
-
if (facts.mailingList.kind === "Unavailable") return unknownReadiness;
|
|
9920
|
-
const targeting = parseMailingListPlacementTargeting(content.targeting ?? { mode: "default" });
|
|
9921
|
-
if (!targeting.ok) return unknownReadiness;
|
|
9922
|
-
const assessment = assessMailingListTargeting(facts.mailingList.value, targeting.value);
|
|
9923
|
-
return assessment.tag === "available" ? signupStandInReadiness(content, facts.events, blockId) : assessment.reason === "setup_missing" ? needsSetup("mailing_setup", {
|
|
9924
|
-
kind: "manage",
|
|
9925
|
-
target: "mailingLists"
|
|
9926
|
-
}) : needsSetup("mailing_destination", {
|
|
9927
|
-
kind: "field",
|
|
9928
|
-
path: "targeting"
|
|
9929
|
-
});
|
|
9930
|
-
}
|
|
9931
|
-
};
|
|
9932
|
-
/** Once its events have dates, a stand-in signup steps aside. If the check can't run, showing the signup is the safe side. */
|
|
9933
|
-
function signupStandInReadiness(content, events, blockId) {
|
|
9934
|
-
if (content.showWhen !== "nothing-coming-up") return ready;
|
|
9935
|
-
const fact = blockId === null ? void 0 : events.get(blockId);
|
|
9936
|
-
if (!fact || fact.kind === "Unavailable") return unknownReadiness;
|
|
9937
|
-
return fact.value ? hiddenByChoice("events_coming_up", {
|
|
9938
|
-
kind: "field",
|
|
9939
|
-
path: "showWhen"
|
|
9940
|
-
}) : ready;
|
|
9941
|
-
}
|
|
9942
|
-
const formReadiness = {
|
|
9943
|
-
needs: ["forms"],
|
|
9944
|
-
assess: (content, facts) => {
|
|
9945
|
-
const selection = chosenString(content.formSlug);
|
|
9946
|
-
if (!selection) return needsSetup("form_not_chosen", {
|
|
9947
|
-
kind: "field",
|
|
9948
|
-
path: "formSlug"
|
|
9949
|
-
});
|
|
9950
|
-
const form = facts.forms.get(selection);
|
|
9951
|
-
if (!form || form.kind === "Unavailable") return unknownReadiness;
|
|
9952
|
-
return form.value ? ready : needsSetup("form_deleted", {
|
|
9953
|
-
kind: "field",
|
|
9954
|
-
path: "formSlug"
|
|
9955
|
-
});
|
|
9956
|
-
}
|
|
9957
|
-
};
|
|
9958
|
-
const testimonialsReadiness = {
|
|
9959
|
-
needs: ["testimonials"],
|
|
9960
|
-
assess: (_content, facts) => {
|
|
9961
|
-
if (facts.testimonials.kind === "Unavailable") return unknownReadiness;
|
|
9962
|
-
const { count, total } = facts.testimonials.value;
|
|
9963
|
-
if (count > 0) return ready;
|
|
9964
|
-
return needsSetup(total === "unknown" ? "testimonials_empty" : total > 0 ? "testimonials_unpublished" : "testimonials_none", {
|
|
9965
|
-
kind: "manage",
|
|
9966
|
-
target: "testimonials"
|
|
9967
|
-
});
|
|
9968
|
-
}
|
|
9969
|
-
};
|
|
9970
|
-
const teamReadiness = {
|
|
9971
|
-
needs: ["team"],
|
|
9972
|
-
assess: (content, facts) => {
|
|
9973
|
-
if (content.source !== "site_staff") return Array.isArray(content.members) && content.members.length > 0 ? ready : needsSetup("members_empty", {
|
|
9974
|
-
kind: "field",
|
|
9975
|
-
path: "members"
|
|
9976
|
-
});
|
|
9977
|
-
if (facts.team.kind === "Unavailable") return unknownReadiness;
|
|
9978
|
-
return facts.team.value > 0 ? ready : needsSetup("team_empty", {
|
|
9979
|
-
kind: "manage",
|
|
9980
|
-
target: "team"
|
|
9981
|
-
});
|
|
9982
|
-
}
|
|
9983
|
-
};
|
|
9984
|
-
const productReadiness = {
|
|
9985
|
-
needs: ["template", "products"],
|
|
9986
|
-
assess: (content, facts) => {
|
|
9987
|
-
if (facts.template.kind === "Unavailable") return unknownReadiness;
|
|
9988
|
-
if (facts.template.value.kind === "product") return ready;
|
|
9989
|
-
const selection = chosenString(content.productSlug);
|
|
9990
|
-
if (!selection) return needsSetup("product_not_chosen", {
|
|
9991
|
-
kind: "field",
|
|
9992
|
-
path: "productSlug"
|
|
9993
|
-
});
|
|
9994
|
-
const product = facts.products.get(selection);
|
|
9995
|
-
if (!product || product.kind === "Unavailable") return unknownReadiness;
|
|
9996
|
-
return product.value ? ready : needsSetup("product_gone", {
|
|
9997
|
-
kind: "field",
|
|
9998
|
-
path: "productSlug"
|
|
9999
|
-
});
|
|
10000
|
-
}
|
|
10001
|
-
};
|
|
10002
|
-
const galleryReadiness = {
|
|
10003
|
-
needs: [],
|
|
10004
|
-
assess: (content) => Array.isArray(content.images) && content.images.length > 0 ? ready : needsSetup("gallery_empty", {
|
|
10005
|
-
kind: "field",
|
|
10006
|
-
path: "images"
|
|
10007
|
-
})
|
|
10008
|
-
};
|
|
10009
|
-
/** A video grid with no video, an audio player with no track and a download with no file have nothing for visitors, so they stay hidden until one's chosen. */
|
|
10010
|
-
const videoGridReadiness = {
|
|
10011
|
-
needs: [],
|
|
10012
|
-
assess: (content) => Array.isArray(content.videos) && content.videos.some(hasVideoLink) ? ready : needsSetup("video_grid_empty", {
|
|
10013
|
-
kind: "field",
|
|
10014
|
-
path: "videos"
|
|
10015
|
-
})
|
|
10016
|
-
};
|
|
10017
|
-
const audioPlayerReadiness = {
|
|
10018
|
-
needs: [],
|
|
10019
|
-
assess: (content) => isChosen(content.audio) ? ready : needsSetup("audio_not_chosen", {
|
|
10020
|
-
kind: "field",
|
|
10021
|
-
path: "audio"
|
|
10022
|
-
})
|
|
10023
|
-
};
|
|
10024
|
-
const fileDownloadReadiness = {
|
|
10025
|
-
needs: [],
|
|
10026
|
-
assess: (content) => isChosen(content.file) ? ready : needsSetup("file_not_chosen", {
|
|
10027
|
-
kind: "field",
|
|
10028
|
-
path: "file"
|
|
10029
|
-
})
|
|
10030
|
-
};
|
|
10031
|
-
function hasVideoLink(item) {
|
|
10032
|
-
return typeof item === "object" && item !== null && "url" in item && chosenString(item.url) !== null;
|
|
10033
|
-
}
|
|
10034
|
-
/** A media or file field holds an object once something is chosen. */
|
|
10035
|
-
function isChosen(value) {
|
|
10036
|
-
return typeof value === "object" && value !== null;
|
|
10037
|
-
}
|
|
10038
|
-
/** Passes & memberships with nothing to show is hidden from visitors, by the same decision its cards are drawn from. */
|
|
10039
|
-
const shopReadiness = {
|
|
10040
|
-
needs: ["catalogue"],
|
|
10041
|
-
assess: (content, facts) => {
|
|
10042
|
-
if (facts.catalogue.kind === "Unavailable") return unknownReadiness;
|
|
10043
|
-
const decision = decideShopCatalogue(storedShopShow(content), facts.catalogue.value);
|
|
10044
|
-
switch (decision.kind) {
|
|
10045
|
-
case "shows": return ready;
|
|
10046
|
-
case "nothing-on-sale": return needsSetup("shop_nothing_on_sale", {
|
|
10047
|
-
kind: "manage",
|
|
10048
|
-
target: "passesAndMemberships"
|
|
10049
|
-
});
|
|
10050
|
-
case "nothing-chosen": return needsSetup("shop_nothing_chosen", {
|
|
10051
|
-
kind: "field",
|
|
10052
|
-
path: "showPasses"
|
|
10053
|
-
});
|
|
10054
|
-
default: return assertNever$1(decision);
|
|
10055
|
-
}
|
|
10056
|
-
}
|
|
10057
|
-
};
|
|
10058
|
-
function chosenString(value) {
|
|
10059
|
-
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
10060
|
-
}
|
|
10061
|
-
/** Absent settings retain the published behavior of existing blocks. */
|
|
10062
|
-
const eventsReadiness = {
|
|
10063
|
-
needs: ["events"],
|
|
10064
|
-
assess: (content, facts, { blockId }) => {
|
|
10065
|
-
if (content.emptyBehavior !== "hide") return ready;
|
|
10066
|
-
const fact = blockId === null ? void 0 : facts.events.get(blockId);
|
|
10067
|
-
if (!fact || fact.kind === "Unavailable") return unknownReadiness;
|
|
10068
|
-
return fact.value ? ready : hiddenByChoice("events_empty", {
|
|
10069
|
-
kind: "field",
|
|
10070
|
-
path: "emptyBehavior"
|
|
10071
|
-
});
|
|
10072
|
-
}
|
|
10073
|
-
};
|
|
10074
|
-
//#endregion
|
|
10075
10137
|
//#region ../blocks/src/system/blocks/form.tsx
|
|
10076
10138
|
const setupFormEmbedFragment = {
|
|
10077
10139
|
...formEmbedFragment,
|
|
@@ -11511,7 +11573,7 @@ const eventCalendarAdditionalFields = [
|
|
|
11511
11573
|
defaultValue: true,
|
|
11512
11574
|
ui: {
|
|
11513
11575
|
intent: "behavior",
|
|
11514
|
-
visibleWhen: filterBarVariants
|
|
11576
|
+
visibleWhen: { allOf: [filterBarVariants, eventFilterConditions.showFilters] }
|
|
11515
11577
|
}
|
|
11516
11578
|
},
|
|
11517
11579
|
{
|
|
@@ -11538,10 +11600,14 @@ const eventCalendarAdditionalFields = [
|
|
|
11538
11600
|
],
|
|
11539
11601
|
ui: {
|
|
11540
11602
|
intent: "behavior",
|
|
11541
|
-
visibleWhen: { allOf: [
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11603
|
+
visibleWhen: { allOf: [
|
|
11604
|
+
filterBarVariants,
|
|
11605
|
+
{
|
|
11606
|
+
field: "showFilters",
|
|
11607
|
+
equals: true
|
|
11608
|
+
},
|
|
11609
|
+
eventFilterConditions.showCategoryFilter
|
|
11610
|
+
] }
|
|
11545
11611
|
}
|
|
11546
11612
|
},
|
|
11547
11613
|
{
|
|
@@ -11553,10 +11619,14 @@ const eventCalendarAdditionalFields = [
|
|
|
11553
11619
|
defaultValue: false,
|
|
11554
11620
|
ui: {
|
|
11555
11621
|
intent: "behavior",
|
|
11556
|
-
visibleWhen: { allOf: [
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11622
|
+
visibleWhen: { allOf: [
|
|
11623
|
+
filterBarVariants,
|
|
11624
|
+
{
|
|
11625
|
+
field: "showFilters",
|
|
11626
|
+
equals: true
|
|
11627
|
+
},
|
|
11628
|
+
eventFilterConditions.showVenueFilter
|
|
11629
|
+
] }
|
|
11560
11630
|
}
|
|
11561
11631
|
},
|
|
11562
11632
|
{
|
|
@@ -11568,10 +11638,14 @@ const eventCalendarAdditionalFields = [
|
|
|
11568
11638
|
defaultValue: true,
|
|
11569
11639
|
ui: {
|
|
11570
11640
|
intent: "behavior",
|
|
11571
|
-
visibleWhen: { allOf: [
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11641
|
+
visibleWhen: { allOf: [
|
|
11642
|
+
filterBarVariants,
|
|
11643
|
+
{
|
|
11644
|
+
field: "showFilters",
|
|
11645
|
+
equals: true
|
|
11646
|
+
},
|
|
11647
|
+
eventFilterConditions.showStaffFilter
|
|
11648
|
+
] }
|
|
11575
11649
|
}
|
|
11576
11650
|
},
|
|
11577
11651
|
{
|
|
@@ -11731,7 +11805,8 @@ const eventCalendarAdditionalFields = [
|
|
|
11731
11805
|
optionSource: "eventCategories",
|
|
11732
11806
|
ui: {
|
|
11733
11807
|
intent: "behavior",
|
|
11734
|
-
searchThreshold: 8
|
|
11808
|
+
searchThreshold: 8,
|
|
11809
|
+
visibleWhen: eventFilterConditions.filterCategoryIds
|
|
11735
11810
|
}
|
|
11736
11811
|
}),
|
|
11737
11812
|
createSiteOptionSelectField({
|
|
@@ -11743,7 +11818,8 @@ const eventCalendarAdditionalFields = [
|
|
|
11743
11818
|
optionSource: "staffMembers",
|
|
11744
11819
|
ui: {
|
|
11745
11820
|
intent: "behavior",
|
|
11746
|
-
searchThreshold: 8
|
|
11821
|
+
searchThreshold: 8,
|
|
11822
|
+
visibleWhen: eventFilterConditions.filterStaffMemberId
|
|
11747
11823
|
}
|
|
11748
11824
|
}),
|
|
11749
11825
|
createSiteOptionSelectField({
|
|
@@ -11755,7 +11831,8 @@ const eventCalendarAdditionalFields = [
|
|
|
11755
11831
|
optionSource: "venues",
|
|
11756
11832
|
ui: {
|
|
11757
11833
|
intent: "behavior",
|
|
11758
|
-
searchThreshold: 8
|
|
11834
|
+
searchThreshold: 8,
|
|
11835
|
+
visibleWhen: eventFilterConditions.filterVenueId
|
|
11759
11836
|
}
|
|
11760
11837
|
}),
|
|
11761
11838
|
...cardStylingFields.map((field) => ({
|
|
@@ -13698,87 +13775,91 @@ function GiftingSSR({ blockId, ...rest }) {
|
|
|
13698
13775
|
children: /* @__PURE__ */ jsxs("div", {
|
|
13699
13776
|
className: "gifting",
|
|
13700
13777
|
...display.lookSlots ? { "data-slot": "layout" } : {},
|
|
13701
|
-
children: [
|
|
13702
|
-
|
|
13703
|
-
|
|
13704
|
-
|
|
13705
|
-
|
|
13706
|
-
|
|
13707
|
-
|
|
13708
|
-
|
|
13709
|
-
"
|
|
13710
|
-
children:
|
|
13711
|
-
|
|
13712
|
-
|
|
13713
|
-
children:
|
|
13714
|
-
|
|
13715
|
-
|
|
13716
|
-
children:
|
|
13717
|
-
|
|
13718
|
-
|
|
13719
|
-
|
|
13720
|
-
|
|
13721
|
-
|
|
13722
|
-
|
|
13723
|
-
|
|
13724
|
-
|
|
13725
|
-
|
|
13726
|
-
|
|
13727
|
-
|
|
13728
|
-
|
|
13729
|
-
offer,
|
|
13730
|
-
|
|
13731
|
-
|
|
13732
|
-
|
|
13733
|
-
|
|
13734
|
-
|
|
13735
|
-
|
|
13736
|
-
|
|
13737
|
-
size: "md",
|
|
13738
|
-
extraClassName: "gifting-buy",
|
|
13739
|
-
label: "Buy a gift card"
|
|
13740
|
-
})]
|
|
13741
|
-
})
|
|
13742
|
-
]
|
|
13743
|
-
}, offer.id)) }) : /* @__PURE__ */ jsx("ul", {
|
|
13744
|
-
className: "gifting-voucher-list",
|
|
13745
|
-
children: vouchers.map((offer) => /* @__PURE__ */ jsx("li", {
|
|
13746
|
-
className: "gifting-voucher",
|
|
13747
|
-
children: /* @__PURE__ */ jsxs("div", {
|
|
13748
|
-
className: "gifting-offer",
|
|
13749
|
-
children: [
|
|
13750
|
-
/* @__PURE__ */ jsxs("div", {
|
|
13751
|
-
className: "gifting-offer-summary",
|
|
13752
|
-
children: [/* @__PURE__ */ jsx("h4", {
|
|
13753
|
-
className: "gifting-offer-title",
|
|
13754
|
-
children: offer.title
|
|
13755
|
-
}), /* @__PURE__ */ jsx("strong", {
|
|
13756
|
-
className: "gifting-offer-price",
|
|
13757
|
-
children: formatGiftAmount(offer.voucher.purchaseAmountCents, offers?.currency ?? "GBP")
|
|
13758
|
-
})]
|
|
13759
|
-
}),
|
|
13760
|
-
offer.description ? /* @__PURE__ */ jsx("p", {
|
|
13761
|
-
className: "gifting-offer-description",
|
|
13762
|
-
children: offer.description
|
|
13763
|
-
}) : null,
|
|
13764
|
-
/* @__PURE__ */ jsx(ThemedButton, {
|
|
13778
|
+
children: [
|
|
13779
|
+
/* @__PURE__ */ jsx(GiftingPanelHead, {
|
|
13780
|
+
heading: display.heading,
|
|
13781
|
+
intro: display.intro,
|
|
13782
|
+
look: display
|
|
13783
|
+
}),
|
|
13784
|
+
/* @__PURE__ */ jsx(GiftingExpiry, { days: offers?.expiryDays }),
|
|
13785
|
+
/* @__PURE__ */ jsx("div", {
|
|
13786
|
+
className: "gifting-main",
|
|
13787
|
+
children: hasOffers ? /* @__PURE__ */ jsx("div", {
|
|
13788
|
+
className: "gifting-groups",
|
|
13789
|
+
"data-group-count": display.groups.length,
|
|
13790
|
+
children: display.groups.map((group) => /* @__PURE__ */ jsx(GiftGroup, {
|
|
13791
|
+
group,
|
|
13792
|
+
look: display,
|
|
13793
|
+
children: group.kind === "gift_card" ? /* @__PURE__ */ jsx(Fragment, { children: giftCards.map((offer) => /* @__PURE__ */ jsxs("div", {
|
|
13794
|
+
className: "gifting-offer",
|
|
13795
|
+
"data-gift-offer": offer.id,
|
|
13796
|
+
children: [
|
|
13797
|
+
giftCards.length > 1 ? /* @__PURE__ */ jsx("h4", {
|
|
13798
|
+
className: "gifting-offer-title",
|
|
13799
|
+
children: offer.title
|
|
13800
|
+
}) : null,
|
|
13801
|
+
offer.description ? /* @__PURE__ */ jsx("p", {
|
|
13802
|
+
className: "gifting-offer-description",
|
|
13803
|
+
children: offer.description
|
|
13804
|
+
}) : null,
|
|
13805
|
+
/* @__PURE__ */ jsxs("div", {
|
|
13806
|
+
className: "gifting-offer-row",
|
|
13807
|
+
"data-gift-offer-row": "",
|
|
13808
|
+
children: [/* @__PURE__ */ jsx(GiftCardAmounts, {
|
|
13809
|
+
offer,
|
|
13810
|
+
currency: offers?.currency ?? "GBP",
|
|
13811
|
+
groupName: `amountChoice-${offer.id}`,
|
|
13812
|
+
look: display
|
|
13813
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
13765
13814
|
...giftingSlot(display, "action"),
|
|
13766
13815
|
type: "button",
|
|
13767
|
-
variant: "
|
|
13816
|
+
variant: "primary",
|
|
13768
13817
|
size: "md",
|
|
13769
13818
|
extraClassName: "gifting-buy",
|
|
13770
|
-
label: "Buy
|
|
13771
|
-
})
|
|
13772
|
-
|
|
13773
|
-
|
|
13774
|
-
}, offer.id))
|
|
13775
|
-
|
|
13776
|
-
|
|
13777
|
-
|
|
13778
|
-
|
|
13779
|
-
|
|
13819
|
+
label: "Buy a gift card"
|
|
13820
|
+
})]
|
|
13821
|
+
})
|
|
13822
|
+
]
|
|
13823
|
+
}, offer.id)) }) : /* @__PURE__ */ jsx("ul", {
|
|
13824
|
+
className: "gifting-voucher-list",
|
|
13825
|
+
children: vouchers.map((offer) => /* @__PURE__ */ jsx("li", {
|
|
13826
|
+
className: "gifting-voucher",
|
|
13827
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
13828
|
+
className: "gifting-offer",
|
|
13829
|
+
children: [
|
|
13830
|
+
/* @__PURE__ */ jsxs("div", {
|
|
13831
|
+
className: "gifting-offer-summary",
|
|
13832
|
+
children: [/* @__PURE__ */ jsx("h4", {
|
|
13833
|
+
className: "gifting-offer-title",
|
|
13834
|
+
children: offer.title
|
|
13835
|
+
}), /* @__PURE__ */ jsx("strong", {
|
|
13836
|
+
className: "gifting-offer-price",
|
|
13837
|
+
children: formatGiftAmount(offer.voucher.purchaseAmountCents, offers?.currency ?? "GBP")
|
|
13838
|
+
})]
|
|
13839
|
+
}),
|
|
13840
|
+
offer.description ? /* @__PURE__ */ jsx("p", {
|
|
13841
|
+
className: "gifting-offer-description",
|
|
13842
|
+
children: offer.description
|
|
13843
|
+
}) : null,
|
|
13844
|
+
/* @__PURE__ */ jsx(ThemedButton, {
|
|
13845
|
+
...giftingSlot(display, "action"),
|
|
13846
|
+
type: "button",
|
|
13847
|
+
variant: "secondary",
|
|
13848
|
+
size: "md",
|
|
13849
|
+
extraClassName: "gifting-buy",
|
|
13850
|
+
label: "Buy this voucher"
|
|
13851
|
+
})
|
|
13852
|
+
]
|
|
13853
|
+
})
|
|
13854
|
+
}, offer.id))
|
|
13855
|
+
})
|
|
13856
|
+
}, group.kind))
|
|
13857
|
+
}) : /* @__PURE__ */ jsx("p", {
|
|
13858
|
+
className: "gifting-empty",
|
|
13859
|
+
children: GIFTING_NOTHING_TO_SHOW
|
|
13860
|
+
})
|
|
13780
13861
|
})
|
|
13781
|
-
|
|
13862
|
+
]
|
|
13782
13863
|
})
|
|
13783
13864
|
});
|
|
13784
13865
|
}
|
|
@@ -14669,4 +14750,4 @@ const serverComponentRegistry = {
|
|
|
14669
14750
|
...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
|
|
14670
14751
|
};
|
|
14671
14752
|
//#endregion
|
|
14672
|
-
export { sectionContainer as $,
|
|
14753
|
+
export { sectionContainer as $, resolveRepeaterGridSpanFieldId as $n, el as $t, admitReadinessFacts as A, resolveBackgroundColorValue as An, eventHeaderSlotParents as At, formCopyFragment as B, ICON_CONFIG as Bn, accordionLookAttributes as Bt, audioPlayerReadiness as C, eventDiscoveryFilterKeys as Cn, normalizeLocationMapProps as Ct, teamReadiness as D, teamMemberCardBiographyFallback as Dn, EventDetailsView as Dt, galleryReadiness as E, resolveEventScope as En, resolveLocationMapLocation as Et, checkoutBlockDefinition as F, lookSlot as Fn, markEditableSurfaceForwarding as Ft, createSiteOptionSelectField as G, storedSectionPhoto as Gn, FEATURE_CARD_ICON_TREATMENTS as Gt, composeFragments as H, groundPaint as Hn, resolveAccordionIconStyle as Ht, cartBlockDefinition as I, ACCORDION_OPEN_ACCENT_THICKNESS as In, splitPositioningClasses as It, parseFieldDefinitions as J, DEFAULT_MEDIA_FIELD_KINDS as Jn, accordionList as Jt, normalizeSelectSource as K, bindingSchema as Kn, parseBlockIconValue as Kt, createBlockManifest as L, ACCORDION_SPACING_MAP as Ln, desktopOnlyDisplay as Lt, loadedReadinessFact as M, lookLeadSlotTransform as Mn, buildAppointmentServicesView as Mt, pageTemplateFromEntry as N, lookQuoteLimitTransform as Nn, HeaderSectionFrame as Nt, testimonialsReadiness as O, BACKGROUND_POSITION_PRESET_VALUES as On, lookPartShown as Ot, unavailableReadinessFact as P, lookSkinSlotTransform as Pn, composeHeaderSectionWrapperClassName as Pt, styledContainer as Q, resolveRepeaterGridRowFieldId as Qn, carousel as Qt, augmentManifest as R, ACCORDION_TRIGGER_FONT_SCALE as Rn, mobileOnlyDisplay as Rt, giftingBlockDefinition as S, resolveEventScopeRead as Sn, describeUnresolvedLocationMapLocation as St, fileDownloadReadiness as T, eventScopeQueryKeys as Tn, parseLocationMapLoaderResult as Tt, defineFragment as U, pageGround as Un, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ut, buildFragmentDataLoaders as V, ICON_SIZE_PX as Vn, accordionIconColorStyle as Vt, createSdkSelectField as W, sectionPhotoPath as Wn, FEATURE_CARD_GENERATED_ICON_SIZE_PX as Wt, sectionHeaderFields as X, parseRepeaterGridInteger as Xn, bookingForm as Xt, withApiBindings as Y, isAcceptedRepeaterGridSpan as Yn, bind as Yt, sectionHeaderLayoutNodes as Z, resolveRepeaterGridColumnFieldId as Zn, button as Zt, cardListSectionActionFields as _, eventReadinessQuery as _n, createButtonVariantField as _t, cardListSectionAction as a, link as an, isCanonicalRichTextDoc as ar, offeringCourseSlotParents as at, formDataSchema as b, recurringScheduleRead as bn, LOCATION_MAP_LIMITS as bt, newsletterSignupBlockDefinition as c, repeat as cn, emptyStateField as ct, eventListingBlockDefinition as d, stack as dn, withoutMap as dt, fileDownload as en, mapReadinessFact as er, layoutSectionGround as et, mapDrawingStyleBinding as f, text as fn, cardStylesField as ft, cardListPresentationBindings as g, eventReadinessLoaderKey as gn, createButtonGroup as gt, cardListPhotoNumberFields as h, blockChecksForEvents as hn, unreadContainerStylesField as ht, shopBlockDefinition as i, inline as in, publicMapLocationResultSchema as ir, buildLoadedOfferingsPreviewListing as it, hiddenFromVisitors as j, lookCarouselRegionTransform as jn, resolveEventDetailsPresentation as jt, videoGridReadiness as k, getAnchorClasses as kn, lookParts as kt, sanitizeNewsletterSignupPublicContent as l, richText as ln, eventDisplayFields as lt, cardListKnobFields as m, when as mn, sectionStylesField as mt, runtimeBackedBlockModes as n, headerSection as nn, linkSchema as nr, backgroundFrame as nt, productListBlockDefinition as o, media as on, cardStylingFields as ot, eventCalendarBlockDefinition as p, videoEmbed as pn, containerStylesField as pt, parseFieldDefinition as q, placedEditingPaths as qn, SectionNode as qt, runtimeBackedBlockServerEntries as r, icon as rn, publicMapLocationParamsSchema as rr, WeeklySlotAvailabilityView as rt, productDetailBlockDefinition as s, props as sn, columnsField as st, serverComponentRegistry as t, form as tn, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as tr, styledSection as tt, normalizeMailingListBlockContent as u, section as un, layoutField as ut, normalizeCardListContent as v, eventReadinessQueryKeys as vn, LocationMapSSR as vt, chosenString as w, eventScopeLoaderParam as wn, normalizeLocationMapSource as wt, eventRegistrationBlockDefinition as x, resolveEventCalendarRead as xn, LOCATION_MAP_LOADER_KEYS as xt, formBlockDefinition as y, eventReadinessResultSchema as yn, LOCATION_MAP_DEFAULTS as yt, formEmbedFragment as z, ACCORDION_TRIGGER_LETTER_SPACING as zn, accordionItemPartSlots as zt };
|