@riverbankcms/sdk 0.172.0 → 0.174.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -1
- package/dist/_dts/{BlocksIslandsHydrator-DtrzTJ77.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-DViYbakk.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-D-5OeDbT.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-DZBOzd3U.d.ts → client-Cr-sOeSl.d.ts} +1002 -139
- package/dist/_dts/{content-types-DS3DrYn_.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-C3QGPCUf.d.ts → contracts-CJ2O03nB.d.ts} +6 -4
- package/dist/_dts/{footerPageOutline-D9Q7VIul.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-R7NeFT1u.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-Dns7OHyl.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-Da4UMgbs.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-DkFV_1Bc.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-BnMavhoh.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-C0zjLMAW.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-CpOkfBt1.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-MuMYjetm.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-DJmXHzfi.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-wQ28JWbr.d.ts → request-Be1E-H-V.d.ts} +4892 -1720
- package/dist/_dts/{resolveBlockData-C-IP53u9.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-Cc4zqaEC.d.ts → resolvePageContent-B4sbTf96.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 +9 -9
- 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 +6 -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 +4 -2
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +13 -8
- 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 +36 -204
- package/dist/_dts/{types-CpjyP5I4.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-DrinAfeW.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-ZuZoGsZV.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-CIZ_fP5l.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-UFmQB1BE.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-VjRYhx1c.mjs → BookingMailingListNote-CAyoiAGD.mjs} +18 -12
- package/dist/client/{BookingPanelArrangement-DpqnRo-t.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-CzOT8ZWo.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-CNckKZct.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +41 -34
- package/dist/client/{DemoBookingPortalAccess-CmZLVXOy.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +22 -22
- package/dist/client/{EventCalendar.client-BU-SxLCn.mjs → EventCalendar.client-BiWQc28-.mjs} +11 -10
- package/dist/client/{EventCombined.client-f28VltfY.mjs → EventCombined.client-B_ytWQtn.mjs} +10 -9
- package/dist/client/{EventItem-sKBofjiW.mjs → EventItem-C-mxXpX_.mjs} +25 -16
- package/dist/client/{EventListWeekNavigation-IAcax47T.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-BEtnRvZr.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BZ4l_rmT.mjs → EventListing.view-CN7BjGgC.mjs} +37 -14
- package/dist/client/{EventRegistrationPayment-BWb295cD.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +848 -146
- package/dist/client/{LocationMapActions-Hsj2HC_1.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-C7E7Lyfa.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-Ds1s3DuC.mjs → Page--xJ23nA5.mjs} +1160 -521
- package/dist/client/{StepIndicator-CSCyAaKY.mjs → StepIndicator-D391QRNc.mjs} +85 -13
- package/dist/client/{accessibleSurfaces-OsAseM7H.mjs → accessibleSurfaces-DN8it_Cx.mjs} +36 -27
- package/dist/client/{accordion-DgwFZJSx.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/bookability-CE637yDE.mjs +17 -0
- package/dist/client/{booking-form.client-CKY9oksp.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-CsHhcdSF.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-B1Z_TGAe.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-0sw2Kc3a.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-CPfvMDGJ.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BJBPUTmg.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-DU4JFjGT.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-BbNCO4xa.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-BQ3OlWlM.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +206 -7
- package/dist/client/{context-xNC1Cyjw.mjs → context-CNlesLfF.mjs} +81 -14
- package/dist/client/{cta-CNVQHLKs.mjs → course-q1sA4Cj-.mjs} +77 -3
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-B6ea-egy.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-BhjGxhX3.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-B5DfNb6A.mjs → display-D8MW2b0e.mjs} +3076 -819
- package/dist/client/{enhanceHeaderSection-BFcHLuqk.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-WHT5GLn2.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-CmnRKELC.mjs → event-registration.client-b5TLxntR.mjs} +1315 -553
- package/dist/client/{eventCalendar-2NbdCyov.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-D1lH1n2T.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BHvnF2Tw.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-EhSDk4UL.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-z_0jN_KS.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-BfChzSkS.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D1zehtPk.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-rMDlUQIv.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-ymSVT9Y5.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BX9bQ84k.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-DMbuJCtJ.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-BxrVsoI0.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-B_I3FJFS.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CamIX2yK.mjs → noop-D5mFWXtN.mjs} +139 -12
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-qxuiYCof.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-CDL-jihv.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-B97m0uZy.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-DE4vSSG_.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BTde6Syh.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cn8XjRte.mjs → registry.server-ClcfWpvM.mjs} +93 -63
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +34 -61
- package/dist/client/{richText-coerce-Bcl3vTb4.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BjRoLoMD.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-B-lrAGhX.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-BsY7a71m.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -11
- package/dist/client/{shop-commerce-store-BZ5j90HD.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/shop-discount-apply.state-DidgH7ow.mjs +166 -0
- package/dist/client/{shop-BC4H0oYT.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-WgGVGelc.mjs → shop.client-CbbdjWWd.mjs} +13 -12
- package/dist/client/{shop.interactive-Bb67gPLL.mjs → shop.interactive-CKFORzux.mjs} +45 -29
- package/dist/client/{shopShared-BE6TEk2A.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/stable-json-D0XAEIXc.mjs +22 -0
- package/dist/client/{timetableModel-Bbz_ECL5.mjs → timetableModel-CtZiIj9q.mjs} +25 -15
- package/dist/client/{useAvailableSlots-CdP14E_b.mjs → useAvailableSlots-CUVRD1nx.mjs} +39 -8
- package/dist/client/{useDiscountApply-DvOSso2l.mjs → useDiscountApply-BZU5DWZQ.mjs} +4 -167
- package/dist/client/{useDiscountCodeUi-B4fRd2jy.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-M3jC8lgP.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-DNNNbnNj.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-B0TFnP4y.mjs → view-CxUpgcM6.mjs} +56 -34
- package/dist/preview-next/client/{LocationPickerEnvironment-D4F_5rnr.mjs → LocationPickerEnvironment-8iKKoYZr.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-BKMNxSEJ.mjs → MapLibreEditMap-AIUPN1Zx.mjs} +2 -2
- package/dist/preview-next/client/{PageSectionToolbar-D59tHj_L.mjs → PageSectionToolbar-BFbSrDbi.mjs} +80 -160
- package/dist/preview-next/client/{PreviewEditorSidebar-CjOIZlUk.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +780 -1634
- package/dist/preview-next/client/{PreviewEditorUI--kS9Cwsc.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bi8-rclb.mjs → PreviewShell-BW3Qpoa_.mjs} +52 -32
- package/dist/preview-next/client/{SdkPreviewModeRuntime-CWTUw-3L.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -69
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-Caofnr1Z.mjs → previewAssistantSlot-BUqAh1FL.mjs} +98429 -46667
- package/dist/preview-next/client/{previewChromeRoot-CbAI_jSH.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DY65_hLk.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CakNU3lp.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-CCEMkosU.mjs → useOpenBlockForSetup-LAllV0rU.mjs} +8 -4
- package/dist/preview-next/container-responsive.css +117 -32
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-DsKDQoVW.mjs → route-contract-DV6SeCNv.mjs} +200 -2
- package/dist/server/{Block.shared-D7Qy9F4a.mjs → Block.shared-Ch2FKAvU.mjs} +11 -6
- package/dist/server/{ThemeScopeCore-D1NTXZdX.mjs → ThemeScopeCore-DFvjDVzi.mjs} +23 -6
- package/dist/server/{accessibleSurfaces-Dbd2__Le.mjs → accessibleSurfaces-CM3QANtw.mjs} +22 -5
- package/dist/server/{bindings-Bp6OnR3n.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-dROAfMRa.mjs → client-aYRTVneD.mjs} +205 -6
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/customCss-BGB8gMVb.mjs +210 -0
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{identity-20XHqyuO.mjs → identity-DQD_8lNO.mjs} +1 -1
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-zOIrtqz-.mjs → loadContent-Cgpfr44e.mjs} +8 -10
- package/dist/server/{loadPage-vwFiq1Rk.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/{media-Brn9FW5s.mjs → media-luf7RF22.mjs} +2 -2
- package/dist/server/{navigation-DAwbICEL.mjs → navigation-iC_hXjJI.mjs} +3 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-DjboggbB.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-BR4t1rOw.mjs → pageRenderPlan-CkFTsxkd.mjs} +166 -42
- package/dist/server/{pageRuntimeSupport-BKo6XVK-.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +15 -7
- package/dist/server/{pageShared-BJjptSGp.mjs → pageShared-B8yLPjs0.mjs} +531 -117
- package/dist/server/{parseThemeForPersistence-B18KDEue.mjs → parseThemeForPersistence-Cwqb5pZx.mjs} +2 -2
- package/dist/server/{portal-Ce1Prfl3.mjs → portal-BjVHMAUC.mjs} +1 -1
- package/dist/server/portal.mjs +1 -1
- package/dist/server/{prebuild-CntSkZQI.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-BM9Ds0OQ.mjs → prefetchBlockData-CfOXFKYG.mjs} +3 -3
- package/dist/server/{registry-wYH0LH5f.mjs → registry-34rkAfaU.mjs} +1409 -3314
- 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 +2 -2
- package/dist/server/rendering/server.mjs +3 -3
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-Bu_p4HxZ.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{responseMedia-t6gs0cB7.mjs → responseMedia-DpBC1hTM.mjs} +1 -1
- package/dist/server/{schema-BFOqYIMQ.mjs → schema-CUDHMirj.mjs} +440 -154
- package/dist/server/server.mjs +3 -3
- package/dist/server/{src-Cxucn-1P.mjs → src-DHK4JUlp.mjs} +4 -1
- package/dist/server/theme-bridge.mjs +21 -15
- package/dist/server/theme.mjs +2 -2
- package/dist/server/{three-pass-converter-Bsfdy_ZV.mjs → three-pass-converter-39SXCCnh.mjs} +1 -1
- package/dist/server/{titleSourceSchema-DwKJfMYb.mjs → titleSourceSchema-Cu-3PRvv.mjs} +0 -1
- package/dist/server/{validation-DAQdPDku.mjs → validation-CLVKoJrX.mjs} +5 -5
- package/dist/server/{version-DAB0O3yx.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +1038 -200
- package/package.json +1 -1
- package/dist/client/runtimeResponse-CPcA8xSm.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-CrgS3I8d.mjs +0 -53534
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
- package/dist/server/rich-text-CRcONdyM.mjs +0 -33
|
@@ -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-D9M7TKGV.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-CNlesLfF.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BiEyK2ii.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-DAypPzSo.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 {
|
|
5
|
-
import { p as assertNever } from "./creditProducts-
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
7
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
2
|
+
import { $ as resolveHeadlessEventRegistrationStatus, $n as getSingleSelectedPricingOptionId, Ji as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, Jr as resolveRuntimeEventDestination, La as normalizeEventRegistrationPageSurfaceSubject, Q as resolveEventRegistrationSubmitPlan, Sa as readRuntimeNow, Ta as createHostedBlockApiConfig, Y as deriveEventRegistrationSteps, Z as normalizeEventRegistrationMaxTickets, et as resolveHeadlessEventRegistrationView, gr as resolveRegistrationDisplay, nt as toInternalPaymentSelection, tt as toHeadlessPaymentSelection, vi as normalizeBookingFormConfig, yi as normalizeBookingServices } from "./display-D8MW2b0e.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-D9M7TKGV.mjs";
|
|
4
|
+
import { B as publicEventSchema } from "./noop-D5mFWXtN.mjs";
|
|
5
|
+
import { p as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CNlesLfF.mjs";
|
|
7
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-DPkRcSdw.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 { Bs as boxBackgroundSchema, Gs as itemRoleValues, Hs as boxlessCardVariantValue, Ks as openCardRoleValue, Vs as runtimeBoxBackgroundSchema, Ws as cardVariantRoleValues, zs as boxBackgroundOverlaySchema } from "./display-D8MW2b0e.mjs";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
z.enum(itemRoleValues);
|
|
5
5
|
z.enum(cardVariantRoleValues);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-BiEyK2ii.mjs";
|
|
3
3
|
import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
4
|
import { t as CarouselNodeClient } from "./carousel.client-h65clfUO.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
@@ -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-BiEyK2ii.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-RpqI56w8.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-C7QjoywZ.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-Bw4_BXQg.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-BiEyK2ii.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-BpuPyOuJ.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-C7QjoywZ.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-Bw4_BXQg.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|
package/dist/client/client.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { A as prefetchBlockDataWithFailures, E as resolveSiteCustomBlocks, T as
|
|
2
|
+
import { Pc as parseSiteId } from "./display-D8MW2b0e.mjs";
|
|
3
|
+
import { A as prefetchBlockDataWithFailures, E as resolveSiteCustomBlocks, T as siteBlockRenderContext, _ as buildRenderablePageOutline, ct as isSupportedLoaderEndpoint, j as materializeEntriesMedia, k as requireSdkTheme, rt as encodePublicProductCategorySelector, t as Page, v as buildSiteRenderSupport, x as projectRenderablePageOutline, y as collectMediaAssetSidecar } from "./Page--xJ23nA5.mjs";
|
|
4
4
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
5
|
-
import { t as restoreRuntimeResponse } from "./runtimeResponse-
|
|
5
|
+
import { t as restoreRuntimeResponse } from "./runtimeResponse-9v8q2NBc.mjs";
|
|
6
6
|
import { useEffect, useState } from "react";
|
|
7
7
|
import { z } from "zod";
|
|
8
8
|
const PUBLIC_CONTENT_FRESHNESS_SECONDS = 3600;
|
|
@@ -801,6 +801,7 @@ const createClientArrangementSchema = z.object({
|
|
|
801
801
|
/** The UI selects the next N dates from get.dates, then retains this body for retry. */
|
|
802
802
|
const bookNextArrangementSchema = z.object({
|
|
803
803
|
...operation,
|
|
804
|
+
confirmation: z.string().optional(),
|
|
804
805
|
occurrenceDates: z.array(localDate).min(1).max(52).refine((values) => new Set(values).size === values.length, "Choose each date once."),
|
|
805
806
|
bookShortfallAsOwed: z.boolean().default(false)
|
|
806
807
|
}).strict();
|
|
@@ -967,7 +968,6 @@ z.intersection(z.object({ occurrenceDate: localDate }), z.union([
|
|
|
967
968
|
z.object({ code: z.enum([
|
|
968
969
|
"package_shortfall",
|
|
969
970
|
"not_available",
|
|
970
|
-
"needs_recorded_return",
|
|
971
971
|
"client_not_found"
|
|
972
972
|
]) }),
|
|
973
973
|
z.object({
|
|
@@ -1250,7 +1250,11 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1250
1250
|
method: "DELETE",
|
|
1251
1251
|
auth: "user",
|
|
1252
1252
|
responseKind: "json",
|
|
1253
|
-
errors: [
|
|
1253
|
+
errors: [
|
|
1254
|
+
"resource:not_found",
|
|
1255
|
+
"resource:conflict",
|
|
1256
|
+
"server:internal_error"
|
|
1257
|
+
]
|
|
1254
1258
|
},
|
|
1255
1259
|
createTeamMemberProfile: {
|
|
1256
1260
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/profile",
|
|
@@ -1551,6 +1555,17 @@ const APPOINTMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
1551
1555
|
"server:internal_error"
|
|
1552
1556
|
]
|
|
1553
1557
|
},
|
|
1558
|
+
previewWeeklyAvailabilityImpact: {
|
|
1559
|
+
path: "/sites/{siteId}/bookings/resources/{resourceId}/weekly-availability/impact",
|
|
1560
|
+
method: "POST",
|
|
1561
|
+
auth: "user",
|
|
1562
|
+
responseKind: "json",
|
|
1563
|
+
errors: [
|
|
1564
|
+
"validation:invalid_input",
|
|
1565
|
+
"resource:not_found",
|
|
1566
|
+
"server:internal_error"
|
|
1567
|
+
]
|
|
1568
|
+
},
|
|
1554
1569
|
setServiceSpecificAvailability: {
|
|
1555
1570
|
path: "/sites/{siteId}/bookings/resources/{resourceId}/service-availability",
|
|
1556
1571
|
method: "PUT",
|
|
@@ -1888,6 +1903,54 @@ const EVENT_SERIES_REGISTRATION_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
1888
1903
|
"server:internal_error"
|
|
1889
1904
|
]
|
|
1890
1905
|
},
|
|
1906
|
+
listEventOfferingCombinationPrices: {
|
|
1907
|
+
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
|
|
1908
|
+
method: "GET",
|
|
1909
|
+
auth: "user",
|
|
1910
|
+
responseKind: "json",
|
|
1911
|
+
errors: [
|
|
1912
|
+
"validation:invalid_input",
|
|
1913
|
+
"auth:forbidden",
|
|
1914
|
+
"resource:not_found",
|
|
1915
|
+
"server:internal_error"
|
|
1916
|
+
]
|
|
1917
|
+
},
|
|
1918
|
+
createEventOfferingCombinationPrice: {
|
|
1919
|
+
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices",
|
|
1920
|
+
method: "POST",
|
|
1921
|
+
auth: "user",
|
|
1922
|
+
responseKind: "json",
|
|
1923
|
+
errors: [
|
|
1924
|
+
"validation:invalid_input",
|
|
1925
|
+
"auth:forbidden",
|
|
1926
|
+
"resource:not_found",
|
|
1927
|
+
"server:internal_error"
|
|
1928
|
+
]
|
|
1929
|
+
},
|
|
1930
|
+
updateEventOfferingCombinationPrice: {
|
|
1931
|
+
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices/{combinationPriceId}",
|
|
1932
|
+
method: "PUT",
|
|
1933
|
+
auth: "user",
|
|
1934
|
+
responseKind: "json",
|
|
1935
|
+
errors: [
|
|
1936
|
+
"validation:invalid_input",
|
|
1937
|
+
"auth:forbidden",
|
|
1938
|
+
"resource:not_found",
|
|
1939
|
+
"server:internal_error"
|
|
1940
|
+
]
|
|
1941
|
+
},
|
|
1942
|
+
deleteEventOfferingCombinationPrice: {
|
|
1943
|
+
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}/combination-prices/{combinationPriceId}",
|
|
1944
|
+
method: "DELETE",
|
|
1945
|
+
auth: "user",
|
|
1946
|
+
responseKind: "json",
|
|
1947
|
+
errors: [
|
|
1948
|
+
"validation:invalid_input",
|
|
1949
|
+
"auth:forbidden",
|
|
1950
|
+
"resource:not_found",
|
|
1951
|
+
"server:internal_error"
|
|
1952
|
+
]
|
|
1953
|
+
},
|
|
1891
1954
|
deleteEventOffering: {
|
|
1892
1955
|
path: "/sites/{siteId}/bookings/event-offerings/{eventOfferingId}",
|
|
1893
1956
|
method: "DELETE",
|
|
@@ -2998,6 +3061,13 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
2998
3061
|
"server:internal_error"
|
|
2999
3062
|
]
|
|
3000
3063
|
},
|
|
3064
|
+
getEventGoLivePage: {
|
|
3065
|
+
path: "/sites/{siteId}/bookings/events/{eventId}/go-live-page",
|
|
3066
|
+
method: "GET",
|
|
3067
|
+
auth: "user",
|
|
3068
|
+
responseKind: "json",
|
|
3069
|
+
errors: ["validation:invalid_input", "server:internal_error"]
|
|
3070
|
+
},
|
|
3001
3071
|
updateEventIdentity: {
|
|
3002
3072
|
path: "/sites/{siteId}/bookings/events/{eventId}",
|
|
3003
3073
|
method: "PATCH",
|
|
@@ -3588,6 +3658,30 @@ const PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
3588
3658
|
//#endregion
|
|
3589
3659
|
//#region ../api/src/billingEndpointDefinitions.ts
|
|
3590
3660
|
const BILLING_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
3661
|
+
adminSendSiteHandover: {
|
|
3662
|
+
path: "/admin/sites/{siteId}/handover",
|
|
3663
|
+
method: "POST",
|
|
3664
|
+
tags: ["admin"],
|
|
3665
|
+
auth: "admin",
|
|
3666
|
+
responseKind: "json",
|
|
3667
|
+
errors: []
|
|
3668
|
+
},
|
|
3669
|
+
adminResendSiteHandover: {
|
|
3670
|
+
path: "/admin/sites/{siteId}/handover/resend",
|
|
3671
|
+
method: "POST",
|
|
3672
|
+
tags: ["admin"],
|
|
3673
|
+
auth: "admin",
|
|
3674
|
+
responseKind: "json",
|
|
3675
|
+
errors: []
|
|
3676
|
+
},
|
|
3677
|
+
adminWithdrawSiteHandover: {
|
|
3678
|
+
path: "/admin/sites/{siteId}/handover/withdraw",
|
|
3679
|
+
method: "POST",
|
|
3680
|
+
tags: ["admin"],
|
|
3681
|
+
auth: "admin",
|
|
3682
|
+
responseKind: "json",
|
|
3683
|
+
errors: []
|
|
3684
|
+
},
|
|
3591
3685
|
adminChangePlan: {
|
|
3592
3686
|
path: "/admin/billing/plan",
|
|
3593
3687
|
method: "POST",
|
|
@@ -4578,6 +4672,18 @@ const API_ENDPOINTS$1 = {
|
|
|
4578
4672
|
"server:internal_error"
|
|
4579
4673
|
]
|
|
4580
4674
|
},
|
|
4675
|
+
turnOnCourses: {
|
|
4676
|
+
path: "/sites/{siteId}/bookings/settings/courses",
|
|
4677
|
+
method: "POST",
|
|
4678
|
+
tags: [TAG_TEMPLATES.site, TAG_TEMPLATES.siteBookingSettings],
|
|
4679
|
+
auth: "user",
|
|
4680
|
+
responseKind: "json",
|
|
4681
|
+
errors: [
|
|
4682
|
+
"auth:forbidden",
|
|
4683
|
+
"resource:conflict",
|
|
4684
|
+
"server:internal_error"
|
|
4685
|
+
]
|
|
4686
|
+
},
|
|
4581
4687
|
sendTestEmail: {
|
|
4582
4688
|
path: "/sites/{siteId}/settings/emails/test",
|
|
4583
4689
|
method: "POST",
|
|
@@ -4660,6 +4766,30 @@ const API_ENDPOINTS$1 = {
|
|
|
4660
4766
|
responseKind: "json",
|
|
4661
4767
|
errors: ["auth:forbidden", "server:internal_error"]
|
|
4662
4768
|
},
|
|
4769
|
+
authEmailCodeSend: {
|
|
4770
|
+
path: "/auth/email-code/send",
|
|
4771
|
+
method: "POST",
|
|
4772
|
+
tags: ["auth"],
|
|
4773
|
+
auth: "public",
|
|
4774
|
+
responseKind: "json",
|
|
4775
|
+
errors: []
|
|
4776
|
+
},
|
|
4777
|
+
authEmailCodeVerify: {
|
|
4778
|
+
path: "/auth/email-code/verify",
|
|
4779
|
+
method: "POST",
|
|
4780
|
+
tags: ["auth"],
|
|
4781
|
+
auth: "public",
|
|
4782
|
+
responseKind: "json",
|
|
4783
|
+
errors: []
|
|
4784
|
+
},
|
|
4785
|
+
authForgetEmail: {
|
|
4786
|
+
path: "/auth/remembered-email/clear",
|
|
4787
|
+
method: "POST",
|
|
4788
|
+
tags: ["auth"],
|
|
4789
|
+
auth: "public",
|
|
4790
|
+
responseKind: "json",
|
|
4791
|
+
errors: []
|
|
4792
|
+
},
|
|
4663
4793
|
authLogin: {
|
|
4664
4794
|
path: "/auth/login/submit",
|
|
4665
4795
|
method: "POST",
|
|
@@ -4688,6 +4818,22 @@ const API_ENDPOINTS$1 = {
|
|
|
4688
4818
|
auth: "public",
|
|
4689
4819
|
responseKind: "json"
|
|
4690
4820
|
},
|
|
4821
|
+
authReauthEmailCodeSend: {
|
|
4822
|
+
path: "/auth/reauth/email-code",
|
|
4823
|
+
method: "POST",
|
|
4824
|
+
tags: ["auth"],
|
|
4825
|
+
auth: "user",
|
|
4826
|
+
errors: [],
|
|
4827
|
+
responseKind: "json"
|
|
4828
|
+
},
|
|
4829
|
+
authReauthEmailCodeVerify: {
|
|
4830
|
+
path: "/auth/reauth/email-code/verify",
|
|
4831
|
+
method: "POST",
|
|
4832
|
+
tags: ["auth"],
|
|
4833
|
+
auth: "user",
|
|
4834
|
+
errors: [],
|
|
4835
|
+
responseKind: "json"
|
|
4836
|
+
},
|
|
4691
4837
|
authStatus: {
|
|
4692
4838
|
path: "/auth/status",
|
|
4693
4839
|
method: "GET",
|
|
@@ -4745,6 +4891,14 @@ const API_ENDPOINTS$1 = {
|
|
|
4745
4891
|
auth: "user",
|
|
4746
4892
|
responseKind: "json"
|
|
4747
4893
|
},
|
|
4894
|
+
dismissSiteInviteWelcome: {
|
|
4895
|
+
path: "/sites/{siteId}/members/invite-welcome/dismiss",
|
|
4896
|
+
method: "POST",
|
|
4897
|
+
auth: "user",
|
|
4898
|
+
responseKind: "json",
|
|
4899
|
+
errors: ["auth:forbidden", "server:internal_error"],
|
|
4900
|
+
tags: ["site-{siteId}"]
|
|
4901
|
+
},
|
|
4748
4902
|
revokeSiteInvitation: {
|
|
4749
4903
|
path: "/sites/{siteId}/members/invitations/{invitationId}",
|
|
4750
4904
|
method: "DELETE",
|
|
@@ -5857,6 +6011,22 @@ const API_ENDPOINTS$1 = {
|
|
|
5857
6011
|
auth: "user",
|
|
5858
6012
|
responseKind: "json"
|
|
5859
6013
|
},
|
|
6014
|
+
mfaRenameFactor: {
|
|
6015
|
+
path: "/auth/mfa/factors/{factorId}",
|
|
6016
|
+
method: "PATCH",
|
|
6017
|
+
tags: ["mfa"],
|
|
6018
|
+
auth: "user",
|
|
6019
|
+
errors: [],
|
|
6020
|
+
responseKind: "json"
|
|
6021
|
+
},
|
|
6022
|
+
mfaTurnOff: {
|
|
6023
|
+
path: "/auth/mfa/turn-off",
|
|
6024
|
+
method: "POST",
|
|
6025
|
+
tags: ["mfa"],
|
|
6026
|
+
auth: "user",
|
|
6027
|
+
errors: [],
|
|
6028
|
+
responseKind: "json"
|
|
6029
|
+
},
|
|
5860
6030
|
mfaBackupCodesGet: {
|
|
5861
6031
|
path: "/auth/mfa/backup-codes",
|
|
5862
6032
|
method: "GET",
|
|
@@ -5911,6 +6081,18 @@ const API_ENDPOINTS$1 = {
|
|
|
5911
6081
|
],
|
|
5912
6082
|
responseKind: "json"
|
|
5913
6083
|
},
|
|
6084
|
+
accountDismissTwoStepPrompt: {
|
|
6085
|
+
path: "/account/two-step-prompt/dismiss",
|
|
6086
|
+
method: "POST",
|
|
6087
|
+
tags: ["account"],
|
|
6088
|
+
auth: "user",
|
|
6089
|
+
errors: [
|
|
6090
|
+
"auth:unauthenticated",
|
|
6091
|
+
"validation:invalid_input",
|
|
6092
|
+
"server:internal_error"
|
|
6093
|
+
],
|
|
6094
|
+
responseKind: "json"
|
|
6095
|
+
},
|
|
5914
6096
|
accountRevokeSessions: {
|
|
5915
6097
|
path: "/account/sessions/revoke",
|
|
5916
6098
|
method: "POST",
|
|
@@ -5918,6 +6100,22 @@ const API_ENDPOINTS$1 = {
|
|
|
5918
6100
|
auth: "user",
|
|
5919
6101
|
responseKind: "json"
|
|
5920
6102
|
},
|
|
6103
|
+
accountRevokeSession: {
|
|
6104
|
+
path: "/account/sessions/{sessionId}",
|
|
6105
|
+
method: "DELETE",
|
|
6106
|
+
tags: ["account"],
|
|
6107
|
+
auth: "user",
|
|
6108
|
+
errors: [],
|
|
6109
|
+
responseKind: "json"
|
|
6110
|
+
},
|
|
6111
|
+
accountUnlinkGoogle: {
|
|
6112
|
+
path: "/account/identities/google",
|
|
6113
|
+
method: "DELETE",
|
|
6114
|
+
tags: ["account"],
|
|
6115
|
+
auth: "user",
|
|
6116
|
+
errors: [],
|
|
6117
|
+
responseKind: "json"
|
|
6118
|
+
},
|
|
5921
6119
|
adminListInvites: {
|
|
5922
6120
|
path: "/admin/invites",
|
|
5923
6121
|
method: "GET",
|
|
@@ -9737,6 +9935,7 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
|
|
|
9737
9935
|
"auth:token_invalid",
|
|
9738
9936
|
"auth:forbidden",
|
|
9739
9937
|
"auth:mfa_required",
|
|
9938
|
+
"auth:mfa_setup_required",
|
|
9740
9939
|
"auth:sudo_required",
|
|
9741
9940
|
"auth:insufficient_permissions",
|
|
9742
9941
|
"auth:impersonation_restricted",
|
|
@@ -10373,7 +10572,7 @@ async function loadUsePageSuccess(input) {
|
|
|
10373
10572
|
resolvedData: prefetched.resolvedData,
|
|
10374
10573
|
dataContext: {
|
|
10375
10574
|
previewStage,
|
|
10376
|
-
...
|
|
10575
|
+
...siteBlockRenderContext(buildSiteRenderSupport(site, mediaAssets)),
|
|
10377
10576
|
prefetchedBlockData: prefetched,
|
|
10378
10577
|
loaderSnapshot: prefetched.loaderSnapshot,
|
|
10379
10578
|
loaderFailures: prefetched.loaderFailures
|
|
@@ -10927,7 +11126,7 @@ var SimpleCache = class {
|
|
|
10927
11126
|
//#endregion
|
|
10928
11127
|
//#region src/request-options.ts
|
|
10929
11128
|
/** Every API client the SDK creates sends its version as `x-sdk-version`. */
|
|
10930
|
-
const sdkRequestOptions = { sdkVersion: "0.
|
|
11129
|
+
const sdkRequestOptions = { sdkVersion: "0.174.0" };
|
|
10931
11130
|
//#endregion
|
|
10932
11131
|
//#region src/client/error.ts
|
|
10933
11132
|
let _Symbol$for;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { Et as normalizeCurrencyCode, dn as parsePositiveCents, i as EVENT_BOOKING_ARRIVAL_QUERY, n as blockSiteTermsSchema, p as calendarWindowPageSchema, pn as toNonNegativeCents, q as beforeBookingQuestionsPresentationSchema, s as publicPassProductCollectionSchema } from "./noop-D5mFWXtN.mjs";
|
|
3
|
+
import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
|
|
3
4
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
4
5
|
import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
|
|
5
6
|
import { createContext, useContext, useMemo } from "react";
|
|
@@ -117,7 +118,13 @@ const eventBookingOutcomeSchema = z.discriminatedUnion("kind", [z.object({
|
|
|
117
118
|
identity: confirmedBookingIdentitySchema,
|
|
118
119
|
...arrivalFields
|
|
119
120
|
}).strict()]);
|
|
121
|
+
const priceReductionSummarySchema = z.object({
|
|
122
|
+
kind: z.enum(["discount_code", "combination_price"]),
|
|
123
|
+
label: z.string(),
|
|
124
|
+
amountCents: z.number().int().nonnegative()
|
|
125
|
+
}).strict();
|
|
120
126
|
const eventEmbeddedCheckoutSchema = z.object({
|
|
127
|
+
priceReductions: z.tuple([priceReductionSummarySchema]).rest(priceReductionSummarySchema).readonly().optional(),
|
|
121
128
|
kind: z.literal("embedded"),
|
|
122
129
|
sessionId: z.string().min(1),
|
|
123
130
|
clientSecret: z.string().min(1),
|
|
@@ -140,16 +147,21 @@ const eventRegistrationSummarySchema = z.object({
|
|
|
140
147
|
message: z.string(),
|
|
141
148
|
passCreditsRemaining: z.number().int().nonnegative().optional()
|
|
142
149
|
}).strict();
|
|
150
|
+
const bookingOutcomesSchema = z.tuple([eventBookingOutcomeSchema]).rest(eventBookingOutcomeSchema).readonly().refine((outcomes) => outcomes.length <= 20, "Too many booking outcomes");
|
|
151
|
+
const bookingReferencesSchema = z.tuple([eventRegistrationStatusReferenceSchema]).rest(eventRegistrationStatusReferenceSchema).readonly().refine((references) => references.length <= 20, "Too many booking references");
|
|
152
|
+
const registrationIdsSchema = z.tuple([uuid]).rest(uuid).readonly().refine((ids) => ids.length <= 20, "Too many registrations");
|
|
143
153
|
const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
|
|
144
154
|
z.object({
|
|
145
155
|
kind: z.literal("bookingComplete"),
|
|
146
156
|
outcome: eventBookingOutcomeSchema,
|
|
157
|
+
outcomes: bookingOutcomesSchema.optional(),
|
|
147
158
|
summary: eventRegistrationSummarySchema,
|
|
148
159
|
...decorations
|
|
149
160
|
}).strict(),
|
|
150
161
|
z.object({
|
|
151
162
|
kind: z.literal("checkoutRequired"),
|
|
152
163
|
reference: eventRegistrationStatusReferenceSchema,
|
|
164
|
+
references: bookingReferencesSchema.optional(),
|
|
153
165
|
checkout: eventEmbeddedCheckoutSchema,
|
|
154
166
|
submissionId: uuid,
|
|
155
167
|
...decorations
|
|
@@ -175,12 +187,16 @@ const eventRegisterResponseSchema = z.discriminatedUnion("kind", [
|
|
|
175
187
|
}).strict(),
|
|
176
188
|
...decorations
|
|
177
189
|
}).strict()
|
|
178
|
-
])
|
|
190
|
+
]).superRefine((response, ctx) => {
|
|
191
|
+
if (response.kind === "bookingComplete") validateOutcomeList(response, ctx);
|
|
192
|
+
if (response.kind === "checkoutRequired") validateReferenceList(response, ctx);
|
|
193
|
+
});
|
|
179
194
|
const checkoutStatusArms = [
|
|
180
195
|
z.object({
|
|
181
196
|
kind: z.literal("resolved"),
|
|
182
|
-
outcome: eventBookingOutcomeSchema
|
|
183
|
-
|
|
197
|
+
outcome: eventBookingOutcomeSchema,
|
|
198
|
+
outcomes: bookingOutcomesSchema.optional()
|
|
199
|
+
}).strict().superRefine(validateOutcomeList),
|
|
184
200
|
z.object({ kind: z.literal("abandoned") }).strict(),
|
|
185
201
|
z.object({ kind: z.literal("reconciliationRequired") }).strict(),
|
|
186
202
|
z.object({
|
|
@@ -189,6 +205,7 @@ const checkoutStatusArms = [
|
|
|
189
205
|
}).strict(),
|
|
190
206
|
z.object({
|
|
191
207
|
kind: z.literal("paymentAvailable"),
|
|
208
|
+
references: bookingReferencesSchema.optional(),
|
|
192
209
|
checkout: eventEmbeddedCheckoutSchema,
|
|
193
210
|
recoverableUntil: z.string().optional()
|
|
194
211
|
}).strict(),
|
|
@@ -212,8 +229,7 @@ const eventCheckoutReturnResponseSchema = z.discriminatedUnion("kind", [
|
|
|
212
229
|
z.object({ kind: z.literal("reconciliationRequired") }).strict()
|
|
213
230
|
]).superRefine((response, ctx) => {
|
|
214
231
|
if (response.kind !== "checkout" || response.outcome.kind !== "resolved") return;
|
|
215
|
-
|
|
216
|
-
if (identity.scope !== response.subject.scope || identity.submissionId !== response.subject.submissionId || identity.scope === "occurrence" && response.subject.scope === "occurrence" && identity.attendeeId !== response.subject.attendeeId) ctx.addIssue({
|
|
232
|
+
if (!identityMatchesSubject(response.outcome.outcome.identity, response.subject)) ctx.addIssue({
|
|
217
233
|
code: "custom",
|
|
218
234
|
message: "Confirmed booking does not match checkout subject",
|
|
219
235
|
path: ["outcome"]
|
|
@@ -231,6 +247,7 @@ const eventCheckoutResponseSchema = z.union([
|
|
|
231
247
|
kind: z.literal("completed"),
|
|
232
248
|
scope: z.literal("wholeSeries"),
|
|
233
249
|
outcome: eventBookingOutcomeSchema,
|
|
250
|
+
outcomes: bookingOutcomesSchema.optional(),
|
|
234
251
|
...checkoutDecorations
|
|
235
252
|
}).strict(),
|
|
236
253
|
z.object({
|
|
@@ -244,6 +261,7 @@ const eventCheckoutResponseSchema = z.union([
|
|
|
244
261
|
kind: z.literal("checkoutRequired"),
|
|
245
262
|
scope: z.literal("wholeSeries"),
|
|
246
263
|
registrationId: uuid,
|
|
264
|
+
registrationIds: registrationIdsSchema.optional(),
|
|
247
265
|
checkoutAttemptId: uuid,
|
|
248
266
|
checkout: eventEmbeddedCheckoutSchema,
|
|
249
267
|
recoverableUntil: z.string().optional(),
|
|
@@ -265,16 +283,65 @@ const eventCheckoutResponseSchema = z.union([
|
|
|
265
283
|
...checkoutDecorations
|
|
266
284
|
}).strict()
|
|
267
285
|
]).superRefine((response, ctx) => {
|
|
268
|
-
if ("kind" in response
|
|
286
|
+
if (!("kind" in response)) return;
|
|
287
|
+
if (response.kind === "completed") {
|
|
288
|
+
if (response.scope !== response.outcome.identity.scope) ctx.addIssue({
|
|
289
|
+
code: "custom",
|
|
290
|
+
message: "Confirmed booking scope mismatch",
|
|
291
|
+
path: [
|
|
292
|
+
"outcome",
|
|
293
|
+
"identity",
|
|
294
|
+
"scope"
|
|
295
|
+
]
|
|
296
|
+
});
|
|
297
|
+
validateOutcomeList(response, ctx);
|
|
298
|
+
}
|
|
299
|
+
if (response.kind === "checkoutRequired" && response.scope === "wholeSeries" && response.registrationIds) {
|
|
300
|
+
if (response.registrationIds[0] !== response.registrationId || new Set(response.registrationIds).size !== response.registrationIds.length) ctx.addIssue({
|
|
301
|
+
code: "custom",
|
|
302
|
+
message: "Registration list does not match its first reference or repeats a booking",
|
|
303
|
+
path: ["registrationIds"]
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
function bookingReferenceKey(reference) {
|
|
308
|
+
return reference.scope === "wholeSeries" ? `run:${reference.registrationId}` : `date:${reference.attendeeId}`;
|
|
309
|
+
}
|
|
310
|
+
/** Singular fields are aliases of the first member; every member belongs to one submission. */
|
|
311
|
+
function validateOutcomeList(response, ctx) {
|
|
312
|
+
const outcomes = response.outcomes;
|
|
313
|
+
if (!outcomes) return;
|
|
314
|
+
if (stableJsonStringify(outcomes[0]) !== stableJsonStringify(response.outcome)) ctx.addIssue({
|
|
269
315
|
code: "custom",
|
|
270
|
-
message: "
|
|
271
|
-
path: [
|
|
272
|
-
"outcome",
|
|
273
|
-
"identity",
|
|
274
|
-
"scope"
|
|
275
|
-
]
|
|
316
|
+
message: "First booking outcome does not match the single-booking alias",
|
|
317
|
+
path: ["outcomes", 0]
|
|
276
318
|
});
|
|
277
|
-
|
|
319
|
+
const identity = response.outcome.identity;
|
|
320
|
+
if (outcomes.some((outcome) => outcome.identity.scope !== identity.scope || outcome.identity.submissionId !== identity.submissionId)) ctx.addIssue({
|
|
321
|
+
code: "custom",
|
|
322
|
+
message: "Booking outcomes must belong to the same submission and scope",
|
|
323
|
+
path: ["outcomes"]
|
|
324
|
+
});
|
|
325
|
+
const keys = outcomes.map((outcome) => bookingReferenceKey(outcome.identity));
|
|
326
|
+
if (new Set(keys).size !== keys.length) ctx.addIssue({
|
|
327
|
+
code: "custom",
|
|
328
|
+
message: "Booking outcomes repeat a booking",
|
|
329
|
+
path: ["outcomes"]
|
|
330
|
+
});
|
|
331
|
+
}
|
|
332
|
+
function validateReferenceList(response, ctx) {
|
|
333
|
+
const references = response.references;
|
|
334
|
+
if (!references) return;
|
|
335
|
+
const keys = references.map(bookingReferenceKey);
|
|
336
|
+
if (keys[0] !== bookingReferenceKey(response.reference) || new Set(keys).size !== keys.length || references.some((reference) => reference.scope !== response.reference.scope)) ctx.addIssue({
|
|
337
|
+
code: "custom",
|
|
338
|
+
message: "Booking references must be distinct, share a scope and match the first reference",
|
|
339
|
+
path: ["references"]
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
function identityMatchesSubject(identity, subject) {
|
|
343
|
+
return identity.scope === subject.scope && identity.submissionId === subject.submissionId && (identity.scope !== "occurrence" || subject.scope !== "occurrence" || identity.attendeeId === subject.attendeeId);
|
|
344
|
+
}
|
|
278
345
|
//#endregion
|
|
279
346
|
//#region ../blocks/src/system/runtime/api/schemas/waitlist-claims.ts
|
|
280
347
|
const attendanceMode = z.enum(["in_person", "online"]);
|