@riverbankcms/sdk 0.183.0 → 0.184.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/dist/_dts/{BlocksIslandsHydrator-X1_G96iN.d.ts → BlocksIslandsHydrator-DjBTJYiF.d.ts} +1 -1
- package/dist/_dts/{Page-CEqZJZEE.d.ts → Page-BpXEM2ET.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-DQejfbXL.d.ts → SdkPreviewMode-Bb3h7KRE.d.ts} +2 -2
- package/dist/_dts/{client-B_B_amKD.d.ts → client-DgTRRtl_.d.ts} +13 -1
- package/dist/_dts/{content-types-Dhx5Ocvx.d.ts → content-types-DZQJp_ak.d.ts} +2 -2
- package/dist/_dts/{contracts-FeOnfoa1.d.ts → contracts-Ww1fmd-c.d.ts} +3 -3
- package/dist/_dts/{generatePageMetadata-m70J6tit.d.ts → generatePageMetadata-BGc7dju6.d.ts} +2 -2
- package/dist/_dts/{index-liuhlOX7.d.ts → index-BECaUNYs.d.ts} +2 -2
- package/dist/_dts/{index-BOpUh8kO.d.ts → index-Cc85KVLW.d.ts} +3 -3
- package/dist/_dts/{index-CjAkEWAp.d.ts → index-Cni4jykw.d.ts} +4 -4
- package/dist/_dts/{index-Bizdaxji.d.ts → index-DxxTQ_0V.d.ts} +2 -2
- package/dist/_dts/{index-BxCmCit0.d.ts → index-W9-7djG3.d.ts} +1 -1
- package/dist/_dts/{index-iuFrbIjt.d.ts → index-ukS-Ffem.d.ts} +1 -1
- package/dist/_dts/{loadContent-D4wrTIIw.d.ts → loadContent-BlSWTlbD.d.ts} +7 -7
- package/dist/_dts/{request-Gn0O1blj.d.ts → request-CZz2BoXJ.d.ts} +74180 -73974
- package/dist/_dts/{resolveBlockData-D5duwuqS.d.ts → resolveBlockData-D12HXnS3.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-xzJ3c9Na.d.ts → resolvePageContent-BteMsSGP.d.ts} +1 -1
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +2 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -1
- package/dist/_dts/sdk/src/index.d.ts +7 -7
- package/dist/_dts/sdk/src/manifest/index.d.ts +3 -3
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +3 -3
- package/dist/_dts/sdk/src/next/index.d.ts +7 -7
- package/dist/_dts/sdk/src/next/middleware.d.ts +2 -2
- package/dist/_dts/sdk/src/page-converter/index.d.ts +3 -3
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/portal/index.d.ts +10 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +6 -6
- package/dist/_dts/sdk/src/server.d.ts +5 -5
- package/dist/_dts/sdk/src/spam-protection/index.d.ts +2 -2
- package/dist/_dts/sdk/src/theme/index.d.ts +36 -1
- package/dist/_dts/{serviceBookingOutline-B1gyJon_.d.ts → serviceBookingOutline-aTlOvO3U.d.ts} +15 -7
- package/dist/_dts/{types-BoITy0rA.d.ts → types-Bi7R07RX.d.ts} +6 -2
- package/dist/_dts/{types-DBNuMtSk.d.ts → types-CCcQlRBi.d.ts} +9 -10
- package/dist/_dts/{types-DHMcuoeQ.d.ts → types-Du4aMnWC.d.ts} +13 -15
- package/dist/_dts/{validation-BIPO-XlE.d.ts → validation-CjCWVmwe.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-Ct8slgRk.mjs → BlocksIslandsHydrator-CFLWxjxR.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-qqTxGGS4.mjs → BookingMailingListNote-C4LcfwyA.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-DCh9MUIF.mjs → BookingQuestionFields-DdcmoHqQ.mjs} +1 -1
- package/dist/client/{CalendarAction-RcdaStG7.mjs → CalendarAction-DYGewmvh.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-D7Wt-Oaa.mjs → CalendarNavigationChevron-ZfrUiiiI.mjs} +5 -5
- package/dist/client/{CheckboxChoice-BdGxZWeg.mjs → CheckboxChoice-CTMIII37.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-HFVkoOac.mjs → DemoBookingPortalAccess-pzkGVkgG.mjs} +7 -5
- package/dist/client/{EventCalendar.client-BtkJW8bA.mjs → EventCalendar.client-Ct1B3xI4.mjs} +9 -9
- package/dist/client/{EventCombined.client-DxaGjFFS.mjs → EventCombined.client-DgfNtcgW.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-B2c5dR49.mjs → EventEmbeddedCheckoutStep-CjoaG1zy.mjs} +1 -1
- package/dist/client/{EventItem-Fr2qi2C2.mjs → EventItem-KGKkK19N.mjs} +5 -5
- package/dist/client/{EventListWeekNavigation-BRMaq0ky.mjs → EventListWeekNavigation-Ba9ezxuC.mjs} +1 -1
- package/dist/client/{EventListing.client-BhGxfbjt.mjs → EventListing.client-xFKRDLwC.mjs} +3 -3
- package/dist/client/{EventListing.view-COuEJzbO.mjs → EventListing.view-Dy36vWHi.mjs} +84 -7
- package/dist/client/{EventRegistrationPayment-BTLYhVxD.mjs → EventRegistrationPayment-Dth9L00x.mjs} +108 -45
- package/dist/client/{Page-CgbQZP5g.mjs → Page-DB5KODiu.mjs} +1735 -501
- package/dist/client/{ProtectedSubmitButton-BG7my0Qf.mjs → ProtectedSubmitButton-CY6u5sQa.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-DQNkfNLA.mjs → SiteTermsAgreementField-BDVP_HeK.mjs} +2 -2
- package/dist/client/{StepIndicator-DvPekKeM.mjs → StepIndicator-CLgDVzCs.mjs} +1 -1
- package/dist/client/{StepIndicator-DyXoI3ob.mjs → StepIndicator-DRyZ8igu.mjs} +6 -6
- package/dist/client/{ThemedButton-Bc9DBbVp.mjs → ThemedButton-C4rCsPCt.mjs} +11 -2
- package/dist/client/{accessibleSurfaces-wj4Rloo5.mjs → accessibleSurfaces-CqroimVQ.mjs} +745 -557
- package/dist/client/{accordion-BVXfjnh-.mjs → accordion-BQYRP5xV.mjs} +1 -1
- package/dist/client/{booking-form.client-DycPGtke.mjs → booking-form.client-B7ckDuOC.mjs} +16 -16
- package/dist/client/{bookingForm-DrWSUqL3.mjs → bookingForm-BeD4650p.mjs} +7 -6
- package/dist/client/bookings.mjs +4 -4
- package/dist/client/{boxStyleClassNames-CduDRcIk.mjs → boxStyleClassNames-CA7FirMH.mjs} +2 -2
- package/dist/client/{buttonParts-CJEtVOUy.mjs → buttonParts-C39GC0kz.mjs} +9 -2
- package/dist/client/{carousel-DyCLMP8s.mjs → carousel-DJ9Aa1m3.mjs} +2 -2
- package/dist/client/{carousel.client-DffP_Nv0.mjs → carousel.client-DKWqVHHh.mjs} +1 -1
- package/dist/client/{cart-BuEp_cj4.mjs → cart-DdCenbTy.mjs} +3 -3
- package/dist/client/{cart.client-CAO39uDG.mjs → cart.client-BQm06qNw.mjs} +1 -1
- package/dist/client/{checkout-BoxzT64s.mjs → checkout-45wPQULN.mjs} +3 -3
- package/dist/client/{checkout.client-IGUy7XOx.mjs → checkout.client-bSv4cc5z.mjs} +1 -1
- package/dist/client/{checkoutUrls-D0UsiFmm.mjs → checkoutUrls-CwlaMl3W.mjs} +1 -1
- package/dist/client/client.mjs +23 -35
- package/dist/client/{constants-C_8AxMdm.mjs → constants-DXV4KR7l.mjs} +1 -1
- package/dist/client/{context-D1L0pe__.mjs → context-lCPfX-xe.mjs} +13 -3
- package/dist/client/{demoPortalMagicLink-BunFTnIq.mjs → demoPortalMagicLink-Ce3Gyin_.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-CtLAG651.mjs → enhanceHeaderSection-CGcDE9aE.mjs} +4 -4
- package/dist/client/{event-registration.client-DiSxkBUP.mjs → event-registration.client-DlPfn4YG.mjs} +51 -28
- package/dist/client/{eventCalendar-DUnhwZ1o.mjs → eventCalendar-CioAdryV.mjs} +4 -4
- package/dist/client/{eventCombined-BvBQo0nF.mjs → eventCombined-Dwt0G6ez.mjs} +4 -4
- package/dist/client/{eventListing-aTLifOX7.mjs → eventListing-B3H9ifOC.mjs} +4 -4
- package/dist/client/{eventRegistration-DFd7pr09.mjs → eventRegistration-Do7cAhXb.mjs} +7 -6
- package/dist/client/{form-Dikmc2AO.mjs → form-CsqzgC6v.mjs} +3 -3
- package/dist/client/{form.client-zHaQK5I9.mjs → form.client-DVDB7hY6.mjs} +4 -4
- package/dist/client/{form.parts-BLl9n8TH.mjs → form.parts-1q2rzSYt.mjs} +3 -3
- package/dist/client/gifting/client.mjs +7 -7
- package/dist/client/{gifting-CufPM38H.mjs → gifting-BrXQGX-k.mjs} +4 -4
- package/dist/client/{gifting.client--N1GaSY8.mjs → gifting.client--zAjnY5N.mjs} +6 -7
- package/dist/client/{gifting.interactive-D9MK4HkV.mjs → gifting.interactive-CrwHpUJG.mjs} +59 -9
- package/dist/client/{gifting.parts-CRtiRzo-.mjs → gifting.parts-CcKdDaQq.mjs} +7 -2
- package/dist/client/{headerSection-BIaBpmk3.mjs → headerSection-DlcDH4bi.mjs} +2 -2
- package/dist/client/{islands-DJDLGQEm.mjs → islands-dMh0Oxli.mjs} +1986 -1170
- package/dist/client/{newsletter-form.client-wg_JHTxm.mjs → newsletter-form.client-BxA1PsdS.mjs} +5 -5
- package/dist/client/{newsletter-form.interactive-hzpkW9NQ.mjs → newsletter-form.interactive-D0iRg7p2.mjs} +6 -5
- package/dist/client/{newsletter-form.parts-CgzpSv9p.mjs → newsletter-form.parts-Dmuklz0r.mjs} +2 -2
- package/dist/client/{newsletterForm-CvxLiEBT.mjs → newsletterForm-CBzvgIfg.mjs} +3 -3
- package/dist/client/portal/client.mjs +27 -15
- package/dist/client/{portalRoutes-DTHlWg_F.mjs → portalRoutes-DiGibcZI.mjs} +9 -2
- package/dist/client/portalSession-0XhXyTxT.mjs +41 -0
- package/dist/client/{product-detail.client-22Q7zgjN.mjs → product-detail.client-D9MP8hvH.mjs} +1 -1
- package/dist/client/{product-list.client-DFWYvK8z.mjs → product-list.client-wCz1qcUY.mjs} +1 -1
- package/dist/client/{productDetail-DhZAwo60.mjs → productDetail-D9-fCY6c.mjs} +3 -3
- package/dist/client/{productList-BiVpbZK2.mjs → productList-PJyxXSac.mjs} +3 -3
- package/dist/client/{propsDecoder-DFYqKnLy.mjs → propsDecoder-B8lrKGPw.mjs} +4 -4
- package/dist/client/{registry.server-C3OBRg7x.mjs → registry.server-CI63JVHW.mjs} +689 -569
- package/dist/client/rendering/client.mjs +28 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +4 -4
- package/dist/client/{richText-coerce-ms477Z08.mjs → richText-coerce-Jt9hDHdh.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-B6nQeqvH.mjs → routeIslandApiConfig-ZSPcJWx1.mjs} +1 -1
- package/dist/client/runtimeResponse-DlPBWBd9.mjs +3 -0
- package/dist/client/{runtimeResponse-BYqsV1Kb.mjs → runtimeResponse-_iW9oEYc.mjs} +1 -1
- package/dist/client/{shop-xt4dQ3HH.mjs → shop-CbdJlWOw.mjs} +3 -3
- package/dist/client/{shop-commerce-DVsIcPaI.mjs → shop-commerce-BqLbzUUn.mjs} +44 -26
- package/dist/client/{shop-commerce-store-7mO6KY7_.mjs → shop-commerce-store-BT0-zRqN.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-L1Vge8tG.mjs → shop-discount-apply.state-Cws0lnSb.mjs} +1 -1
- package/dist/client/{shop.client-DNJfD3VQ.mjs → shop.client-0cNErhJT.mjs} +37 -18
- package/dist/client/{shopShared-DS8t6749.mjs → shopShared-COuQ2MhQ.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-Dy3nNfTG.mjs → timetableModel-DqI6U1BS.mjs} +6 -6
- package/dist/client/{urlParams-C2QHo1Pa.mjs → useAutomaticDiscountPreview-CeVUVzGf.mjs} +44 -1
- package/dist/client/{useAvailableSlots-DcjtDpUu.mjs → useAvailableSlots-B0mjVhZr.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-DvdFFWOT.mjs → useDiscountCodeUi-B_hfgdAP.mjs} +6 -2
- package/dist/client/{useEventPagination-Cq-7sU5_.mjs → useEventPagination-Ct4A6iR1.mjs} +13 -15
- package/dist/client/{view-4gnPcpWJ.mjs → view-Cj151w4m.mjs} +4 -4
- package/dist/client/{wizardSteps-DDvL3iza.mjs → wizardSteps-B3gsXNnb.mjs} +212 -68
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CLqSRUpt.mjs → EventEmbeddedCheckoutStep-CVy9oapv.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CIdAg-Tm.mjs → LocationPickerEnvironment-DuRUwUrK.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-Bm85jX35.mjs → MapLibreEditMap-CdSDYBq9.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D8srnz9R.mjs → PageSectionToolbar-Dv4CW0AQ.mjs} +582 -195
- package/dist/preview-next/client/{PreviewEditorSidebar-DVpk5cqp.mjs → PreviewEditorSidebar-B7WW58uE.mjs} +1095 -282
- package/dist/preview-next/client/{PreviewEditorUI-XoTtHSFH.mjs → PreviewEditorUI-BnJ1ughv.mjs} +65 -16
- package/dist/preview-next/client/{PreviewShell-VQHsRg2u.mjs → PreviewShell-C7qWzAe4.mjs} +39 -12
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CLdF9f6o.mjs → SdkPreviewModeRuntime-CYi4UHtG.mjs} +128 -27
- package/dist/preview-next/client/{ThemedButton-ORNN4x-3.mjs → ThemedButton-CRgbU75r.mjs} +18 -2
- package/dist/preview-next/client/{lucide-react-eAi3tDAr.mjs → lucide-react-B4c6U3ZU.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CqH91EwA.mjs → previewAssistantSlot-DrUoRNu9.mjs} +6239 -2558
- package/dist/preview-next/client/{previewChromeRoot-B3ySEu6p.mjs → previewChromeRoot-CEYp90mM.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CdpSupcr.mjs → sdk-runtime-DnO2_c0A.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-C6eOP6QW.mjs → siteStyleAccess-B3PwHw2z.mjs} +16 -10
- package/dist/preview-next/client/{useAutosaveStatus-BhPg4e-r.mjs → useAutosaveStatus-DrdQ4ier.mjs} +3 -3
- package/dist/preview-next/client/{useOpenBlockForSetup-BaWUF9D7.mjs → useOpenBlockForSetup-kuGRKaRL.mjs} +4 -3
- package/dist/preview-next/container-responsive.css +150 -3
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-Ch0X99vE.mjs → route-contract-CwrXkLT3.mjs} +16 -28
- package/dist/server/{Block.shared-B2FmczLO.mjs → Block.shared-C5ucphCJ.mjs} +5 -5
- package/dist/server/{ThemeScopeCore-DtAyv9qA.mjs → ThemeScopeCore-DvbqYXdK.mjs} +34 -8
- package/dist/server/{accessibleSurfaces-BtPqb76u.mjs → accessibleSurfaces-CAcf1lHT.mjs} +317 -148
- package/dist/server/{accordions-vzdZ2Wt1.mjs → accordions-DjcsqjCK.mjs} +1 -1
- package/dist/server/{bindings-B_9JuU66.mjs → bindings-CFw4M-gZ.mjs} +68 -247
- package/dist/server/{client-DC7cjiSw.mjs → client-D0XCgITW.mjs} +26 -34
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{constants-d6nPNJpe.mjs → constants-BZduY8jG.mjs} +9 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-hb27HYic.mjs → loadContent-C-qyB8Tq.mjs} +4 -4
- package/dist/server/{loadPage-JToD8wDD.mjs → loadPage-BpKKmi8E.mjs} +3 -3
- package/dist/server/lookMediaFrame-EFws7tAj.mjs +31835 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{navigation-B2WhGofA.mjs → navigation-DYkuiNXa.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -9
- package/dist/server/{overrideResolution-vD5KTClL.mjs → overrideResolution-DmZn4xUE.mjs} +1 -1
- package/dist/server/page-converter.mjs +17 -4
- package/dist/server/{pageRenderPlan-CdqJ1NQZ.mjs → pageRenderPlan-DRB7cUZ0.mjs} +595 -208
- package/dist/server/{pageRuntimeSupport-CAhr4oOf.mjs → pageRuntimeSupport-Uv1xDieJ.mjs} +12 -5
- package/dist/server/{pageShared-m80Xu2pd.mjs → pageShared-BdQF875z.mjs} +596 -383
- package/dist/server/{parseThemeForPersistence-CRwOZfpa.mjs → parseThemeForPersistence-CwcWZL7u.mjs} +3 -3
- package/dist/server/{portal-B2wCQno_.mjs → portal-BQ8qiQnk.mjs} +22 -2
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-BWIkFaXq.mjs → prebuild-B51QZVNe.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-D1PHU-K9.mjs → prefetchBlockData-CppDAfJW.mjs} +3 -3
- package/dist/server/{registry-KtsOsAzY.mjs → registry-Bf4W8Qa7.mjs} +1499 -28631
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +9 -9
- package/dist/server/{resolveBlockData-sjIDJYl7.mjs → resolveBlockData-DMHAZooQ.mjs} +2 -2
- package/dist/server/{expandPalette-DxPrNOAB.mjs → resolveButtonColourStates-BMtAAPzp.mjs} +1662 -1430
- package/dist/server/{responseMedia-IfH65QAH.mjs → responseMedia-DKYfR518.mjs} +1 -1
- package/dist/server/{schema-BBEqquBM.mjs → schema-DGaihVwp.mjs} +261 -6
- package/dist/server/server.mjs +3 -3
- package/dist/server/{servicePageContent-ChEZDRwU.mjs → servicePageContent-CRvmreX7.mjs} +8 -7
- package/dist/server/theme-bridge.mjs +5 -4
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-DKCIBeb1.mjs → three-pass-converter-mcy2E1Yd.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DybHErxH.mjs → titleSourceSchema-B2qFOUwZ.mjs} +2 -3
- package/dist/server/{types-vyz09w64.mjs → types-C_S0pWbR.mjs} +9 -2
- package/dist/server/{validation-Cvi-1TZZ.mjs → validation-CUtNT_EZ.mjs} +5 -5
- package/dist/server/{version-B-icAIV1.mjs → version-DebJQ4zn.mjs} +1 -1
- package/dist/styles/index.css +495 -50
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CUX_lldL.mjs +0 -3
- package/dist/server/customCss-rtIfEYwQ.mjs +0 -230
- package/dist/server/lookMediaFrame-CTsycLLK.mjs +0 -2756
- package/dist/server/media-gvfIw3z8.mjs +0 -216
|
@@ -1,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-D0iRg7p2.mjs";
|
|
3
3
|
import { m as ok, p as err } from "./renderableMediaAssetAdmission-BsOWd9lf.mjs";
|
|
4
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-Do_s2lqH.mjs";
|
|
5
|
-
import { $o as groupEventsByDate, $s as
|
|
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-
|
|
5
|
+
import { $o as groupEventsByDate, $s as nextLiveRunSessionStartMs, Ao as isEventFull, Bo as eventDateOptions, Cc as resolveExactOrFreePriceDisplay, Ci as isDropInPublicEvent, Do as getEventAvailability, Eo as formatTotalCapacity, Fi as buildBookingFormInteractiveIslandProps, Fo as isBlockButtonRole, Go as formatEventCompactDateRail, Ho as formatCalendarTitle, Io as RichText, Ko as formatEventDateParts, Lo as buildCalendarViewport, Ni as groupPublicEventsByRun, No as BLOCK_BUTTON_ROLE_OPTIONS, Ns as sanitizeHref, Oo as getEventAvailabilityStatus, Ps as parseAspectRatioValue, Qo as formatTime, Qs as CANCELLED_SESSION_STATUS, Sc as publicEventPricingType, Xo as formatEventTimeRange, Yo as formatEventRunDates, _o as resolveEventCta, bc as publicEventPricingDisplay, bi as resolveEventRegistrationScopedEvents, bo as isBookableEvent, ds as resolvePublicMediaUrl, ec as orderedLiveRunSessions, fc as EVENT_ADDRESS_AFTER_BOOKING_LABEL, fo as eventVenuePlace, gc as formatBookingPriceDisplay, go as resolveEventCardBooking, ho as eventDestinationPagePath, lo as bookingPresentation, pi as closedRunCopy, po as formatEventLocation, qo as formatEventHourLabel, tc as resolveWholeSeriesBookingPhase, ts as ImagePresets, uo as eventOnlinePlace, vc as isPublicEventPricingOptionDisplayable, vi as normalizeEventRegistrationPageSurfaceSubject, vo as resolveEventPageLink, wc as resolvePricingOptionsPriceDisplay, wo as formatEventRemainingPlaces, xs as asPartialObject, yc as publicEventPricingCurrency, yo as resolveRuntimeEventDestination } from "./wizardSteps-B3gsXNnb.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-ZfrUiiiI.mjs";
|
|
7
7
|
import { h as assertNever$1 } from "./bookingCalendar--aWnqFDn.mjs";
|
|
8
8
|
import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.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-
|
|
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
|
|
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-DqI6U1BS.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-dMh0Oxli.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-CqroimVQ.mjs";
|
|
13
|
+
import { l as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles } from "./boxStyleClassNames-CA7FirMH.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
16
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-uwCpbHXG.mjs";
|
|
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-
|
|
17
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-Jt9hDHdh.mjs";
|
|
18
|
+
import { f as formatCourseSessions, l as eventDisplayTitle, n as CardListItems, p as formatMoreDates, r as EventItem, u as eventDisplayTitleText } from "./EventItem-KGKkK19N.mjs";
|
|
19
|
+
import { i as resolvePublicEventDepositOffer, t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-DXV4KR7l.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-CLgDVzCs.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-DRyZ8igu.mjs";
|
|
23
|
+
import { c as EventCompactRow, i as eventFilterConditions, l as EventCard, s as EmptyState, t as EventListingFrameView } from "./EventListing.view-Dy36vWHi.mjs";
|
|
24
|
+
import { a as publicGiftingOffersResponseSchema, c as vouchersShownCondition, n as buildGiftingInteractiveIslandProps, o as decideGiftingOffer, r as giftingBlockRuntime, s as giftCardsShownCondition } from "./gifting.interactive-CrwHpUJG.mjs";
|
|
25
25
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
26
|
-
import {
|
|
27
|
-
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-
|
|
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 GiftingPanelHead, c as giftingSlot, i as GiftGroup, n as GIFTING_NOTHING_TO_SHOW, r as GiftCardAmounts, s as formatGiftAmount } from "./gifting.parts-CcKdDaQq.mjs";
|
|
27
|
+
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-Cj151w4m.mjs";
|
|
28
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-Ba9ezxuC.mjs";
|
|
29
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-1q2rzSYt.mjs";
|
|
30
|
+
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-Dmuklz0r.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
|
|
@@ -4635,57 +4677,106 @@ function DateTimeTile(props) {
|
|
|
4635
4677
|
});
|
|
4636
4678
|
}
|
|
4637
4679
|
//#endregion
|
|
4638
|
-
//#region ../blocks/src/system/runtime/nodes/event-details/
|
|
4680
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/eventPriceSummary.ts
|
|
4681
|
+
function decideEventPriceSummary(input) {
|
|
4682
|
+
if (input.options.length < 2) return {
|
|
4683
|
+
kind: "price",
|
|
4684
|
+
price: input.price,
|
|
4685
|
+
depositNote: input.depositNote
|
|
4686
|
+
};
|
|
4687
|
+
return {
|
|
4688
|
+
kind: "options",
|
|
4689
|
+
range: input.optionsCoverEveryPrice ? null : input.price,
|
|
4690
|
+
options: input.options,
|
|
4691
|
+
depositNote: input.depositNote
|
|
4692
|
+
};
|
|
4693
|
+
}
|
|
4639
4694
|
/** A course lists every active option, whether or not its sale window is open. */
|
|
4640
4695
|
function wholeSeriesPriceOptions(pricing) {
|
|
4641
4696
|
return pricing.kind === "tiered" ? pricing.options.filter((option) => option.isActive) : [];
|
|
4642
4697
|
}
|
|
4643
|
-
|
|
4644
|
-
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4698
|
+
function wholeSeriesPriceSummary(pricing, depositNote) {
|
|
4699
|
+
return decideEventPriceSummary({
|
|
4700
|
+
price: formatBookingPriceDisplay(publicEventPricingDisplay(pricing), { decimals: "auto" }),
|
|
4701
|
+
options: wholeSeriesPriceOptions(pricing).map((option) => ({
|
|
4702
|
+
id: option.id,
|
|
4703
|
+
name: option.name,
|
|
4704
|
+
description: option.description,
|
|
4705
|
+
price: formatEventPriceAmount(option.priceAmount, pricing.currency)
|
|
4706
|
+
})),
|
|
4707
|
+
depositNote,
|
|
4708
|
+
optionsCoverEveryPrice: true
|
|
4709
|
+
});
|
|
4710
|
+
}
|
|
4711
|
+
//#endregion
|
|
4712
|
+
//#region ../blocks/src/system/runtime/nodes/event-details/EventFactRows.tsx
|
|
4713
|
+
/**
|
|
4714
|
+
* An event's facts as a short list: one row per fact, a small icon where a
|
|
4715
|
+
* label would be. The labels stay for screen readers. Each row is a direct
|
|
4716
|
+
* child of the list, so a site style's `facts > *` rules still reach it.
|
|
4717
|
+
*/
|
|
4718
|
+
function EventFactList({ slot, children }) {
|
|
4719
|
+
return /* @__PURE__ */ jsx("dl", {
|
|
4720
|
+
...slot,
|
|
4721
|
+
className: "rb-event-facts",
|
|
4722
|
+
children
|
|
4648
4723
|
});
|
|
4649
4724
|
}
|
|
4650
|
-
function
|
|
4651
|
-
const options = wholeSeriesPriceOptions(pricing);
|
|
4725
|
+
function EventFactRow({ fact, label, icon: Icon, slots, children }) {
|
|
4652
4726
|
return /* @__PURE__ */ jsxs("div", {
|
|
4653
4727
|
...slots.detail,
|
|
4654
|
-
|
|
4655
|
-
children: [
|
|
4656
|
-
|
|
4657
|
-
|
|
4658
|
-
|
|
4659
|
-
|
|
4660
|
-
|
|
4661
|
-
|
|
4728
|
+
"data-fact": fact,
|
|
4729
|
+
children: [/* @__PURE__ */ jsx("dt", {
|
|
4730
|
+
...slots.label,
|
|
4731
|
+
className: "rb-sr-only",
|
|
4732
|
+
children: label
|
|
4733
|
+
}), /* @__PURE__ */ jsxs("dd", {
|
|
4734
|
+
className: "rb-event-fact",
|
|
4735
|
+
children: [/* @__PURE__ */ jsx(Icon, {
|
|
4736
|
+
className: "rb-event-fact-icon",
|
|
4737
|
+
strokeWidth: 1.75
|
|
4738
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
4662
4739
|
...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
|
-
]
|
|
4740
|
+
className: "rb-event-fact-text",
|
|
4741
|
+
children
|
|
4742
|
+
})]
|
|
4743
|
+
})]
|
|
4687
4744
|
});
|
|
4688
4745
|
}
|
|
4746
|
+
/** The price, with any deposit option said beside it. */
|
|
4747
|
+
function PriceLine({ price, depositNote }) {
|
|
4748
|
+
return /* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: price }), depositNote ? `, ${depositNote}` : null] });
|
|
4749
|
+
}
|
|
4750
|
+
/** Each price sits next to its name. Descriptions put one option on each line. */
|
|
4751
|
+
function PriceOptionList({ options }) {
|
|
4752
|
+
return /* @__PURE__ */ jsx("ul", {
|
|
4753
|
+
className: "rb-event-price-options",
|
|
4754
|
+
"data-described": options.some((option) => option.description) ? "" : void 0,
|
|
4755
|
+
children: options.map((option) => /* @__PURE__ */ jsxs("li", { children: [/* @__PURE__ */ jsxs("span", { children: [
|
|
4756
|
+
/* @__PURE__ */ jsx("strong", { children: option.price }),
|
|
4757
|
+
" ",
|
|
4758
|
+
option.name
|
|
4759
|
+
] }), option.description ? /* @__PURE__ */ jsx("span", {
|
|
4760
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4761
|
+
children: option.description
|
|
4762
|
+
}) : null] }, option.id))
|
|
4763
|
+
});
|
|
4764
|
+
}
|
|
4765
|
+
const sentence = (text) => `${text.charAt(0).toUpperCase()}${text.slice(1)}`;
|
|
4766
|
+
function EventPriceSummaryLines({ summary }) {
|
|
4767
|
+
if (summary.kind === "price") return /* @__PURE__ */ jsx(PriceLine, {
|
|
4768
|
+
price: summary.price,
|
|
4769
|
+
depositNote: summary.depositNote
|
|
4770
|
+
});
|
|
4771
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
4772
|
+
summary.range ? /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: summary.range }) }) : null,
|
|
4773
|
+
/* @__PURE__ */ jsx(PriceOptionList, { options: summary.options }),
|
|
4774
|
+
summary.depositNote ? /* @__PURE__ */ jsxs("p", {
|
|
4775
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4776
|
+
children: [sentence(summary.depositNote), "."]
|
|
4777
|
+
}) : null
|
|
4778
|
+
] });
|
|
4779
|
+
}
|
|
4689
4780
|
//#endregion
|
|
4690
4781
|
//#region ../blocks/src/system/runtime/nodes/event-details/view.tsx
|
|
4691
4782
|
function formatAutoApplyDiscountLine(preview, currency) {
|
|
@@ -4703,79 +4794,71 @@ function TeamMemberName({ name, profilePath }) {
|
|
|
4703
4794
|
function formatTicketTypePrice(ticketType, currency) {
|
|
4704
4795
|
return formatBookingPriceDisplay(resolveExactOrFreePriceDisplay(ticketType.priceAmount, currency), { decimals: "auto" });
|
|
4705
4796
|
}
|
|
4797
|
+
/** A room's prices depend on the room, so the booking form shows them with it, not the price list. */
|
|
4798
|
+
const roomPriceIdsOf = (event) => event.rooms?.linkedOptionIds ?? [];
|
|
4799
|
+
/** With a room's prices left out of the list, the range line stays to say how far prices go. */
|
|
4800
|
+
const hasRoomPrices = (event) => event.pricing.kind === "tiered" && event.pricing.options.some((option) => roomPriceIdsOf(event).includes(option.id));
|
|
4706
4801
|
function getDisplayablePricingOptions(event) {
|
|
4707
|
-
const roomPriceIds = event
|
|
4802
|
+
const roomPriceIds = roomPriceIdsOf(event);
|
|
4708
4803
|
return event.pricing.kind === "tiered" ? event.pricing.options.filter(isPublicEventPricingOptionDisplayable).filter((option) => !roomPriceIds.includes(option.id)).sort((left, right) => left.sortOrder - right.sortOrder) : [];
|
|
4709
4804
|
}
|
|
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
|
-
slots
|
|
4742
|
-
|
|
4743
|
-
|
|
4744
|
-
|
|
4745
|
-
|
|
4805
|
+
function ticketPriceSummary(pricing, price) {
|
|
4806
|
+
const currency = pricing.eventPricingCurrency;
|
|
4807
|
+
return decideEventPriceSummary({
|
|
4808
|
+
price,
|
|
4809
|
+
options: currency ? pricing.ticketTypes.map((ticketType) => ({
|
|
4810
|
+
id: ticketType.id,
|
|
4811
|
+
name: ticketType.name,
|
|
4812
|
+
description: ticketType.description,
|
|
4813
|
+
price: formatTicketTypePrice(ticketType, currency)
|
|
4814
|
+
})) : [],
|
|
4815
|
+
depositNote: pricing.depositNote,
|
|
4816
|
+
optionsCoverEveryPrice: pricing.ticketsCoverEveryPrice
|
|
4817
|
+
});
|
|
4818
|
+
}
|
|
4819
|
+
function AcceptedItemsLine({ acceptedItems }) {
|
|
4820
|
+
return acceptedItems.length > 0 ? /* @__PURE__ */ jsxs("p", {
|
|
4821
|
+
className: "rb-caption",
|
|
4822
|
+
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
4823
|
+
}) : null;
|
|
4824
|
+
}
|
|
4825
|
+
/** The price row, in whichever form this event's pricing takes. */
|
|
4826
|
+
function EventPricingDetails(props) {
|
|
4827
|
+
const { acceptedItems, slots } = props;
|
|
4828
|
+
if (props.isDropIn) return /* @__PURE__ */ jsx(EventFactRow, {
|
|
4829
|
+
slots,
|
|
4830
|
+
fact: "registration",
|
|
4831
|
+
label: "Registration",
|
|
4832
|
+
icon: TicketIcon,
|
|
4833
|
+
children: /* @__PURE__ */ jsx("p", { children: "No registration required - just show up" })
|
|
4834
|
+
});
|
|
4835
|
+
if (props.wholeSeriesPricingDisplay) return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4836
|
+
slots,
|
|
4837
|
+
fact: "price",
|
|
4838
|
+
label: "Cost",
|
|
4839
|
+
icon: TicketIcon,
|
|
4840
|
+
children: [/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary: wholeSeriesPriceSummary(props.wholeSeriesPricingDisplay, props.depositNote) }), /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })]
|
|
4841
|
+
});
|
|
4842
|
+
if (props.eventCostLabel) return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4843
|
+
slots,
|
|
4844
|
+
fact: "price",
|
|
4845
|
+
label: "Cost",
|
|
4846
|
+
icon: TicketIcon,
|
|
4746
4847
|
children: [
|
|
4747
|
-
/* @__PURE__ */ jsx(
|
|
4748
|
-
|
|
4749
|
-
className: "rb-
|
|
4750
|
-
children:
|
|
4751
|
-
}),
|
|
4752
|
-
/* @__PURE__ */ jsx(PriceLine, {
|
|
4753
|
-
price: eventCostLabel,
|
|
4754
|
-
depositNote,
|
|
4755
|
-
valueSlot: slots.value
|
|
4756
|
-
}),
|
|
4757
|
-
autoApplyDiscount && eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
|
|
4758
|
-
className: "rb-caption rb-mt-1",
|
|
4759
|
-
children: formatAutoApplyDiscountLine(autoApplyDiscount, eventPricingCurrency)
|
|
4760
|
-
}) : null,
|
|
4761
|
-
eventPricingCurrency && ticketTypes.length > 1 ? /* @__PURE__ */ jsx(TicketTypePriceList, {
|
|
4762
|
-
ticketTypes,
|
|
4763
|
-
currency: eventPricingCurrency
|
|
4848
|
+
/* @__PURE__ */ jsx(EventPriceSummaryLines, { summary: ticketPriceSummary(props, props.eventCostLabel) }),
|
|
4849
|
+
props.autoApplyDiscount && props.eventPricingCurrency ? /* @__PURE__ */ jsx("p", {
|
|
4850
|
+
className: "rb-caption",
|
|
4851
|
+
children: formatAutoApplyDiscountLine(props.autoApplyDiscount, props.eventPricingCurrency)
|
|
4764
4852
|
}) : null,
|
|
4765
|
-
|
|
4766
|
-
className: "rb-caption rb-mt-1",
|
|
4767
|
-
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
4768
|
-
}) : null
|
|
4853
|
+
/* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
|
|
4769
4854
|
]
|
|
4770
4855
|
});
|
|
4771
|
-
return acceptedItems.length > 0 ? /* @__PURE__ */ jsx(
|
|
4772
|
-
|
|
4773
|
-
|
|
4774
|
-
|
|
4775
|
-
|
|
4776
|
-
|
|
4777
|
-
children: ["You can also attend with: ", acceptedItems.join(", ")]
|
|
4778
|
-
})
|
|
4856
|
+
return acceptedItems.length > 0 ? /* @__PURE__ */ jsx(EventFactRow, {
|
|
4857
|
+
slots,
|
|
4858
|
+
fact: "accepted",
|
|
4859
|
+
label: "Passes and memberships",
|
|
4860
|
+
icon: TicketIcon,
|
|
4861
|
+
children: /* @__PURE__ */ jsx(AcceptedItemsLine, { acceptedItems })
|
|
4779
4862
|
}) : null;
|
|
4780
4863
|
}
|
|
4781
4864
|
function EventFacts({ selection, selected, venue, online, addressAfterBooking, teamMembers, pricing, showCapacity, lookSlots, slots }) {
|
|
@@ -4785,27 +4868,18 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
|
|
|
4785
4868
|
...eventDateOptions(selected)
|
|
4786
4869
|
});
|
|
4787
4870
|
const dateHeading = selection.kind === "wholeSeries" ? runLifecycleLabel(selection.lifecycle) : selection.mode === "next" ? "Next date" : "Date";
|
|
4788
|
-
return /* @__PURE__ */ jsxs(
|
|
4789
|
-
|
|
4790
|
-
className: "rb-flex rb-flex-col rb-gap-4",
|
|
4871
|
+
return /* @__PURE__ */ jsxs(EventFactList, {
|
|
4872
|
+
slot: listLookSlot({ lookSlots }, "facts"),
|
|
4791
4873
|
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
|
-
]
|
|
4874
|
+
/* @__PURE__ */ jsxs(EventFactRow, {
|
|
4875
|
+
slots,
|
|
4876
|
+
fact: "date",
|
|
4877
|
+
label: dateHeading,
|
|
4878
|
+
icon: CalendarIcon,
|
|
4879
|
+
children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: date }) }), /* @__PURE__ */ jsx("p", {
|
|
4880
|
+
className: "rb-event-fact-muted",
|
|
4881
|
+
children: timeRange
|
|
4882
|
+
})]
|
|
4809
4883
|
}),
|
|
4810
4884
|
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
4811
4885
|
venue,
|
|
@@ -4817,17 +4891,12 @@ function EventFacts({ selection, selected, venue, online, addressAfterBooking, t
|
|
|
4817
4891
|
teamMembers,
|
|
4818
4892
|
slots
|
|
4819
4893
|
}),
|
|
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
|
-
})]
|
|
4894
|
+
showCapacity && selected.capacity != null ? /* @__PURE__ */ jsx(EventFactRow, {
|
|
4895
|
+
slots,
|
|
4896
|
+
fact: "places",
|
|
4897
|
+
label: "Places",
|
|
4898
|
+
icon: UsersIcon,
|
|
4899
|
+
children: /* @__PURE__ */ jsx("p", { children: formatEventRemainingPlaces(selected) ?? formatTotalCapacity(selected.capacity) })
|
|
4831
4900
|
}) : null,
|
|
4832
4901
|
pricing,
|
|
4833
4902
|
selection.kind === "wholeSeries" ? /* @__PURE__ */ jsx(BookingState, {
|
|
@@ -4844,37 +4913,26 @@ const addressAfterBookingShown = (event, showVenue) => showVenue && event.addres
|
|
|
4844
4913
|
/** Where a venue would go: online, the owner's word that the address follows the booking, or nothing at all. */
|
|
4845
4914
|
function EventPlaceWithoutVenue({ online, addressAfterBooking, slots }) {
|
|
4846
4915
|
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
|
-
})]
|
|
4916
|
+
if (!online) return /* @__PURE__ */ jsx(EventFactRow, {
|
|
4917
|
+
slots,
|
|
4918
|
+
fact: "venue",
|
|
4919
|
+
label: "Venue",
|
|
4920
|
+
icon: MapPinIcon,
|
|
4921
|
+
children: /* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: EVENT_ADDRESS_AFTER_BOOKING_LABEL }) })
|
|
4858
4922
|
});
|
|
4859
|
-
return /* @__PURE__ */ jsxs(
|
|
4860
|
-
|
|
4861
|
-
|
|
4923
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4924
|
+
slots,
|
|
4925
|
+
fact: "venue",
|
|
4926
|
+
label: "Venue",
|
|
4927
|
+
icon: GlobeIcon,
|
|
4862
4928
|
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
|
-
}),
|
|
4929
|
+
/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: online.mode === "online" ? "Online" : "In person or online" }) }),
|
|
4872
4930
|
addressAfterBooking ? /* @__PURE__ */ jsxs("p", {
|
|
4873
|
-
className: "rb-caption",
|
|
4931
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4874
4932
|
children: [EVENT_ADDRESS_AFTER_BOOKING_LABEL, "."]
|
|
4875
4933
|
}) : null,
|
|
4876
4934
|
online.note ? /* @__PURE__ */ jsx("p", {
|
|
4877
|
-
className: "rb-caption",
|
|
4935
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4878
4936
|
children: online.note
|
|
4879
4937
|
}) : null
|
|
4880
4938
|
]
|
|
@@ -4888,57 +4946,45 @@ function EventVenueFact({ venue, online, addressAfterBooking, slots }) {
|
|
|
4888
4946
|
slots
|
|
4889
4947
|
});
|
|
4890
4948
|
const { place, addressWithBooking } = eventVenuePlace(venue);
|
|
4891
|
-
return /* @__PURE__ */ jsxs(
|
|
4892
|
-
|
|
4893
|
-
|
|
4949
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4950
|
+
slots,
|
|
4951
|
+
fact: "venue",
|
|
4952
|
+
label: "Venue",
|
|
4953
|
+
icon: MapPinIcon,
|
|
4894
4954
|
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,
|
|
4955
|
+
/* @__PURE__ */ jsxs("p", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), place ? `, ${place}` : null] }),
|
|
4908
4956
|
addressWithBooking ? /* @__PURE__ */ jsx("p", {
|
|
4909
|
-
className: "rb-caption rb-
|
|
4957
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4910
4958
|
children: "The full address and directions come with your booking confirmation."
|
|
4911
4959
|
}) : /* @__PURE__ */ jsx(LocationMapActions, {
|
|
4912
4960
|
location: venue.location,
|
|
4913
4961
|
addressText: venue.address
|
|
4914
4962
|
}),
|
|
4915
4963
|
online ? /* @__PURE__ */ jsxs("p", {
|
|
4916
|
-
className: "rb-caption rb-
|
|
4964
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4917
4965
|
children: ["You can also join online.", online.note ? ` ${online.note}` : ""]
|
|
4918
4966
|
}) : null
|
|
4919
4967
|
]
|
|
4920
4968
|
});
|
|
4921
4969
|
}
|
|
4970
|
+
/** "With Alice", "With Alice and Ben", "With Alice, Ben and Cara". */
|
|
4971
|
+
const nameSeparator = (index, count) => index === 0 ? "" : index === count - 1 ? " and " : ", ";
|
|
4922
4972
|
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;
|
|
4973
|
+
if (teamMembers.length === 0) return null;
|
|
4974
|
+
const described = teamMembers.filter((member) => member.summary);
|
|
4975
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
4976
|
+
slots,
|
|
4977
|
+
fact: "team",
|
|
4978
|
+
label: "With",
|
|
4979
|
+
icon: UserIcon,
|
|
4980
|
+
children: [/* @__PURE__ */ jsxs("p", { children: ["With ", teamMembers.map((member, index) => /* @__PURE__ */ jsxs(React.Fragment, { children: [nameSeparator(index, teamMembers.length), /* @__PURE__ */ jsx(TeamMemberName, {
|
|
4981
|
+
name: member.name,
|
|
4982
|
+
profilePath: member.profilePath
|
|
4983
|
+
})] }, member.id))] }), described.map((member) => /* @__PURE__ */ jsxs("p", {
|
|
4984
|
+
className: "rb-caption rb-event-fact-muted",
|
|
4985
|
+
children: [teamMembers.length > 1 ? `${member.name}: ` : null, member.summary]
|
|
4986
|
+
}, member.id))]
|
|
4987
|
+
});
|
|
4942
4988
|
}
|
|
4943
4989
|
/**
|
|
4944
4990
|
* Where the run has got to, in the words a visitor would use.
|
|
@@ -4963,24 +5009,15 @@ function runLifecycleLabel(lifecycle) {
|
|
|
4963
5009
|
* actually notices.
|
|
4964
5010
|
*/
|
|
4965
5011
|
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
|
-
]
|
|
5012
|
+
return /* @__PURE__ */ jsxs(EventFactRow, {
|
|
5013
|
+
slots,
|
|
5014
|
+
fact: "booking",
|
|
5015
|
+
label: "Booking",
|
|
5016
|
+
icon: InfoIcon,
|
|
5017
|
+
children: [/* @__PURE__ */ jsx("p", { children: /* @__PURE__ */ jsx("strong", { children: phase.kind === "closed" ? "Closed" : isEventFull(event) ? formatEventRemainingPlaces(event) : "Open" }) }), phase.kind === "closed" ? /* @__PURE__ */ jsx("p", {
|
|
5018
|
+
className: "rb-caption rb-event-fact-muted",
|
|
5019
|
+
children: bookingClosedReason(phase.reason)
|
|
5020
|
+
}) : null]
|
|
4984
5021
|
});
|
|
4985
5022
|
}
|
|
4986
5023
|
function bookingClosedReason(reason) {
|
|
@@ -5093,7 +5130,8 @@ function selectedEventPricing(selection, showCost) {
|
|
|
5093
5130
|
eventCostLabel: showEventCost ? formatEventPrice(event) : null,
|
|
5094
5131
|
depositNote: showCost && !isDropIn && isPaid(event) ? formatEventDepositNote(selection.depositOffer) : null,
|
|
5095
5132
|
eventPricingCurrency: publicEventPricingCurrency(event.pricing),
|
|
5096
|
-
ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : []
|
|
5133
|
+
ticketTypes: showEventCost && isPaid(event) ? getDisplayablePricingOptions(event) : [],
|
|
5134
|
+
ticketsCoverEveryPrice: !hasRoomPrices(event)
|
|
5097
5135
|
};
|
|
5098
5136
|
}
|
|
5099
5137
|
const wholeSeriesPricingOf = (event) => event.bookingScope === "whole_series" && event.pricing.kind !== "external" ? event.pricing : null;
|
|
@@ -5229,25 +5267,22 @@ function EventHeaderPanel(props) {
|
|
|
5229
5267
|
});
|
|
5230
5268
|
}
|
|
5231
5269
|
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
|
-
});
|
|
5270
|
+
return /* @__PURE__ */ jsxs(EventFactList, { children: [
|
|
5271
|
+
/* @__PURE__ */ jsx(EventVenueFact, {
|
|
5272
|
+
venue,
|
|
5273
|
+
online,
|
|
5274
|
+
addressAfterBooking,
|
|
5275
|
+
slots
|
|
5276
|
+
}),
|
|
5277
|
+
/* @__PURE__ */ jsx(EventTeacherFacts, {
|
|
5278
|
+
teamMembers,
|
|
5279
|
+
slots
|
|
5280
|
+
}),
|
|
5281
|
+
pricing ? /* @__PURE__ */ jsx(EventPricingDetails, {
|
|
5282
|
+
...pricing,
|
|
5283
|
+
slots
|
|
5284
|
+
}) : null
|
|
5285
|
+
] });
|
|
5251
5286
|
}
|
|
5252
5287
|
/** What the panel has to add to the header, decided once. */
|
|
5253
5288
|
function headerPanelContent(props) {
|
|
@@ -6365,9 +6400,72 @@ function createBoxStylesFieldWithDepth(type, options = {}) {
|
|
|
6365
6400
|
}
|
|
6366
6401
|
};
|
|
6367
6402
|
}
|
|
6403
|
+
/**
|
|
6404
|
+
* Creates a modal field group for styling full-width sections.
|
|
6405
|
+
*
|
|
6406
|
+
* Section styles include:
|
|
6407
|
+
* - Background (color/gradient/image with advanced options)
|
|
6408
|
+
* - Inner spacing (vertical padding)
|
|
6409
|
+
*
|
|
6410
|
+
* Sections are full-width wrappers that span the entire viewport, so they don't
|
|
6411
|
+
* support rounded corners or elevation shadows (unlike containers and cards).
|
|
6412
|
+
*
|
|
6413
|
+
* Use with the `backgroundLayer()` helper to render backgrounds in the block layout.
|
|
6414
|
+
*
|
|
6415
|
+
* @param options - Customization options for the field
|
|
6416
|
+
* @param options.id - Field ID (default: '_sectionStyles')
|
|
6417
|
+
* @param options.label - Field label (default: 'Section styles')
|
|
6418
|
+
* @param options.includeBackground - Whether to include background field (default: true)
|
|
6419
|
+
* @returns A modal FieldDefinition that can be added to a block's fields array
|
|
6420
|
+
*
|
|
6421
|
+
* @example
|
|
6422
|
+
* // Basic usage in a block
|
|
6423
|
+
* const fields = [
|
|
6424
|
+
* // ... other fields
|
|
6425
|
+
* sectionStylesField({
|
|
6426
|
+
* id: '_sectionStyles',
|
|
6427
|
+
* label: 'Section styles',
|
|
6428
|
+
* }),
|
|
6429
|
+
* ]
|
|
6430
|
+
*
|
|
6431
|
+
* @example
|
|
6432
|
+
* // In the layout, use backgroundLayer() to render
|
|
6433
|
+
* const layout = section(
|
|
6434
|
+
* { background: 'background' },
|
|
6435
|
+
* [
|
|
6436
|
+
* ...backgroundLayer('_sectionStyles.background'),
|
|
6437
|
+
* sectionContainer([])
|
|
6438
|
+
* ]
|
|
6439
|
+
* )
|
|
6440
|
+
*
|
|
6441
|
+
* @see {@link containerStylesField} for constrained-width containers with elevation
|
|
6442
|
+
* @see {@link cardStylesField} for repeater items with elevation
|
|
6443
|
+
* @see {@link backgroundLayer} for rendering backgrounds in layouts
|
|
6444
|
+
*/
|
|
6445
|
+
const sectionOwnerChoiceFields = [{
|
|
6446
|
+
id: "ground",
|
|
6447
|
+
type: "group",
|
|
6448
|
+
label: "Background",
|
|
6449
|
+
required: false,
|
|
6450
|
+
schema: { fields: [] },
|
|
6451
|
+
ui: {
|
|
6452
|
+
valueContract: "sectionGround",
|
|
6453
|
+
hidden: true
|
|
6454
|
+
}
|
|
6455
|
+
}, {
|
|
6456
|
+
id: "treatment",
|
|
6457
|
+
type: "group",
|
|
6458
|
+
label: "Treatment",
|
|
6459
|
+
required: false,
|
|
6460
|
+
schema: { fields: [] },
|
|
6461
|
+
ui: {
|
|
6462
|
+
valueContract: "sectionTreatment",
|
|
6463
|
+
hidden: true
|
|
6464
|
+
}
|
|
6465
|
+
}];
|
|
6368
6466
|
function sectionStylesField(options = {}) {
|
|
6369
6467
|
const { id = "_sectionStyles", label = "Section styles", includeBackground = true, allowBackgroundColor = true, allowBackgroundGradient = true, allowBackgroundImage = true, includeAdvancedBackground = true, renderInHeader = true } = options;
|
|
6370
|
-
const fields = [];
|
|
6468
|
+
const fields = [...sectionOwnerChoiceFields];
|
|
6371
6469
|
if (includeBackground) fields.push(createBackgroundField({
|
|
6372
6470
|
id: "background",
|
|
6373
6471
|
label: "Background",
|
|
@@ -8012,7 +8110,10 @@ function backgroundLayer(path, options = {}) {
|
|
|
8012
8110
|
from: path,
|
|
8013
8111
|
transforms: [{
|
|
8014
8112
|
id: "background.resolveStyle",
|
|
8015
|
-
|
|
8113
|
+
options: {
|
|
8114
|
+
...path === "_sectionStyles.background" ? { sectionGround: true } : {},
|
|
8115
|
+
...typeof fallbackToken === "string" && fallbackToken.trim().length > 0 ? { fallbackToken: fallbackToken.trim() } : {}
|
|
8116
|
+
}
|
|
8016
8117
|
}]
|
|
8017
8118
|
} }
|
|
8018
8119
|
});
|
|
@@ -9401,68 +9502,282 @@ const checkoutBlockDefinition = {
|
|
|
9401
9502
|
}),
|
|
9402
9503
|
runtime: checkoutBlockRuntime
|
|
9403
9504
|
};
|
|
9404
|
-
|
|
9405
|
-
|
|
9406
|
-
|
|
9407
|
-
|
|
9408
|
-
|
|
9409
|
-
|
|
9410
|
-
|
|
9411
|
-
|
|
9412
|
-
|
|
9413
|
-
|
|
9414
|
-
|
|
9415
|
-
|
|
9416
|
-
|
|
9417
|
-
|
|
9418
|
-
|
|
9419
|
-
|
|
9420
|
-
|
|
9421
|
-
|
|
9422
|
-
|
|
9423
|
-
|
|
9424
|
-
|
|
9425
|
-
|
|
9426
|
-
|
|
9427
|
-
|
|
9428
|
-
|
|
9429
|
-
|
|
9430
|
-
|
|
9431
|
-
|
|
9432
|
-
|
|
9433
|
-
|
|
9434
|
-
|
|
9435
|
-
|
|
9436
|
-
|
|
9437
|
-
|
|
9438
|
-
|
|
9439
|
-
|
|
9440
|
-
|
|
9441
|
-
|
|
9442
|
-
|
|
9443
|
-
|
|
9444
|
-
|
|
9445
|
-
|
|
9446
|
-
|
|
9447
|
-
|
|
9448
|
-
|
|
9449
|
-
|
|
9450
|
-
|
|
9451
|
-
|
|
9452
|
-
|
|
9453
|
-
|
|
9454
|
-
|
|
9455
|
-
|
|
9456
|
-
|
|
9457
|
-
|
|
9458
|
-
|
|
9505
|
+
//#endregion
|
|
9506
|
+
//#region ../blocks/src/system/readiness.ts
|
|
9507
|
+
const ready = { kind: "Ready" };
|
|
9508
|
+
const unknownReadiness = { kind: "Unknown" };
|
|
9509
|
+
const loadedReadinessFact = (value) => ({
|
|
9510
|
+
kind: "Loaded",
|
|
9511
|
+
value
|
|
9512
|
+
});
|
|
9513
|
+
const unavailableReadinessFact = { kind: "Unavailable" };
|
|
9514
|
+
function needsSetup(reason, repair) {
|
|
9515
|
+
return {
|
|
9516
|
+
kind: "NeedsSetup",
|
|
9517
|
+
reason,
|
|
9518
|
+
repair
|
|
9519
|
+
};
|
|
9520
|
+
}
|
|
9521
|
+
function hiddenByChoice(reason, repair) {
|
|
9522
|
+
return {
|
|
9523
|
+
kind: "Hidden",
|
|
9524
|
+
reason,
|
|
9525
|
+
repair
|
|
9526
|
+
};
|
|
9527
|
+
}
|
|
9528
|
+
/** Visitors don't see a block that needs setting up, or one its editor has chosen to hide for now. */
|
|
9529
|
+
function hiddenFromVisitors(readiness) {
|
|
9530
|
+
return readiness.kind === "NeedsSetup" || readiness.kind === "Hidden";
|
|
9531
|
+
}
|
|
9532
|
+
/** One boundary owns runtime stage checking and the resulting phantom proof. */
|
|
9533
|
+
function admitReadinessFacts(stage, input) {
|
|
9534
|
+
return input.stage === stage ? input.facts : unavailableReadinessFacts();
|
|
9535
|
+
}
|
|
9536
|
+
function unavailableReadinessFacts() {
|
|
9537
|
+
return {
|
|
9538
|
+
catalogue: unavailableReadinessFact,
|
|
9539
|
+
gifting: unavailableReadinessFact,
|
|
9540
|
+
eventFilters: unavailableReadinessFact,
|
|
9541
|
+
appointments: unavailableReadinessFact,
|
|
9542
|
+
mailingList: unavailableReadinessFact,
|
|
9543
|
+
testimonials: unavailableReadinessFact,
|
|
9544
|
+
team: unavailableReadinessFact,
|
|
9545
|
+
events: /* @__PURE__ */ new Map(),
|
|
9546
|
+
forms: /* @__PURE__ */ new Map(),
|
|
9547
|
+
products: /* @__PURE__ */ new Map(),
|
|
9548
|
+
template: unavailableReadinessFact
|
|
9549
|
+
};
|
|
9550
|
+
}
|
|
9551
|
+
function pageTemplateFromEntry(entry) {
|
|
9552
|
+
return entry?._contentTypeSlug === "product" ? { kind: "product" } : { kind: "page" };
|
|
9553
|
+
}
|
|
9554
|
+
//#endregion
|
|
9555
|
+
//#region ../blocks/src/system/blocks/readiness.ts
|
|
9556
|
+
const newsletterReadiness = {
|
|
9557
|
+
needs: ["mailingList", "events"],
|
|
9558
|
+
assess: (content, facts, { interaction, blockId }) => {
|
|
9559
|
+
if (interaction?.kind === "demo") return ready;
|
|
9560
|
+
if (facts.mailingList.kind === "Unavailable") return unknownReadiness;
|
|
9561
|
+
const targeting = parseMailingListPlacementTargeting(content.targeting ?? { mode: "default" });
|
|
9562
|
+
if (!targeting.ok) return unknownReadiness;
|
|
9563
|
+
const assessment = assessMailingListTargeting(facts.mailingList.value, targeting.value);
|
|
9564
|
+
return assessment.tag === "available" ? signupStandInReadiness(content, facts.events, blockId) : assessment.reason === "setup_missing" ? needsSetup("mailing_setup", {
|
|
9565
|
+
kind: "manage",
|
|
9566
|
+
target: "mailingLists"
|
|
9567
|
+
}) : needsSetup("mailing_destination", {
|
|
9568
|
+
kind: "field",
|
|
9569
|
+
path: "targeting"
|
|
9570
|
+
});
|
|
9571
|
+
}
|
|
9572
|
+
};
|
|
9573
|
+
/** Once its events have dates, a stand-in signup steps aside. If the check can't run, showing the signup is the safe side. */
|
|
9574
|
+
function signupStandInReadiness(content, events, blockId) {
|
|
9575
|
+
if (content.showWhen !== "nothing-coming-up") return ready;
|
|
9576
|
+
const fact = blockId === null ? void 0 : events.get(blockId);
|
|
9577
|
+
if (!fact || fact.kind === "Unavailable") return unknownReadiness;
|
|
9578
|
+
return fact.value ? hiddenByChoice("events_coming_up", {
|
|
9579
|
+
kind: "field",
|
|
9580
|
+
path: "showWhen"
|
|
9581
|
+
}) : ready;
|
|
9582
|
+
}
|
|
9583
|
+
const formReadiness = {
|
|
9584
|
+
needs: ["forms"],
|
|
9585
|
+
assess: (content, facts) => {
|
|
9586
|
+
const selection = chosenString(content.formSlug);
|
|
9587
|
+
if (!selection) return needsSetup("form_not_chosen", {
|
|
9588
|
+
kind: "field",
|
|
9589
|
+
path: "formSlug"
|
|
9590
|
+
});
|
|
9591
|
+
const form = facts.forms.get(selection);
|
|
9592
|
+
if (!form || form.kind === "Unavailable") return unknownReadiness;
|
|
9593
|
+
return form.value ? ready : needsSetup("form_deleted", {
|
|
9594
|
+
kind: "field",
|
|
9595
|
+
path: "formSlug"
|
|
9596
|
+
});
|
|
9597
|
+
}
|
|
9598
|
+
};
|
|
9599
|
+
const testimonialsReadiness = {
|
|
9600
|
+
needs: ["testimonials"],
|
|
9601
|
+
assess: (_content, facts) => {
|
|
9602
|
+
if (facts.testimonials.kind === "Unavailable") return unknownReadiness;
|
|
9603
|
+
const { count, total } = facts.testimonials.value;
|
|
9604
|
+
if (count > 0) return ready;
|
|
9605
|
+
return needsSetup(total === "unknown" ? "testimonials_empty" : total > 0 ? "testimonials_unpublished" : "testimonials_none", {
|
|
9606
|
+
kind: "manage",
|
|
9607
|
+
target: "testimonials"
|
|
9608
|
+
});
|
|
9609
|
+
}
|
|
9610
|
+
};
|
|
9611
|
+
const teamReadiness = {
|
|
9612
|
+
needs: ["team"],
|
|
9613
|
+
assess: (content, facts) => {
|
|
9614
|
+
if (content.source !== "site_staff") return Array.isArray(content.members) && content.members.length > 0 ? ready : needsSetup("members_empty", {
|
|
9615
|
+
kind: "field",
|
|
9616
|
+
path: "members"
|
|
9617
|
+
});
|
|
9618
|
+
if (facts.team.kind === "Unavailable") return unknownReadiness;
|
|
9619
|
+
return facts.team.value > 0 ? ready : needsSetup("team_empty", {
|
|
9620
|
+
kind: "manage",
|
|
9621
|
+
target: "team"
|
|
9622
|
+
});
|
|
9623
|
+
}
|
|
9624
|
+
};
|
|
9625
|
+
const productReadiness = {
|
|
9626
|
+
needs: ["template", "products"],
|
|
9627
|
+
assess: (content, facts) => {
|
|
9628
|
+
if (facts.template.kind === "Unavailable") return unknownReadiness;
|
|
9629
|
+
if (facts.template.value.kind === "product") return ready;
|
|
9630
|
+
const selection = chosenString(content.productSlug);
|
|
9631
|
+
if (!selection) return needsSetup("product_not_chosen", {
|
|
9632
|
+
kind: "field",
|
|
9633
|
+
path: "productSlug"
|
|
9634
|
+
});
|
|
9635
|
+
const product = facts.products.get(selection);
|
|
9636
|
+
if (!product || product.kind === "Unavailable") return unknownReadiness;
|
|
9637
|
+
return product.value ? ready : needsSetup("product_gone", {
|
|
9638
|
+
kind: "field",
|
|
9639
|
+
path: "productSlug"
|
|
9640
|
+
});
|
|
9641
|
+
}
|
|
9642
|
+
};
|
|
9643
|
+
const galleryReadiness = {
|
|
9644
|
+
needs: [],
|
|
9645
|
+
assess: (content) => Array.isArray(content.images) && content.images.length > 0 ? ready : needsSetup("gallery_empty", {
|
|
9646
|
+
kind: "field",
|
|
9647
|
+
path: "images"
|
|
9648
|
+
})
|
|
9649
|
+
};
|
|
9650
|
+
/** 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. */
|
|
9651
|
+
const videoGridReadiness = {
|
|
9652
|
+
needs: [],
|
|
9653
|
+
assess: (content) => Array.isArray(content.videos) && content.videos.some(hasVideoLink) ? ready : needsSetup("video_grid_empty", {
|
|
9654
|
+
kind: "field",
|
|
9655
|
+
path: "videos"
|
|
9656
|
+
})
|
|
9657
|
+
};
|
|
9658
|
+
const audioPlayerReadiness = {
|
|
9659
|
+
needs: [],
|
|
9660
|
+
assess: (content) => isChosen(content.audio) ? ready : needsSetup("audio_not_chosen", {
|
|
9661
|
+
kind: "field",
|
|
9662
|
+
path: "audio"
|
|
9663
|
+
})
|
|
9664
|
+
};
|
|
9665
|
+
const fileDownloadReadiness = {
|
|
9666
|
+
needs: [],
|
|
9667
|
+
assess: (content) => isChosen(content.file) ? ready : needsSetup("file_not_chosen", {
|
|
9668
|
+
kind: "field",
|
|
9669
|
+
path: "file"
|
|
9670
|
+
})
|
|
9671
|
+
};
|
|
9672
|
+
function hasVideoLink(item) {
|
|
9673
|
+
return typeof item === "object" && item !== null && "url" in item && chosenString(item.url) !== null;
|
|
9674
|
+
}
|
|
9675
|
+
/** A media or file field holds an object once something is chosen. */
|
|
9676
|
+
function isChosen(value) {
|
|
9677
|
+
return typeof value === "object" && value !== null;
|
|
9678
|
+
}
|
|
9679
|
+
/** Passes & memberships with nothing to show is hidden from visitors, by the same decision its cards are drawn from. */
|
|
9680
|
+
const shopReadiness = {
|
|
9681
|
+
needs: ["catalogue"],
|
|
9682
|
+
assess: (content, facts) => {
|
|
9683
|
+
if (facts.catalogue.kind === "Unavailable") return unknownReadiness;
|
|
9684
|
+
const decision = decideShopCatalogue(storedShopShow(content), facts.catalogue.value);
|
|
9685
|
+
switch (decision.kind) {
|
|
9686
|
+
case "shows": return ready;
|
|
9687
|
+
case "nothing-on-sale": return needsSetup("shop_nothing_on_sale", {
|
|
9688
|
+
kind: "manage",
|
|
9689
|
+
target: "passesAndMemberships"
|
|
9690
|
+
});
|
|
9691
|
+
case "nothing-chosen": return needsSetup("shop_nothing_chosen", {
|
|
9692
|
+
kind: "field",
|
|
9693
|
+
path: "showPasses"
|
|
9694
|
+
});
|
|
9695
|
+
default: return assertNever$1(decision);
|
|
9696
|
+
}
|
|
9697
|
+
}
|
|
9698
|
+
};
|
|
9699
|
+
/** Gift cards & vouchers with nothing on offer is hidden from visitors, by the same decision its groups are drawn from. */
|
|
9700
|
+
const giftingReadiness = {
|
|
9701
|
+
needs: ["gifting"],
|
|
9702
|
+
assess: (_content, facts) => {
|
|
9703
|
+
if (facts.gifting.kind === "Unavailable") return unknownReadiness;
|
|
9704
|
+
return decideGiftingOffer(facts.gifting.value).kind === "nothing-on-offer" ? needsSetup("gifting_nothing_on_offer", {
|
|
9705
|
+
kind: "manage",
|
|
9706
|
+
target: "giftCardsAndVouchers"
|
|
9707
|
+
}) : ready;
|
|
9708
|
+
}
|
|
9709
|
+
};
|
|
9710
|
+
function chosenString(value) {
|
|
9711
|
+
return typeof value === "string" && value.trim() ? value.trim() : null;
|
|
9712
|
+
}
|
|
9713
|
+
/** Absent settings retain the published behavior of existing blocks. */
|
|
9714
|
+
const eventsReadiness = {
|
|
9715
|
+
needs: ["events"],
|
|
9716
|
+
assess: (content, facts, { blockId }) => {
|
|
9717
|
+
if (content.emptyBehavior !== "hide") return ready;
|
|
9718
|
+
const fact = blockId === null ? void 0 : facts.events.get(blockId);
|
|
9719
|
+
if (!fact || fact.kind === "Unavailable") return unknownReadiness;
|
|
9720
|
+
return fact.value ? ready : hiddenByChoice("events_empty", {
|
|
9721
|
+
kind: "field",
|
|
9722
|
+
path: "emptyBehavior"
|
|
9723
|
+
});
|
|
9724
|
+
}
|
|
9725
|
+
};
|
|
9726
|
+
const giftingBlockDefinition = {
|
|
9727
|
+
manifest: createBlockManifest({
|
|
9728
|
+
variantMeaning: { kind: "arrangement" },
|
|
9729
|
+
id: "block.gifting",
|
|
9730
|
+
version: "1.0.0",
|
|
9731
|
+
title: "Gift cards & vouchers",
|
|
9732
|
+
titleSource: "heading",
|
|
9733
|
+
description: "Lets people buy gift cards and vouchers for someone else.",
|
|
9734
|
+
skipSectionStyles: true,
|
|
9735
|
+
editing: {
|
|
9736
|
+
content: ["heading", "intro"],
|
|
9737
|
+
settings: [
|
|
9738
|
+
"giftCardsHeading",
|
|
9739
|
+
"vouchersHeading",
|
|
9740
|
+
"checkoutButtonText",
|
|
9741
|
+
"successMessage"
|
|
9742
|
+
]
|
|
9743
|
+
},
|
|
9744
|
+
additionalFields: [
|
|
9459
9745
|
{
|
|
9460
|
-
id: "
|
|
9746
|
+
id: "heading",
|
|
9461
9747
|
type: "text",
|
|
9462
|
-
label: "
|
|
9748
|
+
label: "Heading",
|
|
9749
|
+
description: "Leave it empty for “Gift cards & vouchers”.",
|
|
9463
9750
|
required: false,
|
|
9464
9751
|
multiline: false,
|
|
9465
|
-
defaultValue: "
|
|
9752
|
+
defaultValue: "Gift cards & vouchers"
|
|
9753
|
+
},
|
|
9754
|
+
{
|
|
9755
|
+
id: "intro",
|
|
9756
|
+
type: "text",
|
|
9757
|
+
label: "Introduction",
|
|
9758
|
+
required: false,
|
|
9759
|
+
multiline: true,
|
|
9760
|
+
defaultValue: "Choose a gift card or voucher and send it straight away or schedule it for later."
|
|
9761
|
+
},
|
|
9762
|
+
{
|
|
9763
|
+
id: "giftCardsHeading",
|
|
9764
|
+
type: "text",
|
|
9765
|
+
label: "Gift card group heading",
|
|
9766
|
+
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.",
|
|
9767
|
+
required: false,
|
|
9768
|
+
multiline: false,
|
|
9769
|
+
defaultValue: "Gift cards",
|
|
9770
|
+
ui: { visibleWhen: giftCardsShownCondition }
|
|
9771
|
+
},
|
|
9772
|
+
{
|
|
9773
|
+
id: "vouchersHeading",
|
|
9774
|
+
type: "text",
|
|
9775
|
+
label: "Voucher group heading",
|
|
9776
|
+
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.",
|
|
9777
|
+
required: false,
|
|
9778
|
+
multiline: false,
|
|
9779
|
+
defaultValue: "Vouchers",
|
|
9780
|
+
ui: { visibleWhen: vouchersShownCondition }
|
|
9466
9781
|
},
|
|
9467
9782
|
{
|
|
9468
9783
|
id: "checkoutButtonText",
|
|
@@ -9519,10 +9834,6 @@ const giftingBlockDefinition = {
|
|
|
9519
9834
|
} },
|
|
9520
9835
|
giftCardsHeading: { $bind: { from: "content.giftCardsHeading" } },
|
|
9521
9836
|
vouchersHeading: { $bind: { from: "content.vouchersHeading" } },
|
|
9522
|
-
emptyStateText: { $bind: {
|
|
9523
|
-
from: "content.emptyStateText",
|
|
9524
|
-
fallback: "Nothing is available right now."
|
|
9525
|
-
} },
|
|
9526
9837
|
checkoutButtonText: { $bind: {
|
|
9527
9838
|
from: "content.checkoutButtonText",
|
|
9528
9839
|
fallback: "Continue to payment"
|
|
@@ -9539,6 +9850,7 @@ const giftingBlockDefinition = {
|
|
|
9539
9850
|
})]
|
|
9540
9851
|
}),
|
|
9541
9852
|
runtime: giftingBlockRuntime,
|
|
9853
|
+
readiness: giftingReadiness,
|
|
9542
9854
|
dataSchemas: { offers: publicGiftingOffersResponseSchema.optional() },
|
|
9543
9855
|
dataLoaders: { offers: {
|
|
9544
9856
|
endpoint: "listPublicGiftingOffers",
|
|
@@ -9865,213 +10177,6 @@ const eventRegistrationBlockDefinition = {
|
|
|
9865
10177
|
}
|
|
9866
10178
|
};
|
|
9867
10179
|
//#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
10180
|
//#region ../blocks/src/system/blocks/form.tsx
|
|
10076
10181
|
const setupFormEmbedFragment = {
|
|
10077
10182
|
...formEmbedFragment,
|
|
@@ -11511,7 +11616,7 @@ const eventCalendarAdditionalFields = [
|
|
|
11511
11616
|
defaultValue: true,
|
|
11512
11617
|
ui: {
|
|
11513
11618
|
intent: "behavior",
|
|
11514
|
-
visibleWhen: filterBarVariants
|
|
11619
|
+
visibleWhen: { allOf: [filterBarVariants, eventFilterConditions.showFilters] }
|
|
11515
11620
|
}
|
|
11516
11621
|
},
|
|
11517
11622
|
{
|
|
@@ -11538,10 +11643,14 @@ const eventCalendarAdditionalFields = [
|
|
|
11538
11643
|
],
|
|
11539
11644
|
ui: {
|
|
11540
11645
|
intent: "behavior",
|
|
11541
|
-
visibleWhen: { allOf: [
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11646
|
+
visibleWhen: { allOf: [
|
|
11647
|
+
filterBarVariants,
|
|
11648
|
+
{
|
|
11649
|
+
field: "showFilters",
|
|
11650
|
+
equals: true
|
|
11651
|
+
},
|
|
11652
|
+
eventFilterConditions.showCategoryFilter
|
|
11653
|
+
] }
|
|
11545
11654
|
}
|
|
11546
11655
|
},
|
|
11547
11656
|
{
|
|
@@ -11553,10 +11662,14 @@ const eventCalendarAdditionalFields = [
|
|
|
11553
11662
|
defaultValue: false,
|
|
11554
11663
|
ui: {
|
|
11555
11664
|
intent: "behavior",
|
|
11556
|
-
visibleWhen: { allOf: [
|
|
11557
|
-
|
|
11558
|
-
|
|
11559
|
-
|
|
11665
|
+
visibleWhen: { allOf: [
|
|
11666
|
+
filterBarVariants,
|
|
11667
|
+
{
|
|
11668
|
+
field: "showFilters",
|
|
11669
|
+
equals: true
|
|
11670
|
+
},
|
|
11671
|
+
eventFilterConditions.showVenueFilter
|
|
11672
|
+
] }
|
|
11560
11673
|
}
|
|
11561
11674
|
},
|
|
11562
11675
|
{
|
|
@@ -11568,10 +11681,14 @@ const eventCalendarAdditionalFields = [
|
|
|
11568
11681
|
defaultValue: true,
|
|
11569
11682
|
ui: {
|
|
11570
11683
|
intent: "behavior",
|
|
11571
|
-
visibleWhen: { allOf: [
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11684
|
+
visibleWhen: { allOf: [
|
|
11685
|
+
filterBarVariants,
|
|
11686
|
+
{
|
|
11687
|
+
field: "showFilters",
|
|
11688
|
+
equals: true
|
|
11689
|
+
},
|
|
11690
|
+
eventFilterConditions.showStaffFilter
|
|
11691
|
+
] }
|
|
11575
11692
|
}
|
|
11576
11693
|
},
|
|
11577
11694
|
{
|
|
@@ -11731,7 +11848,8 @@ const eventCalendarAdditionalFields = [
|
|
|
11731
11848
|
optionSource: "eventCategories",
|
|
11732
11849
|
ui: {
|
|
11733
11850
|
intent: "behavior",
|
|
11734
|
-
searchThreshold: 8
|
|
11851
|
+
searchThreshold: 8,
|
|
11852
|
+
visibleWhen: eventFilterConditions.filterCategoryIds
|
|
11735
11853
|
}
|
|
11736
11854
|
}),
|
|
11737
11855
|
createSiteOptionSelectField({
|
|
@@ -11743,7 +11861,8 @@ const eventCalendarAdditionalFields = [
|
|
|
11743
11861
|
optionSource: "staffMembers",
|
|
11744
11862
|
ui: {
|
|
11745
11863
|
intent: "behavior",
|
|
11746
|
-
searchThreshold: 8
|
|
11864
|
+
searchThreshold: 8,
|
|
11865
|
+
visibleWhen: eventFilterConditions.filterStaffMemberId
|
|
11747
11866
|
}
|
|
11748
11867
|
}),
|
|
11749
11868
|
createSiteOptionSelectField({
|
|
@@ -11755,7 +11874,8 @@ const eventCalendarAdditionalFields = [
|
|
|
11755
11874
|
optionSource: "venues",
|
|
11756
11875
|
ui: {
|
|
11757
11876
|
intent: "behavior",
|
|
11758
|
-
searchThreshold: 8
|
|
11877
|
+
searchThreshold: 8,
|
|
11878
|
+
visibleWhen: eventFilterConditions.filterVenueId
|
|
11759
11879
|
}
|
|
11760
11880
|
}),
|
|
11761
11881
|
...cardStylingFields.map((field) => ({
|
|
@@ -13776,7 +13896,7 @@ function GiftingSSR({ blockId, ...rest }) {
|
|
|
13776
13896
|
}, group.kind))
|
|
13777
13897
|
}) : /* @__PURE__ */ jsx("p", {
|
|
13778
13898
|
className: "gifting-empty",
|
|
13779
|
-
children:
|
|
13899
|
+
children: GIFTING_NOTHING_TO_SHOW
|
|
13780
13900
|
})
|
|
13781
13901
|
})]
|
|
13782
13902
|
})
|
|
@@ -14669,4 +14789,4 @@ const serverComponentRegistry = {
|
|
|
14669
14789
|
...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
|
|
14670
14790
|
};
|
|
14671
14791
|
//#endregion
|
|
14672
|
-
export { sectionContainer as $, DEFAULT_MEDIA_FIELD_KINDS as $n, el as $t,
|
|
14792
|
+
export { sectionContainer as $, DEFAULT_MEDIA_FIELD_KINDS as $n, el as $t, admitReadinessFacts as A, publicAppointmentLocationSchema as An, eventHeaderSlotParents as At, formCopyFragment as B, lookSlot as Bn, accordionLookAttributes as Bt, audioPlayerReadiness as C, eventDiscoveryFilterKeys as Cn, normalizeLocationMapProps as Ct, teamReadiness as D, formatAppointmentDuration as Dn, EventDetailsView as Dt, galleryReadiness as E, resolveEventScope as En, resolveLocationMapLocation as Et, checkoutBlockDefinition as F, resolveBackgroundColorValue as Fn, markEditableSurfaceForwarding as Ft, createSiteOptionSelectField as G, ICON_CONFIG as Gn, FEATURE_CARD_ICON_TREATMENTS as Gt, composeFragments as H, ACCORDION_SPACING_MAP as Hn, resolveAccordionIconStyle as Ht, cartBlockDefinition as I, lookCarouselRegionTransform as In, splitPositioningClasses as It, parseFieldDefinitions as J, pageGround as Jn, accordionList as Jt, normalizeSelectSource as K, ICON_SIZE_PX as Kn, parseBlockIconValue as Kt, createBlockManifest as L, lookLeadSlotTransform as Ln, desktopOnlyDisplay as Lt, loadedReadinessFact as M, teamMemberCardBiographyFallback as Mn, buildAppointmentServicesView as Mt, pageTemplateFromEntry as N, BACKGROUND_POSITION_PRESET_VALUES as Nn, HeaderSectionFrame as Nt, testimonialsReadiness as O, formatAppointmentLocation as On, lookPartShown as Ot, unavailableReadinessFact as P, getAnchorClasses as Pn, composeHeaderSectionWrapperClassName as Pt, styledContainer as Q, placedEditingPaths as Qn, carousel as Qt, augmentManifest as R, lookQuoteLimitTransform 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, ACCORDION_TRIGGER_FONT_SCALE as Un, PUBLIC_DOWNLOAD_MEDIA_TYPES as Ut, buildFragmentDataLoaders as V, ACCORDION_OPEN_ACCENT_THICKNESS as Vn, accordionIconColorStyle as Vt, createSdkSelectField as W, ACCORDION_TRIGGER_LETTER_SPACING as Wn, FEATURE_CARD_GENERATED_ICON_SIZE_PX as Wt, sectionHeaderFields as X, storedSectionPhoto as Xn, bookingForm as Xt, withApiBindings as Y, sectionPhotoPath as Yn, bind as Yt, sectionHeaderLayoutNodes as Z, bindingSchema as Zn, button as Zt, cardListSectionActionFields as _, eventReadinessQuery as _n, createButtonVariantField as _t, cardListSectionAction as a, link as an, mapReadinessFact as ar, offeringCourseSlotParents as at, formDataSchema as b, recurringScheduleRead as bn, LOCATION_MAP_LIMITS as bt, newsletterSignupBlockDefinition as c, repeat as cn, publicMapLocationParamsSchema as cr, emptyStateField as ct, eventListingBlockDefinition as d, stack as dn, withoutMap as dt, fileDownload as en, isAcceptedRepeaterGridSpan 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, resolveRepeaterGridSpanFieldId as ir, buildLoadedOfferingsPreviewListing as it, hiddenFromVisitors as j, publicAppointmentPricingSchema as jn, resolveEventDetailsPresentation as jt, videoGridReadiness as k, formatAppointmentPrice as kn, lookParts as kt, sanitizeNewsletterSignupPublicContent as l, richText as ln, publicMapLocationResultSchema as lr, eventDisplayFields as lt, cardListKnobFields as m, when as mn, sectionStylesField as mt, runtimeBackedBlockModes as n, headerSection as nn, resolveRepeaterGridColumnFieldId as nr, backgroundFrame as nt, productListBlockDefinition as o, media as on, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as or, cardStylingFields as ot, eventCalendarBlockDefinition as p, videoEmbed as pn, containerStylesField as pt, parseFieldDefinition as q, groundPaint as qn, SectionNode as qt, runtimeBackedBlockServerEntries as r, icon as rn, resolveRepeaterGridRowFieldId as rr, WeeklySlotAvailabilityView as rt, productDetailBlockDefinition as s, props as sn, linkSchema as sr, columnsField as st, serverComponentRegistry as t, form as tn, parseRepeaterGridInteger as tr, styledSection as tt, normalizeMailingListBlockContent as u, section as un, isCanonicalRichTextDoc as ur, 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, lookSkinSlotTransform as zn, accordionItemPartSlots as zt };
|