@riverbankcms/sdk 0.173.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-O50mTMCY.d.ts → BlocksIslandsHydrator-GqVX3I8E.d.ts} +1 -1
- package/dist/_dts/{Page-Bk99sJwV.d.ts → Page-BhUH31M-.d.ts} +27 -16
- package/dist/_dts/{SdkPreviewMode-DzAue6Kj.d.ts → SdkPreviewMode-DBn2x0UL.d.ts} +14 -7
- package/dist/_dts/{client-ZlNEIvlU.d.ts → client-Cr-sOeSl.d.ts} +1 -1
- package/dist/_dts/{content-types-DBXPNc0h.d.ts → content-types-DKw1yJdN.d.ts} +2 -2
- package/dist/_dts/{contracts-D9bhu0bb.d.ts → contracts-CJ2O03nB.d.ts} +5 -4
- package/dist/_dts/{footerPageOutline-Bfap3soN.d.ts → footerPageOutline-DoGHHKr_.d.ts} +6 -6
- package/dist/_dts/{generatePageMetadata-DwCdg31h.d.ts → generatePageMetadata-CJGu4hoa.d.ts} +2 -2
- package/dist/_dts/{index-C611wjIL.d.ts → index--39uLjrr.d.ts} +1 -1
- package/dist/_dts/{index-CJzs-yIJ.d.ts → index-3GzargmS.d.ts} +2 -2
- package/dist/_dts/{index-Dq_AboWN.d.ts → index-Bq-488M7.d.ts} +1 -1
- package/dist/_dts/{index-KXh8FQ2s.d.ts → index-DQZ5L0Gb.d.ts} +2 -2
- package/dist/_dts/{index-DutLU2d2.d.ts → index-DYlfdT1O.d.ts} +2 -1
- package/dist/_dts/{index-BnatulTs.d.ts → index-DYsP4k6S.d.ts} +3 -3
- package/dist/_dts/{index-DW3eeNph.d.ts → index-DdEi2iXd.d.ts} +4 -4
- package/dist/_dts/{loadContent-Bde2y870.d.ts → loadContent-BVPagYmy.d.ts} +11 -11
- package/dist/_dts/{request-Bysk4QPI.d.ts → request-Be1E-H-V.d.ts} +3559 -1967
- package/dist/_dts/{resolveBlockData-ChbNvpSF.d.ts → resolveBlockData-D1pL25bD.d.ts} +5 -5
- package/dist/_dts/{resolvePageContent-CGa6QMgc.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 +3 -3
- 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-BwitGNTl.d.ts → types-5MeDI1w8.d.ts} +7 -7
- package/dist/_dts/{types-BoEk9ZON.d.ts → types-Bm5_3VEd.d.ts} +3 -3
- package/dist/_dts/{types-kpp8XyXv.d.ts → types-CVoCc_Ia.d.ts} +2 -2
- package/dist/_dts/{validation-ChftKX-o.d.ts → validation-lEtYD-Rh.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-BnUeSE3d.mjs → BlocksIslandsHydrator-DkflFLGQ.mjs} +17 -17
- package/dist/client/{BookingMailingListNote-LHQMODqB.mjs → BookingMailingListNote-CAyoiAGD.mjs} +10 -10
- package/dist/client/{BookingPanelArrangement-Be704P85.mjs → BookingPanelArrangement-C7yiJrxm.mjs} +1 -1
- package/dist/client/{BookingQuestionFields-BewbU_cV.mjs → BookingQuestionFields-DZMrGvBh.mjs} +3 -3
- package/dist/client/{CalendarNavigationChevron-BMZp3RS3.mjs → CalendarNavigationChevron-BPQU5Snc.mjs} +6 -6
- package/dist/client/{DemoBookingPortalAccess-CARUWQ_E.mjs → DemoBookingPortalAccess-BnEgvJas.mjs} +5 -5
- package/dist/client/{EventCalendar.client-CaI6upCX.mjs → EventCalendar.client-BiWQc28-.mjs} +9 -9
- package/dist/client/{EventCombined.client-CoRUaYHY.mjs → EventCombined.client-B_ytWQtn.mjs} +7 -7
- package/dist/client/{EventItem-Doe4KodB.mjs → EventItem-C-mxXpX_.mjs} +4 -4
- package/dist/client/{EventListWeekNavigation-CXWLKDfa.mjs → EventListWeekNavigation-Bm3Ap1Rd.mjs} +1 -1
- package/dist/client/{EventListing.client-DvJ5tGTx.mjs → EventListing.client-Bs_8im5_.mjs} +3 -3
- package/dist/client/{EventListing.view-BmfyK7S5.mjs → EventListing.view-CN7BjGgC.mjs} +6 -6
- package/dist/client/{EventRegistrationPayment-DwMlJB2V.mjs → EventRegistrationPayment-DPkRcSdw.mjs} +11 -10
- package/dist/client/{LocationMapActions-CdRPU6gp.mjs → LocationMapActions-BJT7MqP2.mjs} +1 -1
- package/dist/client/{MapDrawingSvg-DCLtxOnt.mjs → MapDrawingSvg-DCIwlON6.mjs} +1 -1
- package/dist/client/{Page-D46Dmr7b.mjs → Page--xJ23nA5.mjs} +629 -494
- package/dist/client/{StepIndicator-CrSZCZn1.mjs → StepIndicator-D391QRNc.mjs} +9 -8
- package/dist/client/{accessibleSurfaces-D4DhWo9j.mjs → accessibleSurfaces-DN8it_Cx.mjs} +35 -7
- package/dist/client/{accordion-P8xcfKxq.mjs → accordion-BQtTkDN8.mjs} +1 -1
- package/dist/client/{bookability-SargNwlO.mjs → bookability-CE637yDE.mjs} +1 -1
- package/dist/client/{booking-form.client-BM2s-NqR.mjs → booking-form.client-D9M7TKGV.mjs} +362 -47
- package/dist/client/{bookingForm-JnaZPZge.mjs → bookingForm-BsOS0sl9.mjs} +4 -4
- package/dist/client/bookings.mjs +6 -6
- package/dist/client/{boxStyleClassNames-Cahps5kR.mjs → boxStyleClassNames-CNDLpT06.mjs} +1 -1
- package/dist/client/{carousel-CQQ_m0KA.mjs → carousel-CPsW-FPh.mjs} +1 -1
- package/dist/client/{cart-0Q4fjw_K.mjs → cart-CwElmocm.mjs} +3 -3
- package/dist/client/{cart.client-BI0IaHX3.mjs → cart.client-RpqI56w8.mjs} +1 -1
- package/dist/client/{checkout-1J-3ftxF.mjs → checkout-CfMgqY8H.mjs} +3 -3
- package/dist/client/{checkout.client-DOGYDlDk.mjs → checkout.client-BpuPyOuJ.mjs} +1 -1
- package/dist/client/{checkoutUrls-CwHqcqzP.mjs → checkoutUrls-VeHY6WYj.mjs} +1 -1
- package/dist/client/client.mjs +158 -7
- package/dist/client/{context-D0KCgbOq.mjs → context-CNlesLfF.mjs} +1 -1
- package/dist/client/{course-CmOuoZHN.mjs → course-q1sA4Cj-.mjs} +2 -2
- package/dist/client/{creditProducts-BTRX4edc.mjs → creditProducts-KYMVIH3J.mjs} +2 -84
- package/dist/client/{dateFormatting-Dmfaczzq.mjs → dateFormatting-B73Ll0s4.mjs} +9 -1
- package/dist/client/{demoPortalMagicLink-CL7KGRta.mjs → demoPortalMagicLink-BVbLD4pi.mjs} +1 -1
- package/dist/client/{display-lL-YRApN.mjs → display-D8MW2b0e.mjs} +618 -397
- package/dist/client/{enhanceHeaderSection-B-eLGs2C.mjs → enhanceHeaderSection-BzjY6AiY.mjs} +3 -3
- package/dist/client/{event-details.client-DH1-Jxsh.mjs → event-details.client-CseTWUFC.mjs} +1 -1
- package/dist/client/{event-registration.client-GuuElczW.mjs → event-registration.client-b5TLxntR.mjs} +11 -11
- package/dist/client/{eventCalendar-BiCINPkV.mjs → eventCalendar-C-kJNIc9.mjs} +4 -4
- package/dist/client/{eventCombined-BtzmH6FW.mjs → eventCombined-BgHJGhwE.mjs} +4 -4
- package/dist/client/{eventDetails-BJpAD10-.mjs → eventDetails-CAwbreD0.mjs} +2 -2
- package/dist/client/{eventListing-jLB8iRqp.mjs → eventListing-_14atrj8.mjs} +4 -4
- package/dist/client/{eventRegistration-WhtpDEbq.mjs → eventRegistration-BOqSdstJ.mjs} +4 -4
- package/dist/client/{form-DO6qKH3M.mjs → form-DfAB-llc.mjs} +3 -3
- package/dist/client/{form.client-D12ljYiX.mjs → form.client-DN-I9_qC.mjs} +6 -6
- package/dist/client/{form.parts-C8QHaQOI.mjs → form.parts-t2Q1neM6.mjs} +1 -1
- package/dist/client/{formatDate-BnhfIpCa.mjs → formatDate-Dp7POa9Y.mjs} +1 -1
- package/dist/client/gifting/client.mjs +2 -2
- package/dist/client/{headerSection-BtFWtoUm.mjs → headerSection-Dces54pb.mjs} +2 -2
- package/dist/client/{newsletter-form.client-oHrqM_Ao.mjs → newsletter-form.client-D_YFUlR2.mjs} +9 -7
- package/dist/client/{newsletter-form.parts-D5U-FuVy.mjs → newsletter-form.parts-URO5Mn_I.mjs} +1 -1
- package/dist/client/{newsletterForm-CBYbFxSx.mjs → newsletterForm-_c9fKIzS.mjs} +3 -3
- package/dist/client/{noop-CN0o0yjH.mjs → noop-D5mFWXtN.mjs} +30 -6
- package/dist/client/portal/client.mjs +346 -272
- package/dist/client/{product-detail.client-d_sNCapC.mjs → product-detail.client-CVW1UIxJ.mjs} +1 -1
- package/dist/client/{product-list.client-DkSpw6WQ.mjs → product-list.client-CF9hO23G.mjs} +1 -1
- package/dist/client/{productDetail-DaqM-LgL.mjs → productDetail-C_qbmUuP.mjs} +3 -3
- package/dist/client/{productList-CMx4-XlG.mjs → productList-Df5qDD0z.mjs} +3 -3
- package/dist/client/{propsDecoder-BZbUKstC.mjs → propsDecoder-BiEyK2ii.mjs} +3 -3
- package/dist/client/{registry.server-Cdot3dMk.mjs → registry.server-ClcfWpvM.mjs} +28 -26
- package/dist/client/rendering/client.mjs +26 -26
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +17 -13
- package/dist/client/{richText-coerce-ByApwB4q.mjs → richText-coerce-C32cRQ03.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-DTET8f__.mjs → routeIslandApiConfig-DAypPzSo.mjs} +1 -1
- package/dist/client/{runtimeResponse-IkOwKZD0.mjs → runtimeResponse-9v8q2NBc.mjs} +1 -1
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +3 -0
- package/dist/client/{shop-commerce-oDR76k1q.mjs → shop-commerce-Bw4_BXQg.mjs} +12 -12
- package/dist/client/{shop-commerce-store-DjoUpL3a.mjs → shop-commerce-store-Da6Ah-_4.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-WsGb9DD8.mjs → shop-discount-apply.state-DidgH7ow.mjs} +2 -2
- package/dist/client/{shop-Cy6xXDM7.mjs → shop-gteEpeO5.mjs} +3 -3
- package/dist/client/{shop.client-Brha4BSM.mjs → shop.client-CbbdjWWd.mjs} +13 -13
- package/dist/client/{shop.interactive-CXhYl0DW.mjs → shop.interactive-CKFORzux.mjs} +13 -20
- package/dist/client/{shopShared-JCa_SRhP.mjs → shopShared-C7QjoywZ.mjs} +2 -2
- package/dist/client/{timetableModel-CZeJwMxP.mjs → timetableModel-CtZiIj9q.mjs} +24 -14
- package/dist/client/{useAvailableSlots-DfbSkWop.mjs → useAvailableSlots-CUVRD1nx.mjs} +24 -4
- package/dist/client/{useDiscountApply-Dq-wjb1d.mjs → useDiscountApply-BZU5DWZQ.mjs} +1 -1
- package/dist/client/{useDiscountCodeUi-Cyy0meCH.mjs → useDiscountCodeUi-BuLgof7O.mjs} +1 -1
- package/dist/client/{useEventPagination-CCAGQHsD.mjs → useEventPagination-B4VPtSEF.mjs} +6 -6
- package/dist/client/{view-Sw075FOY.mjs → view-CvlTplao.mjs} +2 -2
- package/dist/client/{view-D6yebI4r.mjs → view-CxUpgcM6.mjs} +12 -10
- 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-DG2rXUmo.mjs → PageSectionToolbar-BFbSrDbi.mjs} +57 -144
- package/dist/preview-next/client/{PreviewEditorSidebar-BDY5vdHU.mjs → PreviewEditorSidebar-BtpzqQ-i.mjs} +758 -1279
- package/dist/preview-next/client/{PreviewEditorUI-CqZCfOaz.mjs → PreviewEditorUI-z22h-CCY.mjs} +29 -26
- package/dist/preview-next/client/{PreviewShell-Bv2HZ7JY.mjs → PreviewShell-BW3Qpoa_.mjs} +50 -30
- package/dist/preview-next/client/{SdkPreviewModeRuntime-BMTcR-MW.mjs → SdkPreviewModeRuntime-BvVeK1hR.mjs} +47 -19
- package/dist/preview-next/client/{lucide-react-BCNn8dEQ.mjs → lucide-react-Dfgl3Vtq.mjs} +7 -1
- package/dist/preview-next/client/{previewAssistantSlot-La6MerV_.mjs → previewAssistantSlot-BUqAh1FL.mjs} +100626 -51720
- package/dist/preview-next/client/{previewChromeRoot-BcOQqJIP.mjs → previewChromeRoot-NCy5zHO8.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-BkckHox4.mjs → sdk-runtime-CxmKDVGZ.mjs} +2 -2
- package/dist/preview-next/client/siteStyleAccess-B_UaDyJO.mjs +9356 -0
- package/dist/preview-next/client/{useAutosaveStatus-CPAHgGqI.mjs → useAutosaveStatus-BqmWvPLY.mjs} +2 -2
- package/dist/preview-next/client/{useOpenBlockForSetup-BDkuSZxQ.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-CPV30ABr.mjs → route-contract-DV6SeCNv.mjs} +152 -2
- package/dist/server/{Block.shared-BaMMstO1.mjs → Block.shared-Ch2FKAvU.mjs} +10 -5
- 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-Dge4sqel.mjs → bindings-CQg2lzZn.mjs} +6 -4
- package/dist/server/{client-VVIQjC4r.mjs → client-aYRTVneD.mjs} +155 -4
- 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/index.mjs +2 -2
- package/dist/server/{loadContent-BIJb3WAK.mjs → loadContent-Cgpfr44e.mjs} +8 -9
- package/dist/server/{loadPage-DjTU19y7.mjs → loadPage-RDk10NMP.mjs} +3 -3
- package/dist/server/lookMediaFrame-CQtkvlDn.mjs +2528 -0
- package/dist/server/manifest.mjs +2 -2
- package/dist/server/next.mjs +9 -8
- package/dist/server/{overrideResolution-1Ru3NMQj.mjs → overrideResolution-VhhN94d8.mjs} +3 -4
- package/dist/server/page-converter.mjs +2 -2
- package/dist/server/{pageRenderPlan-CytPhrI9.mjs → pageRenderPlan-CkFTsxkd.mjs} +25 -17
- package/dist/server/{pageRuntimeSupport-DWspU5EZ.mjs → pageRuntimeSupport-CpAtzNxD.mjs} +14 -6
- package/dist/server/{pageShared-Bhx8bVe1.mjs → pageShared-B8yLPjs0.mjs} +371 -56
- package/dist/server/{parseThemeForPersistence-CtgRtvo3.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-BjvFb0CA.mjs → prebuild-DOu6QceG.mjs} +1 -1
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-Db3stNpp.mjs → prefetchBlockData-CfOXFKYG.mjs} +2 -2
- package/dist/server/{registry-BMCfcev6.mjs → registry-34rkAfaU.mjs} +608 -3131
- 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 +7 -7
- package/dist/server/{resolveBlockData--yUbI-Ll.mjs → resolveBlockData-D7VeoWgr.mjs} +1 -1
- package/dist/server/{resolveButtonColourStates-CCPUY9Xh.mjs → resolveButtonColourStates--6yJp9Tq.mjs} +15 -4
- package/dist/server/{schema-D5Vfmqzw.mjs → schema-CUDHMirj.mjs} +46 -153
- 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-EgTtnTcY.mjs → validation-CLVKoJrX.mjs} +4 -4
- package/dist/server/{version-LjgU0Cq1.mjs → version-HVfdvBJ0.mjs} +1 -1
- package/dist/styles/index.css +935 -271
- package/package.json +1 -1
- package/dist/client/runtimeResponse-Wd6kwhE_.mjs +0 -3
- package/dist/preview-next/client/SiteChromeCustomizeButton-D1MGyN_Z.mjs +0 -55403
- package/dist/server/customCss-QymcmOZ-.mjs +0 -97
- package/dist/server/opaqueSurface-COEKXVwk.mjs +0 -54
|
@@ -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, $n as getSingleSelectedPricingOptionId,
|
|
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 { Bs as
|
|
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",
|
|
@@ -3046,6 +3061,13 @@ const EVENT_MANAGEMENT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions({
|
|
|
3046
3061
|
"server:internal_error"
|
|
3047
3062
|
]
|
|
3048
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
|
+
},
|
|
3049
3071
|
updateEventIdentity: {
|
|
3050
3072
|
path: "/sites/{siteId}/bookings/events/{eventId}",
|
|
3051
3073
|
method: "PATCH",
|
|
@@ -3636,6 +3658,30 @@ const PUBLIC_ONBOARDING_ATTEMPT_ENDPOINT_DEFINITIONS = defineEndpointDefinitions
|
|
|
3636
3658
|
//#endregion
|
|
3637
3659
|
//#region ../api/src/billingEndpointDefinitions.ts
|
|
3638
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
|
+
},
|
|
3639
3685
|
adminChangePlan: {
|
|
3640
3686
|
path: "/admin/billing/plan",
|
|
3641
3687
|
method: "POST",
|
|
@@ -4626,6 +4672,18 @@ const API_ENDPOINTS$1 = {
|
|
|
4626
4672
|
"server:internal_error"
|
|
4627
4673
|
]
|
|
4628
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
|
+
},
|
|
4629
4687
|
sendTestEmail: {
|
|
4630
4688
|
path: "/sites/{siteId}/settings/emails/test",
|
|
4631
4689
|
method: "POST",
|
|
@@ -4708,6 +4766,30 @@ const API_ENDPOINTS$1 = {
|
|
|
4708
4766
|
responseKind: "json",
|
|
4709
4767
|
errors: ["auth:forbidden", "server:internal_error"]
|
|
4710
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
|
+
},
|
|
4711
4793
|
authLogin: {
|
|
4712
4794
|
path: "/auth/login/submit",
|
|
4713
4795
|
method: "POST",
|
|
@@ -4736,6 +4818,22 @@ const API_ENDPOINTS$1 = {
|
|
|
4736
4818
|
auth: "public",
|
|
4737
4819
|
responseKind: "json"
|
|
4738
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
|
+
},
|
|
4739
4837
|
authStatus: {
|
|
4740
4838
|
path: "/auth/status",
|
|
4741
4839
|
method: "GET",
|
|
@@ -4793,6 +4891,14 @@ const API_ENDPOINTS$1 = {
|
|
|
4793
4891
|
auth: "user",
|
|
4794
4892
|
responseKind: "json"
|
|
4795
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
|
+
},
|
|
4796
4902
|
revokeSiteInvitation: {
|
|
4797
4903
|
path: "/sites/{siteId}/members/invitations/{invitationId}",
|
|
4798
4904
|
method: "DELETE",
|
|
@@ -5905,6 +6011,22 @@ const API_ENDPOINTS$1 = {
|
|
|
5905
6011
|
auth: "user",
|
|
5906
6012
|
responseKind: "json"
|
|
5907
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
|
+
},
|
|
5908
6030
|
mfaBackupCodesGet: {
|
|
5909
6031
|
path: "/auth/mfa/backup-codes",
|
|
5910
6032
|
method: "GET",
|
|
@@ -5959,6 +6081,18 @@ const API_ENDPOINTS$1 = {
|
|
|
5959
6081
|
],
|
|
5960
6082
|
responseKind: "json"
|
|
5961
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
|
+
},
|
|
5962
6096
|
accountRevokeSessions: {
|
|
5963
6097
|
path: "/account/sessions/revoke",
|
|
5964
6098
|
method: "POST",
|
|
@@ -5966,6 +6100,22 @@ const API_ENDPOINTS$1 = {
|
|
|
5966
6100
|
auth: "user",
|
|
5967
6101
|
responseKind: "json"
|
|
5968
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
|
+
},
|
|
5969
6119
|
adminListInvites: {
|
|
5970
6120
|
path: "/admin/invites",
|
|
5971
6121
|
method: "GET",
|
|
@@ -9785,6 +9935,7 @@ const API_ERROR_CODE_SET = /* @__PURE__ */ new Set([
|
|
|
9785
9935
|
"auth:token_invalid",
|
|
9786
9936
|
"auth:forbidden",
|
|
9787
9937
|
"auth:mfa_required",
|
|
9938
|
+
"auth:mfa_setup_required",
|
|
9788
9939
|
"auth:sudo_required",
|
|
9789
9940
|
"auth:insufficient_permissions",
|
|
9790
9941
|
"auth:impersonation_restricted",
|
|
@@ -10421,7 +10572,7 @@ async function loadUsePageSuccess(input) {
|
|
|
10421
10572
|
resolvedData: prefetched.resolvedData,
|
|
10422
10573
|
dataContext: {
|
|
10423
10574
|
previewStage,
|
|
10424
|
-
...
|
|
10575
|
+
...siteBlockRenderContext(buildSiteRenderSupport(site, mediaAssets)),
|
|
10425
10576
|
prefetchedBlockData: prefetched,
|
|
10426
10577
|
loaderSnapshot: prefetched.loaderSnapshot,
|
|
10427
10578
|
loaderFailures: prefetched.loaderFailures
|
|
@@ -10975,7 +11126,7 @@ var SimpleCache = class {
|
|
|
10975
11126
|
//#endregion
|
|
10976
11127
|
//#region src/request-options.ts
|
|
10977
11128
|
/** Every API client the SDK creates sends its version as `x-sdk-version`. */
|
|
10978
|
-
const sdkRequestOptions = { sdkVersion: "0.
|
|
11129
|
+
const sdkRequestOptions = { sdkVersion: "0.174.0" };
|
|
10979
11130
|
//#endregion
|
|
10980
11131
|
//#region src/client/error.ts
|
|
10981
11132
|
let _Symbol$for;
|
|
@@ -1,5 +1,5 @@
|
|
|
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
3
|
import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
|
|
4
4
|
import { t as BEFORE_BOOKING_QUESTIONS_ROUTE } from "./bookingQuestions-BHq83mzS.mjs";
|
|
5
5
|
import { n as submissionProof } from "./protection-C0PoH1lT.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Jr as resolveRuntimeEventDestination, Xr as canJoinEventWaitlistOnAnyMode, Zr as formatEventRemainingPlaces,
|
|
3
|
-
import {
|
|
2
|
+
import { Jr as resolveRuntimeEventDestination, Xr as canJoinEventWaitlistOnAnyMode, Zr as formatEventRemainingPlaces, fc as orderedLiveRunSessions, pc as resolveWholeSeriesBookingPhase, ri as isEventFull, ti as getEventAvailabilityStatus } from "./display-D8MW2b0e.mjs";
|
|
3
|
+
import { A as assertNever } from "./creditProducts-KYMVIH3J.mjs";
|
|
4
4
|
//#region ../blocks/src/system/runtime/nodes/events/domain/cta.ts
|
|
5
5
|
/**
|
|
6
6
|
* Booking call-to-action resolution for events: where an event links to and
|
|
@@ -5,93 +5,11 @@ const unsafeAsAppointmentServiceId = (id) => id;
|
|
|
5
5
|
const unsafeAsAppointmentResourceId = (id) => id;
|
|
6
6
|
const parseAppointmentServiceId = (value) => parseUuidBrand(value, unsafeAsAppointmentServiceId);
|
|
7
7
|
//#endregion
|
|
8
|
-
//#region ../core/src/date-math.ts
|
|
9
|
-
function addDaysToDate(date, dayCount) {
|
|
10
|
-
const next = new Date(date);
|
|
11
|
-
next.setUTCDate(next.getUTCDate() + dayCount);
|
|
12
|
-
return next;
|
|
13
|
-
}
|
|
14
|
-
function addDaysToIso(isoString, dayCount) {
|
|
15
|
-
const date = new Date(isoString);
|
|
16
|
-
if (!Number.isFinite(date.getTime())) return isoString;
|
|
17
|
-
return addDaysToDate(date, dayCount).toISOString();
|
|
18
|
-
}
|
|
19
|
-
function subtractDaysFromIso(isoString, dayCount) {
|
|
20
|
-
return addDaysToIso(isoString, -dayCount);
|
|
21
|
-
}
|
|
22
|
-
//#endregion
|
|
23
8
|
//#region ../core/src/assert-never.ts
|
|
24
|
-
function assertNever$
|
|
9
|
+
function assertNever$3(value, message = "Unexpected variant") {
|
|
25
10
|
throw new Error(`${message}: ${String(value)}`);
|
|
26
11
|
}
|
|
27
12
|
//#endregion
|
|
28
|
-
//#region ../core/src/booking-flexible-balance.ts
|
|
29
|
-
function clampFlexibleBalanceConfiguredAmount(amountCents, totalAmountCents) {
|
|
30
|
-
return Math.max(0, Math.min(amountCents, totalAmountCents));
|
|
31
|
-
}
|
|
32
|
-
function resolveFlexibleBalanceInitialPaymentCents(input) {
|
|
33
|
-
return clampFlexibleBalanceConfiguredAmount(input.config.upfrontAmountCents, input.totalAmountCents);
|
|
34
|
-
}
|
|
35
|
-
function resolveFlexibleBalanceDueAt(input) {
|
|
36
|
-
switch (input.dueDateRule.kind) {
|
|
37
|
-
case "relative_to_start_date": return subtractDaysFromIso(input.bookingStartAt, input.dueDateRule.daysBeforeStart);
|
|
38
|
-
case "fixed_calendar_date": return input.dueDateRule.dueAt;
|
|
39
|
-
default: return assertNever$3(input.dueDateRule);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
function calculateFlexibleBalanceMinimumPaymentCents(input) {
|
|
43
|
-
if (input.remainingBalanceCents <= 0) return 0;
|
|
44
|
-
const minimumPercentageBps = input.minimumPercentageBps ?? 1e3;
|
|
45
|
-
const percentageFloor = Math.ceil(input.remainingBalanceCents * minimumPercentageBps / 1e4);
|
|
46
|
-
return Math.min(input.remainingBalanceCents, Math.max(input.stripeMinimumChargeCents, percentageFloor));
|
|
47
|
-
}
|
|
48
|
-
function resolveFlexibleBalancePaymentEligibility(input) {
|
|
49
|
-
if (input.remainingBalanceCents <= 0 || input.status === "completed") return {
|
|
50
|
-
kind: "unavailable",
|
|
51
|
-
reason: "already_settled"
|
|
52
|
-
};
|
|
53
|
-
switch (input.status) {
|
|
54
|
-
case "payment_pending":
|
|
55
|
-
case "cancelled_due_to_non_payment":
|
|
56
|
-
case "refunded":
|
|
57
|
-
case "waived": return {
|
|
58
|
-
kind: "unavailable",
|
|
59
|
-
reason: input.status
|
|
60
|
-
};
|
|
61
|
-
case "closed_order_failed": return {
|
|
62
|
-
kind: "unavailable",
|
|
63
|
-
reason: "order_failed"
|
|
64
|
-
};
|
|
65
|
-
case "overdue": return {
|
|
66
|
-
kind: "full_balance_only",
|
|
67
|
-
remainingBalanceCents: input.remainingBalanceCents,
|
|
68
|
-
reason: "overdue"
|
|
69
|
-
};
|
|
70
|
-
case "active": {
|
|
71
|
-
const minimumAmountCents = calculateFlexibleBalanceMinimumPaymentCents({
|
|
72
|
-
remainingBalanceCents: input.remainingBalanceCents,
|
|
73
|
-
stripeMinimumChargeCents: input.stripeMinimumChargeCents,
|
|
74
|
-
minimumPercentageBps: input.minimumPercentageBps
|
|
75
|
-
});
|
|
76
|
-
if (minimumAmountCents >= input.remainingBalanceCents) return {
|
|
77
|
-
kind: "full_balance_only",
|
|
78
|
-
remainingBalanceCents: input.remainingBalanceCents,
|
|
79
|
-
reason: "dust_balance"
|
|
80
|
-
};
|
|
81
|
-
return {
|
|
82
|
-
kind: "eligible",
|
|
83
|
-
minimumAmountCents,
|
|
84
|
-
maximumCustomAmountCents: input.remainingBalanceCents,
|
|
85
|
-
suggestedPayFullAmountCents: input.remainingBalanceCents
|
|
86
|
-
};
|
|
87
|
-
}
|
|
88
|
-
default: return assertNever$3(input.status);
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
function assertNever$3(value) {
|
|
92
|
-
throw new Error(`Unexpected value: ${String(value)}`);
|
|
93
|
-
}
|
|
94
|
-
//#endregion
|
|
95
13
|
//#region ../core/src/booking-instalments.ts
|
|
96
14
|
function isDepositBearingBookingInstalmentPlan(plan) {
|
|
97
15
|
switch (plan.kind) {
|
|
@@ -392,4 +310,4 @@ function deriveCreditProductLabels(products, options = {}) {
|
|
|
392
310
|
};
|
|
393
311
|
}
|
|
394
312
|
//#endregion
|
|
395
|
-
export {
|
|
313
|
+
export { assertNever$3 as A, addIntervalPreservingMonthAnchor as C, getBookingInstalmentPlanIntervalCount as D, getBookingInstalmentDepositRefundability as E, unsafeAsAppointmentResourceId as M, unsafeAsAppointmentServiceId as N, omitZeroAmountFutureRows as O, formatCreditProductUnits as S, formatOrderInstalmentStatusLabel as T, clearWorkflowFeedback as _, buildBookingQuestionsSubmission as a, creditProductUnitNoun as b, initialBookingQuestionValues as c, resolveBookingQuestionsAnswerMode as d, unansweredRequiredBookingQuestions as f, okWith as g, ok as h, UNANSWERED_QUESTION_MESSAGE as i, parseAppointmentServiceId as j, splitAmountWithRemainderInFirst as k, initialBookingQuestionsAnswerMode as l, err as m, getCreditProductTypeLabel as n, checkBookingQuestionsAnswered as o, assertNever$1 as p, UNANSWERED_QUESTIONS_SUMMARY as r, getInitialFieldValue as s, deriveCreditProductLabels as t, initialBookingQuestionsValues as u, reportWorkflowError as v, clampConfiguredAmount as w, formatCreditProductBalance as x, reportWorkflowSuccess as y };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Bt as
|
|
2
|
+
import { Bt as formatDate$1, Ht as formatDateTime$1, Jt as resolveBookingDisplayContext, Ut as formatDateTimeRange, Wt as formatTime, cn as parseUtcIsoDateTimeString, ln as toUtcIsoDateTimeString, on as resolveBookingTimeZoneId, rn as parseBookingLocalDate } from "./noop-D5mFWXtN.mjs";
|
|
3
3
|
//#region ../blocks/src/portal/dateFormatting.ts
|
|
4
4
|
/** Optional API timestamps enter the display model here; invalid values never render a Date. */
|
|
5
5
|
function readInstant(value) {
|
|
@@ -7,6 +7,14 @@ function readInstant(value) {
|
|
|
7
7
|
return result?.ok ? result.value : null;
|
|
8
8
|
}
|
|
9
9
|
function formatDate(value, context, style = "short") {
|
|
10
|
+
if (value && /^\d{4}-\d{2}-\d{2}$/.test(value)) try {
|
|
11
|
+
return formatDate$1({
|
|
12
|
+
kind: "civil",
|
|
13
|
+
value: parseBookingLocalDate(value)
|
|
14
|
+
}, context, { date: style });
|
|
15
|
+
} catch {
|
|
16
|
+
return "—";
|
|
17
|
+
}
|
|
10
18
|
const instant = readInstant(value);
|
|
11
19
|
return instant ? formatDate$1({
|
|
12
20
|
kind: "instant",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { i as BlockApiError } from "./context-
|
|
2
|
+
import { i as BlockApiError } from "./context-CNlesLfF.mjs";
|
|
3
3
|
//#region ../blocks/src/system/runtime/shared/utils/demoBookingPassStorage.ts
|
|
4
4
|
const STORAGE_KEY = "riverbank:demo-booking-passes:v1";
|
|
5
5
|
const CHECKOUT_RETURN_EMAIL_KEY = "riverbank:demo-booking-checkout-email:v1";
|