@riverbankcms/sdk 0.170.0 → 0.171.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +37 -0
- package/dist/_dts/{BlocksIslandsHydrator-B2i5CY_X.d.ts → BlocksIslandsHydrator-xuFmD41p.d.ts} +1 -1
- package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4fzXy8H9.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-BlHgMsc8.d.ts} +4 -3
- package/dist/_dts/{client-x82SZgwK.d.ts → client-BPoU758C.d.ts} +32 -1
- package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-TnkhoSls.d.ts} +3 -3
- package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-7wrMA79U.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-DaOsPQ_Q.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-D9aDEzKK.d.ts} +2 -2
- package/dist/_dts/{index-BisbMZTW.d.ts → index-585vn6qb.d.ts} +72 -36
- package/dist/_dts/{index-B7Mq5M6P.d.ts → index-CZKSUcDs.d.ts} +4 -4
- package/dist/_dts/{index-B82pqQAC.d.ts → index-Cbw0IiY7.d.ts} +2 -2
- package/dist/_dts/{index-DXc_ewhR.d.ts → index-ChNbrcgD.d.ts} +1 -1
- package/dist/_dts/{index-C3rMEJ5a.d.ts → index-DDKJfaLY.d.ts} +2 -2
- package/dist/_dts/{index-CCugONHM.d.ts → index-DNCDENic.d.ts} +1 -1
- package/dist/_dts/{index-CstY6ZMa.d.ts → index-W9R3Bnf2.d.ts} +3 -3
- package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-DPyNAJym.d.ts} +7 -7
- package/dist/_dts/{request-CJ_ClHLv.d.ts → request-jXTRN1Y4.d.ts} +3554 -1370
- package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-BbvE-gsZ.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-BBgih00D.d.ts} +2 -2
- package/dist/_dts/{runtime-BY8DQBbT.d.ts → runtime-BEoNgYbd.d.ts} +2 -2
- 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/index.d.ts +8 -8
- package/dist/_dts/sdk/src/manifest/index.d.ts +7 -7
- package/dist/_dts/sdk/src/metadata/index.d.ts +1 -1
- package/dist/_dts/sdk/src/navigation/index.d.ts +2 -2
- 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 +4 -4
- package/dist/_dts/sdk/src/portal/client.d.ts +1 -1
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +6 -6
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +5 -5
- 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 +4740 -3
- package/dist/_dts/{types-CbjK5ZLy.d.ts → types-BXuVxDYo.d.ts} +2 -2
- package/dist/_dts/{types-CpuxuS40.d.ts → types-DEAKoDNi.d.ts} +3 -3
- package/dist/_dts/{types-990t4t99.d.ts → types-kWvBwYK6.d.ts} +7 -7
- package/dist/_dts/{validation-BN95LiS0.d.ts → validation-BAO0_ntM.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-DfMsMIej.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-aaSicywS.mjs} +7 -7
- package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-OgftZ9QC.mjs} +16 -4
- package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
- package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-iMWrY6Hz.mjs} +7 -7
- package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-BCumOTLY.mjs} +7 -7
- package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-kh7mkYnW.mjs} +9 -9
- package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-DXD5i0Ar.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-BnwcoFQN.mjs} +10 -7
- package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DuG6z02f.mjs} +1 -1
- package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-18yfHrcr.mjs} +3 -3
- package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BM7rTVSL.mjs} +42 -396
- package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-D5J3DR0x.mjs} +13 -13
- package/dist/client/{LocationMapActions-BFp2uQQQ.mjs → LocationMapActions-QahdLtdE.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-DDWfmgpA.mjs → MapDrawingSvg-Dy6UMuIw.mjs} +1 -1
- package/dist/client/{Page-PW4Ojv9r.mjs → Page-DH2sm4Cf.mjs} +2696 -2426
- package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
- package/dist/client/StepIndicator-CsRlU46Y.mjs +894 -0
- package/dist/client/{TabBarFragment-DkVKtK5a.mjs → TabBarFragment-CsAufYwT.mjs} +1 -1
- package/dist/client/{ThemedButton-BdnEwA38.mjs → ThemedButton-BMDHwnM6.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-_7jkuinl.mjs → accessibleSurfaces-Bbn1-jJ8.mjs} +52 -2
- package/dist/client/{accordion-DMItWylU.mjs → accordion-DT4MD3Np.mjs} +1 -1
- package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DdqNQNCa.mjs} +79 -42
- package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-CLN396HU.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/boxStyleClassNames-iLF_3KX9.mjs +369 -0
- package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DFLomCGm.mjs} +2 -2
- package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
- package/dist/client/{cart-wlRXnOjO.mjs → cart-BozMM5NK.mjs} +3 -3
- package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-CqOOxPbW.mjs} +1 -1
- package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-CTWF5nbB.mjs} +3 -3
- package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-CpqxN8e0.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-Ccg6yfjq.mjs} +1 -1
- package/dist/client/client.mjs +640 -218
- package/dist/client/{context-Xhf81Q-c.mjs → context-Dzjv2CpA.mjs} +10 -1
- package/dist/client/{creditProducts-CMOmhWm2.mjs → creditProducts-BTRX4edc.mjs} +54 -23
- package/dist/client/{cta-CfuyGqXL.mjs → cta-pzQkBLgS.mjs} +2 -2
- package/dist/client/{dateFormatting-Bv6kjUW3.mjs → dateFormatting-BfurxGwg.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-DQtwf_s2.mjs → demoPortalMagicLink-D0dcPsRE.mjs} +1 -1
- package/dist/client/{display-DDNmyb0z.mjs → display-Cl6mgSJa.mjs} +3186 -81
- package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-CJCl0HJC.mjs} +4 -4
- package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-Pn9Kxh3I.mjs} +3 -2
- package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BAmBdWXE.mjs} +48 -34
- package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-C5Bh2L8L.mjs} +4 -4
- package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-dELKxxIe.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Do9D_fJ_.mjs} +2 -2
- package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-B2HTUWLq.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-ByOJnqGc.mjs} +4 -4
- package/dist/client/{form-Cfl8d6qc.mjs → form-DX70QG-J.mjs} +3 -3
- package/dist/client/{form.client-D3_RF29v.mjs → form.client-CJoqBrS6.mjs} +5 -5
- package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DTof9pL3.mjs} +3 -3
- package/dist/client/{formatDate-BGlhrmhF.mjs → formatDate-Cjouxh4Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CyNGt23J.mjs → headerSection-CJuPX_1K.mjs} +2 -2
- package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-CqzNjOft.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DjJsFms2.mjs} +2 -2
- package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-D1MHoPbh.mjs} +3 -3
- package/dist/client/{noop-B_f7RqLD.mjs → noop-poI1m2yW.mjs} +69 -2
- package/dist/client/portal/client.mjs +294 -48
- package/dist/client/{product-detail.client-BXeLqkCE.mjs → product-detail.client-DOQ7El1d.mjs} +1 -1
- package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-CmxOZbzL.mjs} +1 -1
- package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-BN3zv5sa.mjs} +3 -3
- package/dist/client/{productList-BNZAsfaP.mjs → productList-GN_Id4bF.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-BdmzM3D5.mjs} +8 -4
- package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-BOyra8CA.mjs} +1015 -926
- package/dist/client/rendering/client.mjs +57 -32
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +1956 -191
- package/dist/client/{richText-coerce-BTurYEao.mjs → richText-coerce-CtoGLZ_e.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DFjRKvzM.mjs → routeIslandApiConfig-DnaJ8PQc.mjs} +1 -1
- package/dist/client/{runtimeResponse-D2LT--Gj.mjs → runtimeResponse-B1-cyLXt.mjs} +1 -1
- package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-BN8PoIVp.mjs} +1 -1
- package/dist/client/{shop-PgmiVKSV.mjs → shop-LjBLDBqF.mjs} +3 -3
- package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce-B8aZTdRJ.mjs} +13 -13
- package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-C1FtHYl7.mjs} +1 -1
- package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-D0qZ3KZp.mjs} +13 -13
- package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-DAKyWK1B.mjs} +89 -19
- package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-CztcSe9i.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-D1jDTbms.mjs} +11 -11
- package/dist/client/{types-5fOsPIpL.mjs → types-B0hJldSt.mjs} +2 -0
- package/dist/client/{useAvailableSlots-GP8tnAVW.mjs → useAvailableSlots-ByHedoBi.mjs} +4 -8
- package/dist/client/{useDiscountApply-Cq07nTyG.mjs → useDiscountApply-CHGYDxdM.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-Dew9UAEy.mjs} +1 -1
- package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination-BpC7-ksE.mjs} +7 -7
- package/dist/client/{view-oToSpu1N.mjs → view-BxeiAL3c.mjs} +121 -28
- package/dist/client/{view-CgComegl.mjs → view-ShYH3WXh.mjs} +3 -3
- package/dist/preview-next/before-render.mjs +33 -13
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-8-qtHjpb.mjs → EventEmbeddedCheckoutStep-CKe4cjZ4.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-CwxRbAs2.mjs → LocationPickerEnvironment-lW2aLGWd.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-C9InQJpd.mjs} +2 -2
- package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-DsSqwrMS.mjs} +392 -11
- package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-BEEWzXnU.mjs} +3264 -3199
- package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-C86Out4V.mjs} +5 -6
- package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-CBWYjBvQ.mjs} +20 -10
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-o-mVqWLx.mjs} +88 -394
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-H_ciMNHA.mjs} +1155 -330
- package/dist/preview-next/client/{ThemedButton-BQU45t-E.mjs → ThemedButton-CKYjeU_M.mjs} +2 -0
- package/dist/preview-next/client/{lucide-react-DbC1o6_9.mjs → lucide-react-DygTyy7K.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-CuOcsG_N.mjs} +3558 -2230
- package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-DPeV7KaP.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-zTTFZ4MM.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-DNA1Q4L1.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BdnMlHC6.mjs} +28 -3
- package/dist/preview-next/container-responsive.css +43 -0
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BLYaenrK.mjs → route-contract-CtSgU8UZ.mjs} +547 -188
- package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-ifgaBglp.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-DGDOH6OU.mjs} +3 -3
- package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BuPNCWAK.mjs} +52 -2
- package/dist/server/bindings-CiYpie1M.mjs +1802 -0
- package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
- package/dist/server/{client-Djjv-NuA.mjs → client-ngWuFsmN.mjs} +638 -216
- package/dist/server/config-template-validation.mjs +30 -4
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +3 -34
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/loadContent-DeLQeJAZ.mjs +2310 -0
- package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-D4J747FQ.mjs} +2 -2
- package/dist/server/manifest.mjs +1 -1
- package/dist/server/next.mjs +8 -6
- package/dist/server/{opaqueSurface-Yltv_u7r.mjs → opaqueSurface-ukEz1BaM.mjs} +2 -2
- package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-DSuVkpqm.mjs} +3 -2
- package/dist/server/page-converter.mjs +3 -3
- package/dist/server/pageRegions-BaeEF2MU.mjs +30 -0
- package/dist/server/{pageRenderPlan-Bv6NbFeM.mjs → pageRenderPlan-DFv3h4Ib.mjs} +306 -287
- package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-yHaRNWMj.mjs} +48 -35
- package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-CAZD0LcY.mjs} +848 -315
- package/dist/server/parseThemeForPersistence-Dl7LIBJq.mjs +52 -0
- package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-BKOCND3b.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-GIoExi8A.mjs} +4 -3
- package/dist/server/{registry-Djrj9gWy.mjs → registry-BogXzcOD.mjs} +4000 -1989
- 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 +3 -3
- package/dist/server/rendering.mjs +7 -7
- package/dist/server/{resolveBlockData-CyeIjmqx.mjs → resolveBlockData-CT4YSBve.mjs} +4 -3
- package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-DVISOQD9.mjs} +2 -0
- package/dist/server/rich-text-CRcONdyM.mjs +33 -0
- package/dist/server/{richTextSchema-DQ2NBP0n.mjs → richTextSchema-QLaQrbII.mjs} +31 -2
- package/dist/server/{parseThemeForPersistence-BebSeE17.mjs → schema-C92Q8y0-.mjs} +463 -53
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -1
- package/dist/server/{three-pass-converter-CQWdnfjV.mjs → three-pass-converter-Bsfdy_ZV.mjs} +11 -8
- package/dist/server/{validation-Dh8htd6l.mjs → validation-vSBCWU3w.mjs} +9 -9
- package/dist/server/{version-LMwnoksN.mjs → version-Cw5vFmUY.mjs} +1 -1
- package/dist/styles/index.css +408 -10
- package/package.json +1 -1
- package/dist/client/StepIndicator-CR7_0yu4.mjs +0 -432
- package/dist/preview-next/client/useOpenBlockForSetup-CipKCK2O.mjs +0 -28
- package/dist/server/bindings-C1-MNwwS.mjs +0 -257
- package/dist/server/headerVariant-8O5MvxIU.mjs +0 -464
- package/dist/server/loadContent-DhraQ_Fi.mjs +0 -578
|
@@ -1,32 +1,34 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $t as
|
|
2
|
+
import { $t as normalizeEventCategoryIds, D as publicGiftingOffersResponseSchema, Ft as catalogueEventCardProps, Gt as getContainerClass, H as OFFERINGS_PREVIEW_EVENT_PRESET_DEFINITIONS, Ht as EventQuickFacts, It as listingEventCardProps, J as resolveOfferingsPreviewGroupCta, Jt as eventListWeekDays, K as normalizeOfferingsPreviewItemLimit, Kt as Grid, M as buildEventRegistrationInteractiveIslandProps, O as buildFormInteractiveIslandProps, P as eventRegistrationBlockRuntime, Qt as formatEventPriceDisplay, S as newsletterFormBlockRuntime, T as giftingBlockRuntime, U as buildOfferingsPreviewListing, Vt as MediaNodeServer, Wt as getCardOrientation, X as resolveOfferingsRenderInput, Xt as formatEventPrice, Y as resolveOfferingsPreviewGroups, _ as shopProductPresentation, _n as DEFAULT_MAILING_LIST_TARGETING, _t as recurringScheduleProjectionSchema, a as buildShopInteractiveIslandProps, at as occurrenceContextSchema, b as buildNewsletterFormInteractiveIslandProps, bt as eventListingBlockRuntime, c as checkoutBlockRuntime, ct as buildEventCombinedListingDisplay, d as productDetailBlockRuntime, dt as buildEventCalendarInteractiveIslandProps, en as normalizeEventScheduleScope, fn as splitSiteChromePlacementClasses, ft as buildEventCalendarListingDisplay, h as shopBlockRuntime, hn as parseMailingListPlacementTargeting, i as buildProductListInteractiveIslandProps, in as normalizeEventVenueId, k as formBlockRuntime, ln as staticHeaderChromeRuntime, lt as eventCombinedBlockRuntime, mn as assessMailingListTargeting, mt as eventCalendarBlockRuntime, n as buildCheckoutInteractiveIslandProps, nn as normalizeEventSurfacePresets, o as cartBlockRuntime, p as productListBlockRuntime, q as offeringsListingFor, qt as buildEventListWeek, r as buildProductDetailInteractiveIslandProps, rn as normalizeEventSurfaceScope, st as buildEventCombinedInteractiveIslandProps, t as buildCartInteractiveIslandProps, tn as normalizeEventStaffMemberId, v as publicProductsResponseSchema, w as buildGiftingInteractiveIslandProps, x as newsletterBlockSubmissionMessage, y as NEWSLETTER_SIGNUPS_PAUSED_MESSAGE, yt as buildEventListingInteractiveIslandProps } from "./shop.interactive-DAKyWK1B.mjs";
|
|
3
3
|
import { f as err, p as ok } from "./renderableMediaAssetAdmission-BlfqYLJW.mjs";
|
|
4
|
-
import { $n as canJoinEventWaitlistOnAnyMode,
|
|
5
|
-
import { At as
|
|
6
|
-
import {
|
|
4
|
+
import { $n as canJoinEventWaitlistOnAnyMode, $o as sanitizeHref, Ao as arrangementSlotNames, Bi as resolveEventRegistrationScopedEvents, Ci as isBlockButtonRole, Cn as ImagePresets, Cs as resolveExactOrFreePriceDisplay, Gi as listItemPresentation, Hn as formatEventCompactDateRail, Ji as lookListPresentationSchemaShape, Jn as formatTime, Ln as eventDateOptions, Nn as resolvePublicMediaUrl, Pn as buildCalendarViewport, Sn as RichText, Vo as cardVariantRoleValues, Wn as formatEventHourLabel, Yn as groupEventsByDate, Zn as resolveRuntimeEventDestination, _n as bookingPresentation, as as orderedLiveRunSessions, dr as buildBookingFormInteractiveIslandProps, es as parseAspectRatioValue, gs as formatBookingPriceDisplay, ir as getEventAvailabilityStatus, is as nextLiveRunSessionStartMs, lr as groupPublicEventsByRun, or as isEventFull, os as resolveWholeSeriesBookingPhase, qi as listLookSlot, qn as formatEventTimeRange, rr as getEventAvailability, ws as resolvePricingOptionsPriceDisplay, xa as compiledRuntimeStyleFieldNames, xi as BLOCK_BUTTON_ROLE_OPTIONS, zi as normalizeEventRegistrationPageSurfaceSubject, zn as formatCalendarTitle } from "./display-Cl6mgSJa.mjs";
|
|
5
|
+
import { At as projectPublicLocation, C as normalizeEventCalendarDisplayMode$1, Ft as formatDate, Mt as toLocationCoordinates, Nt as trimmedStringOrNull, O as arrangementModes, Ot as normalizeLocationAddressText, S as isEventCalendarListLayout, _ as eventCalendarListLayoutOptions, at as isDisplayMediaKind, b as isEventCalendarDefaultView, en as resolveBookingBusinessTimeZone, in as toUtcIsoDateTimeString, it as PUBLIC_FILE_FIELD_KINDS, jt as publicLocationSchema, kt as parseLocationValue, nt as runtimeMediaSchema, o as publicMembershipProductCollectionSchema, ot as mediaTypeDiscriminants, p as calendarWindowPageSchema, q as RichTextDocSchema, s as publicPassProductCollectionSchema, v as eventCalendarVariantMeaning, x as isEventCalendarDisplayMode, z as publicEventsArraySchema } from "./noop-poI1m2yW.mjs";
|
|
6
|
+
import { N as assertNever$1 } from "./creditProducts-BTRX4edc.mjs";
|
|
7
7
|
import { t as formatEventDuration } from "./duration-Q6_QNgiv.mjs";
|
|
8
8
|
import { n as selectCategoryView } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
9
|
-
import {
|
|
10
|
-
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-
|
|
9
|
+
import { G as rgbColorValue, V as backgroundColorStyle, W as mergeStyles, q as textColorStyle, s as serializeSurfaceTree, z as resolveThemeColorReferenceValue } from "./accessibleSurfaces-Bbn1-jJ8.mjs";
|
|
10
|
+
import { a as CalendarRecurringWeek, c as LinkNode, d as LocationMapView, i as buildWeekBoardViewProps, l as RichTextNode, n as WeekBoardView, o as RecurringSchedule, r as buildWeekBoardNavigationState, s as ButtonNode, t as buildTimetableModel, u as TextNode } from "./timetableModel-D1jDTbms.mjs";
|
|
11
11
|
import { d as formatDateKey, h as getWeekCalendarDayTuple, m as getOrderedDayNames } from "./src-xrjaKaCj.mjs";
|
|
12
|
-
import { h as SYSTEM_BLOCK_KINDS } from "./types-
|
|
13
|
-
import {
|
|
14
|
-
import { S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, g as FileArchiveIcon, i as ThemedButtonLink, l as SpinnerNode, p as CirclePlusIcon, r as ThemedButton, s as getIconComponent, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-
|
|
15
|
-
import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
12
|
+
import { h as SYSTEM_BLOCK_KINDS } from "./types-B0hJldSt.mjs";
|
|
13
|
+
import { f as DEFAULT_SECTION_SPACING, o as normalizeBoxStylesBorder, r as boxStyleClassNames, s as resolveCardRoleForBoxStyles, v as asPartialObject } from "./boxStyleClassNames-iLF_3KX9.mjs";
|
|
14
|
+
import { S as clsx, _ as FileAudioIcon, a as ThemedDownloadLink, b as MinusIcon, c as isSemanticIconId, d as ChevronDownIcon, f as CircleMinusIcon, g as FileArchiveIcon, i as ThemedButtonLink, l as SpinnerNode, p as CirclePlusIcon, r as ThemedButton, s as getIconComponent, u as ArrowDownIcon, v as FileSpreadsheetIcon, x as PlusIcon, y as FileTextIcon } from "./ThemedButton-BMDHwnM6.mjs";
|
|
15
|
+
import { a as deriveEventScheduleSummary, i as eventCardListContent, n as resolveEventDetailsPresentation, o as derivePreviewRunSchedule, t as EventDetailsView } from "./view-BxeiAL3c.mjs";
|
|
16
|
+
import { a as planEventBookingPanel, c as EventBookingPanelView, i as RegistrationClosedState, o as registrationSourceForPanel, r as BookingEntryCard, s as resolveBookingPanelSelection, t as StepIndicator } from "./StepIndicator-CsRlU46Y.mjs";
|
|
17
|
+
import { n as resolveEventCta, r as resolveEventLinkProps } from "./cta-pzQkBLgS.mjs";
|
|
18
|
+
import { i as SvgNode, o as formatEventLocation } from "./MapDrawingSvg-Dy6UMuIw.mjs";
|
|
19
|
+
import { n as CardListItems, r as EventItem } from "./EventItem-BnwcoFQN.mjs";
|
|
20
|
+
import { c as CalendarDayHeaders, i as CombinedLookFrame, l as buildMonthDay, n as WeekAgendaView, o as MonthLookView, u as resolveMonthSelectedDay } from "./CalendarNavigationChevron-iMWrY6Hz.mjs";
|
|
21
|
+
import { a as EventCard, i as EventCompactRow, r as EmptyState, t as EventListingFrameView } from "./EventListing.view-BM7rTVSL.mjs";
|
|
20
22
|
import { t as resolveDedicatedBookingHref } from "./bookingRoute-D6DlxYx6.mjs";
|
|
21
23
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
24
|
+
import { t as BookingPanelArrangement } from "./BookingPanelArrangement-OgftZ9QC.mjs";
|
|
22
25
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
23
26
|
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";
|
|
24
|
-
import { t as coerceRichTextDoc } from "./richText-coerce-
|
|
25
|
-
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-
|
|
26
|
-
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-
|
|
27
|
-
import {
|
|
28
|
-
import { n as
|
|
29
|
-
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DDD-LRyW.mjs";
|
|
27
|
+
import { t as coerceRichTextDoc } from "./richText-coerce-CtoGLZ_e.mjs";
|
|
28
|
+
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-ShYH3WXh.mjs";
|
|
29
|
+
import { n as EventListWeekNavigation, t as EventListWeekEmptyState } from "./EventListWeekNavigation-DuG6z02f.mjs";
|
|
30
|
+
import { n as FormSubmitAction, t as FormFieldGroups } from "./form.parts-DTof9pL3.mjs";
|
|
31
|
+
import { a as partitionNewsletterFields, n as NewsletterSubmitRow, r as NewsletterTopicChips, t as NewsletterExtraField } from "./newsletter-form.parts-DjJsFms2.mjs";
|
|
30
32
|
import React, { forwardRef } from "react";
|
|
31
33
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
32
34
|
import { z } from "zod";
|
|
@@ -185,7 +187,7 @@ function parseWeeklyOpeningHours(value) {
|
|
|
185
187
|
//#endregion
|
|
186
188
|
//#region ../site-contracts/src/siteData/venues.ts
|
|
187
189
|
/** Additive map DTO; hidden venues retain only their public name and area. */
|
|
188
|
-
const publicVenueMapLocationSchema = publicLocationSchema
|
|
190
|
+
const publicVenueMapLocationSchema = publicLocationSchema.unwrap().extend({
|
|
189
191
|
name: z.string().optional(),
|
|
190
192
|
area: z.string().nullable().optional(),
|
|
191
193
|
addressWithBooking: z.boolean().optional()
|
|
@@ -351,7 +353,7 @@ const uiSchema = z.object({
|
|
|
351
353
|
allowDirectInput: z.boolean().optional(),
|
|
352
354
|
pattern: z.string().optional(),
|
|
353
355
|
placeholder: z.string().optional(),
|
|
354
|
-
visibleWhen:
|
|
356
|
+
visibleWhen: z.optional(visibleWhenSchema),
|
|
355
357
|
modalConfig: z.object({
|
|
356
358
|
buttonLabel: z.string().optional(),
|
|
357
359
|
description: z.string().optional(),
|
|
@@ -890,13 +892,13 @@ const nodeSchema = z.object({
|
|
|
890
892
|
type: z.string().min(1, "Node type is required"),
|
|
891
893
|
key: z.string().optional(),
|
|
892
894
|
props: nodePropsSchema.optional(),
|
|
893
|
-
children: z.lazy(() =>
|
|
895
|
+
children: z.lazy(() => z.array(nodeSchema).default([])).optional(),
|
|
894
896
|
$bind: bindingSchema.optional(),
|
|
895
897
|
$repeat: repeatSchema.optional(),
|
|
896
898
|
$when: conditionSchema.optional(),
|
|
897
899
|
$scopes: dataScopeSchema.array().optional()
|
|
898
900
|
});
|
|
899
|
-
const nodeTreeSchema =
|
|
901
|
+
const nodeTreeSchema = z.union([z.array(nodeSchema), nodeSchema]);
|
|
900
902
|
const NodeSchema = nodeSchema;
|
|
901
903
|
const NodeTreeSchema = nodeTreeSchema;
|
|
902
904
|
//#endregion
|
|
@@ -2800,203 +2802,258 @@ function resolveBlockIconRenderValue(value, generatedAssets = /* @__PURE__ */ ne
|
|
|
2800
2802
|
}
|
|
2801
2803
|
}
|
|
2802
2804
|
//#endregion
|
|
2803
|
-
//#region ../blocks/src/system/
|
|
2804
|
-
|
|
2805
|
-
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
|
|
2810
|
-
|
|
2805
|
+
//#region ../blocks/src/system/fragments/types.ts
|
|
2806
|
+
const FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
|
|
2807
|
+
const FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
|
|
2808
|
+
const dataLoaderSchema = z.object({
|
|
2809
|
+
endpoint: z.string().min(1, "Fragment data loader requires an endpoint"),
|
|
2810
|
+
params: z.record(z.string(), z.unknown()).default({}),
|
|
2811
|
+
requiredParams: z.array(z.string().min(1)).optional(),
|
|
2812
|
+
mode: z.enum(["server", "client"]).default("server")
|
|
2813
|
+
});
|
|
2814
|
+
const fragmentDataSchema = z.object({
|
|
2815
|
+
key: z.string().min(1, "Fragment data key is required"),
|
|
2816
|
+
loader: dataLoaderSchema.optional()
|
|
2817
|
+
});
|
|
2818
|
+
const fragmentConfigSchema = z.object({
|
|
2819
|
+
id: z.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
|
|
2820
|
+
title: z.string().optional(),
|
|
2821
|
+
description: z.string().optional(),
|
|
2822
|
+
category: z.enum([
|
|
2823
|
+
"content",
|
|
2824
|
+
"media",
|
|
2825
|
+
"interactive",
|
|
2826
|
+
"layout"
|
|
2827
|
+
]).optional(),
|
|
2828
|
+
icon: z.string().optional(),
|
|
2829
|
+
fields: fieldSchema.array().default([]),
|
|
2830
|
+
layout: z.union([NodeSchema, z.array(NodeSchema)]).transform((value) => Array.isArray(value) ? value : [value]),
|
|
2831
|
+
data: fragmentDataSchema.optional()
|
|
2832
|
+
});
|
|
2833
|
+
var FragmentConfigError = class extends Error {
|
|
2834
|
+
constructor(message) {
|
|
2835
|
+
super(message);
|
|
2836
|
+
this.name = "FragmentConfigError";
|
|
2837
|
+
}
|
|
2811
2838
|
};
|
|
2812
|
-
function
|
|
2839
|
+
function defineFragment(config) {
|
|
2840
|
+
const parsed = fragmentConfigSchema.parse(config);
|
|
2841
|
+
const fields = parseFieldDefinitions(parsed.fields);
|
|
2842
|
+
validateFieldDefinitions(fields, parsed.id);
|
|
2813
2843
|
return {
|
|
2814
|
-
...
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
},
|
|
2818
|
-
...props
|
|
2844
|
+
...parsed,
|
|
2845
|
+
fields: fields.map((field) => cloneFieldDefinition(field)),
|
|
2846
|
+
layout: parsed.layout.map((node) => ({ ...node }))
|
|
2819
2847
|
};
|
|
2820
2848
|
}
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
|
|
2825
|
-
*
|
|
2826
|
-
* Provides type-safe environment detection without relying on `any`-typed globals.
|
|
2827
|
-
*/
|
|
2828
|
-
/**
|
|
2829
|
-
* Check if the current environment is development.
|
|
2830
|
-
*
|
|
2831
|
-
* Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
|
|
2832
|
-
* (which is the safe default for validation and warnings).
|
|
2833
|
-
*
|
|
2834
|
-
* @returns true if in development mode, false if in production
|
|
2835
|
-
*/
|
|
2836
|
-
function isDevEnvironment() {
|
|
2837
|
-
try {
|
|
2838
|
-
if (typeof process !== "undefined" && true) return true;
|
|
2839
|
-
return true;
|
|
2840
|
-
} catch {
|
|
2841
|
-
return true;
|
|
2842
|
-
}
|
|
2849
|
+
function scopeFragmentFields(fragment, scope) {
|
|
2850
|
+
const normalizedScope = scope.trim();
|
|
2851
|
+
if (!normalizedScope) return fragment.fields.map((field) => cloneFieldDefinition(field));
|
|
2852
|
+
return fragment.fields.map((field) => prefixFieldId(field, normalizedScope));
|
|
2843
2853
|
}
|
|
2844
|
-
|
|
2845
|
-
|
|
2846
|
-
|
|
2847
|
-
* List of reserved keys (for runtime validation).
|
|
2848
|
-
* Kept in sync with the ReservedNodeKeys type above.
|
|
2849
|
-
*/
|
|
2850
|
-
const RESERVED_KEYS = [
|
|
2851
|
-
"children",
|
|
2852
|
-
"key",
|
|
2853
|
-
"$bind",
|
|
2854
|
-
"$when",
|
|
2855
|
-
"$repeat",
|
|
2856
|
-
"$scopes"
|
|
2857
|
-
];
|
|
2858
|
-
/**
|
|
2859
|
-
* Type guard to check if props contain reserved keys at runtime.
|
|
2860
|
-
* Use this in development mode to catch bugs early.
|
|
2861
|
-
*
|
|
2862
|
-
* @param props - Props object to validate
|
|
2863
|
-
* @returns Array of reserved keys found in props, or empty array if none
|
|
2864
|
-
*/
|
|
2865
|
-
function findReservedKeysInProps(props) {
|
|
2866
|
-
if (!props) return [];
|
|
2867
|
-
return RESERVED_KEYS.filter((key) => key in props);
|
|
2854
|
+
function scopeFragmentLayout(fragment, scope) {
|
|
2855
|
+
const normalizedScope = scope.trim();
|
|
2856
|
+
return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
|
|
2868
2857
|
}
|
|
2869
|
-
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2874
|
-
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
const reserved = findReservedKeysInProps(props);
|
|
2878
|
-
if (reserved.length === 0) return;
|
|
2879
|
-
const message = `[blocks:${context}] Reserved keys found in props: ${reserved.join(", ")}. These should be passed as separate parameters or modifiers, not in props. For example, 'children' should be the 3rd parameter to el(), not in the props object.`;
|
|
2880
|
-
if (isDevEnvironment()) throw new TypeError(message);
|
|
2881
|
-
else console.error(message);
|
|
2858
|
+
function validateFieldDefinitions(fields, fragmentId) {
|
|
2859
|
+
const seen = /* @__PURE__ */ new Set();
|
|
2860
|
+
for (const field of fields) {
|
|
2861
|
+
if (field.id.includes(".")) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" should not include dot notation; the builder scopes fields automatically.`);
|
|
2862
|
+
if (!FIELD_ID_PATTERN.test(field.id)) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" must start with a letter and contain only alphanumeric, "_", or "-".`);
|
|
2863
|
+
if (seen.has(field.id)) throw new FragmentConfigError(`Duplicate field id "${field.id}" found in fragment "${fragmentId}". Field ids must be unique per fragment.`);
|
|
2864
|
+
seen.add(field.id);
|
|
2865
|
+
}
|
|
2882
2866
|
}
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2867
|
+
function prefixFieldId(field, scope) {
|
|
2868
|
+
const cloned = cloneFieldDefinition(field);
|
|
2869
|
+
cloned.id = `${scope}.${field.id}`;
|
|
2870
|
+
const defaultValue = cloned.defaultValue;
|
|
2871
|
+
cloned.defaultValue = cloneUnknown(defaultValue);
|
|
2872
|
+
cloned.visibleRoles = cloned.visibleRoles ? [...cloned.visibleRoles] : void 0;
|
|
2873
|
+
cloned.ui = cloneUnknown(cloned.ui);
|
|
2874
|
+
return cloned;
|
|
2889
2875
|
}
|
|
2890
|
-
function
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
2897
|
-
|
|
2898
|
-
|
|
2899
|
-
|
|
2876
|
+
function cloneFieldDefinition(field) {
|
|
2877
|
+
if (field.type === "repeater") {
|
|
2878
|
+
if (field.polymorphic && field.itemTypes) return {
|
|
2879
|
+
...field,
|
|
2880
|
+
polymorphic: true,
|
|
2881
|
+
itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([key, itemType]) => [key, {
|
|
2882
|
+
...itemType,
|
|
2883
|
+
fields: itemType.fields.map(cloneFieldDefinition)
|
|
2884
|
+
}]))
|
|
2885
|
+
};
|
|
2886
|
+
if (field.schema) return {
|
|
2887
|
+
...field,
|
|
2888
|
+
schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
|
|
2889
|
+
};
|
|
2890
|
+
return { ...field };
|
|
2900
2891
|
}
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
|
|
2907
|
-
const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
|
|
2908
|
-
const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
|
|
2909
|
-
const carousel = (props, children, ...mods) => el("carousel", {
|
|
2910
|
-
mode: "legacy",
|
|
2911
|
-
...props
|
|
2912
|
-
}, children, ...mods);
|
|
2913
|
-
const text = (props, ...mods) => el("text", props, void 0, ...mods);
|
|
2914
|
-
const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
|
|
2915
|
-
const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
|
|
2916
|
-
const media = (props, ...mods) => el("media", props, void 0, ...mods);
|
|
2917
|
-
const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
|
|
2918
|
-
const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
|
|
2919
|
-
const button = (props, children, ...mods) => el("button", props, children, ...mods);
|
|
2920
|
-
const link = (props, children, ...mods) => el("link", props, children, ...mods);
|
|
2921
|
-
const form = (props, children, ...mods) => el("form", props, children, ...mods);
|
|
2922
|
-
const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
|
|
2923
|
-
const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
|
|
2924
|
-
const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
|
|
2925
|
-
const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
|
|
2926
|
-
const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
|
|
2927
|
-
const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
|
|
2928
|
-
const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
|
|
2929
|
-
const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
|
|
2930
|
-
function bind(from, options) {
|
|
2931
|
-
return (node) => ({
|
|
2932
|
-
...node,
|
|
2933
|
-
$bind: {
|
|
2934
|
-
from,
|
|
2935
|
-
...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
|
|
2936
|
-
...options?.transforms ? { transforms: options.transforms } : {},
|
|
2937
|
-
...options?.pick ? { pick: options.pick } : {},
|
|
2938
|
-
...options?.coerce ? { coerce: options.coerce } : {}
|
|
2939
|
-
}
|
|
2940
|
-
});
|
|
2892
|
+
if (field.type === "group") return {
|
|
2893
|
+
...field,
|
|
2894
|
+
schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
|
|
2895
|
+
};
|
|
2896
|
+
return { ...field };
|
|
2941
2897
|
}
|
|
2942
|
-
function
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
when: { from: path },
|
|
2947
|
-
...options?.equals !== void 0 ? { equals: options.equals } : {},
|
|
2948
|
-
...options?.not ? { not: true } : {},
|
|
2949
|
-
...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
|
|
2950
|
-
}
|
|
2951
|
-
});
|
|
2898
|
+
function cloneUnknown(value) {
|
|
2899
|
+
if (value == null || typeof value !== "object") return value;
|
|
2900
|
+
if (Array.isArray(value)) return value.map((entry) => cloneUnknown(entry));
|
|
2901
|
+
return { ...value };
|
|
2952
2902
|
}
|
|
2953
|
-
function
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
|
|
2957
|
-
|
|
2958
|
-
|
|
2959
|
-
|
|
2960
|
-
|
|
2961
|
-
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
path: options.sortBy.path,
|
|
2966
|
-
direction: options.sortBy.direction ?? "asc"
|
|
2967
|
-
} } : {}
|
|
2968
|
-
}
|
|
2969
|
-
});
|
|
2903
|
+
function cloneAndScopeNode(node, scope) {
|
|
2904
|
+
const cloned = { ...node };
|
|
2905
|
+
if (node.children) cloned.children = node.children.map((child) => cloneAndScopeNode(child, scope));
|
|
2906
|
+
if (node.props) cloned.props = scopePropBindings(node.props, scope);
|
|
2907
|
+
if (node.$bind) cloned.$bind = scopeBinding(node.$bind, scope);
|
|
2908
|
+
if (node.$repeat) cloned.$repeat = scopeRepeat(node.$repeat, scope);
|
|
2909
|
+
if (node.$when) cloned.$when = scopeCondition(node.$when, scope);
|
|
2910
|
+
if (node.$scopes) cloned.$scopes = node.$scopes.map((entry) => ({
|
|
2911
|
+
name: entry.name,
|
|
2912
|
+
from: scopeBinding(entry.from, scope)
|
|
2913
|
+
}));
|
|
2914
|
+
return cloned;
|
|
2970
2915
|
}
|
|
2971
|
-
function
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
...
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2916
|
+
function scopeBinding(binding, scope) {
|
|
2917
|
+
const cloned = {
|
|
2918
|
+
...binding,
|
|
2919
|
+
transforms: binding.transforms?.map((step) => ({ ...step })) ?? []
|
|
2920
|
+
};
|
|
2921
|
+
cloned.from = scopeContentPath(binding.from, scope);
|
|
2922
|
+
return cloned;
|
|
2923
|
+
}
|
|
2924
|
+
function scopeRepeat(repeat, scope) {
|
|
2925
|
+
const cloned = {
|
|
2926
|
+
...repeat,
|
|
2927
|
+
collection: scopeBinding(repeat.collection, scope)
|
|
2928
|
+
};
|
|
2929
|
+
if (repeat.sortBy) cloned.sortBy = {
|
|
2930
|
+
...repeat.sortBy,
|
|
2931
|
+
path: scopeContentPath(repeat.sortBy.path, scope)
|
|
2932
|
+
};
|
|
2933
|
+
return cloned;
|
|
2934
|
+
}
|
|
2935
|
+
function scopeCondition(condition, scope) {
|
|
2936
|
+
return {
|
|
2937
|
+
...condition,
|
|
2938
|
+
when: scopeBinding(condition.when, scope)
|
|
2939
|
+
};
|
|
2940
|
+
}
|
|
2941
|
+
function scopePropBindings(input, scope) {
|
|
2942
|
+
const result = {};
|
|
2943
|
+
for (const [key, value] of Object.entries(input)) result[key] = scopePropValue(value, scope);
|
|
2944
|
+
return result;
|
|
2945
|
+
}
|
|
2946
|
+
function scopePropValue(value, scope) {
|
|
2947
|
+
if (Array.isArray(value)) return value.map((entry) => scopePropValue(entry, scope));
|
|
2948
|
+
if (value && typeof value === "object") {
|
|
2949
|
+
if ("$bind" in value) {
|
|
2950
|
+
const bindingConfig = value.$bind;
|
|
2951
|
+
return { $bind: scopeBinding(bindingConfig, scope) };
|
|
2978
2952
|
}
|
|
2979
|
-
|
|
2953
|
+
const result = {};
|
|
2954
|
+
for (const [key, entry] of Object.entries(value)) result[key] = scopePropValue(entry, scope);
|
|
2955
|
+
return result;
|
|
2956
|
+
}
|
|
2957
|
+
return value;
|
|
2980
2958
|
}
|
|
2981
|
-
function
|
|
2982
|
-
|
|
2983
|
-
|
|
2984
|
-
|
|
2985
|
-
|
|
2986
|
-
|
|
2959
|
+
function scopeContentPath(path, scope) {
|
|
2960
|
+
if (!scope || scope.length === 0) return path;
|
|
2961
|
+
if (path === "content") return `content.${scope}`;
|
|
2962
|
+
if (path.startsWith("content.")) {
|
|
2963
|
+
const remainder = path.slice(8);
|
|
2964
|
+
return remainder.length > 0 ? `content.${scope}.${remainder}` : `content.${scope}`;
|
|
2965
|
+
}
|
|
2966
|
+
if (path.startsWith("content[")) return path.replace(/^content/, `content.${scope}`);
|
|
2967
|
+
if (path.startsWith("$root.")) return path;
|
|
2968
|
+
if (path.includes(".")) return path;
|
|
2969
|
+
return `content.${scope}.${path}`;
|
|
2970
|
+
}
|
|
2971
|
+
//#endregion
|
|
2972
|
+
//#region ../blocks/src/system/fragments/builder.ts
|
|
2973
|
+
var FragmentCompositionError = class extends Error {
|
|
2974
|
+
constructor(message) {
|
|
2975
|
+
super(message);
|
|
2976
|
+
this.name = "FragmentCompositionError";
|
|
2977
|
+
}
|
|
2978
|
+
};
|
|
2979
|
+
const DOT_SCOPE_REGEX = /^[A-Za-z0-9_.-]*$/;
|
|
2980
|
+
function materializeFragment(config) {
|
|
2981
|
+
const scope = normalizeScope(config.scope);
|
|
2982
|
+
const fields = scopeFragmentFields(config.fragment, scope);
|
|
2983
|
+
const layout = scopeFragmentLayout(config.fragment, scope);
|
|
2984
|
+
const fieldPriority = config.fieldPriority ?? 0;
|
|
2985
|
+
let data;
|
|
2986
|
+
if (config.fragment.data) {
|
|
2987
|
+
const key = config.dataKey ?? config.fragment.data.key;
|
|
2988
|
+
if (!key || typeof key !== "string") throw new FragmentCompositionError(`Fragment "${config.fragment.id}" requires a data key to compose.`);
|
|
2989
|
+
data = {
|
|
2990
|
+
key,
|
|
2991
|
+
loader: config.fragment.data.loader ? { ...config.fragment.data.loader } : void 0
|
|
2992
|
+
};
|
|
2993
|
+
}
|
|
2994
|
+
return {
|
|
2995
|
+
fragment: config.fragment,
|
|
2996
|
+
scope,
|
|
2997
|
+
fields,
|
|
2998
|
+
layout,
|
|
2999
|
+
data,
|
|
3000
|
+
fieldPriority
|
|
2987
3001
|
};
|
|
2988
|
-
if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
|
|
2989
|
-
if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
|
|
2990
|
-
return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
|
|
2991
3002
|
}
|
|
2992
|
-
function
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
3003
|
+
function composeFragments(instances) {
|
|
3004
|
+
const fieldEntries = [];
|
|
3005
|
+
const layouts = [];
|
|
3006
|
+
const dataEntries = [];
|
|
3007
|
+
const scopes = [];
|
|
3008
|
+
const seenFieldIds = /* @__PURE__ */ new Set();
|
|
3009
|
+
let fieldOrder = 0;
|
|
3010
|
+
for (const instance of instances) {
|
|
3011
|
+
const materialized = materializeFragment(instance);
|
|
3012
|
+
for (const field of materialized.fields) {
|
|
3013
|
+
if (seenFieldIds.has(field.id)) throw new FragmentCompositionError(`Duplicate field id "${field.id}" when composing fragments.`);
|
|
3014
|
+
seenFieldIds.add(field.id);
|
|
3015
|
+
fieldEntries.push({
|
|
3016
|
+
id: field.id,
|
|
3017
|
+
field,
|
|
3018
|
+
priority: materialized.fieldPriority,
|
|
3019
|
+
order: fieldOrder++
|
|
3020
|
+
});
|
|
2997
3021
|
}
|
|
2998
|
-
|
|
2999
|
-
|
|
3022
|
+
scopes.push(materialized.scope);
|
|
3023
|
+
layouts.push(...materialized.layout);
|
|
3024
|
+
if (materialized.data) {
|
|
3025
|
+
if (dataEntries.find((entry) => entry.key === materialized.data?.key)) throw new FragmentCompositionError(`Duplicate fragment data key "${materialized.data.key}" detected.`);
|
|
3026
|
+
dataEntries.push(materialized.data);
|
|
3027
|
+
}
|
|
3028
|
+
}
|
|
3029
|
+
return {
|
|
3030
|
+
fields: fieldEntries.sort((a, b) => {
|
|
3031
|
+
if (a.priority !== b.priority) return a.priority - b.priority;
|
|
3032
|
+
return a.order - b.order;
|
|
3033
|
+
}).map((entry) => entry.field),
|
|
3034
|
+
layout: layouts,
|
|
3035
|
+
data: dataEntries,
|
|
3036
|
+
scopes
|
|
3037
|
+
};
|
|
3038
|
+
}
|
|
3039
|
+
function normalizeScope(scope) {
|
|
3040
|
+
if (!scope) return "";
|
|
3041
|
+
const trimmed = scope.trim();
|
|
3042
|
+
if (!DOT_SCOPE_REGEX.test(trimmed)) throw new FragmentCompositionError(`Fragment scope "${scope}" contains invalid characters. Use alphanumeric, ".", "-", or "_".`);
|
|
3043
|
+
return trimmed;
|
|
3044
|
+
}
|
|
3045
|
+
function buildFragmentDataLoaders(composition) {
|
|
3046
|
+
const loaders = {};
|
|
3047
|
+
for (const entry of composition.data) {
|
|
3048
|
+
if (!entry?.loader) continue;
|
|
3049
|
+
loaders[entry.key] = {
|
|
3050
|
+
endpoint: entry.loader.endpoint,
|
|
3051
|
+
params: { ...entry.loader.params ?? {} },
|
|
3052
|
+
...entry.loader.requiredParams ? { requiredParams: [...entry.loader.requiredParams] } : {},
|
|
3053
|
+
mode: entry.loader.mode ?? "server"
|
|
3054
|
+
};
|
|
3055
|
+
}
|
|
3056
|
+
return loaders;
|
|
3000
3057
|
}
|
|
3001
3058
|
//#endregion
|
|
3002
3059
|
//#region ../blocks/src/system/customize/testimonialCount.ts
|
|
@@ -3039,93 +3096,273 @@ const lookCarouselRegionTransform = {
|
|
|
3039
3096
|
run: (value, options) => typeof value === "string" && value.trim() ? value.trim() : options?.fallback ?? "Carousel"
|
|
3040
3097
|
};
|
|
3041
3098
|
//#endregion
|
|
3042
|
-
//#region ../blocks/src/
|
|
3043
|
-
const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-isolate rb-pointer-events-none";
|
|
3099
|
+
//#region ../blocks/src/utils/env.ts
|
|
3044
3100
|
/**
|
|
3045
|
-
*
|
|
3046
|
-
*
|
|
3047
|
-
* This helper generates three nodes:
|
|
3048
|
-
* 1. A style layer (div) that renders solid colors and gradients
|
|
3049
|
-
* 2. A media layer that conditionally renders background images/videos
|
|
3050
|
-
* 3. An overlay layer (div) that renders color/gradient overlays on images
|
|
3051
|
-
*
|
|
3052
|
-
* The layers are designed to be placed behind content (z-index -10) and work
|
|
3053
|
-
* with data from `sectionStylesField`, `containerStylesField`, or `cardStylesField`.
|
|
3054
|
-
*
|
|
3055
|
-
* Layer stacking order (all use -z-10, stacking determined by DOM order):
|
|
3056
|
-
* - Content (default z-index, rendered last)
|
|
3057
|
-
* - Overlay layer (rendered third, above image due to DOM order)
|
|
3058
|
-
* - Image layer (rendered second)
|
|
3059
|
-
* - Style layer (rendered first, at bottom)
|
|
3060
|
-
*
|
|
3061
|
-
* @param path - The data path to the background field (e.g., '_sectionStyles.background')
|
|
3062
|
-
* @param options - Optional customization for layer appearance
|
|
3063
|
-
* @returns Array of NodeDefinition objects in paint order: style, optional image, overlay
|
|
3101
|
+
* Environment detection utilities
|
|
3064
3102
|
*
|
|
3065
|
-
*
|
|
3066
|
-
|
|
3067
|
-
|
|
3103
|
+
* Provides type-safe environment detection without relying on `any`-typed globals.
|
|
3104
|
+
*/
|
|
3105
|
+
/**
|
|
3106
|
+
* Check if the current environment is development.
|
|
3068
3107
|
*
|
|
3069
|
-
*
|
|
3070
|
-
*
|
|
3071
|
-
* const customBackgroundNodes = backgroundLayer('_sectionStyles.background', {
|
|
3072
|
-
* imageClassName: 'rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-object-cover rb-opacity-30'
|
|
3073
|
-
* })
|
|
3108
|
+
* Returns true if NODE_ENV is not 'production', or if NODE_ENV cannot be determined
|
|
3109
|
+
* (which is the safe default for validation and warnings).
|
|
3074
3110
|
*
|
|
3075
|
-
* @
|
|
3076
|
-
* // In a block layout
|
|
3077
|
-
* const layout = section(
|
|
3078
|
-
* { background: 'background' },
|
|
3079
|
-
* [
|
|
3080
|
-
* ...backgroundLayer('_sectionStyles.background'),
|
|
3081
|
-
* sectionContainer([])
|
|
3082
|
-
* ]
|
|
3083
|
-
* )
|
|
3111
|
+
* @returns true if in development mode, false if in production
|
|
3084
3112
|
*/
|
|
3085
|
-
function
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
id: "background.resolveStyle",
|
|
3093
|
-
...typeof fallbackToken === "string" && fallbackToken.trim().length > 0 ? { options: { fallbackToken: fallbackToken.trim() } } : {}
|
|
3094
|
-
}]
|
|
3095
|
-
} }
|
|
3096
|
-
});
|
|
3097
|
-
const imageLayer = createBackgroundImageNode(path, imageClassName, {
|
|
3098
|
-
loading: imageLoading,
|
|
3099
|
-
fetchPriority: imageFetchPriority,
|
|
3100
|
-
slot: imageSlot
|
|
3101
|
-
});
|
|
3102
|
-
const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
|
|
3103
|
-
return omitImageLayer ? [styleLayer, overlayLayer] : [
|
|
3104
|
-
styleLayer,
|
|
3105
|
-
imageLayer,
|
|
3106
|
-
overlayLayer
|
|
3107
|
-
];
|
|
3113
|
+
function isDevEnvironment() {
|
|
3114
|
+
try {
|
|
3115
|
+
if (typeof process !== "undefined" && true) return true;
|
|
3116
|
+
return true;
|
|
3117
|
+
} catch {
|
|
3118
|
+
return true;
|
|
3119
|
+
}
|
|
3108
3120
|
}
|
|
3121
|
+
//#endregion
|
|
3122
|
+
//#region ../blocks/src/system/node/types.ts
|
|
3109
3123
|
/**
|
|
3110
|
-
*
|
|
3111
|
-
*
|
|
3112
|
-
* Foreground content remains outside this frame, so editor outlines, focus
|
|
3113
|
-
* rings, and floating controls are never clipped by a visual background.
|
|
3114
|
-
* Backgrounds that explicitly opt into overflow keep that behavior within
|
|
3115
|
-
* the decorative layer rather than changing the content root.
|
|
3124
|
+
* List of reserved keys (for runtime validation).
|
|
3125
|
+
* Kept in sync with the ReservedNodeKeys type above.
|
|
3116
3126
|
*/
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3127
|
+
const RESERVED_KEYS = [
|
|
3128
|
+
"children",
|
|
3129
|
+
"key",
|
|
3130
|
+
"$bind",
|
|
3131
|
+
"$when",
|
|
3132
|
+
"$repeat",
|
|
3133
|
+
"$scopes"
|
|
3134
|
+
];
|
|
3135
|
+
/**
|
|
3136
|
+
* Type guard to check if props contain reserved keys at runtime.
|
|
3137
|
+
* Use this in development mode to catch bugs early.
|
|
3138
|
+
*
|
|
3139
|
+
* @param props - Props object to validate
|
|
3140
|
+
* @returns Array of reserved keys found in props, or empty array if none
|
|
3141
|
+
*/
|
|
3142
|
+
function findReservedKeysInProps(props) {
|
|
3143
|
+
if (!props) return [];
|
|
3144
|
+
return RESERVED_KEYS.filter((key) => key in props);
|
|
3145
|
+
}
|
|
3146
|
+
/**
|
|
3147
|
+
* Validates that props don't contain reserved keys.
|
|
3148
|
+
* Throws in development, warns in production.
|
|
3149
|
+
*
|
|
3150
|
+
* @param props - Props to validate
|
|
3151
|
+
* @param context - Context for error message (e.g., "el('grid', ...)")
|
|
3152
|
+
*/
|
|
3153
|
+
function validateProps(props, context = "node builder") {
|
|
3154
|
+
const reserved = findReservedKeysInProps(props);
|
|
3155
|
+
if (reserved.length === 0) return;
|
|
3156
|
+
const message = `[blocks:${context}] Reserved keys found in props: ${reserved.join(", ")}. These should be passed as separate parameters or modifiers, not in props. For example, 'children' should be the 3rd parameter to el(), not in the props object.`;
|
|
3157
|
+
if (isDevEnvironment()) throw new TypeError(message);
|
|
3158
|
+
else console.error(message);
|
|
3159
|
+
}
|
|
3160
|
+
//#endregion
|
|
3161
|
+
//#region ../blocks/src/system/node/builder.ts
|
|
3162
|
+
function normalizeChildren(children) {
|
|
3163
|
+
if (!children) return void 0;
|
|
3164
|
+
const flat = children.flat().filter(Boolean);
|
|
3165
|
+
return flat.length > 0 ? flat : void 0;
|
|
3166
|
+
}
|
|
3167
|
+
function el(type, props, children, ...mods) {
|
|
3168
|
+
validateProps(props, `el('${type}', ...)`);
|
|
3169
|
+
const node = {
|
|
3170
|
+
type,
|
|
3171
|
+
...props && Object.keys(props).length > 0 ? { props } : {},
|
|
3172
|
+
...children && children.length ? { children: normalizeChildren(children) } : {}
|
|
3173
|
+
};
|
|
3174
|
+
if (mods && mods.length > 0) {
|
|
3175
|
+
const validMods = mods.filter((mod) => typeof mod === "function");
|
|
3176
|
+
if (validMods.length > 0) return devValidate(validMods.reduce((acc, fn) => fn(acc), node));
|
|
3177
|
+
}
|
|
3178
|
+
return devValidate(node);
|
|
3179
|
+
}
|
|
3180
|
+
const section = (props, children, ...mods) => el("section", props, children, ...mods);
|
|
3181
|
+
const headerSection = (props, children, ...mods) => el("headerSection", props, children, ...mods);
|
|
3182
|
+
const stack = (props, children, ...mods) => el("stack", props, children, ...mods);
|
|
3183
|
+
const inline = (props, children, ...mods) => el("inline", props, children, ...mods);
|
|
3184
|
+
const accordion = (props, children, ...mods) => el("accordion", props, children, ...mods);
|
|
3185
|
+
const accordionItem = (props, children, ...mods) => el("accordionItem", props, children, ...mods);
|
|
3186
|
+
const carousel = (props, children, ...mods) => el("carousel", {
|
|
3187
|
+
mode: "legacy",
|
|
3188
|
+
...props
|
|
3189
|
+
}, children, ...mods);
|
|
3190
|
+
const text = (props, ...mods) => el("text", props, void 0, ...mods);
|
|
3191
|
+
const richText = (props, ...mods) => el("richText", props, void 0, ...mods);
|
|
3192
|
+
const icon = (props, ...mods) => el("icon", props, void 0, ...mods);
|
|
3193
|
+
const media = (props, ...mods) => el("media", props, void 0, ...mods);
|
|
3194
|
+
const fileDownload = (props, ...mods) => el("file-download", props, void 0, ...mods);
|
|
3195
|
+
const videoEmbed = (props, ...mods) => el("videoEmbed", props, void 0, ...mods);
|
|
3196
|
+
const button = (props, children, ...mods) => el("button", props, children, ...mods);
|
|
3197
|
+
const link = (props, children, ...mods) => el("link", props, children, ...mods);
|
|
3198
|
+
const form = (props, children, ...mods) => el("form", props, children, ...mods);
|
|
3199
|
+
const bookingForm = (props, children, ...mods) => el("booking-form", props, children, ...mods);
|
|
3200
|
+
const eventRegistration = (props, children, ...mods) => el("event-registration", props, children, ...mods);
|
|
3201
|
+
const shop = (props, children, ...mods) => el("shop", props, children, ...mods);
|
|
3202
|
+
const productList = (props, children, ...mods) => el("product-list", props, children, ...mods);
|
|
3203
|
+
const productDetail = (props, children, ...mods) => el("product-detail", props, children, ...mods);
|
|
3204
|
+
const cart = (props, children, ...mods) => el("cart", props, children, ...mods);
|
|
3205
|
+
const checkout = (props, children, ...mods) => el("checkout", props, children, ...mods);
|
|
3206
|
+
const gifting = (props, children, ...mods) => el("gifting", props, children, ...mods);
|
|
3207
|
+
function bind(from, options) {
|
|
3208
|
+
return (node) => ({
|
|
3209
|
+
...node,
|
|
3210
|
+
$bind: {
|
|
3211
|
+
from,
|
|
3212
|
+
...options?.fallback !== void 0 ? { fallback: options.fallback } : {},
|
|
3213
|
+
...options?.transforms ? { transforms: options.transforms } : {},
|
|
3214
|
+
...options?.pick ? { pick: options.pick } : {},
|
|
3215
|
+
...options?.coerce ? { coerce: options.coerce } : {}
|
|
3216
|
+
}
|
|
3217
|
+
});
|
|
3218
|
+
}
|
|
3219
|
+
function when(path, options) {
|
|
3220
|
+
return (node) => ({
|
|
3221
|
+
...node,
|
|
3222
|
+
$when: {
|
|
3223
|
+
when: { from: path },
|
|
3224
|
+
...options?.equals !== void 0 ? { equals: options.equals } : {},
|
|
3225
|
+
...options?.not ? { not: true } : {},
|
|
3226
|
+
...options?.authoringPresence ? { authoringPresence: options.authoringPresence } : {}
|
|
3227
|
+
}
|
|
3228
|
+
});
|
|
3229
|
+
}
|
|
3230
|
+
function repeat(collectionPath, itemName = "item", options) {
|
|
3231
|
+
return (node) => ({
|
|
3232
|
+
...node,
|
|
3233
|
+
$repeat: {
|
|
3234
|
+
collection: {
|
|
3235
|
+
from: collectionPath,
|
|
3236
|
+
pick: "collection"
|
|
3237
|
+
},
|
|
3238
|
+
itemName,
|
|
3239
|
+
...options?.indexName ? { indexName: options.indexName } : {},
|
|
3240
|
+
...options?.limit ? { limit: options.limit } : {},
|
|
3241
|
+
...options?.sortBy ? { sortBy: {
|
|
3242
|
+
path: options.sortBy.path,
|
|
3243
|
+
direction: options.sortBy.direction ?? "asc"
|
|
3244
|
+
} } : {}
|
|
3245
|
+
}
|
|
3246
|
+
});
|
|
3247
|
+
}
|
|
3248
|
+
function props(extra) {
|
|
3249
|
+
validateProps(extra, "props() modifier");
|
|
3250
|
+
return (node) => ({
|
|
3251
|
+
...node,
|
|
3252
|
+
props: {
|
|
3253
|
+
...node.props ?? {},
|
|
3254
|
+
...extra
|
|
3255
|
+
}
|
|
3256
|
+
});
|
|
3257
|
+
}
|
|
3258
|
+
function accordionList({ collection, itemName = "item", indexName, accordionProps = null, itemProps = null, triggerFrom, contentFrom, valueFrom }, ...mods) {
|
|
3259
|
+
const resolvedIndexName = indexName ?? `${itemName}Index`;
|
|
3260
|
+
const resolvedValuePath = valueFrom === null ? null : valueFrom ?? resolvedIndexName;
|
|
3261
|
+
const baseItemProps = {
|
|
3262
|
+
...itemProps ?? {},
|
|
3263
|
+
trigger: { $bind: { from: triggerFrom } }
|
|
3264
|
+
};
|
|
3265
|
+
if (contentFrom) baseItemProps.content = { $bind: { from: contentFrom } };
|
|
3266
|
+
if (resolvedValuePath) baseItemProps.value = { $bind: { from: resolvedValuePath } };
|
|
3267
|
+
return accordion(accordionProps ?? void 0, [accordionItem(baseItemProps, void 0, repeat(collection, itemName, { indexName: resolvedIndexName }))], ...mods);
|
|
3268
|
+
}
|
|
3269
|
+
function devValidate(node) {
|
|
3270
|
+
try {
|
|
3271
|
+
if (isDevEnvironment()) {
|
|
3272
|
+
const res = z.safeParse(NodeSchema, node);
|
|
3273
|
+
if (!res.success) console.warn("[blocks:builder] Invalid node produced by builder", res.error.format());
|
|
3274
|
+
}
|
|
3275
|
+
} catch {}
|
|
3276
|
+
return node;
|
|
3277
|
+
}
|
|
3278
|
+
//#endregion
|
|
3279
|
+
//#region ../blocks/src/system/node/fragments/backgroundLayer.ts
|
|
3280
|
+
const BACKGROUND_FRAME_BASE_CLASS = "rb-background-frame rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-isolate rb-pointer-events-none";
|
|
3281
|
+
/**
|
|
3282
|
+
* Creates background layer nodes for rendering backgrounds from field data.
|
|
3283
|
+
*
|
|
3284
|
+
* This helper generates three nodes:
|
|
3285
|
+
* 1. A style layer (div) that renders solid colors and gradients
|
|
3286
|
+
* 2. A media layer that conditionally renders background images/videos
|
|
3287
|
+
* 3. An overlay layer (div) that renders color/gradient overlays on images
|
|
3288
|
+
*
|
|
3289
|
+
* The layers are designed to be placed behind content (z-index -10) and work
|
|
3290
|
+
* with data from `sectionStylesField`, `containerStylesField`, or `cardStylesField`.
|
|
3291
|
+
*
|
|
3292
|
+
* Layer stacking order (all use -z-10, stacking determined by DOM order):
|
|
3293
|
+
* - Content (default z-index, rendered last)
|
|
3294
|
+
* - Overlay layer (rendered third, above image due to DOM order)
|
|
3295
|
+
* - Image layer (rendered second)
|
|
3296
|
+
* - Style layer (rendered first, at bottom)
|
|
3297
|
+
*
|
|
3298
|
+
* @param path - The data path to the background field (e.g., '_sectionStyles.background')
|
|
3299
|
+
* @param options - Optional customization for layer appearance
|
|
3300
|
+
* @returns Array of NodeDefinition objects in paint order: style, optional image, overlay
|
|
3301
|
+
*
|
|
3302
|
+
* @example
|
|
3303
|
+
* // Basic usage in a block
|
|
3304
|
+
* const heroBackgroundNodes = backgroundLayer('_sectionStyles.background')
|
|
3305
|
+
*
|
|
3306
|
+
* @example
|
|
3307
|
+
* // Custom styling
|
|
3308
|
+
* const customBackgroundNodes = backgroundLayer('_sectionStyles.background', {
|
|
3309
|
+
* imageClassName: 'rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-object-cover rb-opacity-30'
|
|
3310
|
+
* })
|
|
3311
|
+
*
|
|
3312
|
+
* @example
|
|
3313
|
+
* // In a block layout
|
|
3314
|
+
* const layout = section(
|
|
3315
|
+
* { background: 'background' },
|
|
3316
|
+
* [
|
|
3317
|
+
* ...backgroundLayer('_sectionStyles.background'),
|
|
3318
|
+
* sectionContainer([])
|
|
3319
|
+
* ]
|
|
3320
|
+
* )
|
|
3321
|
+
*/
|
|
3322
|
+
function backgroundLayer(path, options = {}) {
|
|
3323
|
+
const { styleClassName = "background-style rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", imageClassName, overlayClassName = "background-overlay rb-absolute rb-inset-0 rb-z-neg-10 rb-h-full rb-w-full rb-pointer-events-none", fallbackToken, omitImageLayer = false, imageLoading, imageFetchPriority, imageSlot } = options;
|
|
3324
|
+
const styleLayer = el("div", {
|
|
3325
|
+
className: styleClassName,
|
|
3326
|
+
style: { $bind: {
|
|
3327
|
+
from: path,
|
|
3328
|
+
transforms: [{
|
|
3329
|
+
id: "background.resolveStyle",
|
|
3330
|
+
...typeof fallbackToken === "string" && fallbackToken.trim().length > 0 ? { options: { fallbackToken: fallbackToken.trim() } } : {}
|
|
3331
|
+
}]
|
|
3332
|
+
} }
|
|
3333
|
+
});
|
|
3334
|
+
const imageLayer = createBackgroundImageNode(path, imageClassName, {
|
|
3335
|
+
loading: imageLoading,
|
|
3336
|
+
fetchPriority: imageFetchPriority,
|
|
3337
|
+
slot: imageSlot
|
|
3338
|
+
});
|
|
3339
|
+
const overlayLayer = createBackgroundOverlayNode(path, overlayClassName);
|
|
3340
|
+
return omitImageLayer ? [styleLayer, overlayLayer] : [
|
|
3341
|
+
styleLayer,
|
|
3342
|
+
imageLayer,
|
|
3343
|
+
overlayLayer
|
|
3344
|
+
];
|
|
3345
|
+
}
|
|
3346
|
+
/**
|
|
3347
|
+
* Wrap decorative background layers in their own clipping frame.
|
|
3348
|
+
*
|
|
3349
|
+
* Foreground content remains outside this frame, so editor outlines, focus
|
|
3350
|
+
* rings, and floating controls are never clipped by a visual background.
|
|
3351
|
+
* Backgrounds that explicitly opt into overflow keep that behavior within
|
|
3352
|
+
* the decorative layer rather than changing the content root.
|
|
3353
|
+
*/
|
|
3354
|
+
function backgroundFrame(path, options = {}) {
|
|
3355
|
+
const { leadingNodes = [], frameSlot, ...layerOptions } = options;
|
|
3356
|
+
const framedLayerOptions = {
|
|
3357
|
+
...layerOptions,
|
|
3358
|
+
styleClassName: layerOptions.styleClassName ?? "background-style rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none",
|
|
3359
|
+
imageClassName: layerOptions.imageClassName ?? "rb-absolute rb-z-0",
|
|
3360
|
+
overlayClassName: layerOptions.overlayClassName ?? "background-overlay rb-absolute rb-inset-0 rb-z-0 rb-h-full rb-w-full rb-pointer-events-none"
|
|
3361
|
+
};
|
|
3362
|
+
return el("div", {
|
|
3363
|
+
...frameSlot ? lookSlot(frameSlot) : {},
|
|
3364
|
+
className: { $bind: {
|
|
3365
|
+
from: path,
|
|
3129
3366
|
transforms: [{
|
|
3130
3367
|
id: "background.resolveFrameClassName",
|
|
3131
3368
|
options: { baseClass: BACKGROUND_FRAME_BASE_CLASS }
|
|
@@ -3277,422 +3514,168 @@ function styledContainer(config) {
|
|
|
3277
3514
|
...safeRootProps,
|
|
3278
3515
|
style: { $bind: {
|
|
3279
3516
|
from: `${bindFrom}.background`,
|
|
3280
|
-
transforms: [{
|
|
3281
|
-
id: "background.resolveColorsStyle",
|
|
3282
|
-
options: { arrangementInherits: true }
|
|
3283
|
-
}]
|
|
3284
|
-
} },
|
|
3285
|
-
className: { $bind: {
|
|
3286
|
-
from: bindFrom,
|
|
3287
|
-
transforms: [constrainWidth ? {
|
|
3288
|
-
id: "containerStyles.resolveBoxClassName",
|
|
3289
|
-
options: { baseClass: baseClassName }
|
|
3290
|
-
} : {
|
|
3291
|
-
id: "boxStyles.all",
|
|
3292
|
-
options: {
|
|
3293
|
-
axis: "all",
|
|
3294
|
-
baseClass: baseClassName
|
|
3295
|
-
}
|
|
3296
|
-
}],
|
|
3297
|
-
fallback: constrainWidth ? `${baseClassName} rb-container` : baseClassName
|
|
3298
|
-
} }
|
|
3299
|
-
}, [when("content._lookSlots", { not: true })(backgroundNode), ...childrenArray]);
|
|
3300
|
-
}
|
|
3301
|
-
//#endregion
|
|
3302
|
-
//#region ../blocks/src/system/node/fragments/styledSection.ts
|
|
3303
|
-
/**
|
|
3304
|
-
* Create a styled section with automatic background layer and spacing bindings.
|
|
3305
|
-
*
|
|
3306
|
-
* This helper encapsulates the common pattern of:
|
|
3307
|
-
* - Creating a section wrapper with background theme
|
|
3308
|
-
* - Adding background color/gradient/image layers
|
|
3309
|
-
* - Binding className to section styles with transform
|
|
3310
|
-
* - Keeping foreground overflow visible while decorative backgrounds clip independently
|
|
3311
|
-
* - Wrapping content children
|
|
3312
|
-
*
|
|
3313
|
-
* Use this helper to eliminate 25+ lines of boilerplate section setup code.
|
|
3314
|
-
*
|
|
3315
|
-
* @example
|
|
3316
|
-
* // Basic usage with default spacing
|
|
3317
|
-
* const layout = styledSection({
|
|
3318
|
-
* children: sectionContainer(contentNodes, { gap: 'md' }),
|
|
3319
|
-
* });
|
|
3320
|
-
*
|
|
3321
|
-
* @example
|
|
3322
|
-
* // Custom spacing and base padding
|
|
3323
|
-
* const compactLayout = styledSection({
|
|
3324
|
-
* children: sectionContainer(contentNodes, { gap: 'sm' }),
|
|
3325
|
-
* baseClass: 'rb-px-8',
|
|
3326
|
-
* spacing: 'compact',
|
|
3327
|
-
* });
|
|
3328
|
-
*
|
|
3329
|
-
* @example
|
|
3330
|
-
* // Multiple children
|
|
3331
|
-
* const layout = styledSection({
|
|
3332
|
-
* children: [
|
|
3333
|
-
* heading({ text: 'Title' }),
|
|
3334
|
-
* sectionContainer(contentNodes, { gap: 'md' }),
|
|
3335
|
-
* ],
|
|
3336
|
-
* });
|
|
3337
|
-
*
|
|
3338
|
-
* @example
|
|
3339
|
-
* // Custom binding path (for nested sections)
|
|
3340
|
-
* const nestedSection = styledSection({
|
|
3341
|
-
* children: content,
|
|
3342
|
-
* bindFrom: 'container.styles',
|
|
3343
|
-
* });
|
|
3344
|
-
*/
|
|
3345
|
-
function styledSection(config) {
|
|
3346
|
-
const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
|
|
3347
|
-
const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
|
|
3348
|
-
...config.backgroundLookSlots ? {
|
|
3349
|
-
frameSlot: "background",
|
|
3350
|
-
imageSlot: "photo"
|
|
3351
|
-
} : {},
|
|
3352
|
-
imageClassName,
|
|
3353
|
-
fallbackToken: background,
|
|
3354
|
-
omitImageLayer: !renderBackgroundImage,
|
|
3355
|
-
imageLoading: backgroundImageLoading,
|
|
3356
|
-
imageFetchPriority: backgroundImageFetchPriority
|
|
3357
|
-
});
|
|
3358
|
-
const childrenArray = Array.isArray(children) ? children : [children];
|
|
3359
|
-
return section(sectionAppearanceProps({
|
|
3360
|
-
bindFrom,
|
|
3361
|
-
background,
|
|
3362
|
-
baseClass,
|
|
3363
|
-
spacing,
|
|
3364
|
-
fullWidthPath,
|
|
3365
|
-
photoPaintsGround: renderBackgroundImage,
|
|
3366
|
-
skinSlot: config.skinSlot
|
|
3367
|
-
}), [renderedBackgroundNode, ...childrenArray]);
|
|
3368
|
-
}
|
|
3369
|
-
function sectionAppearanceProps(input) {
|
|
3370
|
-
return {
|
|
3371
|
-
...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
|
|
3372
|
-
"data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
|
|
3373
|
-
style: { $bind: {
|
|
3374
|
-
from: `${input.bindFrom}.background`,
|
|
3375
|
-
transforms: [{
|
|
3376
|
-
id: "sectionStyles.resolveColorsStyle",
|
|
3377
|
-
options: {
|
|
3378
|
-
fallbackToken: input.background,
|
|
3379
|
-
photoPaintsGround: input.photoPaintsGround
|
|
3380
|
-
}
|
|
3381
|
-
}]
|
|
3382
|
-
} },
|
|
3383
|
-
className: { $bind: {
|
|
3384
|
-
from: input.bindFrom,
|
|
3385
|
-
transforms: [{
|
|
3386
|
-
id: "sectionStyles.resolveClassName",
|
|
3387
|
-
options: {
|
|
3388
|
-
baseClass: input.baseClass,
|
|
3389
|
-
defaultSpacing: input.spacing,
|
|
3390
|
-
fullWidthPath: input.fullWidthPath
|
|
3391
|
-
}
|
|
3392
|
-
}]
|
|
3393
|
-
} }
|
|
3394
|
-
};
|
|
3395
|
-
}
|
|
3396
|
-
//#endregion
|
|
3397
|
-
//#region ../blocks/src/system/transforms/registry/_utils/themeColorResolution.ts
|
|
3398
|
-
function resolveBackgroundColorValue(value, context) {
|
|
3399
|
-
return resolveThemeColorReferenceValue(value, { palette: context.theme?.palette });
|
|
3400
|
-
}
|
|
3401
|
-
//#endregion
|
|
3402
|
-
//#region ../blocks/src/system/node/fragments/sectionHead.ts
|
|
3403
|
-
const recoverEmptyHeadingWhenActive = {
|
|
3404
|
-
kind: "recover-empty-when-active",
|
|
3405
|
-
placeholder: "Add heading"
|
|
3406
|
-
};
|
|
3407
|
-
const recoverEmptyDescriptionWhenActive = {
|
|
3408
|
-
kind: "recover-empty-when-active",
|
|
3409
|
-
placeholder: "Add description"
|
|
3410
|
-
};
|
|
3411
|
-
function sectionHeaderLayoutNodes(options = {}) {
|
|
3412
|
-
const headingNode = text({
|
|
3413
|
-
as: "h2",
|
|
3414
|
-
...lookSlot("heading")
|
|
3415
|
-
}, bind("content.heading"), when("content.heading", { authoringPresence: recoverEmptyHeadingWhenActive }));
|
|
3416
|
-
const descriptionNode = richText({
|
|
3417
|
-
className: "rb-prose rb-max-w-none",
|
|
3418
|
-
...lookSlot("intro")
|
|
3419
|
-
}, bind("content.description"), when("content.description", { authoringPresence: recoverEmptyDescriptionWhenActive }));
|
|
3420
|
-
if (options.splitClassName) return [el("div", {
|
|
3421
|
-
className: options.splitClassName,
|
|
3422
|
-
...lookSlot("head")
|
|
3423
|
-
}, [headingNode, descriptionNode])];
|
|
3424
|
-
return [headingNode, descriptionNode];
|
|
3425
|
-
}
|
|
3426
|
-
/** Shared optional section copy. Existing consumers keep their description ID. */
|
|
3427
|
-
const sectionHeaderFields = (defaultHeading, introLabel = "Description") => [{
|
|
3428
|
-
id: "heading",
|
|
3429
|
-
type: "text",
|
|
3430
|
-
label: "Heading",
|
|
3431
|
-
description: "Main heading for the section",
|
|
3432
|
-
required: false,
|
|
3433
|
-
multiline: false,
|
|
3434
|
-
...defaultHeading === void 0 ? {} : { defaultValue: defaultHeading }
|
|
3435
|
-
}, {
|
|
3436
|
-
id: "description",
|
|
3437
|
-
type: "richText",
|
|
3438
|
-
label: introLabel,
|
|
3439
|
-
description: "Optional introductory text",
|
|
3440
|
-
required: false
|
|
3441
|
-
}];
|
|
3442
|
-
//#endregion
|
|
3443
|
-
//#region ../blocks/src/system/fragments/types.ts
|
|
3444
|
-
const FRAGMENT_ID_PATTERN = /^[a-z0-9](?:[a-z0-9._-]*[a-z0-9])?$/i;
|
|
3445
|
-
const FIELD_ID_PATTERN = /^[a-z][a-zA-Z0-9_-]*$/;
|
|
3446
|
-
const dataLoaderSchema = z.object({
|
|
3447
|
-
endpoint: z.string().min(1, "Fragment data loader requires an endpoint"),
|
|
3448
|
-
params: z.record(z.string(), z.unknown()).default({}),
|
|
3449
|
-
requiredParams: z.array(z.string().min(1)).optional(),
|
|
3450
|
-
mode: z.enum(["server", "client"]).default("server")
|
|
3451
|
-
});
|
|
3452
|
-
const fragmentDataSchema = z.object({
|
|
3453
|
-
key: z.string().min(1, "Fragment data key is required"),
|
|
3454
|
-
loader: dataLoaderSchema.optional()
|
|
3455
|
-
});
|
|
3456
|
-
const fragmentConfigSchema = z.object({
|
|
3457
|
-
id: z.string().min(1, "Fragment id is required").regex(FRAGMENT_ID_PATTERN, "Fragment id must be alphanumeric with optional . _ - separators"),
|
|
3458
|
-
title: z.string().optional(),
|
|
3459
|
-
description: z.string().optional(),
|
|
3460
|
-
category: z.enum([
|
|
3461
|
-
"content",
|
|
3462
|
-
"media",
|
|
3463
|
-
"interactive",
|
|
3464
|
-
"layout"
|
|
3465
|
-
]).optional(),
|
|
3466
|
-
icon: z.string().optional(),
|
|
3467
|
-
fields: fieldSchema.array().default([]),
|
|
3468
|
-
layout: z.union([NodeSchema, NodeSchema.array()]).transform((value) => Array.isArray(value) ? value : [value]),
|
|
3469
|
-
data: fragmentDataSchema.optional()
|
|
3470
|
-
});
|
|
3471
|
-
var FragmentConfigError = class extends Error {
|
|
3472
|
-
constructor(message) {
|
|
3473
|
-
super(message);
|
|
3474
|
-
this.name = "FragmentConfigError";
|
|
3475
|
-
}
|
|
3476
|
-
};
|
|
3477
|
-
function defineFragment(config) {
|
|
3478
|
-
const parsed = fragmentConfigSchema.parse(config);
|
|
3479
|
-
const fields = parseFieldDefinitions(parsed.fields);
|
|
3480
|
-
validateFieldDefinitions(fields, parsed.id);
|
|
3481
|
-
return {
|
|
3482
|
-
...parsed,
|
|
3483
|
-
fields: fields.map((field) => cloneFieldDefinition(field)),
|
|
3484
|
-
layout: parsed.layout.map((node) => ({ ...node }))
|
|
3485
|
-
};
|
|
3486
|
-
}
|
|
3487
|
-
function scopeFragmentFields(fragment, scope) {
|
|
3488
|
-
const normalizedScope = scope.trim();
|
|
3489
|
-
if (!normalizedScope) return fragment.fields.map((field) => cloneFieldDefinition(field));
|
|
3490
|
-
return fragment.fields.map((field) => prefixFieldId(field, normalizedScope));
|
|
3491
|
-
}
|
|
3492
|
-
function scopeFragmentLayout(fragment, scope) {
|
|
3493
|
-
const normalizedScope = scope.trim();
|
|
3494
|
-
return fragment.layout.map((node) => cloneAndScopeNode(node, normalizedScope));
|
|
3495
|
-
}
|
|
3496
|
-
function validateFieldDefinitions(fields, fragmentId) {
|
|
3497
|
-
const seen = /* @__PURE__ */ new Set();
|
|
3498
|
-
for (const field of fields) {
|
|
3499
|
-
if (field.id.includes(".")) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" should not include dot notation; the builder scopes fields automatically.`);
|
|
3500
|
-
if (!FIELD_ID_PATTERN.test(field.id)) throw new FragmentConfigError(`Field "${field.id}" in fragment "${fragmentId}" must start with a letter and contain only alphanumeric, "_", or "-".`);
|
|
3501
|
-
if (seen.has(field.id)) throw new FragmentConfigError(`Duplicate field id "${field.id}" found in fragment "${fragmentId}". Field ids must be unique per fragment.`);
|
|
3502
|
-
seen.add(field.id);
|
|
3503
|
-
}
|
|
3504
|
-
}
|
|
3505
|
-
function prefixFieldId(field, scope) {
|
|
3506
|
-
const cloned = cloneFieldDefinition(field);
|
|
3507
|
-
cloned.id = `${scope}.${field.id}`;
|
|
3508
|
-
const defaultValue = cloned.defaultValue;
|
|
3509
|
-
cloned.defaultValue = cloneUnknown(defaultValue);
|
|
3510
|
-
cloned.visibleRoles = cloned.visibleRoles ? [...cloned.visibleRoles] : void 0;
|
|
3511
|
-
cloned.ui = cloneUnknown(cloned.ui);
|
|
3512
|
-
return cloned;
|
|
3513
|
-
}
|
|
3514
|
-
function cloneFieldDefinition(field) {
|
|
3515
|
-
if (field.type === "repeater") {
|
|
3516
|
-
if (field.polymorphic && field.itemTypes) return {
|
|
3517
|
-
...field,
|
|
3518
|
-
polymorphic: true,
|
|
3519
|
-
itemTypes: Object.fromEntries(Object.entries(field.itemTypes).map(([key, itemType]) => [key, {
|
|
3520
|
-
...itemType,
|
|
3521
|
-
fields: itemType.fields.map(cloneFieldDefinition)
|
|
3522
|
-
}]))
|
|
3523
|
-
};
|
|
3524
|
-
if (field.schema) return {
|
|
3525
|
-
...field,
|
|
3526
|
-
schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
|
|
3527
|
-
};
|
|
3528
|
-
return { ...field };
|
|
3529
|
-
}
|
|
3530
|
-
if (field.type === "group") return {
|
|
3531
|
-
...field,
|
|
3532
|
-
schema: { fields: field.schema.fields.map(cloneFieldDefinition) }
|
|
3533
|
-
};
|
|
3534
|
-
return { ...field };
|
|
3535
|
-
}
|
|
3536
|
-
function cloneUnknown(value) {
|
|
3537
|
-
if (value == null || typeof value !== "object") return value;
|
|
3538
|
-
if (Array.isArray(value)) return value.map((entry) => cloneUnknown(entry));
|
|
3539
|
-
return { ...value };
|
|
3540
|
-
}
|
|
3541
|
-
function cloneAndScopeNode(node, scope) {
|
|
3542
|
-
const cloned = { ...node };
|
|
3543
|
-
if (node.children) cloned.children = node.children.map((child) => cloneAndScopeNode(child, scope));
|
|
3544
|
-
if (node.props) cloned.props = scopePropBindings(node.props, scope);
|
|
3545
|
-
if (node.$bind) cloned.$bind = scopeBinding(node.$bind, scope);
|
|
3546
|
-
if (node.$repeat) cloned.$repeat = scopeRepeat(node.$repeat, scope);
|
|
3547
|
-
if (node.$when) cloned.$when = scopeCondition(node.$when, scope);
|
|
3548
|
-
if (node.$scopes) cloned.$scopes = node.$scopes.map((entry) => ({
|
|
3549
|
-
name: entry.name,
|
|
3550
|
-
from: scopeBinding(entry.from, scope)
|
|
3551
|
-
}));
|
|
3552
|
-
return cloned;
|
|
3553
|
-
}
|
|
3554
|
-
function scopeBinding(binding, scope) {
|
|
3555
|
-
const cloned = {
|
|
3556
|
-
...binding,
|
|
3557
|
-
transforms: binding.transforms?.map((step) => ({ ...step })) ?? []
|
|
3558
|
-
};
|
|
3559
|
-
cloned.from = scopeContentPath(binding.from, scope);
|
|
3560
|
-
return cloned;
|
|
3561
|
-
}
|
|
3562
|
-
function scopeRepeat(repeat, scope) {
|
|
3563
|
-
const cloned = {
|
|
3564
|
-
...repeat,
|
|
3565
|
-
collection: scopeBinding(repeat.collection, scope)
|
|
3566
|
-
};
|
|
3567
|
-
if (repeat.sortBy) cloned.sortBy = {
|
|
3568
|
-
...repeat.sortBy,
|
|
3569
|
-
path: scopeContentPath(repeat.sortBy.path, scope)
|
|
3570
|
-
};
|
|
3571
|
-
return cloned;
|
|
3572
|
-
}
|
|
3573
|
-
function scopeCondition(condition, scope) {
|
|
3574
|
-
return {
|
|
3575
|
-
...condition,
|
|
3576
|
-
when: scopeBinding(condition.when, scope)
|
|
3577
|
-
};
|
|
3578
|
-
}
|
|
3579
|
-
function scopePropBindings(input, scope) {
|
|
3580
|
-
const result = {};
|
|
3581
|
-
for (const [key, value] of Object.entries(input)) result[key] = scopePropValue(value, scope);
|
|
3582
|
-
return result;
|
|
3583
|
-
}
|
|
3584
|
-
function scopePropValue(value, scope) {
|
|
3585
|
-
if (Array.isArray(value)) return value.map((entry) => scopePropValue(entry, scope));
|
|
3586
|
-
if (value && typeof value === "object") {
|
|
3587
|
-
if ("$bind" in value) {
|
|
3588
|
-
const bindingConfig = value.$bind;
|
|
3589
|
-
return { $bind: scopeBinding(bindingConfig, scope) };
|
|
3590
|
-
}
|
|
3591
|
-
const result = {};
|
|
3592
|
-
for (const [key, entry] of Object.entries(value)) result[key] = scopePropValue(entry, scope);
|
|
3593
|
-
return result;
|
|
3594
|
-
}
|
|
3595
|
-
return value;
|
|
3596
|
-
}
|
|
3597
|
-
function scopeContentPath(path, scope) {
|
|
3598
|
-
if (!scope || scope.length === 0) return path;
|
|
3599
|
-
if (path === "content") return `content.${scope}`;
|
|
3600
|
-
if (path.startsWith("content.")) {
|
|
3601
|
-
const remainder = path.slice(8);
|
|
3602
|
-
return remainder.length > 0 ? `content.${scope}.${remainder}` : `content.${scope}`;
|
|
3603
|
-
}
|
|
3604
|
-
if (path.startsWith("content[")) return path.replace(/^content/, `content.${scope}`);
|
|
3605
|
-
if (path.startsWith("$root.")) return path;
|
|
3606
|
-
if (path.includes(".")) return path;
|
|
3607
|
-
return `content.${scope}.${path}`;
|
|
3517
|
+
transforms: [{
|
|
3518
|
+
id: "background.resolveColorsStyle",
|
|
3519
|
+
options: { arrangementInherits: true }
|
|
3520
|
+
}]
|
|
3521
|
+
} },
|
|
3522
|
+
className: { $bind: {
|
|
3523
|
+
from: bindFrom,
|
|
3524
|
+
transforms: [constrainWidth ? {
|
|
3525
|
+
id: "containerStyles.resolveBoxClassName",
|
|
3526
|
+
options: { baseClass: baseClassName }
|
|
3527
|
+
} : {
|
|
3528
|
+
id: "boxStyles.all",
|
|
3529
|
+
options: {
|
|
3530
|
+
axis: "all",
|
|
3531
|
+
baseClass: baseClassName
|
|
3532
|
+
}
|
|
3533
|
+
}],
|
|
3534
|
+
fallback: constrainWidth ? `${baseClassName} rb-container` : baseClassName
|
|
3535
|
+
} }
|
|
3536
|
+
}, [when("content._lookSlots", { not: true })(backgroundNode), ...childrenArray]);
|
|
3608
3537
|
}
|
|
3609
3538
|
//#endregion
|
|
3610
|
-
//#region ../blocks/src/system/fragments/
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3539
|
+
//#region ../blocks/src/system/node/fragments/styledSection.ts
|
|
3540
|
+
/**
|
|
3541
|
+
* Create a styled section with automatic background layer and spacing bindings.
|
|
3542
|
+
*
|
|
3543
|
+
* This helper encapsulates the common pattern of:
|
|
3544
|
+
* - Creating a section wrapper with background theme
|
|
3545
|
+
* - Adding background color/gradient/image layers
|
|
3546
|
+
* - Binding className to section styles with transform
|
|
3547
|
+
* - Keeping foreground overflow visible while decorative backgrounds clip independently
|
|
3548
|
+
* - Wrapping content children
|
|
3549
|
+
*
|
|
3550
|
+
* Use this helper to eliminate 25+ lines of boilerplate section setup code.
|
|
3551
|
+
*
|
|
3552
|
+
* @example
|
|
3553
|
+
* // Basic usage with default spacing
|
|
3554
|
+
* const layout = styledSection({
|
|
3555
|
+
* children: sectionContainer(contentNodes, { gap: 'md' }),
|
|
3556
|
+
* });
|
|
3557
|
+
*
|
|
3558
|
+
* @example
|
|
3559
|
+
* // Custom spacing and base padding
|
|
3560
|
+
* const compactLayout = styledSection({
|
|
3561
|
+
* children: sectionContainer(contentNodes, { gap: 'sm' }),
|
|
3562
|
+
* baseClass: 'rb-px-8',
|
|
3563
|
+
* spacing: 'compact',
|
|
3564
|
+
* });
|
|
3565
|
+
*
|
|
3566
|
+
* @example
|
|
3567
|
+
* // Multiple children
|
|
3568
|
+
* const layout = styledSection({
|
|
3569
|
+
* children: [
|
|
3570
|
+
* heading({ text: 'Title' }),
|
|
3571
|
+
* sectionContainer(contentNodes, { gap: 'md' }),
|
|
3572
|
+
* ],
|
|
3573
|
+
* });
|
|
3574
|
+
*
|
|
3575
|
+
* @example
|
|
3576
|
+
* // Custom binding path (for nested sections)
|
|
3577
|
+
* const nestedSection = styledSection({
|
|
3578
|
+
* children: content,
|
|
3579
|
+
* bindFrom: 'container.styles',
|
|
3580
|
+
* });
|
|
3581
|
+
*/
|
|
3582
|
+
function styledSection(config) {
|
|
3583
|
+
const { children, baseClass = "rb-px-6", spacing = DEFAULT_SECTION_SPACING, background = "background", bindFrom = "_sectionStyles", imageClassName = "rb-absolute rb-z-0", renderBackgroundImage = true, backgroundImageLoading, backgroundImageFetchPriority, fullWidthPath } = config;
|
|
3584
|
+
const renderedBackgroundNode = backgroundFrame(`${bindFrom}.background`, {
|
|
3585
|
+
...config.backgroundLookSlots ? {
|
|
3586
|
+
frameSlot: "background",
|
|
3587
|
+
imageSlot: "photo"
|
|
3588
|
+
} : {},
|
|
3589
|
+
imageClassName,
|
|
3590
|
+
fallbackToken: background,
|
|
3591
|
+
omitImageLayer: !renderBackgroundImage,
|
|
3592
|
+
imageLoading: backgroundImageLoading,
|
|
3593
|
+
imageFetchPriority: backgroundImageFetchPriority
|
|
3594
|
+
});
|
|
3595
|
+
const childrenArray = Array.isArray(children) ? children : [children];
|
|
3596
|
+
return section(sectionAppearanceProps({
|
|
3597
|
+
bindFrom,
|
|
3598
|
+
background,
|
|
3599
|
+
baseClass,
|
|
3600
|
+
spacing,
|
|
3601
|
+
fullWidthPath,
|
|
3602
|
+
photoPaintsGround: renderBackgroundImage,
|
|
3603
|
+
skinSlot: config.skinSlot
|
|
3604
|
+
}), [renderedBackgroundNode, ...childrenArray]);
|
|
3640
3605
|
}
|
|
3641
|
-
function
|
|
3642
|
-
const fieldEntries = [];
|
|
3643
|
-
const layouts = [];
|
|
3644
|
-
const dataEntries = [];
|
|
3645
|
-
const scopes = [];
|
|
3646
|
-
const seenFieldIds = /* @__PURE__ */ new Set();
|
|
3647
|
-
let fieldOrder = 0;
|
|
3648
|
-
for (const instance of instances) {
|
|
3649
|
-
const materialized = materializeFragment(instance);
|
|
3650
|
-
for (const field of materialized.fields) {
|
|
3651
|
-
if (seenFieldIds.has(field.id)) throw new FragmentCompositionError(`Duplicate field id "${field.id}" when composing fragments.`);
|
|
3652
|
-
seenFieldIds.add(field.id);
|
|
3653
|
-
fieldEntries.push({
|
|
3654
|
-
id: field.id,
|
|
3655
|
-
field,
|
|
3656
|
-
priority: materialized.fieldPriority,
|
|
3657
|
-
order: fieldOrder++
|
|
3658
|
-
});
|
|
3659
|
-
}
|
|
3660
|
-
scopes.push(materialized.scope);
|
|
3661
|
-
layouts.push(...materialized.layout);
|
|
3662
|
-
if (materialized.data) {
|
|
3663
|
-
if (dataEntries.find((entry) => entry.key === materialized.data?.key)) throw new FragmentCompositionError(`Duplicate fragment data key "${materialized.data.key}" detected.`);
|
|
3664
|
-
dataEntries.push(materialized.data);
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3606
|
+
function sectionAppearanceProps(input) {
|
|
3667
3607
|
return {
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
|
|
3674
|
-
|
|
3608
|
+
...input.skinSlot ? lookSlot(input.skinSlot, "skin") : lookSlot("section"),
|
|
3609
|
+
"data-arrangement": { $bind: { from: "content._lookHooks.data-arrangement" } },
|
|
3610
|
+
style: { $bind: {
|
|
3611
|
+
from: `${input.bindFrom}.background`,
|
|
3612
|
+
transforms: [{
|
|
3613
|
+
id: "sectionStyles.resolveColorsStyle",
|
|
3614
|
+
options: {
|
|
3615
|
+
fallbackToken: input.background,
|
|
3616
|
+
photoPaintsGround: input.photoPaintsGround
|
|
3617
|
+
}
|
|
3618
|
+
}]
|
|
3619
|
+
} },
|
|
3620
|
+
className: { $bind: {
|
|
3621
|
+
from: input.bindFrom,
|
|
3622
|
+
transforms: [{
|
|
3623
|
+
id: "sectionStyles.resolveClassName",
|
|
3624
|
+
options: {
|
|
3625
|
+
baseClass: input.baseClass,
|
|
3626
|
+
defaultSpacing: input.spacing,
|
|
3627
|
+
fullWidthPath: input.fullWidthPath
|
|
3628
|
+
}
|
|
3629
|
+
}]
|
|
3630
|
+
} }
|
|
3675
3631
|
};
|
|
3676
3632
|
}
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
return trimmed;
|
|
3633
|
+
//#endregion
|
|
3634
|
+
//#region ../blocks/src/system/transforms/registry/_utils/themeColorResolution.ts
|
|
3635
|
+
function resolveBackgroundColorValue(value, context) {
|
|
3636
|
+
return resolveThemeColorReferenceValue(value, { palette: context.theme?.palette });
|
|
3682
3637
|
}
|
|
3683
|
-
|
|
3684
|
-
|
|
3685
|
-
|
|
3686
|
-
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3638
|
+
//#endregion
|
|
3639
|
+
//#region ../blocks/src/system/node/fragments/sectionHead.ts
|
|
3640
|
+
const recoverEmptyHeadingWhenActive = {
|
|
3641
|
+
kind: "recover-empty-when-active",
|
|
3642
|
+
placeholder: "Add heading"
|
|
3643
|
+
};
|
|
3644
|
+
const recoverEmptyDescriptionWhenActive = {
|
|
3645
|
+
kind: "recover-empty-when-active",
|
|
3646
|
+
placeholder: "Add description"
|
|
3647
|
+
};
|
|
3648
|
+
function sectionHeaderLayoutNodes(options = {}) {
|
|
3649
|
+
const headingNode = text({
|
|
3650
|
+
as: "h2",
|
|
3651
|
+
...lookSlot("heading")
|
|
3652
|
+
}, bind("content.heading"), when("content.heading", { authoringPresence: recoverEmptyHeadingWhenActive }));
|
|
3653
|
+
const descriptionNode = richText({
|
|
3654
|
+
className: "rb-prose rb-max-w-none",
|
|
3655
|
+
...lookSlot("intro")
|
|
3656
|
+
}, bind("content.description"), when("content.description", { authoringPresence: recoverEmptyDescriptionWhenActive }));
|
|
3657
|
+
if (options.splitClassName) return [el("div", {
|
|
3658
|
+
className: options.splitClassName,
|
|
3659
|
+
...lookSlot("head")
|
|
3660
|
+
}, [headingNode, descriptionNode])];
|
|
3661
|
+
return [headingNode, descriptionNode];
|
|
3695
3662
|
}
|
|
3663
|
+
/** Shared optional section copy. Existing consumers keep their description ID. */
|
|
3664
|
+
const sectionHeaderFields = (defaultHeading, introLabel = "Description") => [{
|
|
3665
|
+
id: "heading",
|
|
3666
|
+
type: "text",
|
|
3667
|
+
label: "Heading",
|
|
3668
|
+
description: "Main heading for the section",
|
|
3669
|
+
required: false,
|
|
3670
|
+
multiline: false,
|
|
3671
|
+
...defaultHeading === void 0 ? {} : { defaultValue: defaultHeading }
|
|
3672
|
+
}, {
|
|
3673
|
+
id: "description",
|
|
3674
|
+
type: "richText",
|
|
3675
|
+
label: introLabel,
|
|
3676
|
+
description: "Optional introductory text",
|
|
3677
|
+
required: false
|
|
3678
|
+
}];
|
|
3696
3679
|
//#endregion
|
|
3697
3680
|
//#region ../blocks/src/system/fragments/library/formCopy.ts
|
|
3698
3681
|
const formCopyFragment = defineFragment({
|
|
@@ -3727,6 +3710,25 @@ const formCopyFragment = defineFragment({
|
|
|
3727
3710
|
} }), bind("content.intro"))]
|
|
3728
3711
|
});
|
|
3729
3712
|
//#endregion
|
|
3713
|
+
//#region ../blocks/src/system/helpers/api-bindings.ts
|
|
3714
|
+
/**
|
|
3715
|
+
* Standard API bindings that all interactive blocks need.
|
|
3716
|
+
*/
|
|
3717
|
+
const apiBindings = {
|
|
3718
|
+
now: { $bind: { from: "$root.now" } },
|
|
3719
|
+
siteId: { $bind: { from: "$root.siteId" } },
|
|
3720
|
+
apiBaseUrl: { $bind: { from: "$root.apiBaseUrl" } }
|
|
3721
|
+
};
|
|
3722
|
+
function withApiBindings(props, options) {
|
|
3723
|
+
return {
|
|
3724
|
+
...options?.includeApiBaseUrl ?? true ? apiBindings : {
|
|
3725
|
+
siteId: apiBindings.siteId,
|
|
3726
|
+
now: apiBindings.now
|
|
3727
|
+
},
|
|
3728
|
+
...props
|
|
3729
|
+
};
|
|
3730
|
+
}
|
|
3731
|
+
//#endregion
|
|
3730
3732
|
//#region ../blocks/src/system/fragments/library/formEmbed.ts
|
|
3731
3733
|
const formEmbedFragment = defineFragment({
|
|
3732
3734
|
variantMeaning: { kind: "arrangement" },
|
|
@@ -4529,6 +4531,24 @@ const eventRegistrationManifest = createBlockManifest({
|
|
|
4529
4531
|
paletteHidden: false
|
|
4530
4532
|
},
|
|
4531
4533
|
additionalFields: [
|
|
4534
|
+
{
|
|
4535
|
+
id: "pageKind",
|
|
4536
|
+
type: "select",
|
|
4537
|
+
label: "Page kind",
|
|
4538
|
+
multiple: false,
|
|
4539
|
+
defaultValue: "fullPage",
|
|
4540
|
+
options: [{
|
|
4541
|
+
value: "fullPage",
|
|
4542
|
+
label: "Full page"
|
|
4543
|
+
}, {
|
|
4544
|
+
value: "bookingPage",
|
|
4545
|
+
label: "Booking page"
|
|
4546
|
+
}],
|
|
4547
|
+
ui: {
|
|
4548
|
+
hidden: true,
|
|
4549
|
+
intent: "behavior"
|
|
4550
|
+
}
|
|
4551
|
+
},
|
|
4532
4552
|
{
|
|
4533
4553
|
id: "heading",
|
|
4534
4554
|
type: "text",
|
|
@@ -4630,6 +4650,10 @@ const eventRegistrationManifest = createBlockManifest({
|
|
|
4630
4650
|
} },
|
|
4631
4651
|
readAuthority: { $bind: { from: "$root.readAuthority" } },
|
|
4632
4652
|
occurrenceContext: { $bind: { from: "$root.occurrenceContext" } },
|
|
4653
|
+
pageKind: { $bind: {
|
|
4654
|
+
from: "content.pageKind",
|
|
4655
|
+
fallback: "fullPage"
|
|
4656
|
+
} },
|
|
4633
4657
|
subject: { $bind: { from: "$root.subject" } },
|
|
4634
4658
|
pageNavigation: { $bind: { from: "$root.pageNavigation" } },
|
|
4635
4659
|
portalToken: { $bind: {
|
|
@@ -4661,8 +4685,6 @@ const eventRegistrationManifest = createBlockManifest({
|
|
|
4661
4685
|
from: "$root.bookingOfferingPresets",
|
|
4662
4686
|
fallback: []
|
|
4663
4687
|
} },
|
|
4664
|
-
sitePasses: { $bind: { from: "data.sitePasses" } },
|
|
4665
|
-
siteMemberships: { $bind: { from: "data.siteMemberships" } },
|
|
4666
4688
|
stage: { $bind: {
|
|
4667
4689
|
from: "$root.previewStage",
|
|
4668
4690
|
fallback: "published"
|
|
@@ -4672,7 +4694,10 @@ const eventRegistrationManifest = createBlockManifest({
|
|
|
4672
4694
|
})]
|
|
4673
4695
|
});
|
|
4674
4696
|
const registrationEventScopeParams = {
|
|
4675
|
-
detailAdmission: { $bind: {
|
|
4697
|
+
detailAdmission: { $bind: {
|
|
4698
|
+
from: "$root",
|
|
4699
|
+
transforms: [{ id: "events.registrationPageReadAdmission" }]
|
|
4700
|
+
} },
|
|
4676
4701
|
seriesId: { $bind: { from: "$root.subject.eventSeriesId" } },
|
|
4677
4702
|
seriesIds: { $bind: {
|
|
4678
4703
|
from: "$root.subject.catalogueEventSeriesIds",
|
|
@@ -4686,8 +4711,6 @@ const eventRegistrationBlockDefinition = {
|
|
|
4686
4711
|
dataSchemas: {
|
|
4687
4712
|
events: publicEventsArraySchema.optional(),
|
|
4688
4713
|
wholeSeriesRunEvents: publicEventsArraySchema.optional(),
|
|
4689
|
-
sitePasses: publicPassProductCollectionSchema.optional(),
|
|
4690
|
-
siteMemberships: publicMembershipProductCollectionSchema.optional(),
|
|
4691
4714
|
occurrenceContext: occurrenceContextSchema.optional()
|
|
4692
4715
|
},
|
|
4693
4716
|
dataLoaders: {
|
|
@@ -4736,16 +4759,6 @@ const eventRegistrationBlockDefinition = {
|
|
|
4736
4759
|
...registrationEventScopeParams
|
|
4737
4760
|
},
|
|
4738
4761
|
mode: "server"
|
|
4739
|
-
},
|
|
4740
|
-
sitePasses: {
|
|
4741
|
-
endpoint: "listPublicPasses",
|
|
4742
|
-
params: { siteId: { $bind: { from: "$root.siteId" } } },
|
|
4743
|
-
mode: "server"
|
|
4744
|
-
},
|
|
4745
|
-
siteMemberships: {
|
|
4746
|
-
endpoint: "listPublicMemberships",
|
|
4747
|
-
params: { siteId: { $bind: { from: "$root.siteId" } } },
|
|
4748
|
-
mode: "server"
|
|
4749
4762
|
}
|
|
4750
4763
|
}
|
|
4751
4764
|
};
|
|
@@ -7553,6 +7566,102 @@ const newsletterSignupBlockDefinition = {
|
|
|
7553
7566
|
runtime: newsletterFormBlockRuntime
|
|
7554
7567
|
};
|
|
7555
7568
|
//#endregion
|
|
7569
|
+
//#region ../blocks/src/system/blocks/appointments/presentation.ts
|
|
7570
|
+
const publicVenueSchema = z.object({
|
|
7571
|
+
name: z.string(),
|
|
7572
|
+
area: z.string().nullable()
|
|
7573
|
+
});
|
|
7574
|
+
const publicAppointmentLocationSchema = z.discriminatedUnion("mode", [
|
|
7575
|
+
z.object({ mode: z.literal("online") }),
|
|
7576
|
+
z.object({
|
|
7577
|
+
mode: z.literal("in_person"),
|
|
7578
|
+
venue: publicVenueSchema.nullable()
|
|
7579
|
+
}),
|
|
7580
|
+
z.object({
|
|
7581
|
+
mode: z.literal("either"),
|
|
7582
|
+
venue: publicVenueSchema.nullable()
|
|
7583
|
+
})
|
|
7584
|
+
]);
|
|
7585
|
+
const publicPricingOptionSchema = z.object({
|
|
7586
|
+
priceAmount: z.number().finite(),
|
|
7587
|
+
isActive: z.boolean(),
|
|
7588
|
+
saleStartsAt: z.string().nullable(),
|
|
7589
|
+
saleEndsAt: z.string().nullable()
|
|
7590
|
+
});
|
|
7591
|
+
const publicAppointmentPricingSchema = z.object({
|
|
7592
|
+
pricingStrategy: z.enum([
|
|
7593
|
+
"free",
|
|
7594
|
+
"single",
|
|
7595
|
+
"tiered",
|
|
7596
|
+
"sliding_scale"
|
|
7597
|
+
]),
|
|
7598
|
+
currency: z.string().min(1),
|
|
7599
|
+
singlePriceAmount: z.number().nullable(),
|
|
7600
|
+
slidingMinAmount: z.number().nullable(),
|
|
7601
|
+
slidingMaxAmount: z.number().nullable(),
|
|
7602
|
+
options: z.array(publicPricingOptionSchema).readonly()
|
|
7603
|
+
});
|
|
7604
|
+
function formatAppointmentDuration(durationMinutes) {
|
|
7605
|
+
return `${durationMinutes} ${durationMinutes === 1 ? "minute" : "minutes"}`;
|
|
7606
|
+
}
|
|
7607
|
+
function formatAppointmentLocation(location) {
|
|
7608
|
+
switch (location.mode) {
|
|
7609
|
+
case "online": return "Online";
|
|
7610
|
+
case "in_person": return formatVenue(location.venue);
|
|
7611
|
+
case "either": {
|
|
7612
|
+
const venue = formatVenue(location.venue);
|
|
7613
|
+
return venue ? `${venue} or online` : "In person or online";
|
|
7614
|
+
}
|
|
7615
|
+
default: return assertNever$1(location);
|
|
7616
|
+
}
|
|
7617
|
+
}
|
|
7618
|
+
function formatVenue(venue) {
|
|
7619
|
+
if (!venue) return null;
|
|
7620
|
+
return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
|
|
7621
|
+
}
|
|
7622
|
+
function formatAppointmentPrice(service) {
|
|
7623
|
+
if (service.onlinePaymentMode === "package_only") return "Book with a package";
|
|
7624
|
+
const pricing = service.pricing;
|
|
7625
|
+
if (pricing) {
|
|
7626
|
+
const display = appointmentPricingDisplay(pricing);
|
|
7627
|
+
return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
|
|
7628
|
+
}
|
|
7629
|
+
return formatAmountOrFree(service.priceAmount, service.priceCurrency);
|
|
7630
|
+
}
|
|
7631
|
+
function formatAmountOrFree(amount, currency) {
|
|
7632
|
+
if (amount === null || currency === null) return null;
|
|
7633
|
+
if (amount === 0) return "Free";
|
|
7634
|
+
return formatBookingPriceDisplay({
|
|
7635
|
+
kind: "exact",
|
|
7636
|
+
amount,
|
|
7637
|
+
currency
|
|
7638
|
+
}, { decimals: "auto" });
|
|
7639
|
+
}
|
|
7640
|
+
function appointmentPricingDisplay(pricing) {
|
|
7641
|
+
switch (pricing.pricingStrategy) {
|
|
7642
|
+
case "free": return {
|
|
7643
|
+
kind: "free",
|
|
7644
|
+
currency: pricing.currency
|
|
7645
|
+
};
|
|
7646
|
+
case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
|
|
7647
|
+
case "tiered": return resolvePricingOptionsPriceDisplay({
|
|
7648
|
+
options: pricing.options,
|
|
7649
|
+
currency: pricing.currency,
|
|
7650
|
+
purpose: "available_now"
|
|
7651
|
+
});
|
|
7652
|
+
case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
|
|
7653
|
+
kind: "unavailable",
|
|
7654
|
+
currency: pricing.currency
|
|
7655
|
+
} : {
|
|
7656
|
+
kind: "range",
|
|
7657
|
+
minAmount: pricing.slidingMinAmount,
|
|
7658
|
+
maxAmount: pricing.slidingMaxAmount,
|
|
7659
|
+
currency: pricing.currency
|
|
7660
|
+
};
|
|
7661
|
+
default: return assertNever$1(pricing.pricingStrategy);
|
|
7662
|
+
}
|
|
7663
|
+
}
|
|
7664
|
+
//#endregion
|
|
7556
7665
|
//#region ../blocks/src/primitives/layout/Section.tsx
|
|
7557
7666
|
const Section = forwardRef(function Section({ as: Comp = "section", children, background, className = "", style, "data-slot": dataSlot, "data-arrangement": dataArrangement, "data-surface": dataSurface }, ref) {
|
|
7558
7667
|
return /* @__PURE__ */ jsx(Comp, {
|
|
@@ -7623,8 +7732,10 @@ const GridNode = (props) => /* @__PURE__ */ jsx(Grid, { ...props });
|
|
|
7623
7732
|
const DivNode = (props) => /* @__PURE__ */ jsx("div", { ...props });
|
|
7624
7733
|
const FigureNode = (props) => /* @__PURE__ */ jsx("figure", { ...props });
|
|
7625
7734
|
const OrderedListNode = (props) => /* @__PURE__ */ jsx("ol", { ...props });
|
|
7735
|
+
const UnorderedListNode = (props) => /* @__PURE__ */ jsx("ul", { ...props });
|
|
7626
7736
|
const ListItemNode = (props) => /* @__PURE__ */ jsx("li", { ...props });
|
|
7627
7737
|
const FigcaptionNode = (props) => /* @__PURE__ */ jsx("figcaption", { ...props });
|
|
7738
|
+
const DescriptionListNode = (props) => /* @__PURE__ */ jsx("dl", { ...props });
|
|
7628
7739
|
//#endregion
|
|
7629
7740
|
//#region ../blocks/src/system/runtime/nodes/icon.tsx
|
|
7630
7741
|
const IconNode = ({ value, title, className, blockId: _blockId, blockKind: _blockKind, blockContent: _blockContent, fragmentRegistry: _fragmentRegistry, pathBase: _pathBase, ...rest }) => {
|
|
@@ -8464,40 +8575,6 @@ function ListGroup({ presentation, title, intro, Heading, sectionProps, children
|
|
|
8464
8575
|
}
|
|
8465
8576
|
//#endregion
|
|
8466
8577
|
//#region ../blocks/src/system/runtime/nodes/appointment-services.tsx
|
|
8467
|
-
const publicVenueSchema = z.object({
|
|
8468
|
-
name: z.string(),
|
|
8469
|
-
area: z.string().nullable()
|
|
8470
|
-
});
|
|
8471
|
-
const publicLocationSchema = z.discriminatedUnion("mode", [
|
|
8472
|
-
z.object({ mode: z.literal("online") }),
|
|
8473
|
-
z.object({
|
|
8474
|
-
mode: z.literal("in_person"),
|
|
8475
|
-
venue: publicVenueSchema.nullable()
|
|
8476
|
-
}),
|
|
8477
|
-
z.object({
|
|
8478
|
-
mode: z.literal("either"),
|
|
8479
|
-
venue: publicVenueSchema.nullable()
|
|
8480
|
-
})
|
|
8481
|
-
]);
|
|
8482
|
-
const publicPricingOptionSchema = z.object({
|
|
8483
|
-
priceAmount: z.number().finite(),
|
|
8484
|
-
isActive: z.boolean(),
|
|
8485
|
-
saleStartsAt: z.string().nullable(),
|
|
8486
|
-
saleEndsAt: z.string().nullable()
|
|
8487
|
-
});
|
|
8488
|
-
const publicPricingSchema = z.object({
|
|
8489
|
-
pricingStrategy: z.enum([
|
|
8490
|
-
"free",
|
|
8491
|
-
"single",
|
|
8492
|
-
"tiered",
|
|
8493
|
-
"sliding_scale"
|
|
8494
|
-
]),
|
|
8495
|
-
currency: z.string().min(1),
|
|
8496
|
-
singlePriceAmount: z.number().nullable(),
|
|
8497
|
-
slidingMinAmount: z.number().nullable(),
|
|
8498
|
-
slidingMaxAmount: z.number().nullable(),
|
|
8499
|
-
options: z.array(publicPricingOptionSchema).readonly()
|
|
8500
|
-
});
|
|
8501
8578
|
const publicAppointmentServiceSchema = z.object({
|
|
8502
8579
|
id: z.string().min(1),
|
|
8503
8580
|
image: runtimeMediaSchema.nullable().optional(),
|
|
@@ -8505,11 +8582,11 @@ const publicAppointmentServiceSchema = z.object({
|
|
|
8505
8582
|
title: z.string(),
|
|
8506
8583
|
description: z.string().nullable().optional(),
|
|
8507
8584
|
durationMinutes: z.number().int().positive(),
|
|
8508
|
-
pricing:
|
|
8585
|
+
pricing: publicAppointmentPricingSchema.optional(),
|
|
8509
8586
|
priceAmount: z.number().nullable(),
|
|
8510
8587
|
priceCurrency: z.string().nullable(),
|
|
8511
8588
|
onlinePaymentMode: z.enum(["session_or_package", "package_only"]).optional(),
|
|
8512
|
-
location:
|
|
8589
|
+
location: publicAppointmentLocationSchema,
|
|
8513
8590
|
categoryId: z.string().nullable().optional().transform((value) => value ?? null)
|
|
8514
8591
|
});
|
|
8515
8592
|
const publicServiceCategorySchema = z.object({
|
|
@@ -8546,65 +8623,6 @@ function readCategoryFilter(value) {
|
|
|
8546
8623
|
const trimmed = value.trim();
|
|
8547
8624
|
return trimmed.length > 0 ? trimmed : null;
|
|
8548
8625
|
}
|
|
8549
|
-
function formatAppointmentDuration(durationMinutes) {
|
|
8550
|
-
return `${durationMinutes} min`;
|
|
8551
|
-
}
|
|
8552
|
-
function formatAppointmentLocation(location) {
|
|
8553
|
-
switch (location.mode) {
|
|
8554
|
-
case "online": return "Online";
|
|
8555
|
-
case "in_person": return formatVenue(location.venue);
|
|
8556
|
-
case "either": {
|
|
8557
|
-
const venue = formatVenue(location.venue);
|
|
8558
|
-
return venue ? `${venue} or online` : "In person or online";
|
|
8559
|
-
}
|
|
8560
|
-
default: return assertNever$1(location);
|
|
8561
|
-
}
|
|
8562
|
-
}
|
|
8563
|
-
function formatVenue(venue) {
|
|
8564
|
-
if (!venue) return null;
|
|
8565
|
-
return venue.area ? `${venue.name}, ${venue.area}` : venue.name;
|
|
8566
|
-
}
|
|
8567
|
-
function formatAppointmentPrice(service) {
|
|
8568
|
-
if (service.onlinePaymentMode === "package_only") return "Book with a package";
|
|
8569
|
-
const pricing = service.pricing;
|
|
8570
|
-
if (pricing) {
|
|
8571
|
-
const display = (() => {
|
|
8572
|
-
switch (pricing.pricingStrategy) {
|
|
8573
|
-
case "free": return {
|
|
8574
|
-
kind: "free",
|
|
8575
|
-
currency: pricing.currency
|
|
8576
|
-
};
|
|
8577
|
-
case "single": return resolveExactOrFreePriceDisplay(pricing.singlePriceAmount, pricing.currency);
|
|
8578
|
-
case "tiered": return resolvePricingOptionsPriceDisplay({
|
|
8579
|
-
options: pricing.options,
|
|
8580
|
-
currency: pricing.currency,
|
|
8581
|
-
purpose: "available_now"
|
|
8582
|
-
});
|
|
8583
|
-
case "sliding_scale": return pricing.slidingMinAmount === null || pricing.slidingMaxAmount === null ? {
|
|
8584
|
-
kind: "unavailable",
|
|
8585
|
-
currency: pricing.currency
|
|
8586
|
-
} : {
|
|
8587
|
-
kind: "range",
|
|
8588
|
-
minAmount: pricing.slidingMinAmount,
|
|
8589
|
-
maxAmount: pricing.slidingMaxAmount,
|
|
8590
|
-
currency: pricing.currency
|
|
8591
|
-
};
|
|
8592
|
-
default: return assertNever$1(pricing.pricingStrategy);
|
|
8593
|
-
}
|
|
8594
|
-
})();
|
|
8595
|
-
return display.kind === "unavailable" ? null : formatBookingPriceDisplay(display, { decimals: "auto" });
|
|
8596
|
-
}
|
|
8597
|
-
return formatAmountOrFree(service.priceAmount, service.priceCurrency);
|
|
8598
|
-
}
|
|
8599
|
-
function formatAmountOrFree(amount, currency) {
|
|
8600
|
-
if (amount === null || currency === null) return null;
|
|
8601
|
-
if (amount === 0) return "Free";
|
|
8602
|
-
return formatBookingPriceDisplay({
|
|
8603
|
-
kind: "exact",
|
|
8604
|
-
amount,
|
|
8605
|
-
currency
|
|
8606
|
-
}, { decimals: "auto" });
|
|
8607
|
-
}
|
|
8608
8626
|
function buildRows(services, pathname, servicePathPrefix) {
|
|
8609
8627
|
return services.map((service) => ({
|
|
8610
8628
|
id: service.id,
|
|
@@ -9040,54 +9058,59 @@ function BookingFormSSR({ blockId, children, ...sourceProps }) {
|
|
|
9040
9058
|
id: blockId,
|
|
9041
9059
|
attributes: { "data-block": "appointment-booking" },
|
|
9042
9060
|
value: islandProps,
|
|
9043
|
-
children: [
|
|
9044
|
-
|
|
9045
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
9046
|
-
|
|
9047
|
-
|
|
9048
|
-
children: /* @__PURE__ */ jsx("
|
|
9049
|
-
className: "
|
|
9050
|
-
|
|
9061
|
+
children: [/* @__PURE__ */ jsx(BookingPanelArrangement, {
|
|
9062
|
+
pageKind: sourceProps.pageKind,
|
|
9063
|
+
children: display.state === "missing" ? /* @__PURE__ */ jsx("div", {
|
|
9064
|
+
...bookingPresentation(sourceProps.pageKind).panelAttributes,
|
|
9065
|
+
className: `rb-reg-surface booking-form-ssr ${sourceProps.className ?? ""}`.trim(),
|
|
9066
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9067
|
+
className: "alert alert-error",
|
|
9068
|
+
role: "alert",
|
|
9069
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
9070
|
+
className: "ab-text",
|
|
9071
|
+
children: display.message
|
|
9072
|
+
})
|
|
9051
9073
|
})
|
|
9052
|
-
})
|
|
9053
|
-
|
|
9054
|
-
|
|
9055
|
-
|
|
9056
|
-
|
|
9057
|
-
|
|
9058
|
-
|
|
9059
|
-
|
|
9060
|
-
|
|
9061
|
-
|
|
9062
|
-
|
|
9063
|
-
|
|
9064
|
-
|
|
9065
|
-
|
|
9066
|
-
|
|
9067
|
-
|
|
9074
|
+
}) : /* @__PURE__ */ jsxs("div", {
|
|
9075
|
+
...bookingPresentation(sourceProps.pageKind).panelAttributes,
|
|
9076
|
+
className: `rb-reg-surface booking-form-ssr ab-shell ${sourceProps.className ?? ""}`.trim(),
|
|
9077
|
+
"aria-busy": true,
|
|
9078
|
+
"aria-label": "Loading booking form",
|
|
9079
|
+
role: "status",
|
|
9080
|
+
children: [/* @__PURE__ */ jsx("span", {
|
|
9081
|
+
className: "rb-sr-only",
|
|
9082
|
+
children: "Loading booking form..."
|
|
9083
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
9084
|
+
className: "rb-reg-stack",
|
|
9085
|
+
"aria-hidden": "true",
|
|
9086
|
+
children: [
|
|
9087
|
+
bookingPresentation(sourceProps.pageKind).showShellHeading ? /* @__PURE__ */ jsx("div", {
|
|
9088
|
+
className: "rb-reg-summary",
|
|
9089
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
9090
|
+
className: "rb-reg-stack rb-reg-stack--sm",
|
|
9091
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm" })]
|
|
9092
|
+
})
|
|
9093
|
+
}) : null,
|
|
9094
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9068
9095
|
className: "rb-reg-stack rb-reg-stack--sm",
|
|
9069
|
-
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--
|
|
9070
|
-
})
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
|
|
9074
|
-
|
|
9075
|
-
|
|
9076
|
-
|
|
9077
|
-
className: "rb-wizard-actions",
|
|
9078
|
-
children: /* @__PURE__ */ jsx("div", {
|
|
9079
|
-
className: "ab-shell-button",
|
|
9080
|
-
children: display.submitLabel
|
|
9096
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs" })]
|
|
9097
|
+
}),
|
|
9098
|
+
/* @__PURE__ */ jsx("div", {
|
|
9099
|
+
className: "rb-wizard-actions",
|
|
9100
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
9101
|
+
className: "ab-shell-button",
|
|
9102
|
+
children: display.submitLabel
|
|
9103
|
+
})
|
|
9081
9104
|
})
|
|
9082
|
-
|
|
9083
|
-
]
|
|
9084
|
-
})
|
|
9105
|
+
]
|
|
9106
|
+
})]
|
|
9107
|
+
})
|
|
9085
9108
|
}), children]
|
|
9086
9109
|
});
|
|
9087
9110
|
}
|
|
9088
9111
|
//#endregion
|
|
9089
9112
|
//#region ../blocks/src/system/runtime/nodes/event-details.server.tsx
|
|
9090
|
-
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject
|
|
9113
|
+
function eventDetailsIslandValue({ props, presentation, scopedEvents, subject }) {
|
|
9091
9114
|
return {
|
|
9092
9115
|
...props.arrangement ? {
|
|
9093
9116
|
arrangement: props.arrangement,
|
|
@@ -9097,6 +9120,7 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
|
|
|
9097
9120
|
surfacePresentation: props.surfacePresentation,
|
|
9098
9121
|
panelHeading: props.panelHeading
|
|
9099
9122
|
} : {},
|
|
9123
|
+
quickFacts: props.quickFacts,
|
|
9100
9124
|
occurrenceContext: props.occurrenceContext ?? null,
|
|
9101
9125
|
subject,
|
|
9102
9126
|
events: scopedEvents,
|
|
@@ -9115,12 +9139,11 @@ function eventDetailsIslandValue({ props, presentation, scopedEvents, subject, n
|
|
|
9115
9139
|
siteMemberships: props.siteMemberships,
|
|
9116
9140
|
autoApplyDiscount: presentation.autoApplyDiscount,
|
|
9117
9141
|
className: props.className,
|
|
9118
|
-
|
|
9142
|
+
now: props.now
|
|
9119
9143
|
};
|
|
9120
9144
|
}
|
|
9121
9145
|
function EventDetailsSSR(props) {
|
|
9122
9146
|
const { blockId, occurrenceContext = null, subject, events = null, className, children } = props;
|
|
9123
|
-
const nowIso = props.now;
|
|
9124
9147
|
const normalizedSubject = normalizeEventRegistrationPageSurfaceSubject(subject);
|
|
9125
9148
|
const scopedEvents = events === null ? null : resolveEventRegistrationScopedEvents(events, {
|
|
9126
9149
|
occurrenceContext,
|
|
@@ -9130,8 +9153,7 @@ function EventDetailsSSR(props) {
|
|
|
9130
9153
|
...props,
|
|
9131
9154
|
events: scopedEvents,
|
|
9132
9155
|
occurrenceContext,
|
|
9133
|
-
subject: normalizedSubject
|
|
9134
|
-
nowIso
|
|
9156
|
+
subject: normalizedSubject
|
|
9135
9157
|
});
|
|
9136
9158
|
return /* @__PURE__ */ jsxs(IslandRoot, {
|
|
9137
9159
|
kind: "event-details",
|
|
@@ -9144,8 +9166,7 @@ function EventDetailsSSR(props) {
|
|
|
9144
9166
|
props,
|
|
9145
9167
|
presentation,
|
|
9146
9168
|
scopedEvents,
|
|
9147
|
-
subject: normalizedSubject
|
|
9148
|
-
nowIso
|
|
9169
|
+
subject: normalizedSubject
|
|
9149
9170
|
}),
|
|
9150
9171
|
children: [/* @__PURE__ */ jsx(EventDetailsView, {
|
|
9151
9172
|
...presentation,
|
|
@@ -9739,27 +9760,34 @@ function FeaturedOfferingSummary({ item }) {
|
|
|
9739
9760
|
if (!details) return null;
|
|
9740
9761
|
return /* @__PURE__ */ jsxs("article", {
|
|
9741
9762
|
className: "offerings-preview-summary rb-flex rb-flex-1 rb-flex-col",
|
|
9742
|
-
children: [
|
|
9743
|
-
|
|
9744
|
-
|
|
9745
|
-
|
|
9746
|
-
|
|
9747
|
-
|
|
9748
|
-
|
|
9749
|
-
children:
|
|
9750
|
-
|
|
9751
|
-
|
|
9752
|
-
|
|
9753
|
-
|
|
9754
|
-
|
|
9755
|
-
|
|
9756
|
-
|
|
9757
|
-
|
|
9758
|
-
|
|
9759
|
-
|
|
9760
|
-
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
+
children: [
|
|
9764
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9765
|
+
facts: item.kind === "event" ? item.event.facts : item.run.representative.facts,
|
|
9766
|
+
context: "card"
|
|
9767
|
+
}),
|
|
9768
|
+
/* @__PURE__ */ jsxs("p", {
|
|
9769
|
+
className: "offerings-preview-summary-date",
|
|
9770
|
+
children: [/* @__PURE__ */ jsx("time", {
|
|
9771
|
+
dateTime: details.startDateTime,
|
|
9772
|
+
children: details.startDate
|
|
9773
|
+
}), details.endDate ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("span", {
|
|
9774
|
+
"aria-hidden": "true",
|
|
9775
|
+
children: " – "
|
|
9776
|
+
}), /* @__PURE__ */ jsx("time", {
|
|
9777
|
+
dateTime: details.endDateTime,
|
|
9778
|
+
children: details.endDate
|
|
9779
|
+
})] }) : null]
|
|
9780
|
+
}),
|
|
9781
|
+
/* @__PURE__ */ jsxs("dl", {
|
|
9782
|
+
className: "offerings-preview-summary-facts",
|
|
9783
|
+
children: [
|
|
9784
|
+
details.recurrence ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Repeats" }), /* @__PURE__ */ jsx("dd", { children: details.recurrence })] }) : null,
|
|
9785
|
+
details.sessionCount ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Sessions" }), /* @__PURE__ */ jsx("dd", { children: details.sessionCount })] }) : null,
|
|
9786
|
+
details.timeRange ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Time" }), /* @__PURE__ */ jsx("dd", { children: details.timeRange })] }) : null,
|
|
9787
|
+
details.venue ? /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("dt", { children: "Venue" }), /* @__PURE__ */ jsx("dd", { children: details.venue })] }) : null
|
|
9788
|
+
]
|
|
9789
|
+
})
|
|
9790
|
+
]
|
|
9763
9791
|
});
|
|
9764
9792
|
}
|
|
9765
9793
|
function featuredSummaryDetails(item) {
|
|
@@ -9923,31 +9951,38 @@ function WholeSeriesRunCompactRow({ group, path, now }) {
|
|
|
9923
9951
|
}),
|
|
9924
9952
|
/* @__PURE__ */ jsxs("div", {
|
|
9925
9953
|
className: "event-compact-row-content",
|
|
9926
|
-
children: [
|
|
9927
|
-
|
|
9928
|
-
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
group.representative.
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9954
|
+
children: [
|
|
9955
|
+
/* @__PURE__ */ jsx(OfferingTitle, {
|
|
9956
|
+
className: "event-compact-row-title",
|
|
9957
|
+
path,
|
|
9958
|
+
title: group.representative.title
|
|
9959
|
+
}),
|
|
9960
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
9961
|
+
facts: group.representative.facts,
|
|
9962
|
+
context: "card"
|
|
9963
|
+
}),
|
|
9964
|
+
/* @__PURE__ */ jsxs("div", {
|
|
9965
|
+
className: "event-compact-row-meta",
|
|
9966
|
+
children: [
|
|
9967
|
+
group.representative.venue ? /* @__PURE__ */ jsx("span", {
|
|
9968
|
+
className: "event-compact-row-venue",
|
|
9969
|
+
children: group.representative.venue.name
|
|
9970
|
+
}) : null,
|
|
9971
|
+
/* @__PURE__ */ jsx("span", {
|
|
9972
|
+
className: "event-compact-row-price",
|
|
9973
|
+
children: price
|
|
9974
|
+
}),
|
|
9975
|
+
/* @__PURE__ */ jsxs("span", {
|
|
9976
|
+
className: "event-compact-row-price",
|
|
9977
|
+
children: [
|
|
9978
|
+
sessionsCount,
|
|
9979
|
+
" session",
|
|
9980
|
+
sessionsCount === 1 ? "" : "s"
|
|
9981
|
+
]
|
|
9982
|
+
})
|
|
9983
|
+
]
|
|
9984
|
+
})
|
|
9985
|
+
]
|
|
9951
9986
|
}),
|
|
9952
9987
|
/* @__PURE__ */ jsxs("div", {
|
|
9953
9988
|
className: "event-compact-row-action",
|
|
@@ -9996,6 +10031,10 @@ function WholeSeriesRunFeatureCard({ group, now, path, buttonVariant, buttonText
|
|
|
9996
10031
|
path,
|
|
9997
10032
|
title: group.representative.title
|
|
9998
10033
|
}),
|
|
10034
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
10035
|
+
facts: group.representative.facts,
|
|
10036
|
+
context: "card"
|
|
10037
|
+
}),
|
|
9999
10038
|
/* @__PURE__ */ jsxs("div", {
|
|
10000
10039
|
className: "rb-mb-2 rb-caption",
|
|
10001
10040
|
children: [/* @__PURE__ */ jsx("time", { children: formattedDate }), /* @__PURE__ */ jsx("p", { children: timeRange })]
|
|
@@ -10090,6 +10129,10 @@ function RunWithoutLiveDates({ group, path }) {
|
|
|
10090
10129
|
path,
|
|
10091
10130
|
title: group.representative.title
|
|
10092
10131
|
}),
|
|
10132
|
+
/* @__PURE__ */ jsx(EventQuickFacts, {
|
|
10133
|
+
facts: group.representative.facts,
|
|
10134
|
+
context: "card"
|
|
10135
|
+
}),
|
|
10093
10136
|
/* @__PURE__ */ jsx("p", { children: "No dates available." }),
|
|
10094
10137
|
/* @__PURE__ */ jsx("span", {
|
|
10095
10138
|
className: "event-compact-row-status",
|
|
@@ -10893,35 +10936,76 @@ const EventListingSSR = (props) => {
|
|
|
10893
10936
|
* Server-safe placeholder for event registration.
|
|
10894
10937
|
* Provides a static container for island hydration without importing client hooks.
|
|
10895
10938
|
*/
|
|
10896
|
-
function EventRegistrationSSR({
|
|
10939
|
+
function EventRegistrationSSR({ subject, loaderFailures, ...props }) {
|
|
10940
|
+
const selection = resolveBookingPanelSelection({
|
|
10941
|
+
...props,
|
|
10942
|
+
subject,
|
|
10943
|
+
eventLoaderFailures: props.blockId ? loaderFailures?.[props.blockId] : void 0
|
|
10944
|
+
});
|
|
10945
|
+
if (!selection) return /* @__PURE__ */ jsx(BookingPanelArrangement, {
|
|
10946
|
+
pageKind: props.pageKind,
|
|
10947
|
+
children: /* @__PURE__ */ jsx(EventRegistrationIsland, {
|
|
10948
|
+
...props,
|
|
10949
|
+
subject: normalizeEventRegistrationPageSurfaceSubject(subject),
|
|
10950
|
+
loaderFailures
|
|
10951
|
+
})
|
|
10952
|
+
});
|
|
10953
|
+
return /* @__PURE__ */ jsx(SelectedEventRegistration, {
|
|
10954
|
+
selection,
|
|
10955
|
+
island: {
|
|
10956
|
+
...props,
|
|
10957
|
+
subject: selection.subject,
|
|
10958
|
+
loaderFailures
|
|
10959
|
+
}
|
|
10960
|
+
});
|
|
10961
|
+
}
|
|
10962
|
+
/** Once admitted, render the decided target without re-parsing its subject. */
|
|
10963
|
+
function SelectedEventRegistration({ selection, island }) {
|
|
10964
|
+
const panel = planEventBookingPanel(selection, new Date(island.now));
|
|
10965
|
+
const registration = registrationSourceForPanel(island, panel);
|
|
10966
|
+
return /* @__PURE__ */ jsx(EventBookingPanelView, {
|
|
10967
|
+
panel,
|
|
10968
|
+
pageKind: island.pageKind ?? "fullPage",
|
|
10969
|
+
children: registration ? /* @__PURE__ */ jsx(EventRegistrationIsland, {
|
|
10970
|
+
...island,
|
|
10971
|
+
...registration,
|
|
10972
|
+
insidePanel: true
|
|
10973
|
+
}) : null
|
|
10974
|
+
});
|
|
10975
|
+
}
|
|
10976
|
+
function EventRegistrationIsland({ blockId, subject, loaderFailures, children, insidePanel, ...sourceProps }) {
|
|
10897
10977
|
const islandProps = buildEventRegistrationInteractiveIslandProps({
|
|
10898
10978
|
...sourceProps,
|
|
10899
10979
|
eventLoaderFailures: blockId ? loaderFailures?.[blockId] : void 0,
|
|
10900
|
-
subject
|
|
10980
|
+
subject
|
|
10901
10981
|
});
|
|
10902
10982
|
const display = islandProps.render.display;
|
|
10903
|
-
const className =
|
|
10983
|
+
const className = display.className;
|
|
10904
10984
|
return /* @__PURE__ */ jsxs(IslandRoot, {
|
|
10905
10985
|
kind: "event-registration",
|
|
10906
10986
|
id: blockId,
|
|
10907
10987
|
attributes: {
|
|
10908
10988
|
className: `event-registration ${className ?? ""}`.trim(),
|
|
10909
10989
|
"data-block": "event-registration",
|
|
10990
|
+
...insidePanel ? void 0 : bookingPresentation(sourceProps.pageKind).panelAttributes,
|
|
10910
10991
|
"data-rb-island-required": "true",
|
|
10911
10992
|
"data-rb-island-error-message": "We couldn’t load the booking options for this event. Please refresh this page and try again. If this keeps happening, contact the organiser for help.",
|
|
10912
10993
|
"data-rb-island-error-class": "event-registration__hydration-error"
|
|
10913
10994
|
},
|
|
10914
10995
|
value: islandProps,
|
|
10915
|
-
children: [display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
|
|
10996
|
+
children: [islandProps.render.hydration.admission === "recoveryOnly" ? null : display.state === "booking-card" ? /* @__PURE__ */ jsx("div", {
|
|
10916
10997
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
10917
10998
|
children: /* @__PURE__ */ jsx(BookingEntryCard, {
|
|
10918
10999
|
entry: display.entry,
|
|
10919
11000
|
buttonVariant: display.buttonVariant ?? "primary"
|
|
10920
11001
|
})
|
|
10921
|
-
}) : /* @__PURE__ */ jsx(EventRegistrationShell, {
|
|
11002
|
+
}) : /* @__PURE__ */ jsx(EventRegistrationShell, {
|
|
11003
|
+
display,
|
|
11004
|
+
showHeading: bookingPresentation(sourceProps.pageKind).showShellHeading
|
|
11005
|
+
}), children]
|
|
10922
11006
|
});
|
|
10923
11007
|
}
|
|
10924
|
-
function EventRegistrationShell({ display }) {
|
|
11008
|
+
function EventRegistrationShell({ display, showHeading }) {
|
|
10925
11009
|
if (display.state === "registration-closed") return /* @__PURE__ */ jsx(RegistrationClosedState, {
|
|
10926
11010
|
title: display.titleText,
|
|
10927
11011
|
body: display.bodyText
|
|
@@ -10943,32 +11027,9 @@ function EventRegistrationShell({ display }) {
|
|
|
10943
11027
|
totalSteps: display.stepLabels.length,
|
|
10944
11028
|
stepLabels: [...display.stepLabels]
|
|
10945
11029
|
})
|
|
10946
|
-
}), /* @__PURE__ */
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
/* @__PURE__ */ jsx("p", {
|
|
10950
|
-
className: "er-registration-shell__eyebrow",
|
|
10951
|
-
children: "Registration"
|
|
10952
|
-
}),
|
|
10953
|
-
/* @__PURE__ */ jsx("h3", {
|
|
10954
|
-
className: "er-title er-registration-shell__title",
|
|
10955
|
-
children: display.titleText
|
|
10956
|
-
}),
|
|
10957
|
-
/* @__PURE__ */ jsx("p", {
|
|
10958
|
-
className: "er-text er-text--muted er-registration-shell__copy",
|
|
10959
|
-
children: display.bodyText
|
|
10960
|
-
})
|
|
10961
|
-
] }), /* @__PURE__ */ jsxs("div", {
|
|
10962
|
-
className: "er-event-grid er-registration-shell__cards",
|
|
10963
|
-
"aria-hidden": "true",
|
|
10964
|
-
children: [/* @__PURE__ */ jsxs("div", {
|
|
10965
|
-
className: "er-event-card er-registration-shell__card",
|
|
10966
|
-
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
|
|
10967
|
-
}), /* @__PURE__ */ jsxs("div", {
|
|
10968
|
-
className: "er-event-card er-registration-shell__card",
|
|
10969
|
-
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
|
|
10970
|
-
})]
|
|
10971
|
-
})]
|
|
11030
|
+
}), /* @__PURE__ */ jsx(RegistrationShellBody, {
|
|
11031
|
+
display,
|
|
11032
|
+
showHeading
|
|
10972
11033
|
})]
|
|
10973
11034
|
}), /* @__PURE__ */ jsx("div", {
|
|
10974
11035
|
className: "er-payment-layout-footer",
|
|
@@ -10987,6 +11048,32 @@ function EventRegistrationShell({ display }) {
|
|
|
10987
11048
|
})
|
|
10988
11049
|
});
|
|
10989
11050
|
}
|
|
11051
|
+
/** Copy and skeleton cards for the first step, before its island is ready. */
|
|
11052
|
+
function RegistrationShellBody({ display, showHeading }) {
|
|
11053
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
11054
|
+
className: "rb-reg-stack er-stack",
|
|
11055
|
+
children: [/* @__PURE__ */ jsxs("div", { children: [showHeading ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("p", {
|
|
11056
|
+
className: "er-registration-shell__eyebrow",
|
|
11057
|
+
children: "Registration"
|
|
11058
|
+
}), /* @__PURE__ */ jsx("h3", {
|
|
11059
|
+
className: "er-title er-registration-shell__title",
|
|
11060
|
+
children: display.titleText
|
|
11061
|
+
})] }) : null, /* @__PURE__ */ jsx("p", {
|
|
11062
|
+
className: "er-text er-text--muted er-registration-shell__copy",
|
|
11063
|
+
children: display.bodyText
|
|
11064
|
+
})] }), /* @__PURE__ */ jsxs("div", {
|
|
11065
|
+
className: "er-event-grid er-registration-shell__cards",
|
|
11066
|
+
"aria-hidden": "true",
|
|
11067
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
11068
|
+
className: "er-event-card er-registration-shell__card",
|
|
11069
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--lg er-registration-shell__line er-registration-shell__line--lg" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--sm er-registration-shell__line er-registration-shell__line--sm" })]
|
|
11070
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
11071
|
+
className: "er-event-card er-registration-shell__card",
|
|
11072
|
+
children: [/* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--md er-registration-shell__line er-registration-shell__line--md" }), /* @__PURE__ */ jsx("div", { className: "rb-shell-line rb-shell-line--xs er-registration-shell__line er-registration-shell__line--xs" })]
|
|
11073
|
+
})]
|
|
11074
|
+
})]
|
|
11075
|
+
});
|
|
11076
|
+
}
|
|
10990
11077
|
//#endregion
|
|
10991
11078
|
//#region ../blocks/src/system/runtime/nodes/form.server.tsx
|
|
10992
11079
|
const FormNodeSSR = ({ blockId, lookSlots, value, submitLabel, successMessage, className, onSubmit, action = "/api/forms/submit", siteId, apiBaseUrl, spamProtectionEnabled }) => {
|
|
@@ -11299,9 +11386,11 @@ typedObjectKeys(runtimeBackedBlockServerEntries);
|
|
|
11299
11386
|
//#region ../blocks/src/system/runtime/components/registry.server.ts
|
|
11300
11387
|
const serverComponentRegistry = {
|
|
11301
11388
|
div: DivNode,
|
|
11389
|
+
dl: DescriptionListNode,
|
|
11302
11390
|
figure: FigureNode,
|
|
11303
11391
|
figcaption: FigcaptionNode,
|
|
11304
11392
|
ol: OrderedListNode,
|
|
11393
|
+
ul: UnorderedListNode,
|
|
11305
11394
|
li: ListItemNode,
|
|
11306
11395
|
svg: SvgNode,
|
|
11307
11396
|
section: SectionNode,
|
|
@@ -11337,4 +11426,4 @@ const serverComponentRegistry = {
|
|
|
11337
11426
|
...buildServerRegistryFromEntries(runtimeBackedBlockServerEntries)
|
|
11338
11427
|
};
|
|
11339
11428
|
//#endregion
|
|
11340
|
-
export {
|
|
11429
|
+
export { sectionHeaderLayoutNodes as $, normalizeLocationMapSource as $t, eventRegistrationBlockDefinition as A, lookSlot as At, markEditableSurfaceForwarding as B, PUBLIC_DOWNLOAD_MEDIA_TYPES as Bt, cartBlockDefinition as C, resolveRepeaterGridColumnFieldId as Cn, text as Ct, eventCalendarBlockDefinition as D, linkSchema as Dn, lookLeadSlotTransform as Dt, shopBlockDefinition as E, RESOLVED_INTERNAL_LINK_ENTITY_TYPES as En, lookCarouselRegionTransform as Et, cardListPhotoNumberFields as F, createSdkSelectField as Ft, normalizeMailingListBlockContent as G, testimonialsReadiness as Gt, desktopOnlyDisplay as H, chosenString as Ht, cardListPresentationBindings as I, createSiteOptionSelectField as It, createBlockManifest as J, pageTemplateFromEntry as Jt, formBlockDefinition as K, admitReadinessFacts as Kt, cardListSectionActionFields as L, normalizeSelectSource as Lt, FEATURE_CARD_ICON_TREATMENTS as M, composeFragments as Mt, cardListSectionAction as N, defineFragment as Nt, eventListingBlockDefinition as O, lookQuoteLimitTransform as Ot, cardListKnobFields as P, parseBlockIconValue as Pt, sectionHeaderFields as Q, normalizeLocationMapProps as Qt, normalizeCardListContent as R, parseFieldDefinition as Rt, checkoutBlockDefinition as S, parseRepeaterGridInteger as Sn, stack as St, productListBlockDefinition as T, resolveRepeaterGridSpanFieldId as Tn, when as Tt, mobileOnlyDisplay as U, galleryReadiness as Ut, splitPositioningClasses as V, augmentManifest as Vt, teamMemberCardBiographyFallback as W, teamReadiness as Wt, withApiBindings as X, LOCATION_MAP_DEFAULTS as Xt, formEmbedFragment as Y, unavailableReadinessFact as Yt, formCopyFragment as Z, LOCATION_MAP_LIMITS as Zt, publicAppointmentLocationSchema as _, ICON_CONFIG as _n, media as _t, buildLoadedOfferingsPreviewListing as a, layoutField as an, accordionList as at, sanitizeNewsletterSignupPublicContent as b, DEFAULT_MEDIA_FIELD_KINDS as bn, richText as bt, HeaderSectionFrame as c, sectionStylesField as cn, button as ct, accordionIconColorStyle as d, createButtonGroup as dn, fileDownload as dt, resolveLocationMapLocation as en, resolveBackgroundColorValue as et, resolveAccordionIconStyle as f, createButtonVariantField as fn, form as ft, formatAppointmentPrice as g, ACCORDION_TRIGGER_LETTER_SPACING as gn, link as gt, formatAppointmentLocation as h, ACCORDION_TRIGGER_FONT_SCALE as hn, inline as ht, WeeklySlotAvailabilityView as i, eventDisplayFields as in, backgroundFrame as it, FEATURE_CARD_GENERATED_ICON_SIZE_PX as j, buildFragmentDataLoaders as jt, mapDrawingStyleBinding as k, lookSkinSlotTransform as kt, accordionItemPartSlots as l, BACKGROUND_POSITION_PRESET_VALUES as ln, carousel as lt, formatAppointmentDuration as m, ACCORDION_SPACING_MAP as mn, icon as mt, runtimeBackedBlockModes as n, columnsField as nn, styledContainer as nt, LocationMapSSR as o, cardStylesField as on, bind as ot, SectionNode as p, ACCORDION_OPEN_ACCENT_THICKNESS as pn, headerSection as pt, formDataSchema as q, loadedReadinessFact as qt, runtimeBackedBlockServerEntries as r, emptyStateField as rn, sectionContainer as rt, buildAppointmentServicesView as s, containerStylesField as sn, bookingForm as st, serverComponentRegistry as t, cardStylingFields as tn, styledSection as tt, accordionLookAttributes as u, getAnchorClasses as un, el as ut, publicAppointmentPricingSchema as v, ICON_SIZE_PX as vn, props as vt, productDetailBlockDefinition as w, resolveRepeaterGridRowFieldId as wn, videoEmbed as wt, giftingBlockDefinition as x, isAcceptedRepeaterGridSpan as xn, section as xt, newsletterSignupBlockDefinition as y, bindingSchema as yn, repeat as yt, composeHeaderSectionWrapperClassName as z, parseFieldDefinitions as zt };
|