@riverbankcms/sdk 0.170.0 → 0.171.1
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-D-6cWDDC.d.ts} +1 -1
- package/dist/_dts/{Page-BSZjbeRK.d.ts → Page-4jkUDm4D.d.ts} +13 -11
- package/dist/_dts/{SdkPreviewMode-BZpPBMcu.d.ts → SdkPreviewMode-DEvzvovi.d.ts} +4 -3
- package/dist/_dts/{client-x82SZgwK.d.ts → client-CXPH5esD.d.ts} +32 -1
- package/dist/_dts/{content-types-CODkxsZy.d.ts → content-types-DsCr4-ny.d.ts} +3 -3
- package/dist/_dts/{contracts-Lyfhmbjf.d.ts → contracts-BlmXM7xP.d.ts} +5 -3
- package/dist/_dts/{footerPageOutline-BShG2GAV.d.ts → footerPageOutline-BA0DnxWU.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DLhUW3xK.d.ts → generatePageMetadata-B7IRJCFG.d.ts} +2 -2
- package/dist/_dts/{index-B7Mq5M6P.d.ts → index-B3gfKNI-.d.ts} +4 -4
- package/dist/_dts/{index-C3rMEJ5a.d.ts → index-BQPJbOkU.d.ts} +2 -2
- package/dist/_dts/{index-CstY6ZMa.d.ts → index-BZ8-c4iQ.d.ts} +3 -3
- package/dist/_dts/{index-B82pqQAC.d.ts → index-C9_OTCFQ.d.ts} +2 -2
- package/dist/_dts/{index-BisbMZTW.d.ts → index-DScYSl03.d.ts} +72 -36
- package/dist/_dts/{index-CCugONHM.d.ts → index-DlABXDte.d.ts} +1 -1
- package/dist/_dts/{index-DXc_ewhR.d.ts → index-Sua-7CF1.d.ts} +1 -1
- package/dist/_dts/{loadContent-BoqtbbhP.d.ts → loadContent-Dx4fW3Pa.d.ts} +7 -7
- package/dist/_dts/{request-CJ_ClHLv.d.ts → request-DUTkELQn.d.ts} +66062 -63545
- package/dist/_dts/{resolveBlockData-DFExYkJ4.d.ts → resolveBlockData-Cze35i_N.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-D-WvpC_d.d.ts → resolvePageContent-zf6-E-C3.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-990t4t99.d.ts → types-BCzfYDW2.d.ts} +7 -7
- package/dist/_dts/{types-CbjK5ZLy.d.ts → types-CPHk5Voq.d.ts} +2 -2
- package/dist/_dts/{types-CpuxuS40.d.ts → types-JD-36x3P.d.ts} +3 -3
- package/dist/_dts/{validation-BN95LiS0.d.ts → validation-0MyQlzWJ.d.ts} +17 -17
- package/dist/client/{BlocksIslandsHydrator-B1Tkg-ZW.mjs → BlocksIslandsHydrator-vTHQyBQF.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-Br1VyHkP.mjs → BookingMailingListNote-Blge9FJo.mjs} +7 -7
- package/dist/client/{StepIndicator-BK0GEDoP.mjs → BookingPanelArrangement-wm6eeuin.mjs} +16 -4
- package/dist/client/{BookingQuestionFields-LLGCWjvU.mjs → BookingQuestionFields-BlaCItmH.mjs} +5 -5
- package/dist/client/{CalendarNavigationChevron-CH7z2m47.mjs → CalendarNavigationChevron-DRH9qFny.mjs} +7 -7
- package/dist/client/{CheckboxChoice-W_uiRgDK.mjs → CheckboxChoice-B65wFjqx.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-Cilv5zdS.mjs → DemoBookingPortalAccess-DPGZArG9.mjs} +7 -7
- package/dist/client/{EventCalendar.client-LXUHJEi7.mjs → EventCalendar.client-FGg6yCLH.mjs} +9 -9
- package/dist/client/{EventCombined.client-DpugEJLB.mjs → EventCombined.client-218_Gqgp.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-Cf-HRHtb.mjs → EventEmbeddedCheckoutStep-DKKRCuta.mjs} +1 -1
- package/dist/client/{EventItem-gFuZn-dE.mjs → EventItem-DKdZSW_R.mjs} +10 -7
- package/dist/client/{EventListWeekNavigation-D-kLg1jQ.mjs → EventListWeekNavigation-DZJ5qBhg.mjs} +1 -1
- package/dist/client/{EventListing.client-BNACUaxV.mjs → EventListing.client-CCdsrqHc.mjs} +3 -3
- package/dist/client/{EventListing.view-CtVfe3VG.mjs → EventListing.view-BVoHnVZA.mjs} +42 -396
- package/dist/client/{EventRegistrationPayment-CqH3hE-k.mjs → EventRegistrationPayment-BVxHCnxs.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-CT4HaEMr.mjs} +2706 -2441
- package/dist/client/{ProtectedSubmitButton-C3H26pN9.mjs → ProtectedSubmitButton-AOUzjDK9.mjs} +1 -1
- package/dist/client/StepIndicator-DRJy4eU3.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-BnyVRqdU.mjs} +73 -26
- package/dist/client/{accordion-DMItWylU.mjs → accordion-BOApxi9U.mjs} +1 -1
- package/dist/client/{booking-form.client-wd71DG19.mjs → booking-form.client-DDf8Lmo5.mjs} +79 -42
- package/dist/client/{bookingForm-Cyr2qeS1.mjs → bookingForm-DWrgG-Xx.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/boxStyleClassNames-7MVCNWgc.mjs +369 -0
- package/dist/client/{carousel-B5-Hzzif.mjs → carousel-DeI76SEP.mjs} +2 -2
- package/dist/client/{carousel.client-eSSr1oYA.mjs → carousel.client-YF4mUK5t.mjs} +1 -1
- package/dist/client/{cart-wlRXnOjO.mjs → cart-D_uxULCO.mjs} +3 -3
- package/dist/client/{cart.client-CfpnxTUZ.mjs → cart.client-BxSMse88.mjs} +1 -1
- package/dist/client/{checkout-Dnu9W8IA.mjs → checkout-DIbh4g5e.mjs} +3 -3
- package/dist/client/{checkout.client-ovtyXyn0.mjs → checkout.client-x4Lkw8-E.mjs} +1 -1
- package/dist/client/{checkoutUrls-CY8qywXl.mjs → checkoutUrls-DqN3L-kl.mjs} +1 -1
- package/dist/client/client.mjs +656 -220
- 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-CP9l112u.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-ChgDe9Da.mjs} +3186 -81
- package/dist/client/{enhanceHeaderSection-D7gRy-pL.mjs → enhanceHeaderSection-BEjg_h_6.mjs} +4 -4
- package/dist/client/{event-details.client-DZZaoCUc.mjs → event-details.client-COmbQ3mc.mjs} +3 -2
- package/dist/client/{event-registration.client-CLBdHUfd.mjs → event-registration.client-BvQG3qEY.mjs} +48 -34
- package/dist/client/{eventCalendar-B4VbblGN.mjs → eventCalendar-DiitbUpV.mjs} +4 -4
- package/dist/client/{eventCombined-e2AvbA0u.mjs → eventCombined-Da9Z8KDq.mjs} +4 -4
- package/dist/client/{eventDetails-DIJYMzVg.mjs → eventDetails-Cf-kg7d6.mjs} +2 -2
- package/dist/client/{eventListing-C0bpAR1t.mjs → eventListing-xwXgVp7a.mjs} +4 -4
- package/dist/client/{eventRegistration-DyseP_sY.mjs → eventRegistration-hlFYlgTA.mjs} +4 -4
- package/dist/client/{form-Cfl8d6qc.mjs → form-ERv_X_oZ.mjs} +3 -3
- package/dist/client/{form.client-D3_RF29v.mjs → form.client-Cz24FYNj.mjs} +5 -5
- package/dist/client/{form.parts-DWLf_3PF.mjs → form.parts-DeaH4kIe.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-CJvt0ZP4.mjs} +2 -2
- package/dist/client/{newsletter-form.client-IfLup4o0.mjs → newsletter-form.client-WuGDEzdD.mjs} +6 -6
- package/dist/client/{newsletter-form.parts-DDD-LRyW.mjs → newsletter-form.parts-DhnW6tdB.mjs} +2 -2
- package/dist/client/{newsletterForm-Bn7HVbuq.mjs → newsletterForm-DxG7NV8U.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-DsSfbmdV.mjs} +1 -1
- package/dist/client/{product-list.client-C627X8DQ.mjs → product-list.client-Byzow88i.mjs} +1 -1
- package/dist/client/{productDetail-B-K_hd7Y.mjs → productDetail-iXkmQpxG.mjs} +3 -3
- package/dist/client/{productList-BNZAsfaP.mjs → productList-HoFGQXFl.mjs} +3 -3
- package/dist/client/{propsDecoder-Dc8j5i79.mjs → propsDecoder-CH2-LJME.mjs} +8 -4
- package/dist/client/{registry.server-CBg2M6Uj.mjs → registry.server-ed20Q7bV.mjs} +1021 -931
- 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-CBUO-xuz.mjs} +1 -1
- package/dist/client/{runtimeResponse-BGU8sMZY.mjs → runtimeResponse-3brbt2Jq.mjs} +1 -1
- package/dist/client/runtimeResponse-CTarP5K6.mjs +3 -0
- package/dist/client/{shop-PgmiVKSV.mjs → shop-DXyeSNgi.mjs} +3 -3
- package/dist/client/{shop-commerce-DkgvZAQS.mjs → shop-commerce--klkHNzu.mjs} +13 -13
- package/dist/client/{shop-commerce-store-D9CHihQv.mjs → shop-commerce-store-BdpIWdc4.mjs} +1 -1
- package/dist/client/{shop.client-DDFRt6OU.mjs → shop.client-Sv7QVDmj.mjs} +13 -13
- package/dist/client/{shop.interactive-BH0xDlMF.mjs → shop.interactive-C0IjiWOs.mjs} +89 -19
- package/dist/client/{shopShared-BEfD0e4m.mjs → shopShared-Jt4TzcAG.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-GsDrJxxw.mjs → timetableModel-BxbnEJCi.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-dToQs9oY.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-CD82QX5i.mjs → useDiscountCodeUi-C_aa_H69.mjs} +1 -1
- package/dist/client/{useEventPagination-DGl4Jeuz.mjs → useEventPagination--MFZBoJt.mjs} +7 -7
- package/dist/client/{view-CgComegl.mjs → view-C_brMDU2.mjs} +3 -3
- package/dist/client/{view-oToSpu1N.mjs → view-DhEwiTJG.mjs} +121 -28
- 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-OwAxA2C0.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-CKjYUp_E.mjs → MapLibreEditMap-CaUOTCSh.mjs} +2 -2
- package/dist/preview-next/client/{ArrangementLookControls-DJQrgD5f.mjs → PageSectionToolbar-Dfi8Y3AI.mjs} +660 -359
- package/dist/preview-next/client/{PreviewEditorSidebar-DWU6X6Y-.mjs → PreviewEditorSidebar-DJlX4sXP.mjs} +3597 -3217
- package/dist/preview-next/client/{PreviewEditorUI-C-X0ptC3.mjs → PreviewEditorUI-FVAibBlC.mjs} +126 -138
- package/dist/preview-next/client/{PreviewShell-C1WUNsj9.mjs → PreviewShell-9eAon7Z8.mjs} +21 -11
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Cs2QFT7k.mjs → SdkPreviewModeRuntime-Byf-KW1x.mjs} +95 -404
- package/dist/preview-next/client/{SiteChromeCustomizeButton-CcZ_ERvZ.mjs → SiteChromeCustomizeButton-eU-zMftO.mjs} +2507 -364
- 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-X0DjcFij.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CSs9S8wr.mjs → previewAssistantSlot-3FZrzbK8.mjs} +6961 -6657
- package/dist/preview-next/client/{previewChromeRoot-B2OTurZH.mjs → previewChromeRoot-C4gyNQXE.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-CBIwYDyi.mjs → sdk-runtime-DtyRbz4E.mjs} +2 -2
- package/dist/preview-next/client/{useAutosaveStatus-DoWvGNPA.mjs → useAutosaveStatus-OIMkhbkP.mjs} +2 -2
- package/dist/preview-next/client/{useBlockCustomizeControls-WOs8Atje.mjs → useOpenBlockForSetup-BNG9P9sM.mjs} +134 -6
- package/dist/preview-next/container-responsive.css +43 -0
- package/dist/preview-next/editor-base.css +14 -4
- 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-BLY4ycq6.mjs} +563 -190
- package/dist/server/{Block.shared-Dx4j9CJT.mjs → Block.shared-BC3jPIP4.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-B0IfeNNZ.mjs → ThemeScopeCore-B7Ey6AWT.mjs} +4 -4
- package/dist/server/{accessibleSurfaces-D0q5tLSW.mjs → accessibleSurfaces-BxsHs-jf.mjs} +52 -2
- package/dist/server/bindings-xQ9v3zrn.mjs +1802 -0
- package/dist/server/{block-kinds-CdI7NvAW.mjs → block-kinds-DkzOr19P.mjs} +2 -0
- package/dist/server/{client-Djjv-NuA.mjs → client-DCwLR0kQ.mjs} +654 -218
- 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-C4I3ltU_.mjs +2310 -0
- package/dist/server/{loadPage-QXSdPSYY.mjs → loadPage-COvxWN0r.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-QiUjZmEV.mjs} +2 -2
- package/dist/server/{overrideResolution-CMNx5tQg.mjs → overrideResolution-BqQg6Iws.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-CVCGTj5S.mjs} +306 -287
- package/dist/server/{pageRuntimeSupport-B2laBtff.mjs → pageRuntimeSupport-C7Be9suN.mjs} +48 -35
- package/dist/server/{pageShared-CE9EBNSH.mjs → pageShared-H_bSBPLd.mjs} +848 -315
- package/dist/server/parseThemeForPersistence-Bk0o95m6.mjs +52 -0
- package/dist/server/{prebuild-FBA6Y1K7.mjs → prebuild-HQNOeCs9.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-yL2hB2l_.mjs → prefetchBlockData-CbRsnhta.mjs} +4 -3
- package/dist/server/{registry-Djrj9gWy.mjs → registry-CaeRTf4E.mjs} +4014 -2007
- 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-CUMjWbXQ.mjs} +4 -3
- package/dist/server/{resolveButtonColourStates-Cn6j8Ee0.mjs → resolveButtonColourStates-euZnRMIu.mjs} +23 -24
- 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-CxBsE9Dv.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-CvmhnkDr.mjs} +9 -9
- package/dist/server/{version-LMwnoksN.mjs → version-Clp2evCf.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/client/runtimeResponse-D2LT--Gj.mjs +0 -3
- 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
|
|
@@ -651,8 +651,12 @@ function generateShades(hexColor, name) {
|
|
|
651
651
|
}
|
|
652
652
|
//#endregion
|
|
653
653
|
//#region ../theme-core/src/palette/neutralScale.ts
|
|
654
|
-
|
|
655
|
-
|
|
654
|
+
/**
|
|
655
|
+
* A neutral scale from near-white (`neutral-50`) to near-black (`neutral-950`)
|
|
656
|
+
* on every palette, light or dark. Readers that want "the ground" or "the
|
|
657
|
+
* text" ask the palette for those roles, not a fixed end of this scale.
|
|
658
|
+
*/
|
|
659
|
+
function generateNeutralScale({ steps = 11, warm = false } = {}) {
|
|
656
660
|
const shadeNames = [
|
|
657
661
|
50,
|
|
658
662
|
100,
|
|
@@ -667,18 +671,10 @@ function generateNeutralScale({ background, steps = 11, warm = false }) {
|
|
|
667
671
|
950
|
|
668
672
|
];
|
|
669
673
|
const count = Math.min(steps, shadeNames.length);
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
const hex = oklchToHexGamut(isDark ? mix(.06, .92, t) : mix(.98, .1, t), .02, warm ? 85 : 250);
|
|
675
|
-
const name = `neutral-${shadeName}`;
|
|
676
|
-
scale.push({
|
|
677
|
-
name,
|
|
678
|
-
hex
|
|
679
|
-
});
|
|
680
|
-
}
|
|
681
|
-
return scale;
|
|
674
|
+
return shadeNames.slice(0, count).map((shadeName, index) => ({
|
|
675
|
+
name: `neutral-${shadeName}`,
|
|
676
|
+
hex: oklchToHexGamut(mix(.98, .1, index / (count - 1)), .02, warm ? 85 : 250)
|
|
677
|
+
}));
|
|
682
678
|
}
|
|
683
679
|
function mix(a, b, t) {
|
|
684
680
|
return a + (b - a) * Math.max(0, Math.min(1, t));
|
|
@@ -751,13 +747,6 @@ function colorsToMap(palette) {
|
|
|
751
747
|
for (const c of palette.colors) map[c.name] = c.hex;
|
|
752
748
|
return map;
|
|
753
749
|
}
|
|
754
|
-
function isBackgroundDark(hex) {
|
|
755
|
-
try {
|
|
756
|
-
return featuresFromHex(hex).Y < .5;
|
|
757
|
-
} catch {
|
|
758
|
-
return false;
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
750
|
const nonShadeablePaletteRoleNames = /* @__PURE__ */ new Set([
|
|
762
751
|
"success",
|
|
763
752
|
"warning",
|
|
@@ -792,7 +781,6 @@ function expandBasePalette(palette) {
|
|
|
792
781
|
const base = colorsToMap(palette);
|
|
793
782
|
const expanded = { ...base };
|
|
794
783
|
generateNeutralScale({
|
|
795
|
-
background: base.background || base.surface || "#ffffff",
|
|
796
784
|
steps: 11,
|
|
797
785
|
warm: false
|
|
798
786
|
}).forEach((n) => {
|
|
@@ -807,8 +795,7 @@ function expandBasePalette(palette) {
|
|
|
807
795
|
if (base.text) expanded.body = base.text;
|
|
808
796
|
if (base.danger && !base.destructive) expanded.destructive = base.danger;
|
|
809
797
|
Object.assign(expanded, statusAliasTokens(expanded));
|
|
810
|
-
|
|
811
|
-
expanded.mutedText = palette.meta?.mode === "dark" || isDark ? expanded["neutral-600"] ?? "#666" : expanded["neutral-500"] ?? "#888";
|
|
798
|
+
expanded.mutedText = readableMutedText(expanded["neutral-500"] ?? "#888", base);
|
|
812
799
|
for (const [token, hex] of Object.entries({ ...expanded })) {
|
|
813
800
|
if (!hex || !isOnColorBackgroundCandidateToken(token)) continue;
|
|
814
801
|
const onToken = onColorTokenName(token);
|
|
@@ -817,6 +804,16 @@ function expandBasePalette(palette) {
|
|
|
817
804
|
}
|
|
818
805
|
return expanded;
|
|
819
806
|
}
|
|
807
|
+
/**
|
|
808
|
+
* The neutral step stays when it reads on the ground. Otherwise (a dark palette
|
|
809
|
+
* on a mid-tone ground, or a tinted light one) it's the ground-to-text blend
|
|
810
|
+
* with a 4.5:1 floor, heading for black or white when the text can't reach it.
|
|
811
|
+
*/
|
|
812
|
+
function readableMutedText(step, base) {
|
|
813
|
+
const ground = base.background || base.surface;
|
|
814
|
+
if (!ground || contrastRatio(step, ground) >= 4.5) return step;
|
|
815
|
+
return deriveSurfaceMutedColor(ground, base.text && contrastRatio(base.text, ground) >= 4.5 ? base.text : getTextColorForBackground(ground));
|
|
816
|
+
}
|
|
820
817
|
/** Derived decoration colours never become editable palette swatches. */
|
|
821
818
|
function deriveSurfaceDecorationColors(ground, text, accent) {
|
|
822
819
|
const ink = getTextColorForBackground(ground);
|
|
@@ -3198,6 +3195,19 @@ function worstCaseScrimContrast(input) {
|
|
|
3198
3195
|
if (foreground >= low && foreground <= high) return 1;
|
|
3199
3196
|
return Math.min(contrastRatio(input.foregroundHex, overWhite), contrastRatio(input.foregroundHex, overBlack));
|
|
3200
3197
|
}
|
|
3198
|
+
/**
|
|
3199
|
+
* The smallest scrim opacity, in hundredths, at which every foreground keeps
|
|
3200
|
+
* `threshold` contrast over any pixel. `null` when even an opaque scrim fails,
|
|
3201
|
+
* which means the foreground was never legible on the scrim colour itself.
|
|
3202
|
+
*/
|
|
3203
|
+
function minimumScrimOpacity(input) {
|
|
3204
|
+
const passes = (alpha) => input.foregroundHexes.every((foregroundHex) => worstCaseScrimContrast({
|
|
3205
|
+
foregroundHex,
|
|
3206
|
+
scrimHex: input.scrimHex,
|
|
3207
|
+
alpha
|
|
3208
|
+
}) >= input.threshold);
|
|
3209
|
+
return Array.from({ length: 101 }, (_, hundredths) => hundredths / 100).find(passes) ?? null;
|
|
3210
|
+
}
|
|
3201
3211
|
/** Shared samples for literal RGB washes and palette-token gradient veils. */
|
|
3202
3212
|
function gradientScrimSamples(gradient, alpha, palette) {
|
|
3203
3213
|
const literal = [...gradient.matchAll(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/g)].map((stop) => ({
|
|
@@ -3370,6 +3380,16 @@ const missingBackgroundTokens = {
|
|
|
3370
3380
|
background: "#ffffff",
|
|
3371
3381
|
foreground: "#000000"
|
|
3372
3382
|
};
|
|
3383
|
+
function toAccessibleColorSurfaceIntent(surface) {
|
|
3384
|
+
switch (surface) {
|
|
3385
|
+
case "base":
|
|
3386
|
+
case "muted-band":
|
|
3387
|
+
case "accent-band":
|
|
3388
|
+
case "brand-depth-band": return surface;
|
|
3389
|
+
case "hero-image": return null;
|
|
3390
|
+
default: return assertNeverSurface(surface);
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3373
3393
|
/** Keep every successful legacy recipe; only exhausted candidates need neutral ink. */
|
|
3374
3394
|
function resolveAccessibleSurfaceRecipe(input) {
|
|
3375
3395
|
const result = tryAccessibleSurfaceRecipe(input);
|
|
@@ -3610,6 +3630,9 @@ function missingBackgroundSurface(input) {
|
|
|
3610
3630
|
rejectedCandidates: input.rejectedCandidates
|
|
3611
3631
|
};
|
|
3612
3632
|
}
|
|
3633
|
+
function assertNeverSurface(value) {
|
|
3634
|
+
throw new Error(`Unhandled Theme V2 surface intent: ${String(value)}`);
|
|
3635
|
+
}
|
|
3613
3636
|
const surfaceOwners = /* @__PURE__ */ new WeakSet();
|
|
3614
3637
|
const preparedIndexOwners = /* @__PURE__ */ new WeakSet();
|
|
3615
3638
|
const derivedSurfaceValues = /* @__PURE__ */ new WeakMap();
|
|
@@ -3657,6 +3680,30 @@ function requireResolvedSurface(value) {
|
|
|
3657
3680
|
function resolveSurface(spec, context) {
|
|
3658
3681
|
return spec.kind === "section" ? resolveSectionSurface(spec.background, context) : preparedSurfaceValue(spec, context) ?? certifySurface(spec, context);
|
|
3659
3682
|
}
|
|
3683
|
+
/** Own one theme revision; derive its surface decisions without copying its inputs again. */
|
|
3684
|
+
function prepareThemeSurfaceRevision(inputTheme, selectSurfaces = () => [], solvedInks) {
|
|
3685
|
+
const snapshot = freezeOwnedThemeValue(structuredClone(inputTheme));
|
|
3686
|
+
const declarations = ownedThemeSnapshot(selectSurfaces(snapshot));
|
|
3687
|
+
const palette = freezeOwnedThemeValue(expandPalette(snapshot.palette, {
|
|
3688
|
+
arrangement: snapshot.skin !== void 0,
|
|
3689
|
+
marksFrom: snapshot.skinMarks
|
|
3690
|
+
}));
|
|
3691
|
+
const context = Object.freeze({
|
|
3692
|
+
kind: "concrete-palette",
|
|
3693
|
+
palette,
|
|
3694
|
+
colourIndex: preparePaletteColourIndex(palette),
|
|
3695
|
+
buttonSystem: snapshot.buttons,
|
|
3696
|
+
solvedInks
|
|
3697
|
+
});
|
|
3698
|
+
const preparedSurfaces = declarations.length === 0 ? void 0 : surfaceIndexFromOwnedInputs(declarations, context);
|
|
3699
|
+
return Object.freeze({
|
|
3700
|
+
theme: snapshot,
|
|
3701
|
+
context: Object.freeze({
|
|
3702
|
+
...context,
|
|
3703
|
+
preparedSurfaces
|
|
3704
|
+
})
|
|
3705
|
+
});
|
|
3706
|
+
}
|
|
3660
3707
|
function prepareSurfaceIndex(specs, context) {
|
|
3661
3708
|
const snapshot = ownedThemeSnapshot({
|
|
3662
3709
|
palette: context.palette,
|
|
@@ -4323,4 +4370,4 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
4323
4370
|
return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
|
|
4324
4371
|
}
|
|
4325
4372
|
//#endregion
|
|
4326
|
-
export {
|
|
4373
|
+
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-CH2-LJME.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-ChgDe9Da.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-DPGZArG9.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-DqN3L-kl.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-C_aa_H69.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-Blge9FJo.mjs";
|
|
18
|
+
import { n as StepIndicator, t as BookingPanelArrangement } from "./BookingPanelArrangement-wm6eeuin.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-DDf8Lmo5.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-Dzjv2CpA.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-CH2-LJME.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-CBUO-xuz.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-ChgDe9Da.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-DDf8Lmo5.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-BVxHCnxs.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
|