@riverbankcms/sdk 0.163.0 → 0.165.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 +12 -1
- package/dist/_dts/{BlocksIslandsHydrator-DYPGA_qh.d.ts → BlocksIslandsHydrator-CdsSMQEv.d.ts} +1 -1
- package/dist/_dts/{Page-zwnvFBPu.d.ts → Page-D6gp2Ipb.d.ts} +15 -12
- package/dist/_dts/{SdkPreviewMode-DukuJzGr.d.ts → SdkPreviewMode-DNXAvnet.d.ts} +83 -72
- package/dist/_dts/{client-Chh3bnXC.d.ts → client-BkkExozE.d.ts} +13 -41
- package/dist/_dts/{content-types-Bbzqw9J2.d.ts → content-types-CXNAD7ef.d.ts} +2 -2
- package/dist/_dts/{contracts-GJ1kGBsi.d.ts → contracts-XRXhbLWP.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-BNMKhyvo.d.ts → footerPageOutline-BP2bJYdY.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-Ce0m1P3B.d.ts → generatePageMetadata-DcMtbztV.d.ts} +2 -2
- package/dist/_dts/{index-CyQhZuhM.d.ts → index-B4ozSzFP.d.ts} +48377 -47862
- package/dist/_dts/{index-DRxgeK8L.d.ts → index-BdkHhyf8.d.ts} +2 -2
- package/dist/_dts/{index-CdSNXLOx.d.ts → index-CQfJhOEA.d.ts} +2 -2
- package/dist/_dts/{index-C3mJvn27.d.ts → index-CRRiddNp.d.ts} +4 -4
- package/dist/_dts/index-CXsnaCGe.d.ts +10 -0
- package/dist/_dts/{index-rhMSu0oY.d.ts → index-C_3kdrUb.d.ts} +2 -2
- package/dist/_dts/{index-CaL0nKkl.d.ts → index-DAPTSmBM.d.ts} +31097 -31047
- package/dist/_dts/{index-FstkyqQB.d.ts → index-DKNEgSOS.d.ts} +2 -2
- package/dist/_dts/{index-G2p-HOrK.d.ts → index-RXkE3a7M.d.ts} +3 -3
- package/dist/_dts/{loadContent-DiLZoInK.d.ts → loadContent-B9vJMq3s.d.ts} +15 -30
- package/dist/_dts/{resolvePageContent-CWUnipv8.d.ts → resolvePageContent-DIQyYUi-.d.ts} +2 -2
- package/dist/_dts/sdk/src/bookings/index.d.ts +3 -4
- package/dist/_dts/sdk/src/client/types.d.ts +2 -2
- package/dist/_dts/sdk/src/client.d.ts +6 -6
- 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/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/index.d.ts +7 -7
- 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/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 +32 -52
- package/dist/_dts/sdk/src/theme/index.d.ts +1 -1
- package/dist/_dts/{types-BmtrA45p.d.ts → types-BDF73NzM.d.ts} +3 -2
- package/dist/_dts/{types-DFOqkClJ.d.ts → types-Cl0nP6al.d.ts} +3 -3
- package/dist/_dts/{types-CalL7aKP.d.ts → types-mstFvhK4.d.ts} +7 -7
- package/dist/_dts/{validation-G8MRoIhq.d.ts → validation-DVWqSvjK.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-DLCXwe30.mjs → BlocksIslandsHydrator-CzKpH9Pm.mjs} +20 -20
- package/dist/client/{BookingMailingListNote-BV5-50F0.mjs → BookingMailingListNote-rUqsBN7L.mjs} +1 -1
- package/dist/client/{CalendarNavigationChevron-CVLAHdZG.mjs → CalendarNavigationChevron-YGzw2IPB.mjs} +6 -6
- package/dist/client/{CheckboxChoice-Dtgp3OU8.mjs → CheckboxChoice-DlTC4J2a.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-B3caCnTT.mjs → DemoBookingPortalAccess-D2LyS_Bi.mjs} +5 -5
- package/dist/client/{DemoPortalSignInLink-Ct8JMKW0.mjs → DemoPortalSignInLink-BaFg2Uit.mjs} +1 -1
- package/dist/client/{EventCalendar.client-ffa6920T.mjs → EventCalendar.client-tRrhPscX.mjs} +17 -10
- package/dist/client/{EventCombined.client-zm0W2G79.mjs → EventCombined.client-6cfAVtnZ.mjs} +8 -8
- package/dist/client/{EventEmbeddedCheckoutStep-CPPE2rWS.mjs → EventEmbeddedCheckoutStep-CDNUpI0S.mjs} +2 -1
- package/dist/client/{EventItem-CND3mfra.mjs → EventItem-dILw2PN_.mjs} +27 -17
- package/dist/client/{EventListWeekNavigation-D8QdxL_f.mjs → EventListWeekNavigation-ClgLtjNY.mjs} +1 -1
- package/dist/client/{EventListing.client-CaoRZUI9.mjs → EventListing.client-BNueAHmU.mjs} +3 -3
- package/dist/client/{EventListing.view-BfnOmxYD.mjs → EventListing.view-DtVbKVkt.mjs} +56 -12
- package/dist/client/{EventRegistrationPayment-Dfu3RSL2.mjs → EventRegistrationPayment-CzkG0NSJ.mjs} +18 -22
- package/dist/client/{LocationMapActions-wlyxASdT.mjs → LocationMapActions-zWQsJhE5.mjs} +2 -2
- package/dist/client/{MapDrawingSvg-B9oKSitp.mjs → MapDrawingSvg-D1AO_o4h.mjs} +1 -1
- package/dist/client/{Page-BEF9HrAy.mjs → Page-DUr2YhFR.mjs} +1949 -418
- package/dist/client/ProtectedSubmitButton-2fJqT_NR.mjs +14 -0
- package/dist/client/SpamProtectionWidget-CCF6YLUX.mjs +141 -0
- package/dist/client/{StepIndicator-Bjx4faaw.mjs → StepIndicator-udNHcpOT.mjs} +2 -2
- package/dist/client/{TabBarFragment-Cu7k_VSl.mjs → TabBarFragment-C_kt-PXh.mjs} +1 -1
- package/dist/client/{ThemedButton-DclwabI7.mjs → ThemedButton-Cfbo1bfh.mjs} +2 -898
- package/dist/client/{accordion-lzM2nSZB.mjs → accordion-3CYNWzTS.mjs} +1 -1
- package/dist/client/altchaProtection-DjIV9A5n.mjs +12 -0
- package/dist/client/{booking-form.client-Bll4QwBi.mjs → booking-form.client-BSbWgLyx.mjs} +23 -56
- package/dist/client/{bookingForm-Cq5fQ-vo.mjs → bookingForm-2MoFBWSt.mjs} +4 -4
- package/dist/client/bookings.mjs +23 -32
- package/dist/client/{carousel-CxerQwIx.mjs → carousel-Cu5mcpO-.mjs} +2 -2
- package/dist/client/{carousel.client-CVUXq8Mb.mjs → carousel.client-CQLV8_Al.mjs} +1 -1
- package/dist/client/{cart-X-m0isoI.mjs → cart-CDc6x9cR.mjs} +3 -3
- package/dist/client/{cart.client-CJbzWIl0.mjs → cart.client-BWS2r5Ef.mjs} +1 -1
- package/dist/client/{checkout-Gd0O_fGH.mjs → checkout-CkxPqSwD.mjs} +3 -3
- package/dist/client/{checkout.client-Baee6Jsm.mjs → checkout.client-DJfomKQc.mjs} +1 -1
- package/dist/client/client.mjs +216 -109
- package/dist/client/{context-Bg0SFWcM.mjs → context-CBV21-9L.mjs} +17 -3
- package/dist/client/{cta-HffyM4MA.mjs → cta-Bw-al3cs.mjs} +26 -2
- package/dist/client/{dateFormatting-CV45BH5M.mjs → dateFormatting-CFIUJ4Uf.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-CDWheSjI.mjs → demoPortalMagicLink-D0veHJyi.mjs} +1 -1
- package/dist/client/{enhanceHeaderSection-BqVDXL0D.mjs → enhanceHeaderSection-CEqqq92r.mjs} +3 -3
- package/dist/client/{event-details.client-SFtS9OkF.mjs → event-details.client-Bk2kQ7ax.mjs} +1 -1
- package/dist/client/{event-registration.client-CguNVIFY.mjs → event-registration.client-QMqtIywj.mjs} +47 -56
- package/dist/client/{eventCalendar-DSGG35jd.mjs → eventCalendar-BTDTMosr.mjs} +4 -4
- package/dist/client/{eventCombined-Oe-PiChx.mjs → eventCombined-BC7a709c.mjs} +4 -4
- package/dist/client/{eventDetails-BhcTT6P3.mjs → eventDetails-DL08GpUc.mjs} +2 -2
- package/dist/client/{eventListing-BS0kBEgI.mjs → eventListing-BfzuEQp_.mjs} +4 -4
- package/dist/client/{eventRegistration-B82SHv7j.mjs → eventRegistration-Lfyzh1Ab.mjs} +4 -4
- package/dist/client/{form-DAIUrVXb.mjs → form-L-xZOBUS.mjs} +3 -3
- package/dist/client/{form.client-BoAkhoh_.mjs → form.client-BtpK3TZW.mjs} +33 -24
- package/dist/client/{form.parts-1VnasOK8.mjs → form.parts-Djos5Un4.mjs} +6 -5
- package/dist/client/{formatDate-BKil_Psb.mjs → formatDate-DGmrm7YB.mjs} +1 -1
- package/dist/client/gifting/client.mjs +5 -4
- package/dist/client/{headerSection-CyuHk8Ei.mjs → headerSection-f16OGkz-.mjs} +2 -2
- package/dist/client/{mediaAssets-CGJE1Omu.mjs → mediaAssets-DHAmrVIi.mjs} +1 -1
- package/dist/client/{mediaContext-DIkX2S-X.mjs → mediaContext-CwT6ZOm7.mjs} +1 -1
- package/dist/client/{newsletter-form.client-CCdyHx0B.mjs → newsletter-form.client-DpHNZc7k.mjs} +100 -85
- package/dist/client/{newsletter-form.parts-Dl8AjsXW.mjs → newsletter-form.parts-CLGH20PL.mjs} +11 -7
- package/dist/client/{newsletterForm-qFWLZJui.mjs → newsletterForm-BEU0Ocu9.mjs} +3 -3
- package/dist/client/{noop-4XFGzJpT.mjs → noop-CQU7tiMg.mjs} +8 -4
- package/dist/client/portal/client.mjs +13 -12
- package/dist/client/{product-detail.client-Tq4S99ce.mjs → product-detail.client-Be-om1BT.mjs} +1 -1
- package/dist/client/{product-list.client-CuL5jB1w.mjs → product-list.client-DR7hD5Vs.mjs} +1 -1
- package/dist/client/{productDetail-BRqgcotZ.mjs → productDetail-BD42UOmG.mjs} +3 -3
- package/dist/client/{productList-EK9Um-oh.mjs → productList-CSk8sXCl.mjs} +3 -3
- package/dist/client/{propsDecoder-VD4arFq1.mjs → propsDecoder-C_Y6VYnF.mjs} +3 -3
- package/dist/client/protection-C0PoH1lT.mjs +104 -0
- package/dist/client/purchase-BV5xfaZH.mjs +894 -0
- package/dist/client/{registry.server-qYbsatxH.mjs → registry.server-CIKtTsCl.mjs} +197 -167
- package/dist/client/rendering/client.mjs +27 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +11 -7
- package/dist/client/{richText-coerce-CW8CFk8v.mjs → richText-coerce-spWtx86G.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-CnZ_1ol2.mjs → routeIslandApiConfig-CROHPlYS.mjs} +1 -1
- package/dist/client/{schema-BFwQDvJL.mjs → schema-BdSglH2X.mjs} +2690 -2500
- package/dist/client/{shop-CTUaT57E.mjs → shop-DscvMz86.mjs} +3 -3
- package/dist/client/{shop-commerce-BWwbsm_-.mjs → shop-commerce-CDUohm_2.mjs} +11 -11
- package/dist/client/{shop-commerce-store-15UII0y3.mjs → shop-commerce-store-B9nw4lRP.mjs} +1 -1
- package/dist/client/{shop.client-UWgdmJBm.mjs → shop.client-M3kNsVPi.mjs} +12 -12
- package/dist/client/{shop.interactive-Cf_kASpd.mjs → shop.interactive-BGmkdIAZ.mjs} +268 -31
- package/dist/client/{shopShared-Bi8d584P.mjs → shopShared-BdWp6LHa.mjs} +2 -2
- package/dist/client/{site-styles-dy54AUdz.mjs → site-styles-CWHmlVT5.mjs} +2630 -461
- package/dist/client/spam-protection.mjs +4 -69
- package/dist/client/{timetableModel-Bi8ruFgB.mjs → timetableModel-Dynh5-j4.mjs} +10 -10
- package/dist/client/{useAvailableSlots-DiLbDqM3.mjs → useAvailableSlots-Cw9paRPY.mjs} +3 -3
- package/dist/client/{useBookingNowIso-CWIiqPd0.mjs → useBookingNowIso-C9SF2rC6.mjs} +1 -1
- package/dist/client/{useDiscountApply-ChtszhF9.mjs → useDiscountApply-B-QJfBg0.mjs} +2 -2
- package/dist/client/{useDiscountCodeUi-B0Z7n2tZ.mjs → useDiscountCodeUi-Uvum8q9d.mjs} +1 -1
- package/dist/client/{useEventPagination-DRrATQHQ.mjs → useEventPagination-BfM3xk6j.mjs} +9 -156
- package/dist/client/{view-yUIfWX3S.mjs → view-DXOuduIr.mjs} +4 -4
- package/dist/client/{view-OvsxzgxP.mjs → view-DlkCDfuN.mjs} +45 -32
- package/dist/client/{wizardSteps-kbONzKUv.mjs → wizardSteps-DManVJpc.mjs} +57 -47
- package/dist/preview-next/before-render.mjs +2 -2
- package/dist/preview-next/client/{EventEmbeddedCheckoutStep-DzoFjIqB.mjs → EventEmbeddedCheckoutStep-Die6Y25O.mjs} +1 -1
- package/dist/preview-next/client/{LocationPickerEnvironment-QtSG2Bl-.mjs → LocationPickerEnvironment-Bp4BHLCL.mjs} +1 -1
- package/dist/preview-next/client/{MapLibreEditMap-B-rohNcG.mjs → MapLibreEditMap-Cb0JhM9p.mjs} +2 -2
- package/dist/preview-next/client/{PreviewEditorSidebar-BhgPyyUW.mjs → PreviewEditorSidebar-DEP3xD9K.mjs} +3478 -3109
- package/dist/preview-next/client/{PreviewEditorUI-lndKKBtB.mjs → PreviewEditorUI-CxwlLBGw.mjs} +577 -172
- package/dist/preview-next/client/{SdkPreviewModeRuntime-DCDDXDlt.mjs → SdkPreviewModeRuntime-Cpe-XP8e.mjs} +1 -1
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Bk7On_EM.mjs → SdkPreviewModeRuntime-QDkMPASV.mjs} +3761 -4769
- package/dist/preview-next/client/{siteStyleAccess-Chq5KKKh.mjs → SiteChromeCustomizeButton-1JaoGOKX.mjs} +3862 -8657
- package/dist/preview-next/client/{ThemedButton-nUnE3iMv.mjs → ThemedButton-Dc6aJ34Z.mjs} +274 -68
- package/dist/preview-next/client/editorStatusDecision-DR4BBKhy.mjs +101 -0
- package/dist/preview-next/client/{lucide-react-CA9cpo0P.mjs → lucide-react-CqxuVAyz.mjs} +1 -1
- package/dist/preview-next/client/{previewChromeSurface-CxQ6dZ8D.mjs → previewChromeSurface-yuwnDP3B.mjs} +49 -6
- package/dist/preview-next/client/{previewAuthStore-DHtSQIBE.mjs → previewSidebarNavigation-AXUj9-qQ.mjs} +186449 -173608
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DSZv7Vfm.mjs → sdk-runtime-O-eA9-rV.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +3 -3
- package/dist/preview-next/middleware.mjs +2 -2
- package/dist/preview-next/{route-contract-CxCstfkP.mjs → route-contract-BBAJjFIz.mjs} +42 -50
- package/dist/preview-next/{session-P1R_ajT7.mjs → session-DU6zpYUQ.mjs} +1 -1
- package/dist/preview-next/session.mjs +1 -1
- package/dist/server/{Block.shared-Dz9k8vCX.mjs → Block.shared-ClFI3qpX.mjs} +5 -4
- package/dist/server/{bindings-S-gCHhj5.mjs → bindings-Bi8EoRZD.mjs} +2 -2
- package/dist/server/{client-C2Q56xqV.mjs → client-DfMDbZ41.mjs} +215 -109
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/{effectiveNavLinkStyle-DLzJPcDL.mjs → effectiveNavLinkStyle-BHIYPVG1.mjs} +2362 -217
- package/dist/server/index.mjs +3 -3
- package/dist/server/{loadContent-D7ItMsEl.mjs → loadContent-dEEhQxL7.mjs} +6 -4
- package/dist/server/loadPage-CnVB-aeL.mjs +2 -0
- package/dist/server/{loadPage-DaPiPYUL.mjs → loadPage-DBFBad8A.mjs} +3 -2
- package/dist/server/next/middleware.mjs +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next.mjs +11 -11
- package/dist/server/{overrideResolution-anoB3Kbn.mjs → overrideResolution-BIJbiXYc.mjs} +1 -1
- package/dist/server/{overrides-W1Cc6srh.mjs → overrides-DhF87Vsd.mjs} +352 -141
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{prebuild-BF9yNfCS.mjs → prebuild-DaemmWQL.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Cn9k3DW6.mjs → prefetchBlockData-FwcsT5H2.mjs} +334 -110
- package/dist/server/{publicProducts-BVcJ6TG7.mjs → publicProducts-Bz8loTRn.mjs} +87 -78
- package/dist/server/{registry-4ZF3bUuJ.mjs → registry-Cdvz1OtL.mjs} +539 -401
- package/dist/server/rendering/server.mjs +4 -4
- package/dist/server/rendering.mjs +8 -8
- package/dist/server/{resolveBlockData-BKQ1Fc0M.mjs → resolveBlockData-CLpAJWWf.mjs} +1 -1
- package/dist/server/routing.mjs +1 -1
- package/dist/server/{schema-DgrigZq9.mjs → schema-uSA_x1Zh.mjs} +247 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{site-styles-CxE9F3hj.mjs → site-styles-CntHn2KI.mjs} +61 -37
- package/dist/server/{siteChromeOverlayClearance-OhS6f830.mjs → siteChromeOverlayClearance-DqP40Ka0.mjs} +32 -36
- package/dist/server/{src-C44_fMy5.mjs → src-DsYPhTbs.mjs} +1289 -90
- package/dist/server/theme-bridge.mjs +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{themeAdmission-CVc04B9m.mjs → themeAdmission-CSknYpxk.mjs} +3 -2
- package/dist/server/{validation-BrbY0nxR.mjs → validation-DYxhLzqQ.mjs} +2 -2
- package/dist/server/{version-BBSk8uM6.mjs → version-Beu4q-Gv.mjs} +1 -1
- package/dist/styles/index.css +1173 -72
- package/package.json +2 -3
- package/dist/_dts/AltchaWidget-COIYJ7DF.d.ts +0 -33
- package/dist/_dts/index-D2y4Iy-d.d.ts +0 -77
- package/dist/_dts/previewCompiler-BVVgDSdq.d.ts +0 -1
- package/dist/client/src-BNZzXgWu.mjs +0 -102
- package/dist/preview-next/client/spinner-CjxE3uws.mjs +0 -67
- package/dist/server/loadPage-D2qvYV5g.mjs +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { n as useSpamProtection, r as getChallengeUrl } from "./SpamProtectionWidget-CCF6YLUX.mjs";
|
|
3
|
+
//#region ../blocks/src/system/runtime/shared/altchaProtection.ts
|
|
4
|
+
/** Bind the shared verification lifetime to the existing form API and configured policy. */
|
|
5
|
+
function useAltchaProtection(input) {
|
|
6
|
+
return useSpamProtection(input.enabled === false ? { kind: "not-required" } : {
|
|
7
|
+
kind: "required",
|
|
8
|
+
challengeUrl: getChallengeUrl(input.apiBaseUrl)
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { useAltchaProtection as t };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Ar as unsafeAsSiteId, Dr as unsafeAsFormId, Er as unsafeAsCustomerPassId, Tr as unsafeAsAppointmentServiceId, kr as unsafeAsPassId, wr as unsafeAsAppointmentResourceId } from "./schema-BdSglH2X.mjs";
|
|
3
|
+
import { b as formatCurrencyAmount } from "./purchase-BV5xfaZH.mjs";
|
|
4
4
|
import { a as clearWorkflowFeedback, i as okWith, n as err, o as reportWorkflowError, s as reportWorkflowSuccess, t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
5
|
-
import { $n as resolveDefaultBookingServiceId, B as paymentChoiceDetails, Bn as getBookingRedirectStateFromLocation, Fn as buildBookingFormInteractiveIslandProps, Gn as isBookingServiceSlidingAmountInRange, Hn as getBookingSuccessCopy, In as readOverrideServiceCategories, Jn as parseBookingCurrencyInputToCents, Kn as normalizeBookingFormConfig, Kr as resolveBookingSignupOffer, Ln as deriveBookingFormViewState, Qn as resolveBookingSiteId, R as buildBookingPaymentSelectionViewModel, Rn as formatBookingCentsAsCurrencyInput, V as paymentChoicePrice, Vn as getBookingServiceSlidingScale, Xn as resolveAppointmentCheckoutVerificationState, Yn as prepareBookingSubmission, Zn as resolveBookingPaymentStep, br as readRuntimeNow, er as selectedBookingCollectionOptionKind, ir as BOOKING_FORM_DATA_RESERVED_KEYS, nr as projectSelectedAppointmentConsentIntoForm, qn as normalizeBookingServices, rr as resolveSelectedAppointmentConsent, tr as toSelectedCollectionOptionKind, xr as resolveDateRuntimeContext, z as buildReviewedBookingPaymentViewModel, zn as formatBookingSubmissionPreparationError } from "./wizardSteps-
|
|
6
|
-
import { At as resolveBookingTimeZoneId, J as isBookingRequirementConsentFieldId, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, gt as formatTimeZoneCityLabel, kt as resolveBookingBusinessTimeZone, mt as formatTime, pt as formatDateTimeRange, t as logger, ut as formatDate, vt as resolveBookingDisplayContext } from "./noop-
|
|
7
|
-
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-
|
|
5
|
+
import { $n as resolveDefaultBookingServiceId, B as paymentChoiceDetails, Bn as getBookingRedirectStateFromLocation, Fn as buildBookingFormInteractiveIslandProps, Gn as isBookingServiceSlidingAmountInRange, Hn as getBookingSuccessCopy, In as readOverrideServiceCategories, Jn as parseBookingCurrencyInputToCents, Kn as normalizeBookingFormConfig, Kr as resolveBookingSignupOffer, Ln as deriveBookingFormViewState, Qn as resolveBookingSiteId, R as buildBookingPaymentSelectionViewModel, Rn as formatBookingCentsAsCurrencyInput, V as paymentChoicePrice, Vn as getBookingServiceSlidingScale, Xn as resolveAppointmentCheckoutVerificationState, Yn as prepareBookingSubmission, Zn as resolveBookingPaymentStep, br as readRuntimeNow, er as selectedBookingCollectionOptionKind, ir as BOOKING_FORM_DATA_RESERVED_KEYS, nr as projectSelectedAppointmentConsentIntoForm, qn as normalizeBookingServices, rr as resolveSelectedAppointmentConsent, tr as toSelectedCollectionOptionKind, xr as resolveDateRuntimeContext, z as buildReviewedBookingPaymentViewModel, zn as formatBookingSubmissionPreparationError } from "./wizardSteps-DManVJpc.mjs";
|
|
6
|
+
import { At as resolveBookingTimeZoneId, J as isBookingRequirementConsentFieldId, Nt as toUtcIsoDateTimeString, Ot as parseUtcIsoDateTimeString, gt as formatTimeZoneCityLabel, kt as resolveBookingBusinessTimeZone, mt as formatTime, pt as formatDateTimeRange, t as logger, ut as formatDate, vt as resolveBookingDisplayContext } from "./noop-CQU7tiMg.mjs";
|
|
7
|
+
import { d as DiscountCodeDisclosure, i as SiteTermsChangedNotice, o as useSiteTermsAgreement, r as SiteTermsAgreementField, t as BookingConfirmation } from "./DemoBookingPortalAccess-D2LyS_Bi.mjs";
|
|
8
8
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
9
|
+
import { r as ThemedButton, u as SpinnerNode } from "./ThemedButton-Cfbo1bfh.mjs";
|
|
9
10
|
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CYj06rX1.mjs";
|
|
10
11
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
11
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
12
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-DlTC4J2a.mjs";
|
|
12
13
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
13
14
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
14
15
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
15
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
16
|
-
import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
16
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-Uvum8q9d.mjs";
|
|
17
|
+
import { i as PaymentChoiceRows, n as BookingConsentAgreement, r as usePolling, t as BookingMailingListNote } from "./BookingMailingListNote-rUqsBN7L.mjs";
|
|
17
18
|
import { t as StepIndicator } from "./StepIndicator-BK0GEDoP.mjs";
|
|
18
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
19
|
-
import { i as
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-CDWheSjI.mjs";
|
|
19
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CBV21-9L.mjs";
|
|
20
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, t as useAvailableSlots } from "./useAvailableSlots-Cw9paRPY.mjs";
|
|
21
|
+
import { t as useBookingNowIso } from "./useBookingNowIso-C9SF2rC6.mjs";
|
|
22
|
+
import { s as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-D0veHJyi.mjs";
|
|
23
23
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
24
24
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
25
25
|
//#region ../blocks/src/system/runtime/nodes/booking-form.date-display.ts
|
|
@@ -192,7 +192,6 @@ function executeBookingSubmission$1(api, data) {
|
|
|
192
192
|
discountCode: data.discountCode,
|
|
193
193
|
selectedSlidingAmount: data.selectedSlidingAmount,
|
|
194
194
|
selectedCollectionOptionKind: data.selectedCollectionOptionKind,
|
|
195
|
-
altchaSolution: data.altchaSolution ?? null,
|
|
196
195
|
successUrl: data.successUrl,
|
|
197
196
|
cancelUrl: data.cancelUrl
|
|
198
197
|
});
|
|
@@ -306,7 +305,6 @@ function createInitialBookingFlowReducerState(input) {
|
|
|
306
305
|
selectedCollectionOptionKind: toSelectedCollectionOptionKind(initialData.selectedCollectionOptionKind),
|
|
307
306
|
selectedAppointmentPackageId: toOptionalCustomerPassId(toOptionalString(initialData.selectedAppointmentPackageId)),
|
|
308
307
|
review: null,
|
|
309
|
-
altchaSolution: null,
|
|
310
308
|
validationErrors: createEmptyBookingValidationErrors(),
|
|
311
309
|
feedback: { kind: "none" }
|
|
312
310
|
};
|
|
@@ -746,7 +744,6 @@ function buildBookingSubmitPlan(input) {
|
|
|
746
744
|
services: input.services,
|
|
747
745
|
defaultServiceId: input.defaultServiceId,
|
|
748
746
|
defaultResourceId: input.defaultResourceId,
|
|
749
|
-
altchaSolution: input.altchaSolution ?? input.state.altchaSolution,
|
|
750
747
|
viewerTimeZone: input.viewerTimeZone
|
|
751
748
|
});
|
|
752
749
|
if (!prepared.ok) {
|
|
@@ -832,7 +829,6 @@ function getAppointmentBookingOverrideInput(props) {
|
|
|
832
829
|
requiresServiceSelection: Boolean(content.requiresServiceSelection),
|
|
833
830
|
requiresResourceSelection: Boolean(content.requiresResourceSelection),
|
|
834
831
|
shouldAutoSelectSingleResource: content.shouldAutoSelectSingleResource ?? true,
|
|
835
|
-
spamProtectionEnabled: content.spamProtectionEnabled,
|
|
836
832
|
successMessage: content.successMessage ?? form.settings?.successMessage ?? void 0,
|
|
837
833
|
blockId: props.blockId
|
|
838
834
|
}
|
|
@@ -1141,14 +1137,14 @@ function planBookingPackageAcceptance(input) {
|
|
|
1141
1137
|
}] : [];
|
|
1142
1138
|
}
|
|
1143
1139
|
function isBookingPaymentEvent(event) {
|
|
1144
|
-
return event.type === "payment-option-selected" || event.type === "sliding-amount-changed" || event.type === "appointment-package-selected" || event.type === "discount-code-changed"
|
|
1140
|
+
return event.type === "payment-option-selected" || event.type === "sliding-amount-changed" || event.type === "appointment-package-selected" || event.type === "discount-code-changed";
|
|
1145
1141
|
}
|
|
1146
1142
|
function applyBookingPaymentEvent(state, event) {
|
|
1147
1143
|
const change = bookingPaymentEventChange(event);
|
|
1148
1144
|
return {
|
|
1149
1145
|
...state,
|
|
1150
1146
|
...change,
|
|
1151
|
-
validationErrors:
|
|
1147
|
+
validationErrors: clearBookingFormError(state.validationErrors)
|
|
1152
1148
|
};
|
|
1153
1149
|
}
|
|
1154
1150
|
function bookingPaymentEventChange(event) {
|
|
@@ -1166,8 +1162,6 @@ function bookingPaymentEventChange(event) {
|
|
|
1166
1162
|
selectedCollectionOptionKind: void 0
|
|
1167
1163
|
};
|
|
1168
1164
|
case "discount-code-changed": return { discountCode: event.code };
|
|
1169
|
-
case "altcha-solution-set": return { altchaSolution: event.solution };
|
|
1170
|
-
case "altcha-solution-invalidated": return { altchaSolution: null };
|
|
1171
1165
|
}
|
|
1172
1166
|
}
|
|
1173
1167
|
function changesBookingIntent(event) {
|
|
@@ -1425,10 +1419,12 @@ function useBookingFlowController(input) {
|
|
|
1425
1419
|
});
|
|
1426
1420
|
latestRef.current.setDiscountCode("");
|
|
1427
1421
|
},
|
|
1428
|
-
reset: () =>
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1422
|
+
reset: () => {
|
|
1423
|
+
input.dispatch({
|
|
1424
|
+
type: "reset",
|
|
1425
|
+
initial: latestRef.current.resetState
|
|
1426
|
+
});
|
|
1427
|
+
},
|
|
1432
1428
|
clearFeedback: () => {
|
|
1433
1429
|
input.dispatch({ type: "feedback-cleared" });
|
|
1434
1430
|
latestRef.current.clearFeedback();
|
|
@@ -1532,16 +1528,10 @@ function bookingEditActions(dispatch) {
|
|
|
1532
1528
|
setSlidingAmountInput: (value) => dispatch({
|
|
1533
1529
|
type: "sliding-amount-changed",
|
|
1534
1530
|
value
|
|
1535
|
-
})
|
|
1536
|
-
setAltchaSolution: (solution) => dispatch({
|
|
1537
|
-
type: "altcha-solution-set",
|
|
1538
|
-
solution
|
|
1539
|
-
}),
|
|
1540
|
-
invalidateSpamProtection: () => dispatch({ type: "altcha-solution-invalidated" })
|
|
1531
|
+
})
|
|
1541
1532
|
};
|
|
1542
1533
|
}
|
|
1543
1534
|
function failBookingSubmission(message, dispatch) {
|
|
1544
|
-
dispatch({ type: "altcha-solution-invalidated" });
|
|
1545
1535
|
dispatch({
|
|
1546
1536
|
type: "feedback-set",
|
|
1547
1537
|
feedback: {
|
|
@@ -1801,7 +1791,6 @@ function useHeadlessBookingFlow(options) {
|
|
|
1801
1791
|
});
|
|
1802
1792
|
const appointmentPackageItems = appointmentPackages.tag === "loaded" ? appointmentPackages.value : [];
|
|
1803
1793
|
const selectedAppointmentPackage = appointmentPackageItems.find((appointmentPackage) => appointmentPackage.customerPassId === state.selectedAppointmentPackageId) ?? null;
|
|
1804
|
-
const spamProtectionEnabled = options.spamProtectionEnabled ?? isSpamProtectionEnabled();
|
|
1805
1794
|
const status = resolveHeadlessBookingStatus({
|
|
1806
1795
|
feedback: state.feedback,
|
|
1807
1796
|
phase: state.phase
|
|
@@ -1911,15 +1900,6 @@ function useHeadlessBookingFlow(options) {
|
|
|
1911
1900
|
setOpen: discountUi.setDiscountUiOpen,
|
|
1912
1901
|
clear: actions.clearDiscountCode
|
|
1913
1902
|
},
|
|
1914
|
-
spamProtection: spamProtectionEnabled ? {
|
|
1915
|
-
enabled: true,
|
|
1916
|
-
provider: "altcha",
|
|
1917
|
-
challenge: {
|
|
1918
|
-
url: getChallengeUrl(),
|
|
1919
|
-
auto: "onfocus"
|
|
1920
|
-
},
|
|
1921
|
-
solution: state.altchaSolution
|
|
1922
|
-
} : { enabled: false },
|
|
1923
1903
|
feedback: state.feedback,
|
|
1924
1904
|
actions
|
|
1925
1905
|
};
|
|
@@ -2490,8 +2470,7 @@ function HeadlessBookingDefaultForm({ booking, onSubmit }) {
|
|
|
2490
2470
|
onSubmit
|
|
2491
2471
|
}),
|
|
2492
2472
|
/* @__PURE__ */ jsx(DefaultBookingDiscount, { booking }),
|
|
2493
|
-
/* @__PURE__ */ jsx(DefaultBookingFeedback, { booking })
|
|
2494
|
-
/* @__PURE__ */ jsx(DefaultBookingAltcha, { booking })
|
|
2473
|
+
/* @__PURE__ */ jsx(DefaultBookingFeedback, { booking })
|
|
2495
2474
|
]
|
|
2496
2475
|
});
|
|
2497
2476
|
}
|
|
@@ -3072,16 +3051,6 @@ function DefaultBookingFeedback({ booking }) {
|
|
|
3072
3051
|
})]
|
|
3073
3052
|
});
|
|
3074
3053
|
}
|
|
3075
|
-
function DefaultBookingAltcha({ booking }) {
|
|
3076
|
-
if (!booking.spamProtection.enabled) return null;
|
|
3077
|
-
return /* @__PURE__ */ jsx("div", {
|
|
3078
|
-
className: "ab-altcha",
|
|
3079
|
-
children: /* @__PURE__ */ jsx(AltchaWidget, {
|
|
3080
|
-
challengeUrl: booking.spamProtection.challenge.url,
|
|
3081
|
-
onSolutionChange: booking.actions.setAltchaSolution
|
|
3082
|
-
})
|
|
3083
|
-
});
|
|
3084
|
-
}
|
|
3085
3054
|
function DefaultBookingErrorSummary({ errors, id }) {
|
|
3086
3055
|
if (!hasBookingValidationErrors(errors)) return null;
|
|
3087
3056
|
return /* @__PURE__ */ jsxs(FeedbackMessage, {
|
|
@@ -3332,7 +3301,6 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
3332
3301
|
const [redirectState] = useState(() => getBookingRedirectStateFromLocation(getBookingRedirectLocationSnapshot()));
|
|
3333
3302
|
const [localMailingListNote, setLocalMailingListNote] = useState(null);
|
|
3334
3303
|
const [localCustomerEmail, setLocalCustomerEmail] = useState(null);
|
|
3335
|
-
const showSpamProtection = render.hydration.spamProtectionEnabled ?? isSpamProtectionEnabled();
|
|
3336
3304
|
const api = useBlockApi();
|
|
3337
3305
|
const hasPortalAuth = api.config.auth.type === "bearer" || api.config.authOverrides?.portal?.type === "bearer";
|
|
3338
3306
|
const formId = render.hydration.formId ?? form?.id ?? "booking-form";
|
|
@@ -3354,7 +3322,6 @@ const BookingFormClient = ({ siteId: siteIdProp, render }) => {
|
|
|
3354
3322
|
requiresResourceSelection: render.hydration.requiresResourceSelection,
|
|
3355
3323
|
shouldAutoSelectSingleResource: render.hydration.shouldAutoSelectSingleResource,
|
|
3356
3324
|
enableAppointmentPackages: hasPortalAuth,
|
|
3357
|
-
spamProtectionEnabled: showSpamProtection,
|
|
3358
3325
|
successMessage: render.display.successMessage ?? void 0,
|
|
3359
3326
|
viewerTimeZone
|
|
3360
3327
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as BlockApiProvider } from "./context-
|
|
4
|
-
import { t as BookingFormClient } from "./booking-form.client-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-CBV21-9L.mjs";
|
|
4
|
+
import { t as BookingFormClient } from "./booking-form.client-BSbWgLyx.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
6
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-CROHPlYS.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,11 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as assertNever } from "./src-VIsPY-kw.mjs";
|
|
3
|
-
import { Er as normalizeEventRegistrationPageSurfaceSubject, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kn as normalizeBookingFormConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, ar as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, br as readRuntimeNow, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, qn as normalizeBookingServices, xn as resolveRuntimeEventDestination } from "./wizardSteps-
|
|
4
|
-
import { W as publicEventSchema } from "./noop-
|
|
5
|
-
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-
|
|
6
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
7
|
-
import { i as
|
|
8
|
-
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-Bll4QwBi.mjs";
|
|
3
|
+
import { Er as normalizeEventRegistrationPageSurfaceSubject, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, Kn as normalizeBookingFormConfig, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, Ot as getSingleSelectedPricingOptionId, P as resolveHeadlessEventRegistrationView, Vt as resolveRegistrationDisplay, Wt as createHostedBlockApiConfig, ar as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, br as readRuntimeNow, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, qn as normalizeBookingServices, xn as resolveRuntimeEventDestination } from "./wizardSteps-DManVJpc.mjs";
|
|
4
|
+
import { W as publicEventSchema } from "./noop-CQU7tiMg.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-CzkG0NSJ.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CBV21-9L.mjs";
|
|
7
|
+
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-BSbWgLyx.mjs";
|
|
9
8
|
import * as React$1 from "react";
|
|
10
9
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
11
10
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -63,7 +62,6 @@ function getEventRegistrationOverrideInput(props) {
|
|
|
63
62
|
...content.successMessage ? { successMessage: content.successMessage } : {},
|
|
64
63
|
...content.buttonText != null ? { buttonText: content.buttonText } : {},
|
|
65
64
|
...content.buttonVariant ? { buttonVariant: content.buttonVariant } : {},
|
|
66
|
-
...content.spamProtectionEnabled != null ? { spamProtectionEnabled: content.spamProtectionEnabled } : {},
|
|
67
65
|
...content.supportEmail ? { supportEmail: content.supportEmail } : {},
|
|
68
66
|
...props.blockId !== void 0 ? { blockId: props.blockId } : {}
|
|
69
67
|
}
|
|
@@ -122,19 +120,7 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
122
120
|
]);
|
|
123
121
|
const currentStep = steps.find((step) => step.state === "active") ?? null;
|
|
124
122
|
const directPaymentOptions = wizard.directPaymentOptions;
|
|
125
|
-
const submit =
|
|
126
|
-
const plan = resolveEventRegistrationSubmitPlan({
|
|
127
|
-
paymentSelection: wizard.paymentSelection,
|
|
128
|
-
eventRequiresPayment: wizard.eventRequiresPayment,
|
|
129
|
-
canJoinWaitlist: wizard.step !== "select-payment" && wizard.admission.kind === "waitlist"
|
|
130
|
-
});
|
|
131
|
-
if (!plan.ok) return {
|
|
132
|
-
ok: false,
|
|
133
|
-
reason: "blocked",
|
|
134
|
-
message: plan.message
|
|
135
|
-
};
|
|
136
|
-
return wizard.handleSubmit(plan.args.method, plan.args.passId, plan.args.membershipId, plan.args.selection);
|
|
137
|
-
}, [directPaymentOptions, wizard]);
|
|
123
|
+
const submit = useHeadlessRegistrationSubmit(wizard);
|
|
138
124
|
const next = useEventRegistrationNext(wizard, submit);
|
|
139
125
|
const back = useEventRegistrationBack(wizard);
|
|
140
126
|
const updateAttendee = useCallback((values) => {
|
|
@@ -147,15 +133,6 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
147
133
|
wizard.handlePaymentSelectionChange(toInternalPaymentSelection(selection));
|
|
148
134
|
}, [directPaymentOptions, wizard]);
|
|
149
135
|
const selectedPricingOptionId = getSingleSelectedPricingOptionId(wizard.selectedTicketLines);
|
|
150
|
-
const spamProtection = options.spamProtectionEnabled ?? isSpamProtectionEnabled() ? {
|
|
151
|
-
enabled: true,
|
|
152
|
-
provider: "altcha",
|
|
153
|
-
challenge: {
|
|
154
|
-
url: getChallengeUrl(),
|
|
155
|
-
auto: "onfocus"
|
|
156
|
-
},
|
|
157
|
-
solution: wizard.altchaSolution
|
|
158
|
-
} : { enabled: false };
|
|
159
136
|
const payment = resolvePaymentModel(wizard, directPaymentOptions);
|
|
160
137
|
return {
|
|
161
138
|
flow: {
|
|
@@ -213,7 +190,6 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
213
190
|
registration: wizard.existingRegistration
|
|
214
191
|
},
|
|
215
192
|
waitlistClaim: wizard.waitlistClaim,
|
|
216
|
-
spamProtection,
|
|
217
193
|
terminal: {
|
|
218
194
|
result: wizard.registrationResult,
|
|
219
195
|
errorMessage: wizard.errorMessage,
|
|
@@ -236,7 +212,6 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
236
212
|
selectPayment,
|
|
237
213
|
setDiscountCode: wizard.setDiscountCode,
|
|
238
214
|
setDiscountOpen: wizard.setDiscountUiOpen,
|
|
239
|
-
setAltchaSolution: wizard.setAltchaSolution,
|
|
240
215
|
requestLogin: () => wizard.setShowMagicLinkModal(true),
|
|
241
216
|
logout: wizard.handleLogout,
|
|
242
217
|
next,
|
|
@@ -253,6 +228,22 @@ function useEventRegistrationControllerWithDeps(options, deps) {
|
|
|
253
228
|
wizard
|
|
254
229
|
};
|
|
255
230
|
}
|
|
231
|
+
/** Execute the existing submission decision through the wizard's booking owner. */
|
|
232
|
+
function useHeadlessRegistrationSubmit(wizard) {
|
|
233
|
+
return useCallback(async () => {
|
|
234
|
+
const plan = resolveEventRegistrationSubmitPlan({
|
|
235
|
+
paymentSelection: wizard.paymentSelection,
|
|
236
|
+
eventRequiresPayment: wizard.eventRequiresPayment,
|
|
237
|
+
canJoinWaitlist: wizard.step !== "select-payment" && wizard.admission.kind === "waitlist"
|
|
238
|
+
});
|
|
239
|
+
if (!plan.ok) return {
|
|
240
|
+
ok: false,
|
|
241
|
+
reason: "blocked",
|
|
242
|
+
message: plan.message
|
|
243
|
+
};
|
|
244
|
+
return wizard.handleSubmit(plan.args.method, plan.args.passId, plan.args.membershipId, plan.args.selection);
|
|
245
|
+
}, [wizard]);
|
|
246
|
+
}
|
|
256
247
|
/** The embedded payment's headless actions all come from the one payment controller. */
|
|
257
248
|
function headlessPaymentActions(payment) {
|
|
258
249
|
return {
|
|
@@ -607,4 +598,4 @@ const HeadlessBookingPaymentSelectionStep = (props) => {
|
|
|
607
598
|
return React$1.createElement(HeadlessBookingPaymentSelectionStep$1, props);
|
|
608
599
|
};
|
|
609
600
|
//#endregion
|
|
610
|
-
export { BOOKING_FORM_DATA_RESERVED_KEY_VALUES, BookingFormClient, EventRegistrationPayment,
|
|
601
|
+
export { BOOKING_FORM_DATA_RESERVED_KEY_VALUES, BookingFormClient, EventRegistrationPayment, HeadlessBookingPaymentSelectionStep, HeadlessBookingProvider, HeadlessEventRegistrationProvider, createBookingBlockApiConfig, createEventRegistrationBlockApiConfig, getAppointmentBookingOverrideInput, getEventRegistrationOverrideInput, useBookingFormConfig, useHeadlessBookingFlow, useHeadlessEventRegistrationFlow };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-C_Y6VYnF.mjs";
|
|
3
3
|
import { i as carouselRegionAttributes } from "./carousel.shared-DBnWEJzo.mjs";
|
|
4
|
-
import { t as CarouselNodeClient } from "./carousel.client-
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-CQLV8_Al.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-BGJVsHRb.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as clsx } from "./ThemedButton-
|
|
2
|
+
import { C as clsx } from "./ThemedButton-Cfbo1bfh.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-DBnWEJzo.mjs";
|
|
4
4
|
import { t as createLucideIcon } from "./createLucideIcon-CIbxe9em.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-C_Y6VYnF.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-BWS2r5Ef.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BdWp6LHa.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-CDUohm_2.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-C_Y6VYnF.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-DJfomKQc.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-BdWp6LHa.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-CDUohm_2.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/nodes/checkout.client.tsx
|