@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,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { S as clsx } from "./ThemedButton-BMDHwnM6.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as buttonVariantIdSchema, o as isVariantRole, r as asSpecialVariantId, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-
|
|
2
|
+
import { d as buttonVariantIdSchema, o as isVariantRole, r as asSpecialVariantId, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-B0hJldSt.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../theme-core/src/buttons/affordanceSuppression.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as paletteColorsFromEntries, D as parseThemeColorToken, E as parseColorTokenParts, T as paletteModeSchema, _ as PALETTE_TOKEN_NAMES, c as buttonEffectApplicationSchema, g as VARIANT_ROLES, m as parseOpaqueButtonColourToken, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, x as normalizePaletteHex, y as hexColorSchema } from "./types-
|
|
2
|
+
import { C as paletteColorsFromEntries, D as parseThemeColorToken, E as parseColorTokenParts, T as paletteModeSchema, _ as PALETTE_TOKEN_NAMES, c as buttonEffectApplicationSchema, g as VARIANT_ROLES, m as parseOpaqueButtonColourToken, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, x as normalizePaletteHex, y as hexColorSchema } from "./types-B0hJldSt.mjs";
|
|
3
3
|
import { t as SURFACE_TRANSPORT_KEY } from "./surfaceTransportMarker-BuwkYxsI.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
//#region ../core/src/stable-json.ts
|
|
@@ -3198,6 +3198,19 @@ function worstCaseScrimContrast(input) {
|
|
|
3198
3198
|
if (foreground >= low && foreground <= high) return 1;
|
|
3199
3199
|
return Math.min(contrastRatio(input.foregroundHex, overWhite), contrastRatio(input.foregroundHex, overBlack));
|
|
3200
3200
|
}
|
|
3201
|
+
/**
|
|
3202
|
+
* The smallest scrim opacity, in hundredths, at which every foreground keeps
|
|
3203
|
+
* `threshold` contrast over any pixel. `null` when even an opaque scrim fails,
|
|
3204
|
+
* which means the foreground was never legible on the scrim colour itself.
|
|
3205
|
+
*/
|
|
3206
|
+
function minimumScrimOpacity(input) {
|
|
3207
|
+
const passes = (alpha) => input.foregroundHexes.every((foregroundHex) => worstCaseScrimContrast({
|
|
3208
|
+
foregroundHex,
|
|
3209
|
+
scrimHex: input.scrimHex,
|
|
3210
|
+
alpha
|
|
3211
|
+
}) >= input.threshold);
|
|
3212
|
+
return Array.from({ length: 101 }, (_, hundredths) => hundredths / 100).find(passes) ?? null;
|
|
3213
|
+
}
|
|
3201
3214
|
/** Shared samples for literal RGB washes and palette-token gradient veils. */
|
|
3202
3215
|
function gradientScrimSamples(gradient, alpha, palette) {
|
|
3203
3216
|
const literal = [...gradient.matchAll(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/g)].map((stop) => ({
|
|
@@ -3370,6 +3383,16 @@ const missingBackgroundTokens = {
|
|
|
3370
3383
|
background: "#ffffff",
|
|
3371
3384
|
foreground: "#000000"
|
|
3372
3385
|
};
|
|
3386
|
+
function toAccessibleColorSurfaceIntent(surface) {
|
|
3387
|
+
switch (surface) {
|
|
3388
|
+
case "base":
|
|
3389
|
+
case "muted-band":
|
|
3390
|
+
case "accent-band":
|
|
3391
|
+
case "brand-depth-band": return surface;
|
|
3392
|
+
case "hero-image": return null;
|
|
3393
|
+
default: return assertNeverSurface(surface);
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3373
3396
|
/** Keep every successful legacy recipe; only exhausted candidates need neutral ink. */
|
|
3374
3397
|
function resolveAccessibleSurfaceRecipe(input) {
|
|
3375
3398
|
const result = tryAccessibleSurfaceRecipe(input);
|
|
@@ -3610,6 +3633,9 @@ function missingBackgroundSurface(input) {
|
|
|
3610
3633
|
rejectedCandidates: input.rejectedCandidates
|
|
3611
3634
|
};
|
|
3612
3635
|
}
|
|
3636
|
+
function assertNeverSurface(value) {
|
|
3637
|
+
throw new Error(`Unhandled Theme V2 surface intent: ${String(value)}`);
|
|
3638
|
+
}
|
|
3613
3639
|
const surfaceOwners = /* @__PURE__ */ new WeakSet();
|
|
3614
3640
|
const preparedIndexOwners = /* @__PURE__ */ new WeakSet();
|
|
3615
3641
|
const derivedSurfaceValues = /* @__PURE__ */ new WeakMap();
|
|
@@ -3657,6 +3683,30 @@ function requireResolvedSurface(value) {
|
|
|
3657
3683
|
function resolveSurface(spec, context) {
|
|
3658
3684
|
return spec.kind === "section" ? resolveSectionSurface(spec.background, context) : preparedSurfaceValue(spec, context) ?? certifySurface(spec, context);
|
|
3659
3685
|
}
|
|
3686
|
+
/** Own one theme revision; derive its surface decisions without copying its inputs again. */
|
|
3687
|
+
function prepareThemeSurfaceRevision(inputTheme, selectSurfaces = () => [], solvedInks) {
|
|
3688
|
+
const snapshot = freezeOwnedThemeValue(structuredClone(inputTheme));
|
|
3689
|
+
const declarations = ownedThemeSnapshot(selectSurfaces(snapshot));
|
|
3690
|
+
const palette = freezeOwnedThemeValue(expandPalette(snapshot.palette, {
|
|
3691
|
+
arrangement: snapshot.skin !== void 0,
|
|
3692
|
+
marksFrom: snapshot.skinMarks
|
|
3693
|
+
}));
|
|
3694
|
+
const context = Object.freeze({
|
|
3695
|
+
kind: "concrete-palette",
|
|
3696
|
+
palette,
|
|
3697
|
+
colourIndex: preparePaletteColourIndex(palette),
|
|
3698
|
+
buttonSystem: snapshot.buttons,
|
|
3699
|
+
solvedInks
|
|
3700
|
+
});
|
|
3701
|
+
const preparedSurfaces = declarations.length === 0 ? void 0 : surfaceIndexFromOwnedInputs(declarations, context);
|
|
3702
|
+
return Object.freeze({
|
|
3703
|
+
theme: snapshot,
|
|
3704
|
+
context: Object.freeze({
|
|
3705
|
+
...context,
|
|
3706
|
+
preparedSurfaces
|
|
3707
|
+
})
|
|
3708
|
+
});
|
|
3709
|
+
}
|
|
3660
3710
|
function prepareSurfaceIndex(specs, context) {
|
|
3661
3711
|
const snapshot = ownedThemeSnapshot({
|
|
3662
3712
|
palette: context.palette,
|
|
@@ -4323,4 +4373,4 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
4323
4373
|
return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
|
|
4324
4374
|
}
|
|
4325
4375
|
//#endregion
|
|
4326
|
-
export {
|
|
4376
|
+
export { _classPrivateFieldGet2 as $, ELEVATION_OFFSET as A, oklabToOklch as At, resolveTokenOrCssColorValue as B, buttonShadow as C, paletteValueKeySchema as Ct, paddingDeclarations as D, _classPrivateFieldInitSpec as Dt, materializeRuntimeButtonAppearance as E, preparePaletteColourIndex as Et, mapButtonRoleAppearances as F, rgbColorValue as G, borderColorStyle as H, mapButtonVisualAppearances as I, textColorValue as J, surfaceRoleForTextToken as K, isCssColorLiteral as L, generateShadowValue as M, oklchToHexGamut as Mt, PUBLIC_BUTTON_ROLES as N, rgbToHex as Nt, BORDER_WIDTH_MAP as O, featuresFromHex as Ot, defineButtonStyleRecipe as P, srgbToOklab as Pt, solveSurfaceInks as Q, resolveOnColorForThemeToken as R, buttonRadius as S, paletteValueKey as St, buttonTypographyDeclarations as T, contrastRatio as Tt, cssVarValue as U, backgroundColorStyle as V, mergeStyles as W, safeTokenOr as X, resolveSurfaceForeground as Y, surfaceInkPublication as Z, contextualButtonSurfaceResetStyles as _, surfaceInkStyle as _t, requireResolvedSurface as a, expandPalette as at, formatButtonColourContractError as b, resolveConcreteColorHex as bt, surfaceButtonRequest as c, DEFAULT_SURFACE_TEXT_COLOR as ct, toAccessibleColorSurfaceIntent as d, surfaceForegroundDeclarations as dt, _classPrivateFieldSet2 as et, compositeHex as f, surfaceForegroundInputFromResolved as ft, actionVariableFallback as g, surfaceInkDeclarations as gt, scrimTone as h, surfaceForegroundValueWithOpacity as ht, prepareThemeSurfaceRevision as i, inkReference as it, FONT_SIZE_MAP as j, oklabToSrgb as jt, DEFAULT_BUTTON_SIZES as k, hexToRgb as kt, surfaceDecorationColors as l, SURFACE_FOREGROUND_CSS_VARS as lt, minimumScrimOpacity as m, surfaceForegroundValue as mt, parseSurfaceTree as n, certifyPaint as nt, resolveSurface as o, getTextColorForBackground as ot, gradientScrimSamples as p, surfaceForegroundStyle as pt, textColorStyle as q, prepareSurfaceIndex as r, contrastThresholdByPolicy as rt, serializeSurfaceTree as s, planForegroundHover as st, parseResolvedSurface as t, HOVER_TEXT_THRESHOLD as tt, surfaceTransportContext as u, SURFACE_INK_CSS_VARS as ut, compileButtonColourStates as v, freezeOwnedThemeValue as vt, buttonStateAppearanceDeclarations as w, requirePaletteColorsFromEntries as wt, buttonBorder as x, resolveOpaqueSurfaceHex as xt, BUTTON_CONTRAST_POLICY as y, ownedThemeSnapshot as yt, resolveThemeColorReferenceValue as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $r as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-Cilv5zdS.mjs";
|
|
2
|
+
import { $r as bookingPackageRequestKey, Ar as toSelectedCollectionOptionKind, Br as needsAppointmentQuestionsRefresh, Cr as prepareBookingSubmission, Dr as resolveBookingSiteId, Er as resolveBookingSelectedService, Es as unsafeAsSiteId, Fr as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, Ir as applyAppointmentBookingQuestionsEvent, Kr as restoreBookingQuestionsAnswers, Lr as appointmentQuestionsRefusal, Nr as projectSelectedAppointmentConsentIntoForm, Or as resolveDefaultBookingServiceId, Pr as resolveSelectedAppointmentConsent, Qr as bookingHasPackagePaymentChoices, Rr as deriveAppointmentBookingQuestions, Sr as parseBookingCurrencyInputToCents, Ti as resolveDateRuntimeContext, Tr as resolveBookingPaymentStep, Ur as decideBookingQuestionsRestoration, Vr as bookingQuestionsAnswerDraftSchema, Yr as BOOKING_FORM_DATA_RESERVED_KEYS, Zr as applyBookingPaymentAdmission, _n as bookingPresentation, ai as resolveBookingPaymentChoice, at as buildReviewedBookingPaymentViewModel, br as normalizeBookingFormConfig, ci as toBookingPurchasablePackages, dn as createSignInReturnDraftStore, dr as buildBookingFormInteractiveIslandProps, ei as bookingRequiresResourceSelection, fr as readOverrideServiceCategories, gr as getBookingSuccessCopy, hr as getBookingRedirectStateFromLocation, ii as resolveBookingPaymentAvailability, it as buildBookingPaymentSelectionViewModel, ji as leavePage, jr as formatCentsAsCurrencyInput, kr as selectedBookingCollectionOptionKind, l as formatValidity, li as getBookingServiceSlidingScale, ls as resolveBookingSignupOffer, mr as formatBookingSubmissionPreparationError, ni as resolveBookingPackagePaymentSelection, oi as resolveBookingPaymentMode, ot as paymentChoiceDetails, pr as deriveBookingFormViewState, qr as toBookingQuestionsAnswerDraft, ri as resolveBookingPackageSources, si as resolveBookingPurchasablePackages, st as paymentChoicePrice, ti as reconcileBookingPackagePurchase, wi as readRuntimeNow, wr as resolveAppointmentCheckoutVerificationState, xr as normalizeBookingServices, yr as isBookingServiceSlidingAmountInRange, zr as isAppointmentBookingQuestionsEvent } from "./display-Cl6mgSJa.mjs";
|
|
3
|
+
import { Ft as formatDate, Rt as formatDateTimeRange, U as isBookingRequirementConsentFieldId, Ut as resolveBookingDisplayContext, Vt as formatTimeZoneCityLabel, en as resolveBookingBusinessTimeZone, in as toUtcIsoDateTimeString, ln as formatCurrencyAmount, rn as parseUtcIsoDateTimeString, t as logger, tn as resolveBookingTimeZoneId, zt as formatTime } from "./noop-poI1m2yW.mjs";
|
|
4
|
+
import { F as unsafeAsAppointmentResourceId, I as unsafeAsAppointmentServiceId, S as formatCreditProductUnits, _ as clearWorkflowFeedback, g as okWith, m as err, o as checkBookingQuestionsAnswered, p as assertNever, v as reportWorkflowError, x as formatCreditProductBalance, y as reportWorkflowSuccess } from "./creditProducts-BTRX4edc.mjs";
|
|
5
|
+
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-BCumOTLY.mjs";
|
|
7
6
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
8
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
9
|
-
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-
|
|
10
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
7
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
8
|
+
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-BMDHwnM6.mjs";
|
|
9
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-Ccg6yfjq.mjs";
|
|
11
10
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
12
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
11
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-B65wFjqx.mjs";
|
|
13
12
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
14
13
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
15
14
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
16
|
-
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-
|
|
17
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
18
|
-
import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
15
|
+
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-BlaCItmH.mjs";
|
|
16
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Dew9UAEy.mjs";
|
|
17
|
+
import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-aaSicywS.mjs";
|
|
18
|
+
import { n as StepIndicator, t as BookingPanelArrangement } from "./BookingPanelArrangement-OgftZ9QC.mjs";
|
|
19
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-ByHedoBi.mjs";
|
|
20
|
+
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-D0dcPsRE.mjs";
|
|
21
21
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
22
22
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
23
23
|
import { z } from "zod";
|
|
@@ -1307,7 +1307,7 @@ function changesBookingPaymentFacts(event) {
|
|
|
1307
1307
|
}
|
|
1308
1308
|
function bookingSlidingAmountDefault(services, serviceId) {
|
|
1309
1309
|
const sliding = getBookingServiceSlidingScale(services.find((service) => service.id === serviceId) ?? null);
|
|
1310
|
-
return sliding?.suggestedAmount !== null && sliding?.suggestedAmount !== void 0 ?
|
|
1310
|
+
return sliding?.suggestedAmount !== null && sliding?.suggestedAmount !== void 0 ? formatCentsAsCurrencyInput(sliding.suggestedAmount) : "";
|
|
1311
1311
|
}
|
|
1312
1312
|
function planBookingNavigation(input) {
|
|
1313
1313
|
if (input.direction === "next") return planBookingNext(input);
|
|
@@ -2433,7 +2433,7 @@ function DateFieldLabel({ labelId }) {
|
|
|
2433
2433
|
return /* @__PURE__ */ jsx("span", {
|
|
2434
2434
|
className: "form-label",
|
|
2435
2435
|
id: labelId,
|
|
2436
|
-
children: "
|
|
2436
|
+
children: "Choose a date"
|
|
2437
2437
|
});
|
|
2438
2438
|
}
|
|
2439
2439
|
/** Focus is the only effect: newly loaded dates continue keyboard selection. */
|
|
@@ -2598,7 +2598,7 @@ const TimeSlotSelector = ({ value, onChange, slots, isLoading, dateContext, zone
|
|
|
2598
2598
|
/* @__PURE__ */ jsx("span", {
|
|
2599
2599
|
className: "form-label",
|
|
2600
2600
|
id: labelId,
|
|
2601
|
-
children: "
|
|
2601
|
+
children: "Choose a time"
|
|
2602
2602
|
}),
|
|
2603
2603
|
/* @__PURE__ */ jsx(TimeSlotZoneNote, {
|
|
2604
2604
|
id: noteId,
|
|
@@ -2860,7 +2860,7 @@ function BookingReviewIdentity({ booking }) {
|
|
|
2860
2860
|
/** Copy for one package the client can buy and use for this booking. */
|
|
2861
2861
|
function purchasablePackageRowCopy(item, serviceTitle) {
|
|
2862
2862
|
const heldWith = item.heldWithTeamMember;
|
|
2863
|
-
const sessions =
|
|
2863
|
+
const sessions = formatCreditProductUnits("appointment_package", item.creditsTotal);
|
|
2864
2864
|
return {
|
|
2865
2865
|
label: heldWith ? `${item.name} with ${heldWith.name}` : item.name,
|
|
2866
2866
|
details: [
|
|
@@ -2875,8 +2875,11 @@ function heldPackageRows(booking) {
|
|
|
2875
2875
|
return booking.payment.appointmentPackages.items.map((held) => ({
|
|
2876
2876
|
id: held.customerPassId,
|
|
2877
2877
|
label: held.passName,
|
|
2878
|
-
details: ["
|
|
2879
|
-
|
|
2878
|
+
details: ["This booking uses one session.", formatCreditProductBalance("appointment_package", {
|
|
2879
|
+
remaining: held.creditsRemaining,
|
|
2880
|
+
total: held.creditsTotal
|
|
2881
|
+
})],
|
|
2882
|
+
price: formatCreditProductUnits("appointment_package", 1),
|
|
2880
2883
|
selected: booking.payment.choice.kind === "held_package" && booking.payment.choice.customerPassId === held.customerPassId,
|
|
2881
2884
|
onSelect: () => booking.actions.selectAppointmentPackage(held.customerPassId)
|
|
2882
2885
|
}));
|
|
@@ -3320,10 +3323,18 @@ function toStringArray(value) {
|
|
|
3320
3323
|
}
|
|
3321
3324
|
//#endregion
|
|
3322
3325
|
//#region ../blocks/src/system/runtime/nodes/booking-form.default-ui.tsx
|
|
3326
|
+
function BookingStepPrompt({ presentation, as: Heading, className, id, children }) {
|
|
3327
|
+
return /* @__PURE__ */ jsx(presentation.promptAsHeading ? Heading : "p", {
|
|
3328
|
+
id,
|
|
3329
|
+
className: presentation.promptAsHeading ? className : "form-label",
|
|
3330
|
+
children
|
|
3331
|
+
});
|
|
3332
|
+
}
|
|
3323
3333
|
function formatBookingAmount(amount, currency) {
|
|
3324
3334
|
return formatCurrencyAmount(amount, currency, { decimals: "auto" });
|
|
3325
3335
|
}
|
|
3326
|
-
function HeadlessBookingDefaultForm({ booking, onSubmit }) {
|
|
3336
|
+
function HeadlessBookingDefaultForm({ booking, onSubmit, pageKind }) {
|
|
3337
|
+
const presentation = bookingPresentation(pageKind);
|
|
3327
3338
|
const currentStep = booking.currentStep;
|
|
3328
3339
|
const errorSummaryId = React.useId();
|
|
3329
3340
|
const currentStepIndex = currentStep?.visibleIndex ?? 0;
|
|
@@ -3341,14 +3352,16 @@ function HeadlessBookingDefaultForm({ booking, onSubmit }) {
|
|
|
3341
3352
|
currentStep: currentStepIndex + 1,
|
|
3342
3353
|
totalSteps: booking.steps.length,
|
|
3343
3354
|
stepLabels: booking.steps.map((step) => step.label),
|
|
3344
|
-
emitSharedClasses: true
|
|
3355
|
+
emitSharedClasses: true,
|
|
3356
|
+
labelAs: presentation.stepLabelAs
|
|
3345
3357
|
}) : null,
|
|
3346
3358
|
/* @__PURE__ */ jsx(DefaultQuestionsRefusal, { booking }),
|
|
3347
3359
|
/* @__PURE__ */ jsx("div", {
|
|
3348
3360
|
className: "step-content",
|
|
3349
3361
|
children: /* @__PURE__ */ jsx(DefaultBookingStepContent, {
|
|
3350
3362
|
booking,
|
|
3351
|
-
errorSummaryId
|
|
3363
|
+
errorSummaryId,
|
|
3364
|
+
presentation
|
|
3352
3365
|
})
|
|
3353
3366
|
}),
|
|
3354
3367
|
/* @__PURE__ */ jsx(DefaultBookingErrorSummary, {
|
|
@@ -3379,21 +3392,28 @@ function DefaultQuestionsRefusal({ booking }) {
|
|
|
3379
3392
|
children: presentation.message
|
|
3380
3393
|
});
|
|
3381
3394
|
}
|
|
3382
|
-
function DefaultBookingStepContent({ booking, errorSummaryId }) {
|
|
3395
|
+
function DefaultBookingStepContent({ booking, errorSummaryId, presentation }) {
|
|
3383
3396
|
const stepId = booking.currentStep?.id;
|
|
3384
3397
|
if (!stepId) return null;
|
|
3385
3398
|
switch (stepId) {
|
|
3386
|
-
case "service-selection": return /* @__PURE__ */ jsx(DefaultServiceSelectionStep, {
|
|
3399
|
+
case "service-selection": return /* @__PURE__ */ jsx(DefaultServiceSelectionStep, {
|
|
3400
|
+
booking,
|
|
3401
|
+
presentation
|
|
3402
|
+
});
|
|
3387
3403
|
case "datetime-selection": return /* @__PURE__ */ jsx(DefaultDateTimeSelectionStep, {
|
|
3388
3404
|
booking,
|
|
3389
|
-
errorSummaryId
|
|
3405
|
+
errorSummaryId,
|
|
3406
|
+
presentation
|
|
3407
|
+
});
|
|
3408
|
+
case "payment-selection": return /* @__PURE__ */ jsx(HeadlessBookingPaymentSelectionStep, {
|
|
3409
|
+
booking,
|
|
3410
|
+
presentation
|
|
3390
3411
|
});
|
|
3391
|
-
case "payment-selection": return /* @__PURE__ */ jsx(HeadlessBookingPaymentSelectionStep, { booking });
|
|
3392
3412
|
case "custom-fields": return /* @__PURE__ */ jsx(DefaultBookingDetailsStep, { booking });
|
|
3393
3413
|
default: return assertNever(stepId);
|
|
3394
3414
|
}
|
|
3395
3415
|
}
|
|
3396
|
-
function DefaultServiceSelectionStep({ booking }) {
|
|
3416
|
+
function DefaultServiceSelectionStep({ booking, presentation }) {
|
|
3397
3417
|
const services = booking.services.items;
|
|
3398
3418
|
const resources = booking.resources.items;
|
|
3399
3419
|
const selectedResourceId = booking.resources.selectedResourceId;
|
|
@@ -3403,7 +3423,9 @@ function DefaultServiceSelectionStep({ booking }) {
|
|
|
3403
3423
|
return /* @__PURE__ */ jsxs("div", {
|
|
3404
3424
|
className: "rb-reg-stack",
|
|
3405
3425
|
children: [
|
|
3406
|
-
showServiceSelect ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(
|
|
3426
|
+
showServiceSelect ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(BookingStepPrompt, {
|
|
3427
|
+
presentation,
|
|
3428
|
+
as: "h2",
|
|
3407
3429
|
className: "ab-title",
|
|
3408
3430
|
children: "Choose a service"
|
|
3409
3431
|
}), /* @__PURE__ */ jsx(DefaultServiceChoices, { booking })] }) : null,
|
|
@@ -3433,19 +3455,22 @@ function DefaultServiceSelectionStep({ booking }) {
|
|
|
3433
3455
|
booking,
|
|
3434
3456
|
resources,
|
|
3435
3457
|
selectedResourceId,
|
|
3436
|
-
allowAnyResource
|
|
3458
|
+
allowAnyResource,
|
|
3459
|
+
presentation
|
|
3437
3460
|
}) : null
|
|
3438
3461
|
]
|
|
3439
3462
|
});
|
|
3440
3463
|
}
|
|
3441
|
-
function DefaultResourceChoices({ allowAnyResource, booking, resources, selectedResourceId }) {
|
|
3464
|
+
function DefaultResourceChoices({ allowAnyResource, booking, resources, selectedResourceId, presentation }) {
|
|
3442
3465
|
const headingId = React.useId();
|
|
3443
3466
|
return /* @__PURE__ */ jsxs("div", {
|
|
3444
3467
|
className: "rb-reg-stack rb-reg-stack--sm",
|
|
3445
3468
|
role: "group",
|
|
3446
3469
|
"aria-labelledby": headingId,
|
|
3447
3470
|
children: [
|
|
3448
|
-
/* @__PURE__ */ jsxs(
|
|
3471
|
+
/* @__PURE__ */ jsxs(BookingStepPrompt, {
|
|
3472
|
+
presentation,
|
|
3473
|
+
as: "h3",
|
|
3449
3474
|
id: headingId,
|
|
3450
3475
|
className: "ab-subtitle",
|
|
3451
3476
|
children: ["Who would you like to see?", booking.resources.requiresSelection ? null : /* @__PURE__ */ jsx(OptionalMark, {})]
|
|
@@ -3514,7 +3539,7 @@ function BookingAvailabilityFeedback({ availability }) {
|
|
|
3514
3539
|
children: error
|
|
3515
3540
|
}) : null;
|
|
3516
3541
|
}
|
|
3517
|
-
function DefaultDateTimeSelectionStep({ booking, errorSummaryId }) {
|
|
3542
|
+
function DefaultDateTimeSelectionStep({ booking, errorSummaryId, presentation }) {
|
|
3518
3543
|
const selectedDate = booking.availability.selectedDate ?? "";
|
|
3519
3544
|
const selectedSlotKey = booking.availability.selectedSlot?.key ?? "";
|
|
3520
3545
|
const slots = deriveBookingSlotDisplayOptions({
|
|
@@ -3526,7 +3551,7 @@ function DefaultDateTimeSelectionStep({ booking, errorSummaryId }) {
|
|
|
3526
3551
|
return /* @__PURE__ */ jsxs("div", {
|
|
3527
3552
|
className: "rb-reg-stack",
|
|
3528
3553
|
children: [
|
|
3529
|
-
/* @__PURE__ */ jsx(BookingSelectedServiceSummary, { services: booking.services }),
|
|
3554
|
+
presentation.showSelectedServiceSummary ? /* @__PURE__ */ jsx(BookingSelectedServiceSummary, { services: booking.services }) : null,
|
|
3530
3555
|
/* @__PURE__ */ jsx(BookingAvailabilityFeedback, { availability: booking.availability }),
|
|
3531
3556
|
/* @__PURE__ */ jsx(DatePicker, {
|
|
3532
3557
|
dateContext: booking.availability.dateContext,
|
|
@@ -3585,7 +3610,7 @@ function paymentStepUnavailableMessage(booking) {
|
|
|
3585
3610
|
function paymentStepTitle(booking) {
|
|
3586
3611
|
return booking.payment.selection?.sectionTitle ?? "How would you like to pay?";
|
|
3587
3612
|
}
|
|
3588
|
-
function HeadlessBookingPaymentSelectionStep({ booking }) {
|
|
3613
|
+
function HeadlessBookingPaymentSelectionStep({ booking, presentation = bookingPresentation() }) {
|
|
3589
3614
|
const service = booking.services.selected;
|
|
3590
3615
|
const { perSessionOffered, perSessionOptions, otherRows, onlyOneWayToPay } = planPaymentStepChoices(booking);
|
|
3591
3616
|
const unavailableMessage = paymentStepUnavailableMessage(booking);
|
|
@@ -3600,7 +3625,9 @@ function HeadlessBookingPaymentSelectionStep({ booking }) {
|
|
|
3600
3625
|
children: [
|
|
3601
3626
|
/* @__PURE__ */ jsxs("div", {
|
|
3602
3627
|
className: "rb-reg-summary",
|
|
3603
|
-
children: [/* @__PURE__ */ jsx(
|
|
3628
|
+
children: [/* @__PURE__ */ jsx(BookingStepPrompt, {
|
|
3629
|
+
presentation,
|
|
3630
|
+
as: "h3",
|
|
3604
3631
|
className: "ab-subtitle",
|
|
3605
3632
|
children: paymentStepTitle(booking)
|
|
3606
3633
|
}), /* @__PURE__ */ jsx("p", {
|
|
@@ -4023,11 +4050,16 @@ function getBookingRedirectLocationSnapshot() {
|
|
|
4023
4050
|
* Themed surface container for every booking view state (wizard, success,
|
|
4024
4051
|
* verifying). Styled by the shared registration-surface layer.
|
|
4025
4052
|
*/
|
|
4026
|
-
function BookingSurface({ id, className, children }) {
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
|
|
4030
|
-
children
|
|
4053
|
+
function BookingSurface({ id, className, pageKind, children }) {
|
|
4054
|
+
const classes = ["rb-reg-surface", className ?? ""].join(" ").trim();
|
|
4055
|
+
return /* @__PURE__ */ jsx(BookingPanelArrangement, {
|
|
4056
|
+
pageKind,
|
|
4057
|
+
children: /* @__PURE__ */ jsx("div", {
|
|
4058
|
+
id,
|
|
4059
|
+
...bookingPresentation(pageKind).panelAttributes,
|
|
4060
|
+
className: classes,
|
|
4061
|
+
children
|
|
4062
|
+
})
|
|
4031
4063
|
});
|
|
4032
4064
|
}
|
|
4033
4065
|
const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
@@ -4138,6 +4170,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
4138
4170
|
setLocalCustomerEmail
|
|
4139
4171
|
});
|
|
4140
4172
|
if (viewState.kind === "success") return /* @__PURE__ */ jsx(BookingSurface, {
|
|
4173
|
+
pageKind: render.hydration.pageKind,
|
|
4141
4174
|
id: bookingAnchorId,
|
|
4142
4175
|
className: render.display.className,
|
|
4143
4176
|
children: /* @__PURE__ */ jsx(BookingFormCompletion, {
|
|
@@ -4153,6 +4186,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
4153
4186
|
})
|
|
4154
4187
|
});
|
|
4155
4188
|
if (viewState.kind === "verifying") return /* @__PURE__ */ jsx(BookingSurface, {
|
|
4189
|
+
pageKind: render.hydration.pageKind,
|
|
4156
4190
|
id: bookingAnchorId,
|
|
4157
4191
|
className: render.display.className,
|
|
4158
4192
|
children: /* @__PURE__ */ jsx(FeedbackMessage, {
|
|
@@ -4166,6 +4200,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
4166
4200
|
})
|
|
4167
4201
|
});
|
|
4168
4202
|
if (viewState.kind === "timeout") return /* @__PURE__ */ jsxs(BookingSurface, {
|
|
4203
|
+
pageKind: render.hydration.pageKind,
|
|
4169
4204
|
id: bookingAnchorId,
|
|
4170
4205
|
className: render.display.className,
|
|
4171
4206
|
children: [/* @__PURE__ */ jsx(FeedbackMessage, {
|
|
@@ -4185,6 +4220,7 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
4185
4220
|
})]
|
|
4186
4221
|
});
|
|
4187
4222
|
return /* @__PURE__ */ jsx(BookingSurface, {
|
|
4223
|
+
pageKind: render.hydration.pageKind,
|
|
4188
4224
|
id: bookingAnchorId,
|
|
4189
4225
|
className: render.display.className,
|
|
4190
4226
|
children: /* @__PURE__ */ jsxs(AppointmentNavigationContent, {
|
|
@@ -4211,7 +4247,8 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
4211
4247
|
}) : null,
|
|
4212
4248
|
/* @__PURE__ */ jsx(HeadlessBookingDefaultForm, {
|
|
4213
4249
|
booking,
|
|
4214
|
-
onSubmit: handleComplete
|
|
4250
|
+
onSubmit: handleComplete,
|
|
4251
|
+
pageKind: render.hydration.pageKind
|
|
4215
4252
|
})
|
|
4216
4253
|
]
|
|
4217
4254
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as BookingFormClient } from "./booking-form.client-DdqNQNCa.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BdmzM3D5.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-DnaJ8PQc.mjs";
|
|
7
7
|
import "react";
|
|
8
8
|
import { jsx } from "react/jsx-runtime";
|
|
9
9
|
//#region src/rendering/islands/enhancers/bookingForm.tsx
|
package/dist/client/bookings.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $ as resolveHeadlessEventRegistrationStatus,
|
|
3
|
-
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-
|
|
4
|
-
import { R as publicEventSchema } from "./noop-
|
|
5
|
-
import {
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
7
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
2
|
+
import { $ as resolveHeadlessEventRegistrationStatus, Di as createHostedBlockApiConfig, Jt as getSingleSelectedPricingOptionId, Q as resolveEventRegistrationSubmitPlan, Xr as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Y as deriveEventRegistrationSteps, Z as normalizeEventRegistrationMaxTickets, Zn as resolveRuntimeEventDestination, bn as resolveRegistrationDisplay, br as normalizeBookingFormConfig, et as resolveHeadlessEventRegistrationView, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, wi as readRuntimeNow, xr as normalizeBookingServices, zi as normalizeEventRegistrationPageSurfaceSubject } from "./display-Cl6mgSJa.mjs";
|
|
3
|
+
import { a as useHeadlessBookingFlow, i as HeadlessBookingProvider$1, o as createBookingBlockApiConfig, r as HeadlessBookingPaymentSelectionStep$1, s as getAppointmentBookingOverrideInput, t as BookingFormClient$1 } from "./booking-form.client-DdqNQNCa.mjs";
|
|
4
|
+
import { R as publicEventSchema } from "./noop-poI1m2yW.mjs";
|
|
5
|
+
import { p as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
7
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-D5J3DR0x.mjs";
|
|
8
8
|
import * as React$1 from "react";
|
|
9
9
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
10
10
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|