@riverbankcms/sdk 0.177.0 → 0.179.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 +15 -8
- package/dist/_dts/{BlocksIslandsHydrator-sYraeqm9.d.ts → BlocksIslandsHydrator-DKwgs95u.d.ts} +1 -1
- package/dist/_dts/{Page-Bp7hTDTy.d.ts → Page-lWenra5i.d.ts} +7 -7
- package/dist/_dts/{SdkPreviewMode-CxkCCyKw.d.ts → SdkPreviewMode-BRxhRw4I.d.ts} +2 -2
- package/dist/_dts/{client-K6UhbL3t.d.ts → client-qWn7xAwJ.d.ts} +77 -23
- package/dist/_dts/{content-types-BLAdIMyr.d.ts → content-types-DL6GIvTm.d.ts} +2 -2
- package/dist/_dts/{contracts-BG7yTZ6t.d.ts → contracts-CzWyAiJj.d.ts} +6 -116
- package/dist/_dts/{generatePageMetadata-X_WpGzZZ.d.ts → generatePageMetadata-CBKd0cJ4.d.ts} +2 -2
- package/dist/_dts/{index--n-wV8Xd.d.ts → index-7CDBZGb-.d.ts} +1 -1
- package/dist/_dts/{index-Bygd2RCg.d.ts → index-BU9uAkHB.d.ts} +4 -4
- package/dist/_dts/{index-BMGif2r3.d.ts → index-BYnG_vF5.d.ts} +1 -1
- package/dist/_dts/{index-CBRbZJ6u.d.ts → index-CZgJrhzT.d.ts} +4 -2
- package/dist/_dts/{index-BLseXObg.d.ts → index-CaCum9mM.d.ts} +2 -2
- package/dist/_dts/{index-BpAW9AKB.d.ts → index-DCiSHd-C.d.ts} +1 -1
- package/dist/_dts/{index-CX9bp60k.d.ts → index-DVSipdrT.d.ts} +3 -3
- package/dist/_dts/{loadContent-uhUThWaq.d.ts → loadContent-CPKbFQyq.d.ts} +15 -13
- package/dist/_dts/{request-Bf9YImJw.d.ts → request-BjKBCS7t.d.ts} +1687 -373
- package/dist/_dts/{resolveBlockData-D6M5NMZB.d.ts → resolveBlockData-DupbMCup.d.ts} +8 -5
- package/dist/_dts/resolvePageContent-BqNyCHi8.d.ts +61 -0
- package/dist/_dts/sdk/src/bookings/index.d.ts +2 -2
- package/dist/_dts/sdk/src/client/types.d.ts +3 -3
- package/dist/_dts/sdk/src/client.d.ts +7 -7
- package/dist/_dts/sdk/src/config/index.d.ts +6 -6
- package/dist/_dts/sdk/src/config/template-validation.d.ts +1 -1
- package/dist/_dts/sdk/src/config/validation.d.ts +1 -1
- package/dist/_dts/sdk/src/data/dataLoaderContext.d.ts +2 -2
- package/dist/_dts/sdk/src/data/resolveBlockData.d.ts +1 -1
- package/dist/_dts/sdk/src/data/types.d.ts +7 -2
- package/dist/_dts/sdk/src/gifting/client.d.ts +1 -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 +32 -12
- 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 +56 -4
- package/dist/_dts/sdk/src/portal/index.d.ts +95 -13
- package/dist/_dts/sdk/src/prebuild/index.d.ts +1 -1
- package/dist/_dts/sdk/src/preview-next/before-render.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/index.d.ts +2 -2
- package/dist/_dts/sdk/src/preview-next/client/runtime.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/client.d.ts +2 -2
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/loadPage.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/helpers/pageRuntimeSupport.d.ts +4 -4
- package/dist/_dts/sdk/src/rendering/index.d.ts +7 -7
- package/dist/_dts/sdk/src/rendering/islands/client.d.ts +1 -1
- package/dist/_dts/sdk/src/rendering/server.d.ts +3 -3
- package/dist/_dts/sdk/src/rendering/themeAdmission.d.ts +1 -1
- package/dist/_dts/sdk/src/routing/index.d.ts +19 -6
- 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 +1 -1
- package/dist/_dts/serviceBookingOutline-YcsIjvn1.d.ts +582 -0
- package/dist/_dts/{types-C1l2Sm2h.d.ts → types-B7e6Lmo5.d.ts} +3 -3
- package/dist/_dts/{types-DgV8P2mz.d.ts → types-BOxSq-Bq.d.ts} +8 -7
- package/dist/_dts/{types-BdZ5pJSk.d.ts → types-CT-KOxl_.d.ts} +5 -39
- package/dist/_dts/{validation-BtbZIT5f.d.ts → validation-Dz6qccue.d.ts} +4 -4
- package/dist/client/{BlocksIslandsHydrator-CeYQQQs7.mjs → BlocksIslandsHydrator-1XifJg6V.mjs} +17 -18
- package/dist/client/{BookingMailingListNote-CDDWrY_W.mjs → BookingMailingListNote-BsbEgagJ.mjs} +7 -7
- package/dist/client/{BookingQuestionFields-MbvIo2jS.mjs → BookingQuestionFields-C8IbeLHj.mjs} +4 -4
- package/dist/client/{CalendarNavigationChevron-C6CSVfEB.mjs → CalendarNavigationChevron-Bbqij1XQ.mjs} +43 -10
- package/dist/client/{CheckboxChoice-b-PJLEXe.mjs → CheckboxChoice-BZPLCgTU.mjs} +1 -1
- package/dist/client/{DemoBookingPortalAccess-C9Ggcfx3.mjs → DemoBookingPortalAccess-uA9H8LIL.mjs} +4 -4
- package/dist/client/{EventCalendar.client-BSMuSqg0.mjs → EventCalendar.client-yoSI77ov.mjs} +11 -11
- package/dist/client/{EventCombined.client-BTrmSyUB.mjs → EventCombined.client-HeCNlliq.mjs} +11 -11
- package/dist/client/{EventEmbeddedCheckoutStep-B18VbNS_.mjs → EventEmbeddedCheckoutStep-BDnicDM6.mjs} +1 -1
- package/dist/client/{EventItem-B0WjGXsH.mjs → EventItem-Duhk1vnF.mjs} +247 -7
- package/dist/client/{EventListWeekNavigation-8Ij7vuxY.mjs → EventListWeekNavigation-BiutEqPK.mjs} +1 -1
- package/dist/client/{EventListing.client-CWk2NEwd.mjs → EventListing.client-B5ln77jG.mjs} +3 -3
- package/dist/client/{EventListing.view-BEH4UbSL.mjs → EventListing.view-hUDhNtMv.mjs} +203 -9
- package/dist/client/{EventRegistrationPayment-B2EikR3f.mjs → EventRegistrationPayment-DqtX1vB2.mjs} +439 -123
- package/dist/client/{Page-C03rc6jw.mjs → Page-ChJ2TGVk.mjs} +24314 -20226
- package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs} +1 -1
- package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-CDBU31xW.mjs} +3 -3
- package/dist/client/{StepIndicator-Bb7rPtSq.mjs → StepIndicator-2Dl9zon2.mjs} +80 -33
- package/dist/client/{BookingPanelArrangement-BShQSial.mjs → StepIndicator-JQA-VuEH.mjs} +12 -12
- package/dist/client/{TabBarFragment-BqfRLojo.mjs → TabBarFragment-DlKQRhP4.mjs} +1 -1
- package/dist/client/{ThemedButton-DuaYtnvG.mjs → ThemedButton-CnSa7o-I.mjs} +66 -66
- package/dist/client/{accessibleSurfaces-DN8it_Cx.mjs → accessibleSurfaces-Wl8-_OVJ.mjs} +1 -1
- package/dist/client/{accordion-BfsOiweL.mjs → accordion-B6SqU49k.mjs} +1 -1
- package/dist/client/{booking-form.client-B8ohIj13.mjs → booking-form.client-DrEOjQ3N.mjs} +15 -15
- package/dist/client/{bookingForm-CXsck2oH.mjs → bookingForm-drZBwEZW.mjs} +4 -4
- package/dist/client/bookings.mjs +5 -5
- package/dist/client/{boxStyleClassNames-B_hcuT06.mjs → boxStyleClassNames-DEh45w16.mjs} +19 -19
- package/dist/client/{carousel-Cz5Ddbsx.mjs → carousel-C-YJliD-.mjs} +2 -2
- package/dist/client/{carousel.client-h65clfUO.mjs → carousel.client-DMtGYTTM.mjs} +1 -1
- package/dist/client/{cart-CTC2oS3p.mjs → cart-acGFWK9R.mjs} +3 -3
- package/dist/client/{cart.client-c1YkTC-Q.mjs → cart.client-BzlOGP2j.mjs} +1 -1
- package/dist/client/{checkout-BeW1ufaH.mjs → checkout-SEontwhy.mjs} +3 -3
- package/dist/client/{checkout.client-BeU32khQ.mjs → checkout.client-C0Qvh-d4.mjs} +1 -1
- package/dist/client/{checkoutUrls-DVfSUSKp.mjs → checkoutUrls-yUKeq1N9.mjs} +1 -1
- package/dist/client/client.mjs +469 -320
- package/dist/client/{context-R9p5c8IH.mjs → context-DTrwaQtg.mjs} +2 -1
- package/dist/client/{dateFormatting-CF6FWCoo.mjs → dateFormatting-Cg8E1r9l.mjs} +1 -1
- package/dist/client/{demoPortalMagicLink-tZxIm3RL.mjs → demoPortalMagicLink-D0kOJYOX.mjs} +5 -4
- package/dist/client/{enhanceHeaderSection-DEYDI54E.mjs → enhanceHeaderSection-DyrpZ7ks.mjs} +4 -4
- package/dist/client/{event-registration.client-DWvSODTI.mjs → event-registration.client-RLZQWi2V.mjs} +121 -183
- package/dist/client/{eventCalendar-C9Pn9eeZ.mjs → eventCalendar-CphYnImh.mjs} +4 -4
- package/dist/client/{eventCombined-Bdhk0fp0.mjs → eventCombined-BvqjASB_.mjs} +4 -4
- package/dist/client/{eventListing-B-bJOQUk.mjs → eventListing-BaNAoC_M.mjs} +4 -4
- package/dist/client/{eventRegistration-CbdmUiDT.mjs → eventRegistration-COMHoRl6.mjs} +4 -4
- package/dist/client/events-9LPvwbWp.mjs +28 -0
- package/dist/client/{form-BbUUt784.mjs → form-DyH2juYT.mjs} +3 -3
- package/dist/client/{form.client-BVlz-9_t.mjs → form.client-DBwzkB0M.mjs} +5 -5
- package/dist/client/{form.parts-TB4UIrML.mjs → form.parts-CY4kX3mh.mjs} +3 -3
- package/dist/client/{formatDate-TDHhFjFN.mjs → formatDate-CTEN7gxW.mjs} +1 -1
- package/dist/client/gifting/client.mjs +7 -6
- package/dist/client/{gifting-CbNSrp7C.mjs → gifting-CIx4V378.mjs} +4 -4
- package/dist/client/{gifting.client-B__bGhFc.mjs → gifting.client-BEVPpzJM.mjs} +5 -5
- package/dist/client/{gifting.parts-CTA1sDW6.mjs → gifting.parts-VnORjnZK.mjs} +2 -2
- package/dist/client/{headerSection-5Wn9nUW_.mjs → headerSection-DGcJfRS8.mjs} +2 -2
- package/dist/client/{lookSurfaces-BwiNdgMU.mjs → lookSurfaces-IqT_SVnX.mjs} +167 -85
- package/dist/client/{newsletter-form.client-B17WYHxZ.mjs → newsletter-form.client-BvEDkjiD.mjs} +6 -6
- package/dist/client/{shop.interactive-CxDJ8P2r.mjs → newsletter-form.interactive-DCO1lErD.mjs} +3970 -3997
- package/dist/client/{newsletter-form.parts-DN9wD1ZG.mjs → newsletter-form.parts-BIy4IUT3.mjs} +2 -2
- package/dist/client/{newsletterForm-DLMlxInp.mjs → newsletterForm-CoTXDNFS.mjs} +3 -3
- package/dist/client/portal/client.mjs +346 -21
- package/dist/client/{product-detail.client-Di_anRGR.mjs → product-detail.client-YHQ2aKX1.mjs} +1 -1
- package/dist/client/{product-list.client-Duhl6rtL.mjs → product-list.client-DxoZw1vF.mjs} +1 -1
- package/dist/client/{productDetail-BgKmCwA8.mjs → productDetail-DjuFvkey.mjs} +3 -3
- package/dist/client/{productList-C_wMKsYS.mjs → productList-DE9GEFoZ.mjs} +3 -3
- package/dist/client/{propsDecoder-y3LvxaiG.mjs → propsDecoder-Cyag_HOs.mjs} +2 -48
- package/dist/client/{registry.server-CIWYKz1V.mjs → registry.server-BPwV-0Pp.mjs} +10426 -9114
- package/dist/client/rendering/client.mjs +41 -27
- package/dist/client/rendering/islands.mjs +1 -1
- package/dist/client/rendering.mjs +23 -2836
- package/dist/client/{richText-coerce-DkPBFb_a.mjs → richText-coerce-NrRqDeOg.mjs} +1 -1
- package/dist/client/{routeIslandApiConfig-BgO0rZce.mjs → routeIslandApiConfig-BWq5gKFK.mjs} +1 -1
- package/dist/client/runtimeResponse-D2j2-mOk.mjs +3 -0
- package/dist/client/{runtimeResponse-9v8q2NBc.mjs → runtimeResponse-DtWSfWSZ.mjs} +1 -1
- package/dist/client/{shop-CFbWlv_W.mjs → shop-C3wM0Hr4.mjs} +3 -3
- package/dist/client/{shop-commerce-C-I29eaA.mjs → shop-commerce-34YvcpbX.mjs} +14 -14
- package/dist/client/{shop-commerce-store-DGcc7twO.mjs → shop-commerce-store-B7xHksOs.mjs} +1 -1
- package/dist/client/{shop-discount-apply.state-DOm7vx0X.mjs → shop-discount-apply.state-BiBnozfO.mjs} +2 -2
- package/dist/client/{shop.client-GHTWUKD6.mjs → shop.client-C0v88nLd.mjs} +14 -14
- package/dist/client/{shopShared-Be9QJJpT.mjs → shopShared-Ct-BRNez.mjs} +2 -2
- package/dist/client/spam-protection.mjs +1 -1
- package/dist/client/{noop-CaQxI-Js.mjs → src-CCtanNlD.mjs} +462 -455
- package/dist/client/src-DqMbCjI1.mjs +3 -0
- package/dist/client/{src-xrjaKaCj.mjs → src-uwCpbHXG.mjs} +2 -1
- package/dist/client/{timetableModel--R0zVzZO.mjs → timetableModel-lhE29TNT.mjs} +66 -12
- package/dist/client/{types-DjWUR_O6.mjs → types-BEaKfam_.mjs} +65 -65
- package/dist/client/{useAvailableSlots-BGu_2F50.mjs → useAvailableSlots-BelJviOT.mjs} +2 -2
- package/dist/client/useDiscountCodeUi-rQRE1-Ho.mjs +196 -0
- package/dist/client/{useEventPagination-DxIJ--JZ.mjs → useEventPagination-C4rS2Xxl.mjs} +8 -8
- package/dist/client/{view-3foOzGWR.mjs → view-LJVHVqsy.mjs} +4 -4
- package/dist/client/{display-4HYOb-AK.mjs → wizardSteps-CNDsxeJH.mjs} +9168 -8981
- package/dist/preview-next/before-render.mjs +4 -3
- package/dist/preview-next/client/{PageSectionToolbar-D6-jojqh.mjs → PageSectionToolbar-C4TtBPN-.mjs} +3 -3
- package/dist/preview-next/client/{PreviewEditorSidebar-BUVFKZ4k.mjs → PreviewEditorSidebar-D6fkE59-.mjs} +15 -13
- package/dist/preview-next/client/{PreviewEditorUI-292pOiSt.mjs → PreviewEditorUI-amcDlj0O.mjs} +4 -4
- package/dist/preview-next/client/{PreviewShell-CW0Yzj3h.mjs → PreviewShell-DeQjx4zk.mjs} +5 -5
- package/dist/preview-next/client/{SdkPreviewModeRuntime-Dba7zoZK.mjs → SdkPreviewModeRuntime-Cx0SXnoX.mjs} +5 -5
- package/dist/preview-next/client/{previewAssistantSlot-B-utyhbS.mjs → previewAssistantSlot-aqpU34WI.mjs} +1764 -1090
- package/dist/preview-next/client/{previewChromeRoot-CCoGydUD.mjs → previewChromeRoot-D3Gy_Rs0.mjs} +1 -1
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/client/{sdk-runtime-DCpXVcA0.mjs → sdk-runtime-Dzx_RrN7.mjs} +2 -2
- package/dist/preview-next/client/{siteStyleAccess-sjOvRAHY.mjs → siteStyleAccess-LHedw83e.mjs} +1 -1
- package/dist/preview-next/client/src-EO5QoRlU.mjs +3 -0
- package/dist/preview-next/client/{src-DzXUmsyK.mjs → src-lX6heoDA.mjs} +2 -1
- package/dist/preview-next/client/{useAutosaveStatus-R1rZ9-IZ.mjs → useAutosaveStatus-DpSd9aVk.mjs} +1 -1
- package/dist/preview-next/client/{useOpenBlockForSetup-BS7CANPv.mjs → useOpenBlockForSetup-BGZn5AT1.mjs} +1 -1
- package/dist/preview-next/keepAlive.mjs +1 -1
- package/dist/preview-next/middleware.mjs +1 -1
- package/dist/preview-next/{route-contract-BSSbtz6A.mjs → route-contract-DnL-FgSV.mjs} +83 -11
- package/dist/server/{Block.shared-Dc3DX7Cf.mjs → Block.shared-BEbq6EwO.mjs} +5 -5
- package/dist/server/{bindings-VGgS6UvF.mjs → bindings-Bly0dRs7.mjs} +36 -5
- package/dist/server/{client-BPLLL22F.mjs → client-CGJ2ztYp.mjs} +1021 -1118
- package/dist/server/config-validation.mjs +1 -1
- package/dist/server/config.mjs +2 -2
- package/dist/server/constants-Cj7hfbrA.mjs +41 -0
- package/dist/server/contentTypeResolver-B9vy8BrF.mjs +19 -0
- package/dist/server/data/dataLoaderContext.mjs +1 -1
- package/dist/server/data/resolveBlockData.mjs +1 -1
- package/dist/server/{dataLoaderContext-B3fXA54R.mjs → dataLoaderContext-lMRTfG5Z.mjs} +1 -0
- package/dist/server/error-f4g44bKx.mjs +387 -0
- package/dist/server/index.mjs +3 -2
- package/dist/server/loadContent-BkK1w3QQ.mjs +692 -0
- package/dist/server/{loadPage-CQgde5DN.mjs → loadPage-DTLe0FEs.mjs} +22 -4
- package/dist/server/{navigation-iC_hXjJI.mjs → navigation-BcNfYYuu.mjs} +1 -1
- package/dist/server/navigation.mjs +1 -1
- package/dist/server/next.mjs +103 -100
- package/dist/server/{overrideResolution-CkpwAHvW.mjs → overrideResolution-Uy9Zp2Ks.mjs} +1 -1
- package/dist/server/page-converter.mjs +1 -1
- package/dist/server/{pageRenderPlan-CfSnAkCO.mjs → pageRenderPlan-JzxBnqfV.mjs} +19 -7
- package/dist/server/{pageRuntimeSupport-uz4gzBOo.mjs → pageRuntimeSupport-DyNSd2Yj.mjs} +50 -2
- package/dist/server/{pageShared-6z6JBU41.mjs → pageShared-DU4ETFPS.mjs} +89 -83
- package/dist/server/portal-B4JVkdjc.mjs +783 -0
- package/dist/server/portal.mjs +3 -3
- package/dist/server/{prebuild-B4_Llisx.mjs → prebuild-8jNtDXmS.mjs} +5 -4
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/{prefetchBlockData-CCiYV8_s.mjs → prefetchBlockData-xeMG42aw.mjs} +3 -2
- package/dist/server/{registry-CXRXsFSx.mjs → registry-DH1VrsCl.mjs} +587 -329
- package/dist/server/rendering/components/pageShared.mjs +1 -1
- package/dist/server/rendering/helpers/loadPage.mjs +1 -1
- package/dist/server/rendering/helpers/pageRuntimeSupport.mjs +1 -1
- package/dist/server/rendering/server.mjs +5 -4
- package/dist/server/rendering.mjs +9 -8
- package/dist/server/{resolveBlockData-yfe8WLEA.mjs → resolveBlockData-BN8tweTx.mjs} +24 -5
- package/dist/server/resolvePageContent-DnM16_f9.mjs +89 -0
- package/dist/server/routing.mjs +271 -57
- package/dist/server/server.mjs +3 -3
- package/dist/server/{loadContent-CxASA3PE.mjs → servicePageContent-B-FezJmH.mjs} +709 -453
- package/dist/server/{validation-BvHio6QI.mjs → validation-3jOzYdPL.mjs} +3 -3
- package/dist/server/{version-SuFlio6n.mjs → version-8t0o6_jd.mjs} +1 -1
- package/dist/styles/index.css +19 -0
- package/package.json +1 -1
- package/dist/_dts/footerPageOutline-DwMHeYmQ.d.ts +0 -256
- package/dist/_dts/resolvePageContent-DkzWvFbG.d.ts +0 -162
- package/dist/client/LocationMapActions-myIQIvQL.mjs +0 -62
- package/dist/client/MapDrawingSvg-BfsVyPvB.mjs +0 -200
- package/dist/client/course-CUFVJEAc.mjs +0 -237
- package/dist/client/duration-Q6_QNgiv.mjs +0 -37
- package/dist/client/event-details.client-BwjBJP-f.mjs +0 -53
- package/dist/client/eventDetails-C2LfNW_o.mjs +0 -13
- package/dist/client/runtimeResponse-CVkM0dHy.mjs +0 -3
- package/dist/client/src-BozhJ43Z.mjs +0 -3
- package/dist/client/useDiscountCodeUi-I_mXI9Yd.mjs +0 -237
- package/dist/client/view-BbzH5MQb.mjs +0 -1371
- package/dist/preview-next/client/src-LUhVXBEQ.mjs +0 -3
- package/dist/server/constants-hl17xz6x.mjs +0 -22
- package/dist/server/portal-BjVHMAUC.mjs +0 -371
- package/dist/server/resolvePageContent-CAELMBEJ.mjs +0 -438
package/dist/client/{ProtectedSubmitButton-C-ql101B.mjs → ProtectedSubmitButton-De6AzhE6.mjs}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { r as ThemedButton } from "./ThemedButton-
|
|
2
|
+
import { r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/ProtectedSubmitButton.tsx
|
package/dist/client/{SiteTermsAgreementField-BYACYP0T.mjs → SiteTermsAgreementField-CDBU31xW.mjs}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { i as BlockApiError, n as useBlockApi } from "./context-
|
|
4
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
2
|
+
import { l as verifiedSiteTermsAcceptanceSchema, t as assertNever } from "./src-CCtanNlD.mjs";
|
|
3
|
+
import { i as BlockApiError, n as useBlockApi } from "./context-DTrwaQtg.mjs";
|
|
4
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
|
|
5
5
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
6
6
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
7
7
|
import { useCallback, useEffect, useId, useMemo, useReducer } from "react";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { Kt as formatDate,
|
|
2
|
+
import { C as resolveEventRegistrationEventSource, M as cancelledDateCopy, N as hasCancelledRegistrationDate } from "./newsletter-form.interactive-DCO1lErD.mjs";
|
|
3
|
+
import { Ar as resolveEventRegistrationScopedEvents, Br as resolveSelectionBookingClosedDetail, Er as closedDateCopy, Fr as planOrdinarySeriesSelection, Ir as planWholeSeriesParentBooking, Jo as resolveWholeSeriesBookingPhase, Lr as planWholeSeriesParentSelection, Mr as getPublicEventCanonicalPath, Nr as isOrdinaryPublicEvent, Or as normalizeEventRegistrationPageSurfaceSubject, Pr as planDropInPanel, Rr as planWholeSeriesRunSelection, Tr as closedRunCopy, Ua as eventDateOptions, Vr as selectionRepresentativeEvent, _a as bookingPresentation, jr as eventOccurrenceContext, qo as orderedLiveRunSessions, wr as closedDatesCopy } from "./wizardSteps-CNDsxeJH.mjs";
|
|
4
|
+
import { Kt as formatDate, pn as toUtcIsoDateTimeString } from "./src-CCtanNlD.mjs";
|
|
5
5
|
import { T as assertNever } from "./creditProducts-BQ1t1erI.mjs";
|
|
6
|
-
import { r as boxStyleClassNames } from "./boxStyleClassNames-
|
|
7
|
-
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-
|
|
8
|
-
import { n as
|
|
6
|
+
import { r as boxStyleClassNames } from "./boxStyleClassNames-DEh45w16.mjs";
|
|
7
|
+
import { i as ThemedButtonLink, r as ThemedButton } from "./ThemedButton-CnSa7o-I.mjs";
|
|
8
|
+
import { n as BookingPanelArrangement, t as StepIndicator$1 } from "./StepIndicator-JQA-VuEH.mjs";
|
|
9
9
|
import { t as EVENT_REGISTRATION_ANCHOR_ID } from "./constants-4o4_hl34.mjs";
|
|
10
10
|
import React from "react";
|
|
11
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
@@ -42,7 +42,11 @@ function EventBookingPanelBody({ panel }) {
|
|
|
42
42
|
});
|
|
43
43
|
case "dropIn": return /* @__PURE__ */ jsx(DropInPanel, { panel: panel.panel });
|
|
44
44
|
case "bookingClosed": return /* @__PURE__ */ jsx(BookingClosedPanel, { detail: panel.detail });
|
|
45
|
-
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
45
|
+
case "closedRun": return /* @__PURE__ */ jsx(ClosedRunPanel, { copy: closedRunCopy(panel.reason, panel.run) });
|
|
46
|
+
case "closedDate": return /* @__PURE__ */ jsx(ClosedRunPanel, {
|
|
47
|
+
copy: panel.copy,
|
|
48
|
+
otherDatesHref: panel.copy.otherDatesHref
|
|
49
|
+
});
|
|
46
50
|
case "single": return /* @__PURE__ */ jsx(SingleDateBooking, { run: panel.run });
|
|
47
51
|
case "choice": return /* @__PURE__ */ jsx(RunChooser, { runs: panel.runs });
|
|
48
52
|
case "unavailable": return /* @__PURE__ */ jsxs("div", {
|
|
@@ -114,17 +118,27 @@ function BookingClosedPanel({ detail }) {
|
|
|
114
118
|
});
|
|
115
119
|
}
|
|
116
120
|
/** Dates that cannot be booked keep their details and say why. */
|
|
117
|
-
function ClosedRunPanel({
|
|
118
|
-
const copy = closedRunCopy(reason);
|
|
121
|
+
function ClosedRunPanel({ copy, otherDatesHref }) {
|
|
119
122
|
return /* @__PURE__ */ jsxs("div", {
|
|
120
123
|
className: "event-booking-panel__closed-run",
|
|
121
|
-
children: [
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
children: [
|
|
125
|
+
/* @__PURE__ */ jsx("h2", {
|
|
126
|
+
className: "card-title rb-mb-3",
|
|
127
|
+
children: copy.titleText
|
|
128
|
+
}),
|
|
129
|
+
/* @__PURE__ */ jsx("p", {
|
|
130
|
+
className: "status-muted rb-text-base rb-leading-relaxed",
|
|
131
|
+
children: copy.bodyText
|
|
132
|
+
}),
|
|
133
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
134
|
+
className: "rb-mt-4 rb-text-base",
|
|
135
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
136
|
+
className: "rb-underline",
|
|
137
|
+
href: otherDatesHref,
|
|
138
|
+
children: "See the other dates"
|
|
139
|
+
})
|
|
140
|
+
}) : null
|
|
141
|
+
]
|
|
128
142
|
});
|
|
129
143
|
}
|
|
130
144
|
/**
|
|
@@ -258,40 +272,53 @@ function planEventBookingPanel({ selection, subject }, now) {
|
|
|
258
272
|
...nonBookingPanel,
|
|
259
273
|
registration
|
|
260
274
|
};
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
kind: "closedRun",
|
|
264
|
-
reason: phase.reason,
|
|
265
|
-
registration
|
|
266
|
-
} : {
|
|
267
|
-
kind: "registration",
|
|
275
|
+
return {
|
|
276
|
+
...closedDatePanel(selection, now) ?? closedRunPanel(selection, now) ?? { kind: "registration" },
|
|
268
277
|
registration
|
|
269
278
|
};
|
|
270
279
|
}
|
|
271
280
|
case "wholeSeriesParent": {
|
|
281
|
+
const registration = parentRegistrationTarget(selection, subject);
|
|
272
282
|
if (nonBookingPanel) return {
|
|
273
283
|
...nonBookingPanel,
|
|
274
|
-
registration
|
|
284
|
+
registration
|
|
275
285
|
};
|
|
276
286
|
const panel = planWholeSeriesParentBooking(selection.eligibleRuns);
|
|
277
287
|
return panel.kind === "bookTogether" ? {
|
|
278
288
|
kind: "registration",
|
|
279
|
-
registration
|
|
280
|
-
events: panel.runs.map((run) => run.representative),
|
|
281
|
-
subject,
|
|
282
|
-
occurrenceContext: null
|
|
283
|
-
}
|
|
289
|
+
registration
|
|
284
290
|
} : {
|
|
285
291
|
...panel,
|
|
286
|
-
registration
|
|
292
|
+
registration
|
|
287
293
|
};
|
|
288
294
|
}
|
|
289
295
|
case "wholeSeriesParentUnavailable": return {
|
|
290
296
|
...nonBookingPanel ?? { kind: "unavailable" },
|
|
291
|
-
registration:
|
|
297
|
+
registration: parentRegistrationTarget(selection, subject)
|
|
292
298
|
};
|
|
293
299
|
}
|
|
294
300
|
}
|
|
301
|
+
/**
|
|
302
|
+
* A date past its cut-off, however old the page's data is. A list of dates only
|
|
303
|
+
* closes when every date has: until then the closed ones just leave the list.
|
|
304
|
+
*/
|
|
305
|
+
function closedRunPanel(selection, now) {
|
|
306
|
+
if (selection.kind !== "wholeSeriesRun") return null;
|
|
307
|
+
const phase = resolveWholeSeriesBookingPhase(selection.run.run, now);
|
|
308
|
+
return phase.kind === "closed" ? {
|
|
309
|
+
kind: "closedRun",
|
|
310
|
+
reason: phase.reason,
|
|
311
|
+
run: selection.run.run
|
|
312
|
+
} : null;
|
|
313
|
+
}
|
|
314
|
+
function closedDatePanel(selection, now) {
|
|
315
|
+
if (selection.kind === "wholeSeriesRun") return null;
|
|
316
|
+
const copy = selection.kind === "occurrence" ? closedDateCopy(selection.event, now) : closedDatesCopy(selection.dates, now);
|
|
317
|
+
return copy ? {
|
|
318
|
+
kind: "closedDate",
|
|
319
|
+
copy
|
|
320
|
+
} : null;
|
|
321
|
+
}
|
|
295
322
|
/** Drop-in and page-level closure take precedence over fresh booking and run selection. */
|
|
296
323
|
function planNonBookingPanel(selection) {
|
|
297
324
|
if (!selectionRepresentativeEvent(selection).requiresRegistration) return {
|
|
@@ -323,13 +350,25 @@ function selectionRegistrationTarget(selection, subject) {
|
|
|
323
350
|
};
|
|
324
351
|
}
|
|
325
352
|
}
|
|
353
|
+
/**
|
|
354
|
+
* Every run the course page admits, not just those still taking bookings. An
|
|
355
|
+
* invitation emailed for a run links here, and stays good after that run closes.
|
|
356
|
+
* The wizard narrows these to the runs it offers for a new booking.
|
|
357
|
+
*/
|
|
358
|
+
function parentRegistrationTarget(selection, subject) {
|
|
359
|
+
return {
|
|
360
|
+
events: selection.admittedRuns.map((run) => run.representative),
|
|
361
|
+
occurrenceContext: null,
|
|
362
|
+
subject
|
|
363
|
+
};
|
|
364
|
+
}
|
|
326
365
|
/** Cancelled dates have no new-booking or recovery form, including old direct links. */
|
|
327
366
|
function isCancelledDateSelection(selection) {
|
|
328
367
|
return selection.kind === "occurrence" && hasCancelledRegistrationDate([selection.event]);
|
|
329
368
|
}
|
|
330
369
|
//#endregion
|
|
331
370
|
//#region ../blocks/src/system/runtime/nodes/event-registration/RegistrationClosedState.tsx
|
|
332
|
-
function RegistrationClosedState({ title, body }) {
|
|
371
|
+
function RegistrationClosedState({ title, body, otherDatesHref }) {
|
|
333
372
|
return /* @__PURE__ */ jsx("div", {
|
|
334
373
|
id: EVENT_REGISTRATION_ANCHOR_ID,
|
|
335
374
|
className: "rb-reg-surface er-container er-registration-closed",
|
|
@@ -348,7 +387,15 @@ function RegistrationClosedState({ title, body }) {
|
|
|
348
387
|
/* @__PURE__ */ jsx("p", {
|
|
349
388
|
className: "er-text er-text--muted",
|
|
350
389
|
children: body
|
|
351
|
-
})
|
|
390
|
+
}),
|
|
391
|
+
otherDatesHref ? /* @__PURE__ */ jsx("p", {
|
|
392
|
+
className: "er-text",
|
|
393
|
+
children: /* @__PURE__ */ jsx("a", {
|
|
394
|
+
className: "rb-underline",
|
|
395
|
+
href: otherDatesHref,
|
|
396
|
+
children: "See the other dates"
|
|
397
|
+
})
|
|
398
|
+
}) : null
|
|
352
399
|
] })
|
|
353
400
|
})
|
|
354
401
|
});
|
|
@@ -1,7 +1,17 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { _a as bookingPresentation } from "./wizardSteps-CNDsxeJH.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region ../blocks/src/system/runtime/shared/BookingPanelArrangement.tsx
|
|
6
|
+
/** The `[data-arrangement]` ancestor skin card rules need around an in-place booking panel. */
|
|
7
|
+
function BookingPanelArrangement({ pageKind, children }) {
|
|
8
|
+
const attributes = bookingPresentation(pageKind).arrangementAttributes;
|
|
9
|
+
return attributes ? /* @__PURE__ */ jsx("div", {
|
|
10
|
+
...attributes,
|
|
11
|
+
children
|
|
12
|
+
}) : /* @__PURE__ */ jsx(Fragment, { children });
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
5
15
|
//#region ../blocks/src/system/runtime/shared/components/StepIndicator.tsx
|
|
6
16
|
function slotClasses(slot, classPrefix, emitSharedClasses) {
|
|
7
17
|
return [emitSharedClasses ? `rb-${slot}` : null, classPrefix ? `${classPrefix}-${slot}` : null].filter((name) => name !== null).join(" ");
|
|
@@ -44,14 +54,4 @@ function StepIndicator({ currentStep, totalSteps, stepLabels, classPrefix, emitS
|
|
|
44
54
|
});
|
|
45
55
|
}
|
|
46
56
|
//#endregion
|
|
47
|
-
|
|
48
|
-
/** The `[data-arrangement]` ancestor skin card rules need around an in-place booking panel. */
|
|
49
|
-
function BookingPanelArrangement({ pageKind, children }) {
|
|
50
|
-
const attributes = bookingPresentation(pageKind).arrangementAttributes;
|
|
51
|
-
return attributes ? /* @__PURE__ */ jsx("div", {
|
|
52
|
-
...attributes,
|
|
53
|
-
children
|
|
54
|
-
}) : /* @__PURE__ */ jsx(Fragment, { children });
|
|
55
|
-
}
|
|
56
|
-
//#endregion
|
|
57
|
-
export { StepIndicator as n, BookingPanelArrangement as t };
|
|
57
|
+
export { BookingPanelArrangement as n, StepIndicator as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { S as clsx } from "./ThemedButton-CnSa7o-I.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../blocks/src/system/runtime/shared/components/TabBarFragment.tsx
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as buttonVariantIdSchema, o as isVariantRole, r as asSpecialVariantId, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-
|
|
2
|
+
import { d as buttonVariantIdSchema, o as isVariantRole, r as asSpecialVariantId, t as DEFAULT_VARIANT_ALIAS_ID } from "./types-BEaKfam_.mjs";
|
|
3
3
|
import "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
//#region ../theme-core/src/buttons/affordanceSuppression.ts
|
|
@@ -79,6 +79,70 @@ function clsx() {
|
|
|
79
79
|
return n;
|
|
80
80
|
}
|
|
81
81
|
//#endregion
|
|
82
|
+
//#region ../blocks/src/system/runtime/nodes/spinner.tsx
|
|
83
|
+
function resolveColorStyle(color) {
|
|
84
|
+
switch (color) {
|
|
85
|
+
case void 0: return;
|
|
86
|
+
case "inherit": return { color: "inherit" };
|
|
87
|
+
case "foreground": return { color: "rgb(var(--tb-foreground))" };
|
|
88
|
+
case "text": return { color: "rgb(var(--tb-text))" };
|
|
89
|
+
default: return;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function SpinnerNode({ className, size = "md", color, strokeWidth = 3, srLabel, style, ...rest }) {
|
|
93
|
+
const hasExplicitAriaLabel = typeof rest["aria-label"] === "string" && rest["aria-label"].trim().length > 0;
|
|
94
|
+
const accessibilityProps = srLabel ? {
|
|
95
|
+
role: "status",
|
|
96
|
+
"aria-live": "polite"
|
|
97
|
+
} : hasExplicitAriaLabel ? {} : { "aria-hidden": true };
|
|
98
|
+
const trackStroke = color === "inherit" ? "currentColor" : "var(--rb-spinner-track-color)";
|
|
99
|
+
const trackOpacity = color === "inherit" ? .25 : 1;
|
|
100
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
101
|
+
...accessibilityProps,
|
|
102
|
+
className: clsx("rb-spinner", size ? `rb-spinner--${size}` : null, color === "inherit" ? "rb-spinner--inherit" : null, className),
|
|
103
|
+
style: {
|
|
104
|
+
...resolveColorStyle(color),
|
|
105
|
+
...style ?? {}
|
|
106
|
+
},
|
|
107
|
+
...rest,
|
|
108
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
109
|
+
viewBox: "0 0 24 24",
|
|
110
|
+
fill: "none",
|
|
111
|
+
"aria-hidden": "true",
|
|
112
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
113
|
+
cx: "12",
|
|
114
|
+
cy: "12",
|
|
115
|
+
r: "10",
|
|
116
|
+
stroke: trackStroke,
|
|
117
|
+
strokeWidth,
|
|
118
|
+
opacity: trackOpacity
|
|
119
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
120
|
+
d: "M12 2a10 10 0 0 1 10 10",
|
|
121
|
+
stroke: "currentColor",
|
|
122
|
+
strokeWidth,
|
|
123
|
+
strokeLinecap: "round"
|
|
124
|
+
})]
|
|
125
|
+
}), srLabel ? /* @__PURE__ */ jsx("span", {
|
|
126
|
+
className: "rb-sr-only",
|
|
127
|
+
children: srLabel
|
|
128
|
+
}) : null]
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
//#endregion
|
|
132
|
+
//#region ../blocks/src/system/runtime/nodes/buttonAffordance.ts
|
|
133
|
+
function normalize(value) {
|
|
134
|
+
const trimmed = typeof value === "string" ? value.trim() : "";
|
|
135
|
+
return trimmed.length > 0 ? trimmed : null;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* Resolve the node-authored trailing affordance, or `null` when no icon exists.
|
|
139
|
+
*/
|
|
140
|
+
function resolveButtonAffordance(input) {
|
|
141
|
+
const nodeIcon = normalize(input.trailingIcon);
|
|
142
|
+
if (nodeIcon) return { iconId: nodeIcon };
|
|
143
|
+
return null;
|
|
144
|
+
}
|
|
145
|
+
//#endregion
|
|
82
146
|
//#region ../blocks/src/system/icons/svg.tsx
|
|
83
147
|
function createIcon(displayName, children) {
|
|
84
148
|
const Icon = ({ size = "1em", strokeWidth = 2, title, className, focusable = false, role, ...props }) => /* @__PURE__ */ jsxs("svg", {
|
|
@@ -383,70 +447,6 @@ const UsersIcon = createIcon("UsersIcon", /* @__PURE__ */ jsxs(Fragment, { child
|
|
|
383
447
|
const WrenchIcon = createIcon("WrenchIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M14.7 6.3A5 5 0 0 0 7 12.6L3.5 16a2.1 2.1 0 0 0 3 3L10 15.5A5 5 0 0 0 16.7 9Z" }), /* @__PURE__ */ jsx("path", { d: "m15 5 4 4" })] }));
|
|
384
448
|
const XIcon = createIcon("XIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })] }));
|
|
385
449
|
//#endregion
|
|
386
|
-
//#region ../blocks/src/system/runtime/nodes/spinner.tsx
|
|
387
|
-
function resolveColorStyle(color) {
|
|
388
|
-
switch (color) {
|
|
389
|
-
case void 0: return;
|
|
390
|
-
case "inherit": return { color: "inherit" };
|
|
391
|
-
case "foreground": return { color: "rgb(var(--tb-foreground))" };
|
|
392
|
-
case "text": return { color: "rgb(var(--tb-text))" };
|
|
393
|
-
default: return;
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
function SpinnerNode({ className, size = "md", color, strokeWidth = 3, srLabel, style, ...rest }) {
|
|
397
|
-
const hasExplicitAriaLabel = typeof rest["aria-label"] === "string" && rest["aria-label"].trim().length > 0;
|
|
398
|
-
const accessibilityProps = srLabel ? {
|
|
399
|
-
role: "status",
|
|
400
|
-
"aria-live": "polite"
|
|
401
|
-
} : hasExplicitAriaLabel ? {} : { "aria-hidden": true };
|
|
402
|
-
const trackStroke = color === "inherit" ? "currentColor" : "var(--rb-spinner-track-color)";
|
|
403
|
-
const trackOpacity = color === "inherit" ? .25 : 1;
|
|
404
|
-
return /* @__PURE__ */ jsxs("span", {
|
|
405
|
-
...accessibilityProps,
|
|
406
|
-
className: clsx("rb-spinner", size ? `rb-spinner--${size}` : null, color === "inherit" ? "rb-spinner--inherit" : null, className),
|
|
407
|
-
style: {
|
|
408
|
-
...resolveColorStyle(color),
|
|
409
|
-
...style ?? {}
|
|
410
|
-
},
|
|
411
|
-
...rest,
|
|
412
|
-
children: [/* @__PURE__ */ jsxs("svg", {
|
|
413
|
-
viewBox: "0 0 24 24",
|
|
414
|
-
fill: "none",
|
|
415
|
-
"aria-hidden": "true",
|
|
416
|
-
children: [/* @__PURE__ */ jsx("circle", {
|
|
417
|
-
cx: "12",
|
|
418
|
-
cy: "12",
|
|
419
|
-
r: "10",
|
|
420
|
-
stroke: trackStroke,
|
|
421
|
-
strokeWidth,
|
|
422
|
-
opacity: trackOpacity
|
|
423
|
-
}), /* @__PURE__ */ jsx("path", {
|
|
424
|
-
d: "M12 2a10 10 0 0 1 10 10",
|
|
425
|
-
stroke: "currentColor",
|
|
426
|
-
strokeWidth,
|
|
427
|
-
strokeLinecap: "round"
|
|
428
|
-
})]
|
|
429
|
-
}), srLabel ? /* @__PURE__ */ jsx("span", {
|
|
430
|
-
className: "rb-sr-only",
|
|
431
|
-
children: srLabel
|
|
432
|
-
}) : null]
|
|
433
|
-
});
|
|
434
|
-
}
|
|
435
|
-
//#endregion
|
|
436
|
-
//#region ../blocks/src/system/runtime/nodes/buttonAffordance.ts
|
|
437
|
-
function normalize(value) {
|
|
438
|
-
const trimmed = typeof value === "string" ? value.trim() : "";
|
|
439
|
-
return trimmed.length > 0 ? trimmed : null;
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* Resolve the node-authored trailing affordance, or `null` when no icon exists.
|
|
443
|
-
*/
|
|
444
|
-
function resolveButtonAffordance(input) {
|
|
445
|
-
const nodeIcon = normalize(input.trailingIcon);
|
|
446
|
-
if (nodeIcon) return { iconId: nodeIcon };
|
|
447
|
-
return null;
|
|
448
|
-
}
|
|
449
|
-
//#endregion
|
|
450
450
|
//#region ../blocks/src/system/icons/cta.ts
|
|
451
451
|
/**
|
|
452
452
|
* Curated icon set for CTA/button icons.
|
|
@@ -1403,4 +1403,4 @@ function ThemedAuthoredButton({ label, href, variant, size, extraClassName, disa
|
|
|
1403
1403
|
});
|
|
1404
1404
|
}
|
|
1405
1405
|
//#endregion
|
|
1406
|
-
export { parseThemeButtonVariantId as C, clsx as S, AFFORDANCE_SUPPRESS_CLASS as T,
|
|
1406
|
+
export { parseThemeButtonVariantId as C, clsx as S, AFFORDANCE_SUPPRESS_CLASS as T, FileSpreadsheetIcon as _, ThemedDownloadLink as a, PlusIcon as b, isSemanticIconId as c, CircleMinusIcon as d, CirclePlusIcon as f, FileAudioIcon as g, FileArchiveIcon as h, ThemedButtonLink as i, ArrowDownIcon as l, ExternalLinkIcon as m, ThemedAuthoredButton as n, ThemedFileChooser as o, ClockIcon as p, ThemedButton as r, getIconComponent as s, ThemedActionsButton as t, ChevronDownIcon as u, FileTextIcon as v, themeButtonSelector as w, SpinnerNode as x, MinusIcon as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { t as stableJsonStringify } from "./stable-json-D0XAEIXc.mjs";
|
|
3
|
-
import { C as
|
|
3
|
+
import { C as paletteModeSchema, O as VARIANT_ROLES, T as parseThemeColorToken, _ as hexColorSchema, c as buttonEffectApplicationSchema, h as PALETTE_TOKEN_NAMES, m as parseOpaqueButtonColourToken, n as STANDARD_BUTTON_SURFACE_POLICY, p as opaqueButtonColourTokenSchema, s as unsafeAsOpaqueButtonColourToken, u as buttonSystemSchema, w as parseColorTokenParts, x as paletteColorsFromEntries, y as normalizePaletteHex } from "./types-BEaKfam_.mjs";
|
|
4
4
|
import { t as SURFACE_TRANSPORT_KEY } from "./surfaceTransportMarker-BuwkYxsI.mjs";
|
|
5
5
|
import { z } from "zod";
|
|
6
6
|
//#region ../theme-core/src/palette/utils/colorConversion.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
3
3
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
4
4
|
const decode = defineIslandPropsDecoder("accordion");
|
|
5
5
|
function parseDefaultValues(value) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { $
|
|
3
|
-
import { Kt as formatDate,
|
|
2
|
+
import { $r as isSameOpenCheckout, B as paymentChoiceDetails, Bi as resolveBookingPaymentMode, Ci as decideBookingQuestionsRestoration, Di as toBookingQuestionsAnswerDraft, Ei as restoreBookingQuestionsAnswers, Fi as reconcileBookingPackagePurchase, Gr as readOverrideServiceCategories, Hi as toBookingPurchasablePackages, Ii as resolveBookingPackagePaymentSelection, Jr as getBookingRedirectStateFromLocation, Kr as deriveBookingFormViewState, Li as resolveBookingPackageSources, Mi as bookingHasPackagePaymentChoices, Ni as bookingPackageRequestKey, No as readRuntimeNow, Pi as bookingRequiresResourceSelection, Po as resolveDateRuntimeContext, Qr as isBookingServiceSlidingAmountInRange, R as buildBookingPaymentSelectionViewModel, Ri as resolveBookingPaymentAvailability, Si as bookingQuestionsAnswerDraftSchema, Ui as getBookingServiceSlidingScale, V as paymentChoicePrice, Vi as resolveBookingPurchasablePackages, Wo as repriceBookingCollectionOptions, Wr as buildBookingFormInteractiveIslandProps, Yr as getBookingSuccessCopy, Zo as resolveBookingSignupOffer, _a as bookingPresentation, _i as applyAppointmentBookingQuestionsEvent, _s as unsafeAsSiteId, ai as resolveBookingPaymentStep, bi as isAppointmentBookingQuestionsEvent, ci as resolveDefaultBookingServiceId, di as toSelectedCollectionOptionKind, ei as normalizeBookingFormConfig, fi as formatCentsAsCurrencyInput, fr as formatValidity, gi as EMPTY_APPOINTMENT_BOOKING_QUESTIONS, hi as resolveSelectedAppointmentConsent, ii as resolveAppointmentCheckoutVerificationState, ji as applyBookingPaymentAdmission, ki as BOOKING_FORM_DATA_RESERVED_KEYS, li as selectedBookingCollectionOptionKind, mi as projectSelectedAppointmentConsentIntoForm, ni as parseBookingCurrencyInputToCents, oi as resolveBookingSelectedService, pa as leavePage, qn as createSignInReturnDraftStore, qr as formatBookingSubmissionPreparationError, ri as prepareBookingSubmission, si as resolveBookingSiteId, ti as normalizeBookingServices, ui as snapshotBookingShownTerms, ur as formatCommercePrice, vi as appointmentQuestionsRefusal, xi as needsAppointmentQuestionsRefresh, yi as deriveAppointmentBookingQuestions, z as buildReviewedBookingPaymentViewModel, zi as resolveBookingPaymentChoice } from "./wizardSteps-CNDsxeJH.mjs";
|
|
3
|
+
import { Kt as formatDate, Qt as formatTime, Yt as formatDateTimeRange, a as clearWorkflowFeedback, bn as formatCurrencyAmount, en as formatTimeZoneCityLabel, fn as parseUtcIsoDateTimeString, hn as resolveBookingTimeZoneId, i as okWith, k as isBookingRequirementConsentFieldId, mn as resolveBookingBusinessTimeZone, n as err, nn as resolveBookingDisplayContext, o as reportWorkflowError, pn as toUtcIsoDateTimeString, s as reportWorkflowSuccess, t as assertNever, u as logger } from "./src-CCtanNlD.mjs";
|
|
4
4
|
import { D as unsafeAsAppointmentResourceId, O as unsafeAsAppointmentServiceId, g as formatCreditProductUnits, h as formatCreditProductPayment, m as formatCreditProductBalance, o as checkBookingQuestionsAnswered } from "./creditProducts-BQ1t1erI.mjs";
|
|
5
|
-
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-
|
|
5
|
+
import { i as useSiteTermsAgreement, n as SiteTermsChangedNotice, t as SiteTermsAgreementField } from "./SiteTermsAgreementField-CDBU31xW.mjs";
|
|
6
6
|
import { t as layoutServicesByCategory } from "./appointment-service-categories-Cl2pqw-z.mjs";
|
|
7
|
-
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, s as clientPersonPhrases, t as useAvailableSlots } from "./useAvailableSlots-
|
|
8
|
-
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { t as
|
|
7
|
+
import { a as formatTime$1, i as formatDatePillParts, n as useAvailableDates, o as getRuntimeTimeZone, r as formatDate$1, s as clientPersonPhrases, t as useAvailableSlots } from "./useAvailableSlots-BelJviOT.mjs";
|
|
8
|
+
import { i as BlockApiError, n as useBlockApi, t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
9
|
+
import { r as ThemedButton, x as SpinnerNode } from "./ThemedButton-CnSa7o-I.mjs";
|
|
10
|
+
import { n as BookingPanelArrangement, t as StepIndicator } from "./StepIndicator-JQA-VuEH.mjs";
|
|
11
|
+
import { f as NavigationHandOffPanel, p as DiscountCodeDisclosure, r as DISCOUNT_APPLY_MESSAGES, t as BookingConfirmation } from "./DemoBookingPortalAccess-uA9H8LIL.mjs";
|
|
12
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-yUKeq1N9.mjs";
|
|
12
13
|
import { t as scrollToBlock } from "./scrollToBlock-DrgKE0qZ.mjs";
|
|
13
|
-
import { t as CheckboxChoice } from "./CheckboxChoice-
|
|
14
|
+
import { t as CheckboxChoice } from "./CheckboxChoice-BZPLCgTU.mjs";
|
|
14
15
|
import { t as CheckIcon } from "./CheckIcon-CVcKteXH.mjs";
|
|
15
16
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-CsqxShw4.mjs";
|
|
16
17
|
import { t as FeedbackMessage } from "./FeedbackMessage-CSJrAuXH.mjs";
|
|
17
|
-
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-
|
|
18
|
-
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-
|
|
19
|
-
import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { i as getDiscountApplyFeedback } from "./shop-discount-apply.state-DOm7vx0X.mjs";
|
|
18
|
+
import { i as useBookingNowIso, n as OptionalMark, r as parseBookingSubmissionFailure } from "./BookingQuestionFields-C8IbeLHj.mjs";
|
|
19
|
+
import { n as TerminalPanel, r as StateIcon, t as useDiscountCodeUi } from "./useDiscountCodeUi-rQRE1-Ho.mjs";
|
|
20
|
+
import { a as usePolling, c as useBookingQuestionsRefresh, i as BookingConsentAgreement, l as PaymentChoiceRows, n as BookingQuestionSections, o as portalSessionIdentity, s as useSignInReturn, t as BookingMailingListNote } from "./BookingMailingListNote-BsbEgagJ.mjs";
|
|
21
|
+
import { c as storeDemoBookingPassIfAvailable } from "./demoPortalMagicLink-D0kOJYOX.mjs";
|
|
22
|
+
import { i as getDiscountApplyFeedback } from "./shop-discount-apply.state-BiBnozfO.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
|
import { z } from "zod";
|
|
@@ -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-DrEOjQ3N.mjs";
|
|
3
|
+
import { t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
4
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.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-BWq5gKFK.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,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
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 { n as
|
|
6
|
-
import { n as
|
|
2
|
+
import { Ai as BOOKING_FORM_DATA_RESERVED_KEY_VALUES, F as toHeadlessPaymentSelection, I as toInternalPaymentSelection, M as resolveEventRegistrationSubmitPlan, N as resolveHeadlessEventRegistrationStatus, No as readRuntimeNow, Or as normalizeEventRegistrationPageSurfaceSubject, P as resolveHeadlessEventRegistrationView, Rn as getSingleSelectedPricingOptionId, Sa as resolveRuntimeEventDestination, ei as normalizeBookingFormConfig, j as normalizeEventRegistrationMaxTickets, k as deriveEventRegistrationSteps, la as createHostedBlockApiConfig, ti as normalizeBookingServices, tr as resolveRegistrationDisplay } from "./wizardSteps-CNDsxeJH.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-DrEOjQ3N.mjs";
|
|
4
|
+
import { t as assertNever, w as publicEventSchema } from "./src-CCtanNlD.mjs";
|
|
5
|
+
import { n as EventRegistrationPayment, r as useEventRegistrationWizard } from "./EventRegistrationPayment-DqtX1vB2.mjs";
|
|
6
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-DTrwaQtg.mjs";
|
|
7
7
|
import * as React$1 from "react";
|
|
8
8
|
import React, { useCallback, useEffect, useMemo, useReducer } from "react";
|
|
9
9
|
//#region ../blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.ts
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { Co as asPartialObject } from "./wizardSteps-CNDsxeJH.mjs";
|
|
3
|
+
import { cn as runtimeBoxBackgroundSchema, dn as cardVariantRoleValues, fn as itemRoleValues, ln as boxlessCardVariantValue, on as boxBackgroundOverlaySchema, pn as openCardRoleValue, sn as boxBackgroundSchema } from "./lookSurfaces-IqT_SVnX.mjs";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
z.enum(itemRoleValues);
|
|
6
6
|
z.enum(cardVariantRoleValues);
|
|
@@ -17,6 +17,22 @@ function normalizeCardRole(value) {
|
|
|
17
17
|
return normalizeCardVariantRole(value);
|
|
18
18
|
}
|
|
19
19
|
//#endregion
|
|
20
|
+
//#region ../blocks/src/system/fields/backgroundContent.ts
|
|
21
|
+
function parseBackgroundContent(value) {
|
|
22
|
+
const result = boxBackgroundSchema.safeParse(value);
|
|
23
|
+
return result.success ? result.data : null;
|
|
24
|
+
}
|
|
25
|
+
function parseBackgroundOverlay(value) {
|
|
26
|
+
const result = boxBackgroundOverlaySchema.safeParse(value);
|
|
27
|
+
return result.success ? result.data : void 0;
|
|
28
|
+
}
|
|
29
|
+
/** Rendering accepts explicit application sources separately from stored references. */
|
|
30
|
+
const runtimeBackgroundContentSchema = runtimeBoxBackgroundSchema;
|
|
31
|
+
function parseRuntimeBackgroundContent(value) {
|
|
32
|
+
const result = runtimeBackgroundContentSchema.safeParse(value);
|
|
33
|
+
return result.success ? result.data : null;
|
|
34
|
+
}
|
|
35
|
+
//#endregion
|
|
20
36
|
//#region ../blocks/src/system/spacing.ts
|
|
21
37
|
/**
|
|
22
38
|
* Type-safe spacing system for sections and containers.
|
|
@@ -139,22 +155,6 @@ function resolveSectionMinHeight(minHeight) {
|
|
|
139
155
|
*/
|
|
140
156
|
const DEFAULT_SECTION_SPACING = "medium";
|
|
141
157
|
//#endregion
|
|
142
|
-
//#region ../blocks/src/system/fields/backgroundContent.ts
|
|
143
|
-
function parseBackgroundContent(value) {
|
|
144
|
-
const result = boxBackgroundSchema.safeParse(value);
|
|
145
|
-
return result.success ? result.data : null;
|
|
146
|
-
}
|
|
147
|
-
function parseBackgroundOverlay(value) {
|
|
148
|
-
const result = boxBackgroundOverlaySchema.safeParse(value);
|
|
149
|
-
return result.success ? result.data : void 0;
|
|
150
|
-
}
|
|
151
|
-
/** Rendering accepts explicit application sources separately from stored references. */
|
|
152
|
-
const runtimeBackgroundContentSchema = runtimeBoxBackgroundSchema;
|
|
153
|
-
function parseRuntimeBackgroundContent(value) {
|
|
154
|
-
const result = runtimeBackgroundContentSchema.safeParse(value);
|
|
155
|
-
return result.success ? result.data : null;
|
|
156
|
-
}
|
|
157
|
-
//#endregion
|
|
158
158
|
//#region ../blocks/src/system/transforms/registry/_utils/boxStyleClassNames.ts
|
|
159
159
|
/**
|
|
160
160
|
* @file The one place box-style content becomes CSS classes.
|
|
@@ -340,4 +340,4 @@ function boxStyleClassNames(value, options) {
|
|
|
340
340
|
].filter((token) => Boolean(token)).join(" ").trim() || "";
|
|
341
341
|
}
|
|
342
342
|
//#endregion
|
|
343
|
-
export {
|
|
343
|
+
export { parseRuntimeBackgroundContent as _, hasFixedFrameBackgroundMotion as a, resolveItemCardRole as c, isSectionMinHeight as d, isSemanticSpacing as f, parseBackgroundOverlay as g, parseBackgroundContent as h, fixedFrameScopeClass as i, DEFAULT_SECTION_SPACING as l, resolveSpacing as m, ROUNDED_CLASSES as n, normalizeBoxStylesBorder as o, resolveSectionMinHeight as p, boxStyleClassNames as r, resolveCardRoleForBoxStyles as s, RAISED_SHADOW_CLASS as t, SEMANTIC_SPACING_VALUES as u };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-y3LvxaiG.mjs";
|
|
3
2
|
import { i as carouselRegionAttributes } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
|
-
import { t as
|
|
3
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
4
|
+
import { t as CarouselNodeClient } from "./carousel.client-DMtGYTTM.mjs";
|
|
5
5
|
import { t as mountReactIsland } from "./reactMount-DFQy3CmO.mjs";
|
|
6
6
|
import "react";
|
|
7
7
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { S as clsx } from "./ThemedButton-
|
|
2
|
+
import { S as clsx } from "./ThemedButton-CnSa7o-I.mjs";
|
|
3
3
|
import { a as carouselShape, c as getCarouselSlidesToShowCssVars, i as carouselRegionAttributes, l as normalizeSlidesToShow, n as arrangementCarouselSettings, o as carouselStatus, r as carouselContents, u as resolveSlidesToShowMobile } from "./carousel.shared-BFQ3kBEw.mjs";
|
|
4
4
|
import { t as createLucideIcon } from "./createLucideIcon-BrXgHVKN.mjs";
|
|
5
5
|
import React, { useCallback, useEffect, useRef, useState } from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
3
|
-
import { t as CartClient } from "./cart.client-
|
|
4
|
-
import { t as mountShopBlockIsland } from "./shopShared-
|
|
2
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-Cyag_HOs.mjs";
|
|
3
|
+
import { t as CartClient } from "./cart.client-BzlOGP2j.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Ct-BRNez.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-34YvcpbX.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-Cyag_HOs.mjs";
|
|
3
|
+
import { t as CheckoutClient } from "./checkout.client-C0Qvh-d4.mjs";
|
|
4
|
+
import { t as mountShopBlockIsland } from "./shopShared-Ct-BRNez.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");
|