@riverbankcms/sdk 0.171.0 → 0.172.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/dist/_dts/{BlocksIslandsHydrator-xuFmD41p.d.ts → BlocksIslandsHydrator-DtrzTJ77.d.ts} +1 -1
- package/dist/_dts/{Page-4fzXy8H9.d.ts → Page-DViYbakk.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-BlHgMsc8.d.ts → SdkPreviewMode-D-5OeDbT.d.ts} +2 -2
- package/dist/_dts/{client-BPoU758C.d.ts → client-DZBOzd3U.d.ts} +1 -2
- package/dist/_dts/{content-types-TnkhoSls.d.ts → content-types-DS3DrYn_.d.ts} +3 -3
- package/dist/_dts/{contracts-7wrMA79U.d.ts → contracts-C3QGPCUf.d.ts} +3 -3
- package/dist/_dts/{footerPageOutline-DaOsPQ_Q.d.ts → footerPageOutline-D9Q7VIul.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-D9aDEzKK.d.ts → generatePageMetadata-R7NeFT1u.d.ts} +2 -2
- package/dist/_dts/{index-DDKJfaLY.d.ts → index-BnMavhoh.d.ts} +2 -2
- package/dist/_dts/{index-585vn6qb.d.ts → index-C0zjLMAW.d.ts} +49 -38
- package/dist/_dts/{index-W9R3Bnf2.d.ts → index-CpOkfBt1.d.ts} +3 -3
- package/dist/_dts/{index-Cbw0IiY7.d.ts → index-Da4UMgbs.d.ts} +2 -2
- package/dist/_dts/{index-DNCDENic.d.ts → index-DkFV_1Bc.d.ts} +1 -1
- package/dist/_dts/{index-ChNbrcgD.d.ts → index-Dns7OHyl.d.ts} +1 -1
- package/dist/_dts/{index-CZKSUcDs.d.ts → index-MuMYjetm.d.ts} +4 -4
- package/dist/_dts/{loadContent-DPyNAJym.d.ts → loadContent-DJmXHzfi.d.ts} +7 -7
- package/dist/_dts/{request-jXTRN1Y4.d.ts → request-wQ28JWbr.d.ts} +66983 -65876
- package/dist/_dts/{resolveBlockData-BbvE-gsZ.d.ts → resolveBlockData-C-IP53u9.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-BBgih00D.d.ts → resolvePageContent-Cc4zqaEC.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 +3 -3
- 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 +3 -3
- 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 +2 -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 +18 -1
- package/dist/_dts/{types-kWvBwYK6.d.ts → types-CpjyP5I4.d.ts} +7 -7
- package/dist/_dts/{types-DEAKoDNi.d.ts → types-DrinAfeW.d.ts} +3 -3
- package/dist/_dts/{types-BXuVxDYo.d.ts → types-ZuZoGsZV.d.ts} +2 -2
- package/dist/_dts/{validation-BAO0_ntM.d.ts → validation-CIZ_fP5l.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DfMsMIej.mjs → BlocksIslandsHydrator-UFmQB1BE.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-aaSicywS.mjs → BookingMailingListNote-VjRYhx1c.mjs} +6 -6
- package/dist/client/{BookingPanelArrangement-OgftZ9QC.mjs → BookingPanelArrangement-DpqnRo-t.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BlaCItmH.mjs → BookingQuestionFields-CzOT8ZWo.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-iMWrY6Hz.mjs → CalendarNavigationChevron-CNckKZct.mjs} +7 -7
- package/dist/client/{CheckboxChoice-B65wFjqx.mjs → CheckboxChoice-b-PJLEXe.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-BCumOTLY.mjs → DemoBookingPortalAccess-CmZLVXOy.mjs} +6 -6
- package/dist/client/{EventCalendar.client-kh7mkYnW.mjs → EventCalendar.client-BU-SxLCn.mjs} +9 -9
- package/dist/client/{EventCombined.client-DXD5i0Ar.mjs → EventCombined.client-f28VltfY.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-DKKRCuta.mjs → EventEmbeddedCheckoutStep-B18VbNS_.mjs} +1 -1
- package/dist/client/{EventItem-BnwcoFQN.mjs → EventItem-sKBofjiW.mjs} +40 -14
- package/dist/client/{EventListWeekNavigation-DuG6z02f.mjs → EventListWeekNavigation-IAcax47T.mjs} +1 -1
- package/dist/client/{EventListing.client-18yfHrcr.mjs → EventListing.client-BEtnRvZr.mjs} +3 -3
- package/dist/client/{EventListing.view-BM7rTVSL.mjs → EventListing.view-BZ4l_rmT.mjs} +189 -73
- package/dist/client/{EventRegistrationPayment-D5J3DR0x.mjs → EventRegistrationPayment-BWb295cD.mjs} +9 -9
- package/dist/client/{LocationMapActions-QahdLtdE.mjs → LocationMapActions-Hsj2HC_1.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-Dy6UMuIw.mjs → MapDrawingSvg-C7E7Lyfa.mjs} +1 -1
- package/dist/client/{Page-DH2sm4Cf.mjs → Page-Ds1s3DuC.mjs} +1425 -490
- package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs} +1 -1
- package/dist/client/{StepIndicator-CsRlU46Y.mjs → StepIndicator-CSCyAaKY.mjs} +6 -6
- package/dist/client/{TabBarFragment-CsAufYwT.mjs → TabBarFragment-BqfRLojo.mjs} +1 -1
- package/dist/client/{ThemedButton-BMDHwnM6.mjs → ThemedButton-DuaYtnvG.mjs} +1 -1
- package/dist/client/{accessibleSurfaces-Bbn1-jJ8.mjs → accessibleSurfaces-OsAseM7H.mjs} +57 -42
- package/dist/client/{accordion-DT4MD3Np.mjs → accordion-DgwFZJSx.mjs} +1 -1
- package/dist/client/{booking-form.client-DdqNQNCa.mjs → booking-form.client-CKY9oksp.mjs} +33 -29
- package/dist/client/{bookingForm-CLN396HU.mjs → bookingForm-CsHhcdSF.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-iLF_3KX9.mjs → boxStyleClassNames-B1Z_TGAe.mjs} +1 -1
- package/dist/client/{carousel-DFLomCGm.mjs → carousel-0sw2Kc3a.mjs} +2 -2
- package/dist/client/{carousel.client-YF4mUK5t.mjs → carousel.client-h65clfUO.mjs} +1 -1
- package/dist/client/{cart-BozMM5NK.mjs → cart-CPfvMDGJ.mjs} +3 -3
- package/dist/client/{cart.client-CqOOxPbW.mjs → cart.client-BJBPUTmg.mjs} +1 -1
- package/dist/client/{checkout-CTWF5nbB.mjs → checkout-DU4JFjGT.mjs} +3 -3
- package/dist/client/{checkout.client-CpqxN8e0.mjs → checkout.client-BbNCO4xa.mjs} +1 -1
- package/dist/client/{checkoutUrls-Ccg6yfjq.mjs → checkoutUrls-BQ3OlWlM.mjs} +1 -1
- package/dist/client/client.mjs +151 -6
- package/dist/client/{context-Dzjv2CpA.mjs → context-xNC1Cyjw.mjs} +14 -1
- package/dist/client/{cta-pzQkBLgS.mjs → cta-CNVQHLKs.mjs} +53 -11
- package/dist/client/{dateFormatting-BfurxGwg.mjs → dateFormatting-B6ea-egy.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-D0dcPsRE.mjs → demoPortalMagicLink-BhjGxhX3.mjs} +1 -1
- package/dist/client/{display-Cl6mgSJa.mjs → display-B5DfNb6A.mjs} +1869 -333
- package/dist/client/{enhanceHeaderSection-CJCl0HJC.mjs → enhanceHeaderSection-BFcHLuqk.mjs} +139 -16
- package/dist/client/{event-details.client-Pn9Kxh3I.mjs → event-details.client-WHT5GLn2.mjs} +1 -1
- package/dist/client/{event-registration.client-BAmBdWXE.mjs → event-registration.client-CmnRKELC.mjs} +11 -11
- package/dist/client/{eventCalendar-C5Bh2L8L.mjs → eventCalendar-2NbdCyov.mjs} +4 -4
- package/dist/client/{eventCombined-dELKxxIe.mjs → eventCombined-D1lH1n2T.mjs} +4 -4
- package/dist/client/{eventDetails-Do9D_fJ_.mjs → eventDetails-BHvnF2Tw.mjs} +2 -2
- package/dist/client/{eventListing-B2HTUWLq.mjs → eventListing-EhSDk4UL.mjs} +4 -4
- package/dist/client/{eventRegistration-ByOJnqGc.mjs → eventRegistration-z_0jN_KS.mjs} +4 -4
- package/dist/client/{form-DX70QG-J.mjs → form-BfChzSkS.mjs} +3 -3
- package/dist/client/{form.client-CJoqBrS6.mjs → form.client-D1zehtPk.mjs} +4 -4
- package/dist/client/{form.parts-DTof9pL3.mjs → form.parts-rMDlUQIv.mjs} +3 -3
- package/dist/client/{formatDate-Cjouxh4Y.mjs → formatDate-ymSVT9Y5.mjs} +1 -1
- package/dist/client/gifting/client.mjs +3 -3
- package/dist/client/{headerSection-CJuPX_1K.mjs → headerSection-BX9bQ84k.mjs} +2 -2
- package/dist/client/{newsletter-form.client-CqzNjOft.mjs → newsletter-form.client-DMbuJCtJ.mjs} +5 -5
- package/dist/client/{newsletter-form.parts-DjJsFms2.mjs → newsletter-form.parts-BxrVsoI0.mjs} +2 -2
- package/dist/client/{newsletterForm-D1MHoPbh.mjs → newsletterForm-B_I3FJFS.mjs} +3 -3
- package/dist/client/{noop-poI1m2yW.mjs → noop-CamIX2yK.mjs} +17 -1
- package/dist/client/portal/client.mjs +231 -117
- package/dist/client/{product-detail.client-DOQ7El1d.mjs → product-detail.client-qxuiYCof.mjs} +1 -1
- package/dist/client/{product-list.client-CmxOZbzL.mjs → product-list.client-CDL-jihv.mjs} +1 -1
- package/dist/client/{productDetail-BN3zv5sa.mjs → productDetail-B97m0uZy.mjs} +3 -3
- package/dist/client/{productList-GN_Id4bF.mjs → productList-DE4vSSG_.mjs} +3 -3
- package/dist/client/{propsDecoder-BdmzM3D5.mjs → propsDecoder-BTde6Syh.mjs} +3 -3
- package/dist/client/{registry.server-BOyra8CA.mjs → registry.server-Cn8XjRte.mjs} +1464 -1183
- package/dist/client/rendering/client.mjs +27 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +22 -16
- package/dist/client/{richText-coerce-CtoGLZ_e.mjs → richText-coerce-Bcl3vTb4.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DnaJ8PQc.mjs → routeIslandApiConfig-BjRoLoMD.mjs} +1 -1
- package/dist/client/{runtimeResponse-BN8PoIVp.mjs → runtimeResponse-B-lrAGhX.mjs} +1 -1
- package/dist/client/{runtimeResponse-B1-cyLXt.mjs → runtimeResponse-CPcA8xSm.mjs} +1 -1
- package/dist/client/{shop-LjBLDBqF.mjs → shop-BC4H0oYT.mjs} +3 -3
- package/dist/client/{shop-commerce-B8aZTdRJ.mjs → shop-commerce-BsY7a71m.mjs} +12 -12
- package/dist/client/{shop-commerce-store-C1FtHYl7.mjs → shop-commerce-store-BZ5j90HD.mjs} +1 -1
- package/dist/client/{shop.client-D0qZ3KZp.mjs → shop.client-WgGVGelc.mjs} +12 -12
- package/dist/client/{shop.interactive-DAKyWK1B.mjs → shop.interactive-Bb67gPLL.mjs} +187 -81
- package/dist/client/{shopShared-CztcSe9i.mjs → shopShared-BE6TEk2A.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{timetableModel-D1jDTbms.mjs → timetableModel-Bbz_ECL5.mjs} +10 -10
- package/dist/client/{types-B0hJldSt.mjs → types-DjWUR_O6.mjs} +8 -2
- package/dist/client/{useAvailableSlots-ByHedoBi.mjs → useAvailableSlots-CdP14E_b.mjs} +2 -2
- package/dist/client/{useDiscountApply-CHGYDxdM.mjs → useDiscountApply-DvOSso2l.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Dew9UAEy.mjs → useDiscountCodeUi-B4fRd2jy.mjs} +1 -1
- package/dist/client/{useEventPagination-BpC7-ksE.mjs → useEventPagination-M3jC8lgP.mjs} +6 -6
- package/dist/client/{view-BxeiAL3c.mjs → view-B0TFnP4y.mjs} +198 -60
- package/dist/client/{view-ShYH3WXh.mjs → view-DNNNbnNj.mjs} +3 -3
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-CKe4cjZ4.mjs → EventEmbeddedCheckoutStep-aRJjq4x8.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-lW2aLGWd.mjs → LocationPickerEnvironment-D4F_5rnr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-C9InQJpd.mjs → MapLibreEditMap-BKMNxSEJ.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-DsSqwrMS.mjs → PageSectionToolbar-D59tHj_L.mjs} +320 -395
- package/dist/preview-next/client/{PreviewEditorSidebar-BEEWzXnU.mjs → PreviewEditorSidebar-CjOIZlUk.mjs} +761 -416
- package/dist/preview-next/client/{PreviewEditorUI-C86Out4V.mjs → PreviewEditorUI--kS9Cwsc.mjs} +126 -137
- package/dist/preview-next/client/PreviewLayoutContext-Dy0LwcHc.mjs +26 -0
- package/dist/preview-next/client/PreviewQueryProvider-BgIucg_5.mjs +21 -0
- package/dist/preview-next/client/{PreviewShell-CBWYjBvQ.mjs → PreviewShell-Bi8-rclb.mjs} +312 -63
- package/dist/preview-next/client/{SdkPreviewModeRuntime-o-mVqWLx.mjs → SdkPreviewModeRuntime-CWTUw-3L.mjs} +308 -135
- package/dist/preview-next/client/{SiteChromeCustomizeButton-H_ciMNHA.mjs → SiteChromeCustomizeButton-CrgS3I8d.mjs} +1936 -320
- package/dist/preview-next/client/{ThemedButton-CKYjeU_M.mjs → ThemedButton-CVYz7h68.mjs} +8 -2
- package/dist/preview-next/client/{lucide-react-DygTyy7K.mjs → lucide-react-BCNn8dEQ.mjs} +1 -1
- package/dist/preview-next/client/{previewAssistantSlot-CuOcsG_N.mjs → previewAssistantSlot-Caofnr1Z.mjs} +23441 -21340
- package/dist/preview-next/client/{previewChromeRoot-DPeV7KaP.mjs → previewChromeRoot-CbAI_jSH.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +5 -4
- package/dist/preview-next/client/sdk-runtime-DY65_hLk.mjs +6 -0
- package/dist/preview-next/client/{useAutosaveStatus-DNA1Q4L1.mjs → useAutosaveStatus-CakNU3lp.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BdnMlHC6.mjs → useOpenBlockForSetup-CCEMkosU.mjs} +126 -11
- package/dist/preview-next/container-responsive.css +215 -4
- 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-CtSgU8UZ.mjs → route-contract-DsKDQoVW.mjs} +147 -2
- package/dist/server/{Block.shared-ifgaBglp.mjs → Block.shared-D7Qy9F4a.mjs} +4 -4
- package/dist/server/{ThemeScopeCore-DGDOH6OU.mjs → ThemeScopeCore-D1NTXZdX.mjs} +15 -10
- package/dist/server/{accessibleSurfaces-BuPNCWAK.mjs → accessibleSurfaces-Dbd2__Le.mjs} +12 -11
- package/dist/server/{bindings-CiYpie1M.mjs → bindings-Bp6OnR3n.mjs} +109 -20
- package/dist/server/{block-kinds-DkzOr19P.mjs → block-kinds-BCY9z3oB.mjs} +1 -0
- package/dist/server/{client-ngWuFsmN.mjs → client-dROAfMRa.mjs} +149 -4
- package/dist/server/config-template-validation.mjs +3 -0
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-DeLQeJAZ.mjs → loadContent-zOIrtqz-.mjs} +19 -14
- package/dist/server/{loadPage-D4J747FQ.mjs → loadPage-vwFiq1Rk.mjs} +2 -2
- package/dist/server/next.mjs +6 -6
- package/dist/server/{opaqueSurface-ukEz1BaM.mjs → opaqueSurface-COEKXVwk.mjs} +2 -2
- package/dist/server/{overrideResolution-DSuVkpqm.mjs → overrideResolution-DjboggbB.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-DFv3h4Ib.mjs → pageRenderPlan-BR4t1rOw.mjs} +954 -337
- package/dist/server/{pageRuntimeSupport-yHaRNWMj.mjs → pageRuntimeSupport-BKo6XVK-.mjs} +3 -2
- package/dist/server/{pageShared-CAZD0LcY.mjs → pageShared-BJjptSGp.mjs} +1039 -853
- package/dist/server/{parseThemeForPersistence-Dl7LIBJq.mjs → parseThemeForPersistence-B18KDEue.mjs} +2 -2
- package/dist/server/{prebuild-BKOCND3b.mjs → prebuild-CntSkZQI.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-GIoExi8A.mjs → prefetchBlockData-BM9Ds0OQ.mjs} +2 -2
- package/dist/server/{registry-BogXzcOD.mjs → registry-wYH0LH5f.mjs} +7269 -4975
- 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-CT4YSBve.mjs → resolveBlockData-Bu_p4HxZ.mjs} +2 -2
- package/dist/server/{resolveButtonColourStates-DVISOQD9.mjs → resolveButtonColourStates-CCPUY9Xh.mjs} +53 -33
- package/dist/server/{schema-C92Q8y0-.mjs → schema-BFOqYIMQ.mjs} +2 -1
- package/dist/server/server.mjs +3 -3
- package/dist/server/theme-bridge.mjs +2 -2
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{validation-vSBCWU3w.mjs → validation-DAQdPDku.mjs} +4 -4
- package/dist/server/{version-Cw5vFmUY.mjs → version-DAB0O3yx.mjs} +1 -1
- package/dist/styles/index.css +1260 -15
- package/package.json +1 -1
- package/dist/preview-next/client/PreviewQueryProvider-BC0V7iAR.mjs +0 -43
- package/dist/preview-next/client/sdk-runtime-zTTFZ4MM.mjs +0 -5
package/dist/client/{ProtectedSubmitButton-AOUzjDK9.mjs → ProtectedSubmitButton-C-ql101B.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/ProtectedSubmitButton.tsx
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { I as resolveEventRegistrationEventSource,
|
|
3
|
-
import { Bi as
|
|
4
|
-
import {
|
|
2
|
+
import { I as resolveEventRegistrationEventSource, ct as closedRunCopy } from "./shop.interactive-Bb67gPLL.mjs";
|
|
3
|
+
import { Bi as normalizeEventRegistrationPageSurfaceSubject, Ln as eventDateOptions, Vi as resolveEventRegistrationScopedEvents, _n as bookingPresentation, ls as orderedLiveRunSessions, ss as firstLiveRunSessionStartMs, ur as groupPublicEventsByRun, us as resolveWholeSeriesBookingPhase } from "./display-B5DfNb6A.mjs";
|
|
4
|
+
import { It as formatDate, an as toUtcIsoDateTimeString } from "./noop-CamIX2yK.mjs";
|
|
5
5
|
import { N as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
6
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-
|
|
7
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
8
|
-
import { n as StepIndicator$1, t as BookingPanelArrangement } from "./BookingPanelArrangement-
|
|
6
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-B1Z_TGAe.mjs";
|
|
7
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
8
|
+
import { n as StepIndicator$1, t as BookingPanelArrangement } from "./BookingPanelArrangement-DpqnRo-t.mjs";
|
|
9
9
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
10
|
import React from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { S as clsx } from "./ThemedButton-DuaYtnvG.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-DjWUR_O6.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-DjWUR_O6.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);
|
|
@@ -1898,19 +1895,20 @@ function buttonStateAppearanceDeclarations(base, state, tokens, disabled = false
|
|
|
1898
1895
|
];
|
|
1899
1896
|
}
|
|
1900
1897
|
/** Surface paint is a context for the recipe, checked by the same colour owner. */
|
|
1901
|
-
function surfaceButtonSystem(system,
|
|
1902
|
-
return
|
|
1898
|
+
function surfaceButtonSystem(system, request) {
|
|
1899
|
+
return request === void 0 ? system : {
|
|
1903
1900
|
...system,
|
|
1904
|
-
variants: system.variants.map((variant) => variant.id === "primary" ? surfacePrimary(variant,
|
|
1901
|
+
variants: system.variants.map((variant) => variant.id === "primary" ? surfacePrimary(variant, request) : variant)
|
|
1905
1902
|
};
|
|
1906
1903
|
}
|
|
1907
1904
|
function withoutColourTransitions(effects) {
|
|
1908
1905
|
return effects.filter((effect) => effect.effectId !== "background-on-hover" && effect.effectId !== "darken-background" && effect.effectId !== "lighten-background");
|
|
1909
1906
|
}
|
|
1910
|
-
function surfacePrimary(variant,
|
|
1907
|
+
function surfacePrimary(variant, request) {
|
|
1911
1908
|
const background = {
|
|
1912
1909
|
type: "solid",
|
|
1913
|
-
colorToken:
|
|
1910
|
+
colorToken: request.primary,
|
|
1911
|
+
...request.primaryText ? { foregroundToken: request.primaryText } : {}
|
|
1914
1912
|
};
|
|
1915
1913
|
return {
|
|
1916
1914
|
...variant,
|
|
@@ -2607,7 +2605,7 @@ function resolveTreatment(input) {
|
|
|
2607
2605
|
foregroundCss: input.surface?.foregroundCss ?? surfaceForegroundValue(treatment.role)
|
|
2608
2606
|
}
|
|
2609
2607
|
};
|
|
2610
|
-
case "solid": return resolveSolid(input, treatment.colorToken);
|
|
2608
|
+
case "solid": return resolveSolid(input, treatment.colorToken, treatment.foregroundToken);
|
|
2611
2609
|
case "gradient": return resolveGradient(input, treatment);
|
|
2612
2610
|
}
|
|
2613
2611
|
}
|
|
@@ -2633,10 +2631,10 @@ function resolveFocusIndicator(colour) {
|
|
|
2633
2631
|
};
|
|
2634
2632
|
}
|
|
2635
2633
|
}
|
|
2636
|
-
function resolveSolid(input, backgroundToken) {
|
|
2634
|
+
function resolveSolid(input, backgroundToken, preferredForeground) {
|
|
2637
2635
|
const backgroundHex = paletteHex(input, backgroundToken);
|
|
2638
2636
|
if (!backgroundHex.ok) return backgroundHex;
|
|
2639
|
-
const ink = resolveSolidInk(input, backgroundToken, backgroundHex.hex);
|
|
2637
|
+
const ink = resolveSolidInk(input, backgroundToken, backgroundHex.hex, preferredForeground);
|
|
2640
2638
|
const boundary = input.surface ? validateButtonFillSeparation({
|
|
2641
2639
|
...input,
|
|
2642
2640
|
buttonPaint: backgroundHex.hex,
|
|
@@ -2649,9 +2647,23 @@ function resolveSolid(input, backgroundToken) {
|
|
|
2649
2647
|
colour: ink.colour
|
|
2650
2648
|
};
|
|
2651
2649
|
}
|
|
2652
|
-
/**
|
|
2653
|
-
|
|
2654
|
-
|
|
2650
|
+
/**
|
|
2651
|
+
* One solid fill's colours as any button paints them, for chrome that dresses
|
|
2652
|
+
* itself as a button outside the variant CSS (the header's inverted CTA): the
|
|
2653
|
+
* requested label when it reads, else the fill's on-colour, else black or white.
|
|
2654
|
+
*/
|
|
2655
|
+
function resolveSolidButtonColour(input, backgroundToken, preferredForeground) {
|
|
2656
|
+
return resolveSolid(input, backgroundToken, preferredForeground);
|
|
2657
|
+
}
|
|
2658
|
+
/** Preserve checked on-colours (a requested label colour first); a solid state's last resort belongs to its actual fill. */
|
|
2659
|
+
function resolveSolidInk(input, backgroundToken, backgroundHex, preferredForeground) {
|
|
2660
|
+
if (preferredForeground !== void 0) {
|
|
2661
|
+
const preferred = checkedSolidInk(input, backgroundToken, backgroundHex, preferredForeground);
|
|
2662
|
+
if (preferred) return preferred;
|
|
2663
|
+
}
|
|
2664
|
+
return checkedSolidInk(input, backgroundToken, backgroundHex, unsafeAsOpaqueButtonColourToken(solidForegroundToken(backgroundToken))) ?? blackOrWhiteSolidInk(backgroundToken, backgroundHex);
|
|
2665
|
+
}
|
|
2666
|
+
function checkedSolidInk(input, backgroundToken, backgroundHex, foregroundToken) {
|
|
2655
2667
|
const candidate = input.palette[foregroundToken];
|
|
2656
2668
|
if ((typeof candidate === "string" ? validateButtonTextContrast({
|
|
2657
2669
|
...input,
|
|
@@ -2669,6 +2681,9 @@ function resolveSolidInk(input, backgroundToken, backgroundHex) {
|
|
|
2669
2681
|
foregroundCss: tokenCss(foregroundToken)
|
|
2670
2682
|
}
|
|
2671
2683
|
};
|
|
2684
|
+
return null;
|
|
2685
|
+
}
|
|
2686
|
+
function blackOrWhiteSolidInk(backgroundToken, backgroundHex) {
|
|
2672
2687
|
const foregroundHex = pickBlackOrWhiteTextColor(backgroundHex);
|
|
2673
2688
|
return {
|
|
2674
2689
|
foregroundHex,
|
|
@@ -2871,7 +2886,7 @@ function resolveSurfaceButtonContext(input) {
|
|
|
2871
2886
|
surface: context.surface,
|
|
2872
2887
|
palette: input.palette,
|
|
2873
2888
|
colourIndex: input.colourIndex,
|
|
2874
|
-
buttonSystem: surfaceButtonSystem(input.buttonSystem, input.
|
|
2889
|
+
buttonSystem: surfaceButtonSystem(input.buttonSystem, input.primary)
|
|
2875
2890
|
});
|
|
2876
2891
|
}
|
|
2877
2892
|
function knownSurfaceButtonContext(input) {
|
|
@@ -3834,7 +3849,7 @@ function resolveOwnedSurface(paint, context, measuredBackdrop) {
|
|
|
3834
3849
|
const primaryButton = surfaceButtonRequest({
|
|
3835
3850
|
kind: "paint",
|
|
3836
3851
|
paint
|
|
3837
|
-
}, context)
|
|
3852
|
+
}, context);
|
|
3838
3853
|
if (paint.kind === "solid" && resolved.kind === "known" && resolved.provenance.kind === "measured") return {
|
|
3839
3854
|
...decision,
|
|
3840
3855
|
paint,
|
|
@@ -3908,7 +3923,7 @@ function surfaceButtons(paint, link, primaryToken, context, backgroundSamples) {
|
|
|
3908
3923
|
colourIndex: context.colourIndex,
|
|
3909
3924
|
buttonSystem: context.buttonSystem,
|
|
3910
3925
|
fallbackToken: context.compositeBase,
|
|
3911
|
-
primaryToken,
|
|
3926
|
+
primary: primaryToken,
|
|
3912
3927
|
withoutButtonSystem: "reset"
|
|
3913
3928
|
});
|
|
3914
3929
|
}
|
|
@@ -3957,7 +3972,7 @@ function resolveSectionSurface(background, context) {
|
|
|
3957
3972
|
surface,
|
|
3958
3973
|
palette: revision.palette,
|
|
3959
3974
|
buttonSystem: revision.buttonSystem,
|
|
3960
|
-
|
|
3975
|
+
primary: sectionPrimaryButtonToken(background, context),
|
|
3961
3976
|
fallbackToken: context.compositeBase,
|
|
3962
3977
|
withoutButtonSystem: "inherit"
|
|
3963
3978
|
});
|
|
@@ -3981,7 +3996,7 @@ function resolveSectionSurface(background, context) {
|
|
|
3981
3996
|
}
|
|
3982
3997
|
function sectionPrimaryButtonToken(background, context) {
|
|
3983
3998
|
if (background?.type !== "color" || typeof background.color !== "string") return void 0;
|
|
3984
|
-
return context.buttonSystem?.surfaceContexts?.[background.color]
|
|
3999
|
+
return context.buttonSystem?.surfaceContexts?.[background.color];
|
|
3985
4000
|
}
|
|
3986
4001
|
function surfaceDecorationColors(foreground, palette) {
|
|
3987
4002
|
if (foreground.kind !== "known" || foreground.provenance.kind !== "measured") return void 0;
|
|
@@ -4373,4 +4388,4 @@ function mapSurfaceTreeChildren(value, map) {
|
|
|
4373
4388
|
return isSurfaceTreeRecord(value) ? Object.fromEntries(Object.entries(value).map(([key, item]) => [key, map(item)])) : value;
|
|
4374
4389
|
}
|
|
4375
4390
|
//#endregion
|
|
4376
|
-
export {
|
|
4391
|
+
export { solveSurfaceInks as $, DEFAULT_BUTTON_SIZES as A, hexToRgb as At, resolveThemeColorReferenceValue as B, buttonRadius as C, paletteValueKey as Ct, materializeRuntimeButtonAppearance as D, preparePaletteColourIndex as Dt, buttonTypographyDeclarations as E, contrastRatio as Et, defineButtonStyleRecipe as F, srgbToOklab as Ft, mergeStyles as G, backgroundColorStyle as H, mapButtonRoleAppearances as I, textColorStyle as J, rgbColorValue as K, mapButtonVisualAppearances as L, FONT_SIZE_MAP as M, oklabToSrgb as Mt, generateShadowValue as N, oklchToHexGamut as Nt, paddingDeclarations as O, _classPrivateFieldInitSpec as Ot, PUBLIC_BUTTON_ROLES as P, rgbToHex as Pt, surfaceInkPublication as Q, isCssColorLiteral as R, buttonBorder as S, resolveOpaqueSurfaceHex as St, buttonStateAppearanceDeclarations as T, requirePaletteColorsFromEntries as Tt, borderColorStyle as U, resolveTokenOrCssColorValue as V, cssVarValue as W, resolveSurfaceForeground as X, textColorValue as Y, safeTokenOr as Z, contextualButtonSurfaceResetStyles as _, surfaceInkDeclarations as _t, requireResolvedSurface as a, inkReference as at, BUTTON_CONTRAST_POLICY as b, ownedThemeSnapshot as bt, surfaceButtonRequest as c, planForegroundHover as ct, toAccessibleColorSurfaceIntent as d, SURFACE_INK_CSS_VARS as dt, _classPrivateFieldGet2 as et, compositeHex as f, surfaceForegroundDeclarations as ft, actionVariableFallback as g, surfaceForegroundValueWithOpacity as gt, scrimTone as h, surfaceForegroundValue as ht, prepareThemeSurfaceRevision as i, contrastThresholdByPolicy as it, ELEVATION_OFFSET as j, oklabToOklch as jt, BORDER_WIDTH_MAP as k, featuresFromHex as kt, surfaceDecorationColors as l, DEFAULT_SURFACE_TEXT_COLOR as lt, minimumScrimOpacity as m, surfaceForegroundStyle as mt, parseSurfaceTree as n, HOVER_TEXT_THRESHOLD as nt, resolveSurface as o, expandPalette as ot, gradientScrimSamples as p, surfaceForegroundInputFromResolved as pt, surfaceRoleForTextToken as q, prepareSurfaceIndex as r, certifyPaint as rt, serializeSurfaceTree as s, getTextColorForBackground as st, parseResolvedSurface as t, _classPrivateFieldSet2 as tt, surfaceTransportContext as u, SURFACE_FOREGROUND_CSS_VARS as ut, compileButtonColourStates as v, surfaceInkStyle as vt, buttonShadow as w, paletteValueKeySchema as wt, formatButtonColourContractError as x, resolveConcreteColorHex as xt, resolveSolidButtonColour as y, freezeOwnedThemeValue as yt, resolveOnColorForThemeToken as z };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.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 {
|
|
2
|
+
import { $r as bookingHasPackagePaymentChoices, Ar as selectedBookingCollectionOptionKind, Br as isAppointmentBookingQuestionsEvent, Cr as parseBookingCurrencyInputToCents, Dr as resolveBookingSelectedService, Ei as resolveDateRuntimeContext, Er as resolveBookingPaymentStep, Fr as resolveSelectedAppointmentConsent, Hr as bookingQuestionsAnswerDraftSchema, Ir as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, Jr as toBookingQuestionsAnswerDraft, Lr as applyAppointmentBookingQuestionsEvent, Mi as leavePage, Mr as formatCentsAsCurrencyInput, Ms as unsafeAsSiteId, Or as resolveBookingSiteId, Pr as projectSelectedAppointmentConsentIntoForm, Qr as applyBookingPaymentAdmission, Rr as appointmentQuestionsRefusal, Sr as normalizeBookingServices, Ti as readRuntimeNow, Tr as resolveAppointmentCheckoutVerificationState, Vr as needsAppointmentQuestionsRefresh, Wr as decideBookingQuestionsRestoration, Xr as BOOKING_FORM_DATA_RESERVED_KEYS, _n as bookingPresentation, _r as getBookingSuccessCopy, ai as resolveBookingPaymentAvailability, at as buildReviewedBookingPaymentViewModel, br as isBookingServiceSlidingAmountInRange, ci as resolveBookingPurchasablePackages, dn as createSignInReturnDraftStore, ei as bookingPackageRequestKey, fr as buildBookingFormInteractiveIslandProps, gr as getBookingRedirectStateFromLocation, hr as formatBookingSubmissionPreparationError, ii as resolveBookingPackageSources, it as buildBookingPaymentSelectionViewModel, jr as toSelectedCollectionOptionKind, kr as resolveDefaultBookingServiceId, l as formatValidity, li as toBookingPurchasablePackages, mr as deriveBookingFormViewState, ni as reconcileBookingPackagePurchase, oi as resolveBookingPaymentChoice, ot as paymentChoiceDetails, pr as readOverrideServiceCategories, ps as resolveBookingSignupOffer, qr as restoreBookingQuestionsAnswers, ri as resolveBookingPackagePaymentSelection, si as resolveBookingPaymentMode, st as paymentChoicePrice, ti as bookingRequiresResourceSelection, ui as getBookingServiceSlidingScale, wr as prepareBookingSubmission, xr as normalizeBookingFormConfig, zr as deriveAppointmentBookingQuestions } from "./display-B5DfNb6A.mjs";
|
|
3
|
+
import { Bt as formatTime, Ht as formatTimeZoneCityLabel, It as formatDate, W as isBookingRequirementConsentFieldId, Wt as resolveBookingDisplayContext, an as toUtcIsoDateTimeString, in as parseUtcIsoDateTimeString, nn as resolveBookingTimeZoneId, t as logger, tn as resolveBookingBusinessTimeZone, un as formatCurrencyAmount, zt as formatDateTimeRange } from "./noop-CamIX2yK.mjs";
|
|
4
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-
|
|
5
|
+
import { c as NavigationHandOffPanel, f as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-CmZLVXOy.mjs";
|
|
6
6
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
7
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
8
|
-
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-
|
|
9
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
7
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-xNC1Cyjw.mjs";
|
|
8
|
+
import { l as SpinnerNode, r as ThemedButton } from "./ThemedButton-DuaYtnvG.mjs";
|
|
9
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-BQ3OlWlM.mjs";
|
|
10
10
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
11
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
11
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-b-PJLEXe.mjs";
|
|
12
12
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
13
13
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
14
14
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
15
|
-
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-
|
|
16
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
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-
|
|
18
|
-
import { n as StepIndicator, t as BookingPanelArrangement } from "./BookingPanelArrangement-
|
|
19
|
-
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-
|
|
20
|
-
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-
|
|
15
|
+
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-CzOT8ZWo.mjs";
|
|
16
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-B4fRd2jy.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-VjRYhx1c.mjs";
|
|
18
|
+
import { n as StepIndicator, t as BookingPanelArrangement } from "./BookingPanelArrangement-DpqnRo-t.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-CdP14E_b.mjs";
|
|
20
|
+
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-BhjGxhX3.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";
|
|
@@ -838,7 +838,7 @@ function resolveBookingStepVisibility(input, defaultServiceId, payment) {
|
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
840
|
function needsBookingPaymentStep(input, payment) {
|
|
841
|
-
if (
|
|
841
|
+
if (payment.service?.requiresApproval) return false;
|
|
842
842
|
return [
|
|
843
843
|
bookingHasPackagePaymentChoices(payment.service),
|
|
844
844
|
getBookingServiceSlidingScale(payment.service),
|
|
@@ -1789,6 +1789,8 @@ function useBookingFlowController(input) {
|
|
|
1789
1789
|
...latest,
|
|
1790
1790
|
direction
|
|
1791
1791
|
});
|
|
1792
|
+
latest.dispatch({ type: "feedback-cleared" });
|
|
1793
|
+
latest.clearFeedback();
|
|
1792
1794
|
plan.events.forEach(latest.dispatch);
|
|
1793
1795
|
return plan.result;
|
|
1794
1796
|
}, [latestRef]);
|
|
@@ -1994,16 +1996,15 @@ function useHeadlessBookingFlow(options) {
|
|
|
1994
1996
|
options.services
|
|
1995
1997
|
]);
|
|
1996
1998
|
const [state, dispatch] = useReducer((previous, event) => bookingFlowReducer(previous, event, {
|
|
1997
|
-
services: applyBookingPaymentAdmission(applyBookingPaymentChoices(options.services, previous.paymentChoices),
|
|
1999
|
+
services: applyBookingPaymentAdmission(applyBookingPaymentChoices(options.services, previous.paymentChoices), previous.unrestrictedHeldPackageServiceId),
|
|
1998
2000
|
defaultServiceId,
|
|
1999
2001
|
nowIso: bookingNowIso
|
|
2000
2002
|
}), initialState);
|
|
2001
2003
|
const api = useBlockApi();
|
|
2002
2004
|
const selectedServiceId = state.selectedServiceId ?? defaultServiceId;
|
|
2003
2005
|
const selectedResourceId = state.selectedResourceId ?? defaultResourceId;
|
|
2004
|
-
const services = useMemo(() => applyBookingPaymentAdmission(applyBookingPaymentChoices(options.services, state.paymentChoices),
|
|
2006
|
+
const services = useMemo(() => applyBookingPaymentAdmission(applyBookingPaymentChoices(options.services, state.paymentChoices), state.unrestrictedHeldPackageServiceId), [
|
|
2005
2007
|
options.services,
|
|
2006
|
-
options.form?.settings?.requiresApproval,
|
|
2007
2008
|
state.paymentChoices,
|
|
2008
2009
|
state.unrestrictedHeldPackageServiceId
|
|
2009
2010
|
]);
|
|
@@ -2829,9 +2830,18 @@ function BookingOfferReview({ review, booking }) {
|
|
|
2829
2830
|
});
|
|
2830
2831
|
}
|
|
2831
2832
|
function bookingPrimaryActionLabel(booking, isLastStep, summary) {
|
|
2833
|
+
if (isLastStep && booking.services.selected?.requiresApproval) return "Send request";
|
|
2832
2834
|
return isLastStep && booking.review ? reviewedActionLabel(booking.review) : resolvePrimaryActionLabel(isLastStep, Boolean(summary));
|
|
2833
2835
|
}
|
|
2834
2836
|
function BookingSubmissionSummary({ booking, isLastStep, summary }) {
|
|
2837
|
+
if (isLastStep && booking.services.selected?.requiresApproval) return /* @__PURE__ */ jsxs("p", {
|
|
2838
|
+
className: "ab-text",
|
|
2839
|
+
children: [
|
|
2840
|
+
"This is a request for ",
|
|
2841
|
+
booking.services.selected.title,
|
|
2842
|
+
". You’ll get an email once it’s accepted."
|
|
2843
|
+
]
|
|
2844
|
+
});
|
|
2835
2845
|
return isLastStep && booking.review ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(BookingReviewIdentity, { booking }), /* @__PURE__ */ jsx(BookingOfferReview, {
|
|
2836
2846
|
review: booking.review,
|
|
2837
2847
|
booking
|
|
@@ -3368,12 +3378,12 @@ function HeadlessBookingDefaultForm({ booking, onSubmit, pageKind }) {
|
|
|
3368
3378
|
errors: currentStep.errors,
|
|
3369
3379
|
id: errorSummaryId
|
|
3370
3380
|
}),
|
|
3381
|
+
/* @__PURE__ */ jsx(DefaultBookingDiscount, { booking }),
|
|
3382
|
+
/* @__PURE__ */ jsx(DefaultBookingFeedback, { booking }),
|
|
3371
3383
|
/* @__PURE__ */ jsx(BookingFormSubmitActions, {
|
|
3372
3384
|
booking,
|
|
3373
3385
|
onSubmit
|
|
3374
|
-
})
|
|
3375
|
-
/* @__PURE__ */ jsx(DefaultBookingDiscount, { booking }),
|
|
3376
|
-
/* @__PURE__ */ jsx(DefaultBookingFeedback, { booking })
|
|
3386
|
+
})
|
|
3377
3387
|
]
|
|
3378
3388
|
});
|
|
3379
3389
|
}
|
|
@@ -3800,20 +3810,14 @@ function DefaultBookingDiscount({ booking }) {
|
|
|
3800
3810
|
}
|
|
3801
3811
|
function DefaultBookingFeedback({ booking }) {
|
|
3802
3812
|
if (booking.feedback.kind !== "error") return null;
|
|
3803
|
-
return /* @__PURE__ */
|
|
3813
|
+
return /* @__PURE__ */ jsx(FeedbackMessage, {
|
|
3804
3814
|
tone: "error",
|
|
3805
3815
|
className: "alert alert-error rb-mt-4",
|
|
3806
3816
|
role: "alert",
|
|
3807
|
-
children:
|
|
3817
|
+
children: /* @__PURE__ */ jsx("p", {
|
|
3808
3818
|
className: "ab-text",
|
|
3809
3819
|
children: booking.feedback.message
|
|
3810
|
-
})
|
|
3811
|
-
type: "button",
|
|
3812
|
-
variant: "secondary",
|
|
3813
|
-
size: "sm",
|
|
3814
|
-
label: "Dismiss",
|
|
3815
|
-
onClick: booking.actions.clearFeedback
|
|
3816
|
-
})]
|
|
3820
|
+
})
|
|
3817
3821
|
});
|
|
3818
3822
|
}
|
|
3819
3823
|
/** Each field shows its own message, so the summary only says where to look. */
|
|
@@ -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-CKY9oksp.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-xNC1Cyjw.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.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-BjRoLoMD.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 {
|
|
2
|
+
import { $ as resolveHeadlessEventRegistrationStatus, Bi as normalizeEventRegistrationPageSurfaceSubject, Jt as getSingleSelectedPricingOptionId, Oi as createHostedBlockApiConfig, Q as resolveEventRegistrationSubmitPlan, Qn as resolveRuntimeEventDestination, Sr as normalizeBookingServices, Ti as readRuntimeNow, Y as deriveEventRegistrationSteps, Z as normalizeEventRegistrationMaxTickets, Zr as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, bn as resolveRegistrationDisplay, et as resolveHeadlessEventRegistrationView, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, xr as normalizeBookingFormConfig } from "./display-B5DfNb6A.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-CKY9oksp.mjs";
|
|
4
|
+
import { z as publicEventSchema } from "./noop-CamIX2yK.mjs";
|
|
5
5
|
import { p as assertNever } from "./creditProducts-BTRX4edc.mjs";
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
7
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-xNC1Cyjw.mjs";
|
|
7
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-BWb295cD.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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Bo as boxBackgroundOverlaySchema, Go as cardVariantRoleValues, Ho as runtimeBoxBackgroundSchema, Ko as itemRoleValues, Uo as boxlessCardVariantValue, Vo as boxBackgroundSchema, qo as openCardRoleValue } from "./display-B5DfNb6A.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
z.enum(itemRoleValues);
|
|
5
5
|
z.enum(cardVariantRoleValues);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
|
|
3
3
|
import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-h65clfUO.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { S as clsx } from "./ThemedButton-DuaYtnvG.mjs";
|
|
3
3
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
4
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-BJBPUTmg.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BE6TEk2A.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/cart.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("cart");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CartClient, "cart");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as CartController } from "./shop-commerce-
|
|
2
|
+
import { t as CartController } from "./shop-commerce-BsY7a71m.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/cart.client.tsx
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CheckoutClient } from "./checkout.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BTde6Syh.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-BbNCO4xa.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BE6TEk2A.mjs";
|
|
5
5
|
//#region src/rendering/islands/enhancers/checkout.tsx
|
|
6
6
|
const decode = defineIslandPropsDecoder("checkout");
|
|
7
7
|
const enhance = (root, props) => mountShopBlockIsland(root, props, CheckoutClient, "checkout");
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { n as CheckoutController } from "./shop-commerce-
|
|
2
|
+
import { n as CheckoutController } from "./shop-commerce-BsY7a71m.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|